When using the Lato font (e.g.,  or ), I get completely overlapping text:    When I view the PDF in Google Chrome's PDF viewer, it looks fine on the screen:    but it still prints like the bad version, and I am really only concerned with the printed output for this document.  This is what I'm using to produce the above:  \documentclass{article} \usepackage{fontspec} \setmainfont{Baskerville} \newfontfamily\kgtitlefont[Scale=2]{Lato} \begin{document} {\kgtitlefont{This would make a good title}}\\ This would make good text. \end{document}   I know that this is XeTeX-specific because if I use LuaTeX (through TeXworks or TeXShop in both cases), the Lato looks fine, but LuaTeX can't find Baskerville:  luaotfload | Updating the font names database: luaotfload | Scanning TEXMF fonts... luaotfload | Scanning OS fonts... luaotfload | Font names database saved: %s  : /Users/kayhan/Library/texlive/2012/texmf-var/luatex-cache/generic/names/otfl- names.lua  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ./testroboto.tex:3: fontspec error: "font-not-found" !  ! The font "Baskerville" cannot be found. !  ! See the fontspec documentation for further information. !  ! For immediate help type H <return>. !...............................................    l.3 \setmainfont{Baskerville}   I would rather fix Lato in XeTeX, but would be okay with fixing Baskerville in LuaTeX.  I am fairly experienced with LaTeX on Linux, but am relatively new to XeTeX, fontspec, and Mac OS X.  Update: I have TeX Live 2012 Version beta-0.70.2-2012062819 (TeX Live 2012) and the baskerville font I have is a ttc, so that this may be the problem. The XeLaTeX problem appears in adobe acroreader and preview. It does not appear in chrome, though. I will try to update TeX Live on my 10.8.5 system and see what happens. It will take a little time to download this. I'll report back when done.  Update 2: After installing TeX Live 2013 (thank you BitTorrent!), I can get the document to work with Lua(La)TeX (i.e., get LuaTeX to find and use the Baskerville .ttc font I have), but with XeTeX, the font spacing is still messed up.  Note that the Scale=2 option does not change anything.  The following also produces illegible font spacing with XeTeX:  \documentclass{article} \usepackage{fontspec} \setmainfont{Baskerville} \newfontfamily\kgtitlefont{Lato} \begin{document} {\kgtitlefont{This would make a good title}}\\ This would make good text. \end{document}   So I have a good work-around (Use LuaTeX instead of XeTeX), I am still interested in getting it to work with XeTeX, if only to understand better how it works.  Update 3: After reading @Nils L.'s comment, here is an even more minimal working example:  \documentclass{article} \usepackage{fontspec} \setmainfont{Lato} \begin{document} This is even more minimal. \end{document}   which produces the following:    Note that in some PDF viewers (TeXWorks, Google Chrome) it looks fine on the screen, but with most PDF viewers (acroread, preview, safari) it looks awful on the screen. For all PDF viewers it prints incorrectly.  Update 4: When changing \setmainfont{Lato} to \setmainfont{Lato-Reg.ttf}, it works correctly. I don't understand why this makes a difference, but I guess I have a lot to learn about fontspec.


Short story where aliens give boy super powers which he uses to destroy the world, dies alone

I'm actually trying to pin down an anthology and this is the only story I can remember being definitely in it.  A boy (maybe called Christopher) is visited by aliens who agree to carry out his every wish.  He begins small but eventually is destroying cities with huge tsunamis that are being brought into being by the aliens, as per his request.  I seem to remember he knows he's doing it and there was an angle in the story explaining his nihilistic behaviour.  At the end the boy is on top of a hill looking out over the devastation he has caused (the Earth is now dead) and writes in the dust at his feet something along the lines of "I WAS (his name, possibly Christopher but not too sure).  The aliens depart and the final scene is them justifying their behaviour by stating that they are not monsters but just looking for a home.  If I can identify the story then I should be able to use isfdb.com to pin down the anthology.  The story is from the 1990s or earlier.


I'm getting really fed up of my current Windows 10 install on my Lenovo S440 ThinkPad (2.4 GHz processor, 8 Gb RAM, and a 16 Gb SSD swap drive), and would like to install Ubuntu 14.04 as a dual boot, to bring it in line with all my other devices. I was wondering if anyone had any experience with this kind of install, or could offer advice on where to start?


How should I implement this interaction between a continuous and categorical predictor?

I have a continuous outcome variable. I understand that if I have a binary predictor, and a continuous predictor, and an interaction, then the model looks like this:  $y_{i} = \beta_{0} + \beta_{1}x_{1} + \beta_{2}x_{2} + \beta_{3}x_{1}x_{2} + \varepsilon_{i}$  However, I'm thinking of making the binary predictor a categorical one instead, with three categories.    What will the model equation look like once I make that change? I understand that I'll need to have two dummy variables, but I can't conceptualize what the interaction will look like under that circumstance.  Does it make any difference whether I use 0,1 to code the binary predictor, or some other values like 1,2? This question also applies to the model with the categorical predictor, since in that case I'll have to decide how to code the dummy variables.  Prior to the interaction term being in my model I was encouraged to center the continuous predictor. Is centering (still) a good idea now that I have this interaction term?


How do I remove this Schlage double-cylinder deadbolt with no visible screws?

Does anyone know how to remove this dead bolt that has no screw heads to use a screw driver? Here's a picture below.


$u(t)=e^{At} u_0$ is solution of the IVP $u'(t)=Au(t)$ and $u(0)=u_{0}$.

If A is a given matrix n order matrix and $u_0 \in \mathbb{R}^n$ . Then $u(t) = e^{tA}u_0$ solves the initial value system of ODE $u'(t) = Au(t)$ with $u(0) = u_0$ in $(0,\infty)$. Prove the converse as well. To show $u(t) = e^{tA}u_0$ is solution of given system is not difficult. But for converse part I am not sure what to do. Either to show this has unique solution in $(0, \infty)$ then it follows that any solution coincides with $u(t) = e^{tA}u_0$ by uniqueness and we are done. Is my reasoning correct ? Is there any other way ?


Why do we allow other users to edit our posts?

A warning: This is feedback. My question is mostly rhetorical. I would like to state that I feel insulted and demeaned when another user edits my lovingly-crafted question or answer, removing elements of tone they judge to be superfluous. (Such as politeness, courtesy, or words intended to make new users feel welcome to the community.) I can understand why we might want to give ourselves the ability to remove bad advice, spelling and grammar errors, or content intended to abuse others. But when another user feels it is their duty to make a value judgement about my tone - removing anything welcoming or conversational  about it - five seconds after I post an answer... then what kind of a world have we created for ourselves? Is this what we want? To encourage our users not to contribute to these communities, but to attack the contributions of others?


Practical Uses for the "Curiously Recurring Template Pattern"

What are some practical uses for the ""?  The "" example commonly shown just isn't a convincing example to me.


Why does appending a message to a key before hashing not guarantee integrity?

I want to guarantee the integrity of a message $m$. My first thought is to append the message to an integrity key $k$ and hash it as $H(k\,||\,m)$. However, I have been told that this is not totally secure, because an attacker can add more data to the end of $m$ while still generating the correct MAC.  How is it possible for an attacker to modify $H(k\,||\,m)$ such that the message is changed but the MAC is the same?  I was advised to use HMAC instead. Why does HMAC solve this problem?


Connecting to other LAN computers using their names

I have a LAN at home with my desktop and my laptop. IP addresses are allocated dynamically to both, so the IP number keep changing.  I try to connect from one to the other using places->Server, and in there if I put the correct IP address I connect without any issues. But if I put the hostname, it doesn't recognize. Same thing if I try to ping the hostname v/s the IP address.  The funny thing is that I can see the hostnames if I go to places->network. So basically ubuntu has got a way of telling what are the machines connected to the network and what are their names, I wonder how can I exploit this to keep an up-to-date routing table that map the hostname to the correct IP address.  PS, both desktop and laptop are running Ubuntu. I'm using version 10.04 and 10.10  Thanks


What is the difference between ping -w and ping -W?

What is the -w (deadline) flag in ping for? I cannot find a description of it in the ping man page; only for -W, which takes seconds as a parameter. What is the difference between them, and how can I set a ping timeout (if host is not responding) to 200ms?


Find out what hooks are implemented in a system

I've been put to work on a very complex Drupal 7 based system with multiple custom written modules for which the developers have gone or been re-assigned.  Documentation for the system is very sparse.  I think it would help me to get a a better overall picture of the system, as well as to figure out what is happening in particular parts of the system that I have been asked to fix or change, if I could see a listing of all of the hooks that are implemented.  I presume that Drupal scans all of the code in the system and builds itself some sort of structure or associative array in its cache memory so that it can quickly find any hooks that need to be invoked.  Is the result stored somewhere that I can read, for example in a database table or a global variable?  If I need to figure it out myself, is there a particular function, for example in the system module or bootstrap code that all hooks must pass through once?  If so, perhaps I could (temporarily) hack it to get the information I want.  If someone knows how to do this, I'd love to hear how.  If you don't know how to do it but have ideas about especially fruitful places to look in the code, database, drush functions, or wherever, that could be useful too.  Thank you very much.


How to increase swap space on a live server

On Ubuntu 14.04, the swap file has to be increased as the memory and swap usage are reaching 100% usage.  On a live production server, can the swap be increased with minimal disruption to the service?  Output of free -h:               total       used       free     shared    buffers     cached Mem:          3.9G       3.4G       435M        24K       1.2M       7.5M -/+ buffers/cache:       3.4G       443M Swap:         8.0G       6.6G       1.4G


Why can't I browse the internet with Safari, but Chrome is working?

I can't browse to any website using Safari; yet, Google Chrome and Firefox are working fine. The Mac App Store also reports that it cannot connect.  I am running OSX 10.7.2 on a 2011 MacBook Pro.


I am new in America and I see most of the people use schwa sounds with most of the characters as p,w, k,c and so on. I wanted to know what all characters have the schwa sound and when and how to use it?


How to install firefoxdriver webdriver for python3 selenium on ubuntu?

I installed python3-selenium apt package on Ubuntu 16.04. While installing, got a message:  Suggested packages: chromedriver firefoxdriver The following NEW packages will be installed: python3-selenium   When I try to run the following python code,  #! /usr/bin/python3.5 from selenium import webdriver import time  def get_profile():     profile = webdriver.FirefoxProfile()     profile.set_preference("browser.privatebrowsing.autostart", True)     return profile  def main():     browser = webdriver.Firefox(firefox_profile=getProfile())      #browser shall call the URL     browser.get("http://www.google.com")     time.sleep(5)     browser.quit()  if __name__ == "__main__":     main()   I get the following error:  Traceback (most recent call last):     File "./test.py", line 19, in <module>         main()     File "./test.py", line 11, in main         browser = webdriver.Firefox(firefox_profile=getProfile())     File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox      /webdriver.py", line 77, in __init__ self.binary, timeout),     File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 47, in __init__ self.profile.add_extension()     File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/firefox_profile.py", line 91, in add_extension self._install_extension(extension)     File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/firefox_profile.py", line 251, in _install_extension compressed_file = zipfile.ZipFile(addon, 'r')    File "/usr/lib/python3.5/zipfile.py", line 1009, in __init__ self.fp = io.open(file, filemode) FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib /firefoxdriver/webdriver.xpi'   I did searching for packages name firefoxdriver in Ubuntu repositories but none exist.  Any help with installing the webdrivers appreciated.


Is it acceptable to reverse a sign of a principal component score?

I have two datasets from similar psycholinguistic experiments. In both of them, information about the participant's reading and spelling ability was collected, then converted into standardized scores zRead and zSpell. The aim is to use these as covariates when examining the priming effects from the experiments. Because these predictors are correlated, and because theoretically it's useful to differentiate their shared variance from their unique effects, I'm looking into using principal components instead, i.e. generate two principal components from the zRead and zSpell scores and use these as the covariates in a linear mixed model.   The problem is that although the principal components come out similarly in each experiment, with PC1 indexing the shared variance and PC2 differentiating reading and spelling ability, the sign of PC2 is different in each dataset, i.e.:  Experiment 1 correlation table:         zSpell zRead  PC1a   PC2a zSpell  1.000 0.504 0.867 -0.498 zRead   0.504 1.000 0.867  0.498 PC1a    0.867 0.867 1.000  0.000 PC2a   -0.498 0.498 0.000  1.000   Experiment 2:         zSpell  zRead  PC1a   PC2a zSpell  1.000  0.485 0.862  0.508 zRead   0.485  1.000 0.862 -0.508 PC1a    0.862  0.862 1.000  0.000 PC2a    0.508 -0.508 0.000  1.000   The aim is to present both of the related datasets together, so explaining how PC2 represents a (slightly) different thing in each dataset might be confusing. Is it acceptable to reverse score individual components by multiplying by -1? If not, is it okay to reverse all the components at once if the interpretation would make more sense?  I can't see this changing the correlational structure of the variables, but I'm not sure if there other reasons to avoid it.


After 1 year and a half, my windows now decided to say its not genuine

On 18/06/2015 I bought a windows 7 ultimate key. I activated it, connected to microsoft, updated, and everything was nice.  However, to my surprise, today it started saying that its not genuine.  My first reaction was "I'm going to contact the seller! I'm sure he can help me!". Nope. Website doesn't exist anymore. I now think my Windows is actually not genuine indeed.  If I try to apply the activation backup, it doesn't work.  If I try to insert the key again, it says that the key is blocked by microsoft.  If I say I want to buy a new license, it doesn't offer me the option for windows 7, only windows 10.  I use some acessibility things, so I can update for free to windows 10. However when I try to install it, it says my windows need to be activated in order to install it.  What are my other options? 2016 is here to say "I'm not over yet". Dammit.  I'm from Brazil, and the automated call is not an option.


Why did I get email from UKVI RIYADH when I submitted to ABUDHABI?

This is what I and my husband have received today.  Dear Customer, Your UK visa application has been issued. PLEASE DO NOT GO TO THE VISA APPLICATION CENTRE BEFORE THEY CONTACT YOU. You will be contacted by the Visa Application Centre when your documents are ready for collection, or have been dispatched via courier where this is relevant. You are reminded that you should avoid making travel plans until you have collected your passport, as the outcome of your visa application is not final until you receive your passport. Please ensure you check the details on your visa when collecting your passport.  Why is this email from RIYADH instead of ABUDHABI? What does it mean? How many days will it be until we get our passports back?


how to add shortcode in wordpress container

I develop my plugin with this code :  function my_function( $atts ) {     some code } add_shortcode( 'myfunction_shortcode', 'my_function' );   I need to use my shortcode on my page or post, when I used it output code shown on top of my page.


"taste different" or "taste differently"?

Tell me please if it correct different or differently in the following sentence.     But eggs can taste different/differently depending on how fresh they are, the way they're cooked and the diet of the hen.   This passage is from this  and the author uses the word different there. Tell me please why.


How do I replace text inside a div element?

I need to set the text within a DIV element dynamically. What is the best, browser safe approach? I have prototypejs and scriptaculous available.

TEXT GOES HERE

   Here's what the function will look like:  function showPanel(fieldName) {   var fieldNameElement = document.getElementById('field_name');   //Make replacement here }


How to transform negative values to logarithms?

I would like to know how to transform negative values to Log(), since I have heteroskedastic data. I read that it works with the formula Log(x+1) but this doesn't work with my database and I continue getting NaNs as result. E.g. I get this Warning message (I didn't put my complete database because I think with one of my negative values is enough to show an example):   > log(-1.27+1) [1] NaN Warning message: In log(-1.27 + 1) : NaNs produced >    Thanks in advance  UPDATE:  Here is an histogram of my data. I'm working with palaeontological time series of chemical measurements, E.g the difference between variables like Ca and Zn is too big, then I need some type of data standardization, that is why I'm testing the log() function.   This is my


Cheapest ways to get from Charleroi to Brussels Midi?

I'm thinking of going to  (last weekend in January) and my cheapest plane connection is by the Charleroi airport. It seems that I would pay just about the price of plane tickets again for the transportation to city center. Assuming that I arrive on Friday on 21:00, is there a way I could reach Midi for cheaper than 14 EUR? Riding a bicycle, renting a car or walking doesn't sound like an option to me.


Dealing with a string and byte in python

I'm working with some python code, and I can't seem to figure out how to get a byte representation, and a string variable to work together.  I have:  secret = b'a very secret message'   if I redefine this as:  myrealsecret = 'Hey there this is a real secret' secret = b+myrealsecret   Why is that? and how can I get whatever value is in myrealsecret to play nicely with secret as a byte representation?  Thank you.


In Terraria, is it possible to completely reclaim a Corrupted area?

Well, what I tried to do was completely cleanse a Corruption area. I assumed it's all about the grass, since that seems to be how the Corruption spreads, and other biomes (such as the Underground Jungle) work like that.  So, I bought a few stacks of Purification Powder and Sunflowers, and purified every bit of Corrupted grass I could find.  It didn't completely work, however. Slimes/Zombies now spawn, but so do Eaters of Souls, still — and the music hasn't changed.  Is there something else that has to be done to completely eradicate the Corruption? (I've already smashed every single Shadow Orb; I doubled checked using the World Viewer.)


Subgroup of $\mathbb{Q}$ with finite index

Consider the group $\mathbb{Q}$ under addition of rational numbers. If $H$ is a subgroup of $\mathbb{Q}$ with finite index, then $H = \mathbb{Q}$.  I just saw this on our exam earlier and was stumped on how to show this. Any ideas?


function makeAdjectifier(adjective) {     return function(string) {         return adjective + "" + string;     }; } var coolifier = makeAdjectifier("COOL"); console.log(coolifier("conference")); //outputs "COOLconference"   So, what I see here is coolifier function is being called and conference string is passed as an argument, and coolifier which taking input from makeAdjectifier, & cool is passed as an argument so adjective becomes cool. Now again adjectifier is returning a function which is taking string as a parameter. how conference is available at the inner function so that string becomes equal to conference.


Invoking a Mail Service - java.lang.NullPointerException: null

I am new to Java Spring Boot - and I am trying to invoke a Mailer class to send out an email.  -- so at this forgot password stage - I reset the password and now I want to send the user their new password via email.  I've tried to do the following.  -- in my user handling controller          //send         MailService mailer = new MailService();             mailer.sendEmail();   -- the mail service looks like this -- before there was a request mapping to send an email out when you went to /simpleemail.  package services;  import java.util.HashMap; import java.util.Map;  import javax.mail.MessagingException; import javax.mail.internet.MimeMessage;  import org.springframework.beans.factory.annotation.Autowired; import org.springframework.mail.javamail.JavaMailSender; import org.springframework.mail.javamail.MimeMessageHelper; import org.springframework.stereotype.Controller; import org.springframework.ui.freemarker.FreeMarkerTemplateUtils; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody;  //import org.apache.velocity.app.VelocityEngine; import freemarker.template.Configuration;  @Controller public class MailService {      @Autowired     private JavaMailSender mailSender;      @Autowired     Configuration fmConfiguration;          /*     @RequestMapping("/simpleemail")     @ResponseBody     String home() {         try {             sendEmail();             return "Email Sent!";         }catch(Exception ex) {             return "Error in sending email: "+ex;         }     }*/      public MailService(){      }       public void sendEmail() throws Exception{           MimeMessage mimeMessage = mailSender.createMimeMessage();          try {              MimeMessageHelper mimeMessageHelper = new MimeMessageHelper(mimeMessage, true);              mimeMessageHelper.setSubject("Hi");             mimeMessageHelper.setFrom("zzzz@gmail.com");             mimeMessageHelper.setTo("xxxx@gmail.com");                Map < String, Object > model = new HashMap < String, Object > ();             model.put("firstName", "Yashwant");             model.put("lastName", "Chavan");               mimeMessageHelper.setText(geContentFromTemplate(model), true);              mailSender.send(mimeMessageHelper.getMimeMessage());         } catch (MessagingException e) {             e.printStackTrace();         }               }      public String geContentFromTemplate(Map < String, Object > model) {         StringBuffer content = new StringBuffer();          try {             content.append(FreeMarkerTemplateUtils                 .processTemplateIntoString(fmConfiguration.getTemplate("email-template.txt"), model));         } catch (Exception e) {             e.printStackTrace();         }         return content.toString();     } }


Is CCD vs CMOS sensor the deciding factor between two budget compact cameras?

I'm buying a compact digital camera for travel usage by a person not very good with computers. The purpose is to shoot pictures better than with a phone and nothing else, meaning that it should be cheap enough (less than $100) to not worry if it gets some sand on it or gets stolen. I managed to narrow the choice to two candidates: .  The main difference seems to be the sensor: CCD vs CMOS.   My questions:   Which sensor would you recommend for this purpose? Which camera would you recommend?


Translating view content is not working as expected

I got a D8 site with a newly created content type with the following fields:   Title Ordering Number Some Boolean field   The title field is allowed to be translated but the other two are not.  A view is created to show a list of all entities of this content type, showing only the title, filtering by the Boolean, and ordering by the Ordering number field.  Everything works fine for the default language. When switching to the second site language, the titles still shows in the default language.  I then added a filter criteria to filter using translation language of the context selected language. Now the title shows in the correct language but the order field and the Boolean field comes as nulls (I've ran the view query manually). The reason is apparently because these two fields are not translatable and hence when joined using the current language there are no corresponding records.  What is the solution for such a situation?  Query from the current view settings looks like the following:  SELECT node_field_data.langcode AS node_field_data_langcode, node__field_order.field_order_value AS node__field_order_field_order_value, node_field_data.nid AS nid FROM  {node_field_data} node_field_data LEFT JOIN {node__field_order} node__field_order ON node_field_data.nid = node__field_order.entity_id AND (node__field_order.deleted = '0' AND node__field_order.langcode = node_field_data.langcode) WHERE (( (node_field_data.status = '1') AND (node_field_data.langcode IN  ('en')) AND (node_field_data.type IN  ('my_content_type')) )) ORDER BY node__field_order_field_order_value ASC   I had to remove the filter by Boolean because when it comes as null, no results show at all.


I've one string with this format:  A B C D   How can I have the same pattern in a column?


window.onload = function() {     var count = 0;     var message = "You clicked me ";     var div = document.getElementById("message");     var button = document.getElementById("clickme");      button.onclick = function() {         count++;         div.innerHTML = message + count + " times!";     }; };   Once the function assigned to the onload property has been executed the var div should become unreachable. Then why the hack the function assigned to the onclick property can still use the variable in question? The function executes only after the button has been clicked (var button).


Problem:  $$y''+20y=100\sin(wt)$$  conditions:  $$y(0)=2, y'(0)=0$$  What would the solution for $y(t)$ be when $w=2\sqrt 5$  So far I have GS(H)=Acos($\sqrt 20$)+Bsin($\sqrt 20$).


How I can fix terminal and software center on Ubuntu 14.04?

When type this command sudo apt-get update then showing me error and Ubuntu software center can't access via Internet, How can I fix this error ?  Err http://bd.archive.ubuntu.com trusty-backports InRelease Err http://security.ubuntu.com trusty-security InRelease Err http://archive.canonical.com trusty InRelease Err http://archive.canonical.com saucy InRelease Err http://download.opensuse.org ./ InRelease Err http://nginx.org wheezy InRelease Err http://dl.google.com stable InRelease Err http://dl.google.com stable InRelease Err http://bd.archive.ubuntu.com trusty Release.gpg   Could not resolve 'bd.archive.ubuntu.com' Err http://bd.archive.ubuntu.com trusty-updates Release.gpg   Could not resolve 'bd.archive.ubuntu.com' Err http://security.ubuntu.com trusty-security Release.gpg   Could not resolve 'security.ubuntu.com' Err http://archive.canonical.com trusty Release.gpg   Could not resolve 'archive.canonical.com' Err http://download.opensuse.org ./ Release.gpg   Could not resolve 'download.opensuse.org' Err http://extras.ubuntu.com trusty InRelease Err http://bd.archive.ubuntu.com trusty-backports Release.gpg   Could not resolve 'bd.archive.ubuntu.com' Err http://archive.canonical.com saucy Release.gpg   Could not resolve 'archive.canonical.com' Err http://nginx.org wheezy Release.gpg   Could not resolve 'nginx.org' Err http://dl.google.com stable Release.gpg   Could not resolve 'dl.google.com' Err http://dl.google.com stable Release.gpg   Could not resolve 'dl.google.com' Err http://extras.ubuntu.com trusty Release.gpg   Could not resolve 'extras.ubuntu.com' Reading package lists... Done W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/trusty/InRelease   W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease   W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease   W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease   W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/InRelease   W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease   W: Failed to fetch http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/./InRelease   W: Failed to fetch http://nginx.org/packages/debian/dists/wheezy/InRelease   W: Failed to fetch http://archive.canonical.com/dists/saucy/InRelease   W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease   W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/InRelease   W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'bd.archive.ubuntu.com' W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Could not resolve 'bd.archive.ubuntu.com' W: Failed to fetch http://bd.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Could not resolve 'bd.archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Could not resolve 'security.ubuntu.com' W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg  Could not resolve 'archive.canonical.com' W: Failed to fetch http://archive.canonical.com/dists/saucy/Release.gpg  Could not resolve 'archive.canonical.com' W: Failed to fetch http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/./Release.gpg  Could not resolve 'download.opensuse.org' W: Failed to fetch http://nginx.org/packages/debian/dists/wheezy/Release.gpg  Could not resolve 'nginx.org' W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg  Could not resolve 'dl.google.com' W: Failed to fetch http://dl.google.com/linux/talkplugin/deb/dists/stable/Release.gpg  Could not resolve 'dl.google.com'


How to identify linux swap partition on windows 10?

I recently installed Ubuntu but now want to shift to a different distro. Here is a snapshot of the disk management utility on Windows 10.  I allocated approx 280 GB of space to Ubuntu. I have already deleted it. Now, I want to delete the swap partition as well but cannot identify which one it is. I have tried numerous YT videos and answers here but no respite. I even managed to delete the grub boot loader and boot to Windows as a default.


Is there any way I can organize my favorite questions on StackOverflow using self-defined categories?

I use StackOverflow as a core learning tool and questions posted by others(as well as comments) have much-sought information and nuances.Also,the questions posted by me are likely to increase in numbers with time.I already have nearly a hundred favorite questions despite all attempts to be highly selective in favoriting questions.Taking out hard-prints or pdf prints makes categorizing and searching much more tiresome. I just don't know how to categorize my favorite questions based on aspects of a language like functions,global variables,recursion,syntax and other categories. It is really going to be a headache as I find good questions to add to the list everyday.Due to time constraints I can't read and assimilate the answers rightaway and have to bookmark/favorite them for later reference. I am sure it's common problem and there must be a solution for this on StackOveflow.I tried looking for it and couldn't find.So please suggest me the best option available to users for this issue.


Why Stackoverflow doesn't allow comparison questions or recommendations for tool

Stackoverflow has very good Contributors,Developers and Tech Experts as a members Why It doesn't allow me to ask a question to recommend or compare the tools,technology from the Experts available in the stack overflow.  In my case MonkeyTalk and Calabash both are a new technology in mobile automation testing. Since I am a newbie to testing how can I get suggestions from Experts apart from stackoverflow(I asked this question after spending so many hours in google but didn't get anything)   Stackoverflow put me on hold for this question  How can I get to know this answers from stack group.


$a\equiv\bar a\!\pmod{\!kn}\Rightarrow a\equiv\bar a\!\pmod{\! n};\ $ $(a\bmod kn)\bmod n=a\bmod n.\ $ Congruences persist mod factors of the modulus

I noticed relation between modulo operation and number which is power of two  Example I have to calculate $ 3431242341 \mod 2^5 $, which is $ 5 $ but it is equivalent to  $ ( 3431242341 \mod 2^9 ) \mod 2^5 $   I tried many examples and it seems to be true in general, and I am not sure if it is a coincidence or true in general that I can use first modulo operation ( greater number) and the result will be the same.


Let $\gcd(m,n)=d$. Show that if $a=b$ (mod $d$) the equations $x=a$ (mod $m$) and $x =b$ (mod $n$) has a solution.

This is the question.  Let $\gcd(m,n)=d$. Show that if $a=b$ (mod $d$), the equations $x=a$ (mod $m$) and $x =b$ (mod $n$) has a solution.  My thinking is this. Because $\gcd(m,n)=d$, there exists some $r,s$ integers such that $rm+sn = d$. So $r\frac{m}{d} + s\frac{n}{d} = 1$. Now, my idea is to define $x$ similar to that in the Chinese Remainder Theorem, letting $x = br\frac{m}{d} + as\frac{n}{d} \implies dx = brm+asn$. Now, $dx$ (mod $m$) $= asn = da$ (mod $m$). Similarly $dx= db$ (mod $n$). So $dx = da$ (mod $m$) = $db$ (mod $n$). Here is where I'm stuck. I suppose now I should use the fact that if $a=b$ (mod $d$), then $dx = da$ (mod $m$) = $db$ (mod $n$) would imply $x=a$ (mod $m$) and $x =b$ (mod $n$), and the proposed $x$ above would work. But how do I do it? Any hints?


Why is the phrase "why am I not" abbreviated "why aren't I" (i.e. a complete replacement of the verb)?

The other day I saw the following (written) phrase being used in an American TV series episode:  "Why aren't I on the list?"  Even though I know this "sounds right" (I'm a relatively fluent, although not native, English speaker), this struck me as weird, since "am" is the normal form for "I" in all/most other situations ("I am", "you are", "he/she/it is" etc), i.e. without abbreviation being used, the correct phrasing would be "Why am I not on the list" (rather than "Why are I not on the list").  So, what is the origin of this strange special case, and are there also other similar ones like it in the English language (i.e. where the abbreviated word is at the same time replaced by a completely OTHER word or word form, effectively not just being abbreviated, but rather also substituted at the same time)?


Is the modulo operator ill defined for numbers less than 1?

Mathematically, 50/10 = 5/1 = 0.5/0.1 etc. In all cases, the answer is 5, and the remainder should be zero - possibly with numerical noise. However, I found a very puzzling inconcistency:  In [1]: 50.0/10.0, 50.0%10.0 Out[1]: (5.0, 0.0)  In [2]: 5.0/1.0, 5.0%1.0 Out[2]: (5.0, 0.0)  In [3]: 0.5/0.1, 0.5%0.1 Out[3]: (5.0, 0.09999999999999998)  In [4]: 0.05/0.01, 0.05%0.01 Out[4]: (5.0, 1.734723475976807e-18)  In [5]: 0.005/0.001, 0.005%0.001 Out[5]: (5.0, 0.0)   Result number 3 is not consistent with the others. I get exactly the same results, down to the last digits, with python 2 and 3 on different machines with different versions of python, and different OS and hardware. What is going on?


If I use a 50mm prime FX lens on a FX camera, I will get 50mm. If I use a 50mm prime FX lens on a DX camera, I'll get 75mm (assuming 1.5x crop factor).   Now, if I use a 50mm prime DX lens on a DX camera, do I get 50mm or 75mm? In other words, does a 50mm prime DX lens already account for the crop factor? Does the multiple only exist for a FX lens on a DX camera?  Note that I'm asking about putting FX and DX lenses on a DX body - not putting them on a FX body. I read  but it discusses putting DX lenses on an FX body. I just want to know if 50mm is 50mm whether it's DX or FX lens; and if I put that on a FX body it'll be 50mm and DX body it'll be 75mm.  To further clarify....   I take a picture with a 50mm FX prime on a FX body I take a picture with a 50mm FX prime on a DX body I take a picture with a 50mm DX prime on a DX body   Photos 1 and 2 will be different - 2 will be zoomed by 1.5x. Will 1 and 3 be the same or will 2 and 3 be the same?


Converge the sequence $\left(\left(1+\frac{1}{n}\right) \left(1+\frac{2}{n}\right)\cdots\left(1+\frac{n}{n}\right)\right)^{1/n}$

Does this series converge or diverge?  $$ \left[\prod_{k=1}^{n}\left(1+\frac{k}{n}\right)\right]^{\frac{1}{n}} $$


How to prevent users from renaming files while providing write permissions on Linux

For some special purpose, I want to prevent non-root users of the Linux Server from changing or renaming the filenames. However, they can modify and write to the contents of the file. How to do this from command line.


I have my smartphone with Android 4.0.1 version. It is original Chinese brand TOOKY.  Can my phone OS change to Ubuntu? Please explain.


'Home' in 'Ben and Jen went home.' Can an adverb be a noun at the same time?

In this sentence:     Ben and Jen went home.    Is home both an adverb and a noun?


How to accept yes from script "Are you sure you want to continue connecting (yes/no)?"

I have tried  echo yes | ssh myserver@13.4.2.1 yes | ssh myserver@13.4.2.1 ssh -y myserver@13.4.2.1   none of which appear to work?  EDIT #1  Part of my problem was I thought every command after the ssh command was a remote command when the commands were in fact local. I guess remote commands have to be declared in a string which is passed to the ssh command as an argument e.g.  $ ssh myserver@13.4.2.1 'remote command'


"Why Londoners didn't understand Frieda?" vs. "Why didn't Londoners understand Frieda?"

Which of these is a more natural-sounding sentence:   Why Londoners didn't understand Frieda? Why didn't Londoners understand Frieda?   It seems that we oftener say "why didn't you do this?" and not "why you didn't do this?", but with the Frieda example, both sound passable to me.


How to show volume level when changing sound volume using custom shortcuts.

On Ubuntu when changing sound volume with keyboard it increasing or decreasing too much for me (something like 5% or 10%).  I wanted to change the volume with 1% every time keyboard button is pressed.   So I assigned custom shortcuts for a command amixer -D pulse sset Master 1%+   But now, when I use those buttons I don't see a box notifying about the current sound level. How do I invoke it?


I am using ubuntu 14.04, kindly assist how to install drivers for my ATI Radeon graphics card [Mobility Radeon HD 5650/5750 / 6530M/6550M].  I read some documentation on the given site but I am not sure if I really need to do all this.


Java Serializable doesn't read the right object

I want to convert an object into a byte array and convert that array back into an object. Everything works fine, besides that the method which converts the array back into an object doesn't print the right object out. public static List<Person> list_interviewees;     main {          list_interviewees = new ArrayList<Person>();         Person p = new Person();         p.setAge(20);         p.setDegree("bhd");         p.setLastJob("asd");         p.setLastName("Test");         p.setName("Tester");         list_interviewees.add(p);         Person p2 = new Person();         p2.setAge(20);         p2.setDegree("bhd");         p2.setLastJob("asd");         p2.setLastName("QWEQW");         p2.setName("ASAD");         list_interviewees.add(p2);         transferBytes();         }      public static void sendBytes(byte[] b) {         System.out                 .println("++++++ This method simulates sending information to other site and reads the data");         System.out.println("Received bytes" + b);         System.out.println("Total bytes" + b.length);          Person p = null;          try (ByteArrayInputStream bis = new ByteArrayInputStream(b);                 ObjectInputStream in = new ObjectInputStream(bis);) {             p = (Person) in.readObject();             System.out.println(p.getName() + " " + p.getLastName());         } catch (IOException e) {             e.printStackTrace();         } catch (ClassNotFoundException e) {             e.printStackTrace();         }      }      public static void transferBytes() {          try (ByteArrayOutputStream bos = new ByteArrayOutputStream();                 ObjectOutputStream out = new ObjectOutputStream(bos);) {              for (Person p : list_interviewees) {                                  out.writeObject(p);                 sendBytes(bos.toByteArray());             }          } catch (IOException e) {             e.printStackTrace();         }      }  If I run the code above I get the output  ++++++ This method simulates sending information to other site and reads the data Received bytes[B@4aa298b7 Total bytes158 Tester Test ++++++ This method simulates sending information to other site and reads the data Received bytes[B@4554617c Total bytes195 Tester Test  Why do I get the name Tester Test twice there? I checked the person which is send through the debugger, it is the correct one, so why does the sendBytes method receive the wrong array?.


I have Large amount of Account Records in salesforce, i want to check the particular field contain duplicates or Not using Query  For Small amount of Records finding duplicates using query:  SELECT JDE_ship_to_account_no__c, count(Id) records FROM account GROUP BY JDE_ship_to_account_no__c HAVING count(Id) > 1   For Large amount of account Records it is Displaying the empty Value , Please guide the answer to write the query for finding the duplicates for large amount of Records How to write soql query for finding duplicates for large amount of account records


I'm working on a 4 layer PCB with internal 2 layers being power and GND... 2 outside layers are signal. Is it better to have a pour on the outside layers or just leave them empty except for the signals?


Not able to pass basic auth headers in a dynamic curl cmd

I am trying to run a dynamically generated curl command with basic authorization headers and store response code in a variable. below is my shell script. (say test.sh) auth="--header 'Authorization: Basic abcdefghijkl'" url="http://localhost:8080"  cmd="curl -s -o /dev/null -I -w \"%{http_code}\" -X GET ${url} ${auth}" echo $cmd code=$($cmd) echo $code  but above command doesn't send the authorization header in the GET request. To demonstrate it I have written a small nodejs http server and logging headers in it, see below. var http = require('http');  http.createServer(function (req, res) {   console.log(req.headers);   res.write('This is a sample response from server.\n');   res.end(); }).listen(8080);  console.log("Server is listening on port 8080");  but on running test.sh via bash test.sh  I get below output in shell: "200""000""000"  and on server side i get below text in logs. { host: 'localhost:8080', 'user-agent': 'curl/7.54.0', accept: '*/*' }  There are two problems:  Basic auth header is not received on the server side. Instead of 200 status-code I get "200""000""000" which is unexpected.  Can you please suggest what am i missing here? Thanks in anticipation.


How to reopen hidden panels in print composer?

I unfortunately deleted the menu (Qgis 1.8.0) in print composer (settings for labels etc) . Now I am wondering how to display it again? The menu is gone in all my projects and I could not find a solution for this.  Any suggestions? Thank You!!


Finding the limit of a sequence having epsilon

If $a_n$ → a, $b_n$ → b, then $c_n$ = ($a_1$$b_n$+$a_2$$b_{n−1}$+···+$a_n$$b_1$)\n → ab.   Hint: Write $a_n$ = a + $\epsilon$$_n$, where $\epsilon$ → 0. Then:  $c_n$ = ($a_1$$b_n$+$a_2$$b_{n−1}$+···+$a_n$$b_1$)\n = a [($b_n$ + $b_{n−1}$ + ··· + $b_1$)/n]+[($\epsilon_1$$b_n$ + $\epsilon_2$$b_{n-1}$ + ··· + $\epsilon_n$$b_1$)/n]  The Questions:  The first part tends to ab (why?), and it remains to show that the second part tends to zero


Round table seating probability with 8 people

Mr. A, Mr. B and $6$ more people wants to sit around round table. We need to find out the probability that Mr. A and Mr. B will sit near each other. First of all we need to describe $(Ω,F,P)$   I think n=(8−7)!=5040 than Mr. A and Mr. B we can keep as one because we want them to sit near each other. Tham m=(7−1)!∗2=1440 Than P=m/n=1440/5040=2/7 Is ir right?  And how I should describe (Ω,F,P)?


For example, the shield mastery feat gives the option to shove an adjacent creature 5ft as a bonus action. Could you make an Opportunity Attack on the creature because it leaves your threat range without using the disengage action?


I am using TeX Live on a Linux system. My current OS version is a bit old and the Tex Live packages shipped are not the most recent. I need to use a custom texmf in TEXMFHOME for some CTAN packages. Most of them come with a TDS file, so I can just unzip the TDS archive into my local texmf tree. However, when I want to remove some packages from this local texmf tree, I have to list files in the original TDS archive to make sure I am not removing more or less than necessary. I think I am doing the typical job of a package manager.  I noticed TeX Live comes with a binary tlmgr that looks like a package manager. But my OS prevents me from running this binary, warning me that I should be using the OS package manager (that ships old packages). I don't want to have a separate standalone install of TeX Live because all I need are a few more packages, not an entire copy of TeX Live. It would be great if tlmgr can manage CTAN packages in my local texmf tree. Is this possible?


I know that the dot product and cross products of two vectors represent their components acting in each other's direction but it always puzzles me to think why and how, particularly what bangs my head the most is the intuition for cross product. Please answer in an intuitive manner for both along with a few examples of real life situations. Any answer will be of great help. If someone refers to the images given on Wikipedia articles for the products, what I want is an intuitive explanation of geometric references.


Are the Maiar more powerful than the Istari?

I know the Maiar are essentially the demi-gods of the Tolkien's world, but the Istari are also supernatural beings, right? From reading a different answer to a question I learned that they are cloaking their full power in a "mortal shell", so to speak. So is there any canon proof of how powerful the Istari are in their true forms and are they more powerful than the Maiar (Sauron)? Couldn't Eru Iluvatar have just sent them to wipe out the threat?  Sorry I have so many questions wrapped up in one, but I feel that they are all essential in answering my main one. Thanks.


Is there any way that one can describe all the roots of the incomplete gamma function $\Gamma(n,z)$, for $n\in \mathbb{N}$, analytically?


I had a discussion with a friend about a phrase similar to "... the perspective each of you has/have...". But we are not sure which form is correct and why. Can anyone explain?


Why is there a comment in my inbox that doesn't exist?

Neither I nor anyone else can see the top comment, which is apparently placed against .


Benevolent aliens who (initially) refuse to show themselves

This is a sci-fi book where aliens arrive on Earth and push Earth towards world peace, but refuse to reveal themselves physically. When the aliens finally do show themselves, we find that they       look like .   I recall that the aliens seemed benevolent, but that humanity did not like the direction they were being told to go. I cannot remember the ending or if the aliens turned out to be truly benevolent.


What is a good replacement for utorrent app?

What are good p2p clients apps for Linux? I use utorrent on Windows 10 and I really like it, but I never tried any p2p clients on linux. Can you please recommend me a good one?  Thank You!


After searching around somewhat thoroughly, I noticed a slight lack of functions in PHP for handling . For my own personal satisfaction I created a few functions to help the transition.  The IPv6ToLong() function is a temporary solution to that brought up here: . It will split the IP in to two integers and return them in an array.  /**  * Convert an IPv4 address to IPv6  *  * @param string IP Address in dot notation (192.168.1.100)  * @return string IPv6 formatted address or false if invalid input  */ function IPv4To6($Ip) {     static $Mask = '::ffff:'; // This tells IPv6 it has an IPv4 address     $IPv6 = (strpos($Ip, '::') === 0);     $IPv4 = (strpos($Ip, '.') > 0);      if (!$IPv4 && !$IPv6) return false;     if ($IPv6 && $IPv4) $Ip = substr($Ip, strrpos($Ip, ':')+1); // Strip IPv4 Compatibility notation     elseif (!$IPv4) return $Ip; // Seems to be IPv6 already?     $Ip = array_pad(explode('.', $Ip), 4, 0);     if (count($Ip) > 4) return false;     for ($i = 0; $i < 4; $i++) if ($Ip[$i] > 255) return false;      $Part7 = base_convert(($Ip[0] * 256) + $Ip[1], 10, 16);     $Part8 = base_convert(($Ip[2] * 256) + $Ip[3], 10, 16);     return $Mask.$Part7.':'.$Part8; }  /**  * Replace '::' with appropriate number of ':0'  */ function ExpandIPv6Notation($Ip) {     if (strpos($Ip, '::') !== false)         $Ip = str_replace('::', str_repeat(':0', 8 - substr_count($Ip, ':')).':', $Ip);     if (strpos($Ip, ':') === 0) $Ip = '0'.$Ip;     return $Ip; }  /**  * Convert IPv6 address to an integer  *  * Optionally split in to two parts.  *  * @see https://stackoverflow.com/questions/420680/  */ function IPv6ToLong($Ip, $DatabaseParts= 2) {     $Ip = ExpandIPv6Notation($Ip);     $Parts = explode(':', $Ip);     $Ip = array('', '');     for ($i = 0; $i < 4; $i++) $Ip[0] .= str_pad(base_convert($Parts[$i], 16, 2), 16, 0, STR_PAD_LEFT);     for ($i = 4; $i < 8; $i++) $Ip[1] .= str_pad(base_convert($Parts[$i], 16, 2), 16, 0, STR_PAD_LEFT);      if ($DatabaseParts == 2)             return array(base_convert($Ip[0], 2, 10), base_convert($Ip[1], 2, 10));     else    return base_convert($Ip[0], 2, 10) + base_convert($Ip[1], 2, 10); }   For these functions I typically implement them by calling this function first:  /**  * Attempt to find the client's IP Address  *  * @param bool Should the IP be converted using ip2long?  * @return string|long The IP Address  */ function GetRealRemoteIp($ForDatabase= false, $DatabaseParts= 2) {     $Ip = '0.0.0.0';     if (isset($_SERVER['HTTP_CLIENT_IP']) && $_SERVER['HTTP_CLIENT_IP'] != '')         $Ip = $_SERVER['HTTP_CLIENT_IP'];     elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR'] != '')         $Ip = $_SERVER['HTTP_X_FORWARDED_FOR'];     elseif (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] != '')         $Ip = $_SERVER['REMOTE_ADDR'];     if (($CommaPos = strpos($Ip, ',')) > 0)         $Ip = substr($Ip, 0, ($CommaPos - 1));      $Ip = IPv4To6($Ip);     return ($ForDatabase ? IPv6ToLong($Ip, $DatabaseParts) : $Ip); }   Someone please tell me if I'm reinventing the wheel here or I've done something wrong.  This implementation converts IPv4 to IPv6. Any IPv6 address it doesn't touch.


Change color of PNG background (transparent to color)

I need to change the background color of a PNG to a specific color. The background of the lable renders black and I want so set the color by my own.  How can I do it within the node editor?    Here's the PNG and the nodes:      Thanks!


Find all primes $p$ for which there are positive integers $x, y$ such that $p+1=2x^2$ and $p^2+1=2y^2$

Find all primes $p$ for which there exist positive integers $x, y$ such that $p+1=2x^2$ and $p^2+1=2y^2$.  I have tried coming up with an equation for $p$ or $p^2$ and this is what I've got  $p=2x^2-1$;  $p^2=(2x^2-1)^2$  $p^2=2y^2-1$  which means $(2x^2-1)^2=2y^2-1$ but this doesn't do much...


SQL query: Find latest from table with two dates

I have a table with a lot of entries, and I'm stuck on how to get the records with the latest "CreatedDate" This is my table:  I would like this to be the result:  Date: Shows which date the quantity belongs to. CreatedDate: Show the latest "Status" update and therefore I only need to latest record based on Createddate.


Can probability increase on failed dice rolls?

If I have a 20 sided die and I want to roll a 20, and I have failed 100 times, can the probability increase because of the failed attempts? I am pretty sure this is a no, but had to ask!


How can philosophy deal with the nonphysical in light of scientific limitations?

Logically, if the only proof of existence we have is what we can see, hear, smell, touch, taste, and feel the movement of, why do many philosophies deal with issues outside the physical? Due to these scientific limitations of not being able to prove anything nonphysical (not limited to entities/ concepts surrounding spirituality and religion[s]) exists in any concrete way that affects our daily lives in ways that WE OURSELVES don't choose it to, why doesn't philosophy eliminate these concepts?


How can I make these three graphs that are each other's consequence ?   For the first and seconde I wrote:  \begin{tikzpicture}[baseline=(current bounding box.north)] \begin{axis}[hide axis,width=0.4\textwidth,clip=false] \addplot[samples=201,domain=-3.75:-3.25,blue] {-4*(x + 3.5)^(2) + 1.5}; \draw[draw=gray!30,latex-latex] (axis cs: -3.5, 1.55) node[below right] {$y$} -- (axis cs: -3.5, 1.25); \draw[draw=gray!30,latex-latex] (axis cs: -3.85, 1.35) -- (axis cs: -3.15, 1.35) node[below right] {$x$}; \end{axis} \end{tikzpicture}   For the third I wrote this code:  \begin{tikzpicture} \begin{loglogaxis}[clickable coords code={%     \pgfmathprintnumberto[verbatim,precision=1]%         {\thisrow{error}}%         \error%     \pgfmathprintnumberto[verbatim,frac]%         {\thisrow{frac}}%         \fraccomp%     \edef\pgfplotsretval{error \error, R=\fraccomp}% }]% \addplot table[x=dof,y=error] { level  dof     error           frac       1      4       2.50000000e-01  0.5         2      16      6.25000000e-02  0.75       3      64      1.56250000e-02  0.1         4      256     3.90625000e-03  0.2          5      1024    9.76562500e-04  0.5         6      4096    2.44140625e-04  0.8         7      16384   6.10351562e-05  0.125         8      65536   1.52587891e-05  0.725 9      262144  3.81469727e-06  0.625 10     1048576 9.53674316e-07  1 };  \end{loglogaxis} \end{tikzpicture}


Java request.getParameter condition not checked

I have the following code for requesting 4 parameter, and then creating a query from them.  String reason = request.getParameter("REASON"); String task = request.getParameter("TASK"); String result = request.getParameter("RESULT"); String resultCause = request.getParameter("RESULT_CAUSE");  public boolean isRowInTable(String reason, String task, String result, String resultCause)         throws BusinessException {     PreparedStatement prepStmt = null;     ResultSet rs = null;     StringBuffer queryB = new StringBuffer("");     Boolean rowExists = null;     queryB.append("select ")             .append("* ").append("from ")             .append("TABLE_NAME ").append("where ")             .append("REASON = '").append(reason)             .append("' AND TASK = '").append(task)             .append("' AND RESULT = '").append(result);     if (!(resultCause == "")) {         queryB.append("' AND RESULT_CAUSE = '").append(resultCause);     }             queryB.append("'");      .     .     . }   When creating a query, the resultCause parameter on the page can be empty, so after googleing for the empty request, I've found, that the value will be an empty String in this case: "". So when checking, if the row exists in the database, I try to transform the query accordingly, and only append the where caluse, if it's not empty. But it seems like I'm doing something wrong here. Am I checking the resultCause in a correct way?


Summing attribute based on another attribute in QGIS?

I have an attribute table for buildings in my city. The important fields are Output Area, where the building is located, and TotalArea, a calculated sum of the floorspace of that building.  What I'd like to do is find the total area of all buildings in each output area, and add that data to the output area table.  What's the best way to do this?


In python 3, is there a way to assign a function to a method of an instance (if I may say so)? I'm not talking about class method overriding for example : class MyClass:     def __init__(self, a):          self.a=a         self.b=0      def set_b(self):         pass   def fun(x):     print(x)     x.b=2*x.a  my=MyClass(2) my.set_b=fun  my.set_b print(my.b)  The output is 0. I would like it to be 4. I'm not very experienced and I think I don't have the right approach. I wanted to set set_b dynamically. Edit I corrected the line : my.set_b  to : my.set_b()  and I get the error:  Traceback (most recent call last): File "test.py", line 20, in  my.set_b() TypeError: fun() missing 1 required positional argument: 'x'


can't remember my pass word for my account

I did not use Google Accounts to sign up.  It was my email and a password. (Pokemon Trainer Club)  My son plays it, actually he got kicked out and he hit a button (probably Google) with a different account and now I can't remember the password because it keeps him signed in all the time.


How to provision Using t2 micro vm @ AWS using Juju

Currently I provision vms at AWS using Juju deploy mysql and setup environment are medium size vms. How can I setup/run using t2 micro vms at AWS?  What are commands?  Here are what I used currently..  juju bootstrap -e juju03 juju deploy juju-gui juju expose juju-gui juju deploy wordpress juju deploy mysql juju add-relation wordpress mysql juju status juju expose wordpress   Juju version I am using is 2.0beta7.xenial-amd64.


After site collection restore, site cannot be crawled?

We have a SharePoint 2007 site collection that some permissions were accidentally deleted from. It was impossible to determine how it was originally setup, so we decided to do an STSADM restore from the backup.  The restore went fine and the site is back to normal... except that now nothing in the site can be crawled (incremental crawls).  In the crawl log, we see the following error:         The object was not found. (The item was deleted because it was either   not found or the crawler was denied access to it.)   For all the items in the site, the error is:     Deleted by the gatherer (This item was deleted because its parent was   deleted.)   What I know:   The crawler definitely has access (other sites are crawled) It was working before the restore No weird errors in the ULS logs   Has anyone seen this before after a restore? Any idea how to fix it or get more information?


What does it mean for a Hamiltonian or system to be gapped or gapless?

I've read some papers recently that talk about gapped Hamiltonians or gapless systems, but what does it mean?  Edit: Is an XX spin chain in a magnetic field gapped? Why or why not?


Using legal mononym only for publications

I don't use a surname, implying I just have my first name in all my legal documents, and I intend to keep it this way. I got my first accepted submission in a conference lately where I added my name in this format: (eg.) "Meredith - ". Now my name is appearing as "-" in the list of contributors on the submission website. I don't wish to add a surname, how do I deal with this? This work will be added to ACM Digital Library where they do add full names as far as I know. (PS: I want to be cited with my first name only in my future work as well.)


I have forgot my password how can I reset it? I have installed ubuntu from microsoft store

passwd Changing password for its***********. Current password: passwd: Authentication token manipulation error passwd: password unchanged


Insert into ... values ( SELECT ... FROM ... )

I am trying to INSERT INTO a table using the input from another table. Although this is entirely feasible for many database engines, I always seem to struggle to remember the correct syntax for the SQL engine of the day (, , , , and ).  Is there a silver-bullet syntax coming from an SQL standard (for example, ) that would allow me to insert the values without worrying about the underlying database?


When are attacks/defenses no long able to be shared

For example, assume my attack and defense log is full and I am still in my current season (about mid-way). Some of my attacks/defenses are still able to be shared with my clan while others cannot be shared. This excludes attacks/defenses that can be replayed by me but cannot be shared with the clan.  What would cause an attack or a defense to no longer be able to be shared? All I know that only the first four attacks and defenses can be shared and that a new season causes every attack and defense (from last season) to be no longer shareable nor viewable.  This is not a duplicate as I am asking of all the requirements that must be met to become unshareable only.


Can I install Ubuntu Mobile OS in Lenovo phone with Android Marshmallow?

Can I install Ubuntu Mobile in my Lenovo phone with Android Marshmallow?


What to do with my previous jobs' 401ks? Advice for someone in his 20's

I'm 26 and became self-employed. I have been wondering what to do with my previous 401ks. Any help is appreciated.  Currently I have: -$3.5k in a 401k (Ubiquity) from the company I just stopped working. -$1k in a rollover IRA (Fidelity) from a previous job.  My plan is to not touch them until I retire, and possibly allocate 33% US stock index, 33% int stock index, and 33% US bond index.  What would be my best move to do this? Thank you!


Conjecture: $ \binom{2t}{2a} \geq \binom{t}{a}^2 $

Experiments using a computer show that the following binomial inequality (which is, to my mind, quite symmetric and natural) seems to be true for all $ a, t \in \mathbb{Z}_{\geq 0} $: $$ \binom{2t}{2a} \geq \binom{t}{a}^2 $$ Further, it seems that equality holds iff $ a = 0 $ or $ a = t $. I have tried all the simple methods of proof I can think of:  looking for a simple combinatorial argument of the form "every method of picking $a$ items from $t$ twice independently can be matched (via some method) injectively with a method of picking $2a$ from $2t$; expanding out the subtraction and quotient of both sides in terms of factorials and simplifying (by hand and with Mathematica); trying to use induction on $ a $; using Google and MSE to find a proof.  Unfortunately I am not that well versed in any inequality methods from enumerative combinatorics, so it is entirely possible one of these methods does work.  How would one prove this inequality (or is there some counterexample I have yet to find)? I would especially like a purely combinatorial proof, if possible.


How to parse values from list into a function as separate values (python)

I have been attempting to parse variables from a list into a function separately. I don't know how to parse each value from the list into the .format() function. The solution is probably pretty obvious but I can't seem to find it. Here is a simplified version of the code:  variables = ["a", "b", "c", "d"]  def format(variables):     string = "{:^4}" * len(variables)      #don't know how to do     return string.format(variables_from_list)   Ideally, the code would work the same as below:   variables = ["a", "b", "c", "d"]  def format(variables):     string = "{:^4}" * len(variables)      print(string.format("a", "b", "c", "d"))   Any help is appreciated!


$f:D \rightarrow \mathbb C$ holomorphic, $D$ a convex set, $Re(f'(z))>0$. Prove that $f$ is injective.  What I tried: Assume that $f$ is not injective. So there are $a,b \in D$ so that $f(a)=f(b)$.   So we get that:  $\int_a^bf'(z)dz=f(a)-f(b)=0 $  How do I use the fact that $Re(f'(z))>0$? Or that's not the direction at all?  Thank you.


How to test SMD bluetooth modules without soldering them to a board

I have made a costum PCB with components and a WT51822-S2 bluetooth module. After testing, there seems to be a low percentage of modules that have a fault in them. Since they are SMD modules, with connections on the sides, its hard to desolder them if faulty. They are soldered on easily with a normal solderin iron but desoldering, thats a whole other thing.  Is there a way to test SMD modules without actually soldering them on the pcb? I have tried pressing them on (with force and duck tape) but some pins have contact, others dont. I have also made a brakeout board for testing, but it still requiers soldering.  what to do?


Bounded operators on separable Hilbert spaces

Let $H$ be a separable Hilbert space. Show that every bounded operator from $H$ to itself can be approximated in the strong operator topology by a sequence of finite rank operators.  Im not sure what the strong operator topology implies (that the evaluation map for the operator is continuous?) Is it enough to show to use projection to some subspace of some orthogonal sequence?


How does the ebola virus attack and how do some people get away with it? Normally any virus would attack a cell with some kind of receptors and some kind of lock and key mechanism entering the cell and then multiplying.  What happens to the virus if a person manages to live through it, does the virus die and is thrown out or still remains inside the host?  I am not sure about a normal virus attack i tried to explain please correct on that also.


How do i get this or condition to work properly

So i'm making an uno game where the user can ony play a card that has the same value or the same color as the card in the stock pile I currently have this as my code:  if(topPileCard().getColor()==card.getColor() || topPileCard().getValue() == card.getValue())   but if a user, for example, plays a green card the condition turns true only if the color matches and the value no longer works and vice versa  Is there any way I can get around this?  and here is the code with uno cards class that has the getValue() and getColor() methods  public class UnoCard { enum Color {     RED, BLUE, GREEN, YELLOW,BLACK;      private static final Color[] colors = Color.values();     public static Color getColor(int i){         return Color.colors[i];     } }      enum Value {         ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, SKIP, DRAW_TWO, REVERSE, WILD, WILD_FOUR;         private static final Value[] values = Value.values();         public static Value getValue(int i){             return Value.values[i];         } }  private final Color color; private final Value value;  public UnoCard(final Color color, final Value value){     this.color = color;     this.value = value; }  public Color getColor(){     return this.color; }  public Value getValue(){     return this.value; }  @Override public String toString() {     return color + "_" + value; }   }


Will I experience degraded performance on a Ethernet connection through a splitter if I'm the only user on the line?

I currently have a long wire ethernet chord travel from my office to my bedroom (the rooms are side by side), as I wish (It's a long ethernet cable wire).  I went from a 1.9 MBPS to a 15.+ MBPS after switching from wireless to ethernet. Yay.  Now, we're thinking to add a splitter to the ethernet line, so that I have a way to connect directly in my office and my bedroom, depending on where I'm at, or say if I have a guest who wants to share ethernet line in one of the two rooms.  My question though, since I am the main person using, will adding a splitter, by default reduce speed, if it's just one person using the connection?  Thanks in advance.


Oracle database - select max sum per category

I am trying to write a query in Oracle which will return id of the driver who transported the most goods in range of a single goods category. So far my query is as follows: SELECT      truckset.driver_id, cargo.additional_liecence_id,          SUM(order_details.cargo_amount) as cargo_sum  FROM      order_details INNER JOIN      truckset on truckset.order_id = order_details.order_id INNER JOIN      cargo on order_details.cargo_id=cargo.id WHERE      cargo.additional_liecence_id IS NOT NULL GROUP BY      truckset.driver_id, cargo.additional_liecence_id ORDER BY      SUM(order_details.cargo_amount) DESC;  And it returns: | DRIVER_ID | ADDITIONAL_LICENCE_ID | CARGO_SUM | | 14        | 8                     | 174       | | 17        | 8                     | 144       | | 7         | 5                     | 70        | | 11        | 5                     | 50        | | 7         | 6                     | 50        |  while I expect something like this: | DRIVER_ID | ADDITIONAL_LICENCE_ID | CARGO_SUM | | 14        | 8                     | 174       | | 7         | 5                     | 70        | | 7         | 6                     | 50        |


I have two functions :  let fn2 =   if "something happend" then     fn1  let rec fn1 =   if "something" then     fn2   This is just an example, what I am trying to do. Is there any Idea how to do it?  or should I just send the 2. function to the 1. function as parameter?


I wrote my classloader:  package ru.sberbank.school.homework8;  import ru.sberbank.school.homework8.plugin.Plugin;  import java.io.File; import java.io.FileInputStream; import java.io.IOException;  public class PluginManager extends ClassLoader { private final String pluginRootDirectory;  public PluginManager(String pluginRootDirectory) {     this.pluginRootDirectory = pluginRootDirectory; }  public Plugin load(String pluginName, String pluginClassName) {     String name = pluginName + "." + pluginClassName;     try {         Class clazz;         try {             clazz = super.findSystemClass(name);         } catch (ClassNotFoundException e) {             String fileName = pluginRootDirectory + "\\" + pluginName + "\\" + pluginClassName + ".class";             try (FileInputStream fin = new FileInputStream(fileName)) {                 byte[] buffer = new byte[(int) (new File(fileName).length())];                 fin.read(buffer);                 clazz = defineClass(name, buffer, 0, buffer.length);             }         }         return (Plugin)clazz.newInstance();      } catch (IOException | InstantiationException | IllegalAccessException ignored) {         return null;     } }   }  When I run it:  package ru.sberbank.school.homework8;  import ru.sberbank.school.homework8.plugin.Plugin;  public class PluginManagerTest {     public static void main(String[] args) {         String pluginRootDirectory = "D:\\sbt\\target\\classes\\ru\\sberbank\\school\\homework8";         PluginManager pluginManager = new PluginManager(pluginRootDirectory);         Plugin plugin = pluginManager.load("plugin", "PluginImpl");         if (plugin != null) {             plugin.doUseful();         }     } }      Exception in thread "main" java.lang.NoClassDefFoundError:   plugin/PluginImpl (wrong name:   ru/sberbank/school/homework8/plugin/PluginImpl)   at   java.lang.ClassLoader.defineClass1(Native Method)   I get NoClassDefFoundError. Why??? How can I fix it???  Help me, please!   package ru.sberbank.school.homework8.plugin;  public class PluginImpl implements Plugin {     @Override     public void doUseful() {         System.out.println("My plugin!");     } }


I already know how been and gone can be used with present perfect simple and what difference they make, but with a certain verb phrase like go camping would it be grammatically correct to say I've never gone camping when we are talking about not having experienced a specific activity up to the present moment in life or it should be I've never been camping?


non-continuous function satisfies $f(x+y)=f(x)+f(y)$

As mentioned in , it shows that For any $f$ on the real line $\mathbb{R}^1$, $f(x+y)=f(x)+f(y)$  implies $f$ continuous $\Leftrightarrow$ $f$  measurable.  But   how to show there exists such an non-measurable function satisfying $f(x+y)=f(x)+f(y)$?  I guess we may use the uniform bounded principal and the fact that $f$ is continuous iff it is continuous at zero under the above assumption.  Thanks in advance!


This isn't a question about 'SIGSTP' and 'SIGSTOP'; I'm wondering if it's possible to save the state of a program in such a way that it can be stopped, saved to disk, and continued once the computer restarts, even given an environment with slightly different resources due to other processes being present (potentially through something resembling a core dump).  I already know that 'hibernate' is sort-of a way to do this, but it's a snapshot of the entire machine when it's saved to disk.  What if I want to transfer the snapshot of this program in-between computers?  Is it possible/feasible?  Is there already software that does this?    P.S.: If there's a better place that and admin can put this, then I'm down for it.    EDIT: I'm currently using Linux Mint, but was thinking that there might be a potentially operating system independent solution.


I am new to this so would appreciate some guidance!  I have caught both a cp15 pidgeotto and a cp61 pidgey, will I loose the 61cp when I evolve the pidgey to pidgeotto?  is the cp reset to minimum when a Pokemon evolves? Or should I just evolve the pidgey twice and keep the higher cp?   Many thanks, Tom


Which video editor can I use to make clips to upload?

I am looking for an easy video editor for Ubuntu 12.04. My needs are simple: make clips and upload them on sites (cut segments from a video file with frame to frame precision, convert into common formats, resize the file).  Can anyone suggest one?


read from stdin works differently in bash and zsh

I'm trying to pipe a command's output to the read builtin of my shell and I get a different behaviour for zsh and bash:  $ bash -c 'echo hello | read test; echo $test'  $ zsh -c 'echo hello | read test; echo $test' hello   Though that doesn't work in bash, the following works for both:   $ bash -c 'echo hello | while read test; do echo $test; done'  hello  $ zsh -c 'echo hello | while read test; do echo $test; done'  hello   Why is that? Am I using read wrong? I find it much more readable to use it in scripts in comparison to test="$(echo hello)" which forces me to handle quoting issues much more carefully.


Short story about an astronaut that has to harvest/collect the body fluids of an alien for a panacea

Short story read in the 60's or 70's, an astronaut has to enter an alien ship and collect the tears/sweat? of an alien to use as a wonder drug for humans. The alien has some sort of presence which affects the mental state of any human near it.


Convert from datetime to unix milliseconds

I got function which is converting UNIX time to DaTime which is working great anyhow now I need function to convert from DateTime to UNIX timestamp but something is wrong with this because when I am passing DateTime somehow the last 3 digits are not shown for instance I have this timestamp: "1300124700345" which is equal to: 14.03.2011 5:45 PM. When i pass that to my function I am retrieving: "1300124700" - 3 last digits dissaperd.  static readonly DateTime UnixEpoch =         new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);  public static long ToUnixTime(DateTime date) {     return Convert.ToInt64((date - UnixEpoch).TotalSeconds); }


How do I remove this duplicate sources.list entry?

Sometimes, when I run   sudo apt-get update    or install an app   sudo apt-get install   I get the error below at the bottom in the gnome-terminal and I can't remove it. I searched for it in the software-sources and in y-ppa-manager and I am not sure I want to mess with the sources list since I am a bit of a noob.  Duplicate sources.list entry http://archive.canonical.com/ubuntu/ oneiric/partner amd64 Packages \   (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_oneiric_partner_binary-amd64_Packages)


Construct a compact set of real numbers whose limit points form a countably infinite set.

I have seen examples of sets that have these properties, like:  $$A=\left\{\frac1n+\frac1 m:m,n\in\Bbb N\right\}\cup\{0\}$$ And it is clear that 0 and all 1/n are limit points. However, how does one show that there are no other limit points?  I am completely stuck here. I have found many examples of sets that have these properties, but always run into trouble showing there are no other limit points. For example, I also tried:  $$A=\{0\}\cup\left\{\frac1n:n\in\Bbb N\right\}\cup\left\{\frac{n}{kn+1}:k,n\in\Bbb N\right\}$$  And showed that 0 and all 1/n are limit points, but I am lacking in how I can show that the $n/(kn+1)$ terms are not. To me, this means showing that there is some deleted ball around each of them which contains no element of A.  Thank you so much for your help!


What value does $\frac{1}{n} \sqrt[n]{n(n+1)(n+2)\cdots(2n)}$ tend to?

I need to find where this sequence tends to: $$\frac{1}{n} \sqrt[n]{n(n+1)(n+2)...(2n)}$$  My answer is $2$, by using a trick for the $n^{th}$ root: I take the inside and find where $\dfrac{A_{n+1}}{A_n}$ goes, and this is where the original sequence goes.


If you were able to ride along a photon and a second photon passed you in the opposite direction, would what you observe be twice the speed of light?  And would that change what you would see of the second source of light?


Is there a way to create color separated PDFs through QGIS's print composer?   I've also tried different PDF printers, but I haven't find any free option for it.


Can I connect to or view abandoned ssh sessions?

I have a virtual instance of redhat running that I can ssh to from any host on the corporate network.  My ssh session was dropped while running some scripts that may or not have caused me to disconnect.  The who command locally still lists the dropped connection. Reconnecting with ssh starts a whole new session.  Is there a way to connect to the original session?  If not can I kill it?  I have root and physical access.  I was not using screen in the original session.


I need help on using until/till in a sentence

I don't know what to choose, that's why I am here to ask this question.     I have been paying this amount since November 2013 until/till now.


Proof of the derivative of a quadratic form

I was reading  pdf and on page 6 proposition 8 states:    I don't really understand the steps that bring from  $$\alpha = \sum_{j=1}^n\sum_{i=1}^n a_{ij} x_{i} x_{j}$$  to its derivative   $$\frac{\partial \alpha}{\partial \bf{x}} = \sum_{j=1}^n a_{kj} x_J + \sum_{i=1}^n a_{ik}x_i$$  and then back to the final result:  $$\frac{\partial \alpha}{\partial \bf{x}} = \bf{x}^T A^T + \bf{x}^T A$$  Can someone please help me?


Should a colon be used following a dependent clause to introduce a quote?

Doing some editing and came across a sentence in which a colon is used to introduce a quote.  Is the colon justified in this case? SENTENCE ENDS:     ...wearing a T-shirt that says: "When the going gets tough, the tough get going."    The following question () is actually focused on a slightly different issue, since it is about using a colon to introduce a quotation after a complete sentence.  The answers to it seem to be geared toward that example; one of them cites a Purdue OWL post that says it is appropriate to use a colon to introduce a quotation after a complete sentence or independent clause. But that is not the case here, since "a T-shirt that says" is not a complete clause or statement.   One answer (by Roaring Fish) quotes a "" by Larry Trask that seems to say that it is "bad style," but not outright "wrong," to use a colon in the sentence "President Nixon declared: 'I am not a crook.' " This seems relevant, but it's a bit confusing. Why doesn't Trask just label this "wrong"? Is it a matter of opinion? I'd appreciate other references that describe the most common and influential viewpoints about how to punctuate phrases like this.


Execute fstrim weekly with a user-set crontab

I am currently using Ubuntu 15.04.  My Linux experience is limited.  I would like to execute fstrim weekly.  Ubuntu already has a script set up in /etc/cron.weekly/fstrim, but it does not do exactly what I want it to.  I would like to save the output of this to a cumulative log and I am wondering: what is the best way to achieve this.  At the same time, I wish to facilitate my installs so I have personal requirements:   From a fresh OS install, sudo crontab -e is the only acceptable change outside of /home for the solution to work (i.e. no need to modify default file /etc/cron.weekly/fstrim) Log files must be stored to my preferred format, in a dedicated file in /home/user/path/to/mylogfile.txt   So I now understand that it is safe to sudo vi /etc/cron.weekly/fstrim as it is a script file rather and than a crontab (in other words: a command similar to crontab -e is not required for OS-native weekly jobs stored there), but...  Question #2 - The end goal is calling fstrim weekly while ensuring it is performed only once per week on the system.  Are there any errors or problems with the following solution?:  Set up root's crontab such that:  $ sudo crontab -l @weekly /home/user/path/to/myscript.sh   Have an executable file /home/user/path/to/myscript.sh that contains:  #!/bin/bash  if [ -f /etc/cron.weekly/fstrim ]; then     mv /etc/cron.weekly/fstrim /home/user/cron_backups/fstrim.orig fi  # trim all mounted file systems which support it, and log results /sbin/fstrim -v --all || true >> /home/user/path/to/mylogfile.txt   [END]


How do depth of field and the circle of confusion relate to pixel size on the sensor?

I have been reading about depth-of-field and presume to have a sufficient understanding of what it means and how it is related to lens properties, lens aperture, focal length, sensor format size and probably even print dimensions in case the picture is being printed. I do have a question about how/if depth-of-field depends on the dimension of a pixel. Let me elaborate:  Given two sensors with differing pixel sizes: x and 4x, the latter sensor integrates more light per-pixel than the former, however, it might have a lower resolution if the sensor dimensions remain fixed. Theory suggests that the depth of field is determined by those circles-of-confusion which are very close to being an in-focus point, and this perhaps also means that these very small CoCs fall within the integration area of the same pixel. Now when a CoC becomes larger than a pixel (like also in the case of diffraction blur), there is some spreading of intensities among neighboring pixels and this would clearly lead to blur. However, if one was using the 4X sized pixel, even with a slightly larger CoC, the intensity would still integrate into the same pixel area, and would thus perhaps be in-focus? Is this the right assumption? And if so, is there any analysis of pixel-area dependence of depth-of-field? Moreover, depth-of-field is in some sense independent of the integration medium as it clearly occurs in analog film devices as well, so is there a trade-off or a difference in depth-of-field between film and digital cameras?  Please point me to the correct references for this question. Please correct me if there seems to be a fundamental issue with the assumptions made above.


my script:  #!/bin/sh PATH=$PATH:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin if pgrep -x  "firefox" >/dev/null then     return else     firefox & fi   my crontab:  * * * * * /home/jesuscrew77/sc.sh   It runs manually but doesn't start with crontab. what is wrong?


Issue with Synaptic Package Manager cos of disco and bionic retro. It seems I may be tried to install Wine too

I have an issue with Synaptic Package Manager because of disco and bionic retros. It seems I may be tried to install Wine too.   The error says that "Error: Opening the cache (E:Malformed entry  64 in lsi file /etc/apt/sources.list (Component), E: The list of sources could nto be read.)'. This usually means that your installed packages have unmet dependencies.


Will code in a Finally statement fire if I return a value in a Try block?

I'm reviewing some code for a friend and say that he was using a return statement inside of a try-finally block.  Does the code in the Finally section still fire even though the rest of the try block doesn't?  Example:  public bool someMethod() {   try   {     return true;     throw new Exception("test"); // doesn't seem to get executed   }   finally   {     //code in question   } }


Why not show password criteria on login screen?

I have frequently bumped into this issue: sites ask for my password (e.g. Stack Exchange itself) when I want to do something like updating my profile. This is per se a low priority site for me so I use my weakest password in mind that fits the minimum requirements. The event (profile update) is also rare so I forget my password completely. I then face the issue of not being able to login then go to the password reset screen where the criteria are written black and white. After that I return to the login screen and enter the correct password.    The question is not whether or not I am a moron but why the criteria are not shown when I mess up my password for the first time.  An example to weakest password:   Anything is permitted: dodge  Uppercase and lowercase needed: Dodge At least 8 characters and uppercase: Dodgerman At least 8 + uppercase & number needed: Dodge1014


How to change to helvetice font in class based on class option?

I want to based on a class option change to using Helvetica as font, the simplest way I found to do this would be to load the helvet package. But if I do that like: \DeclareOption{foo}{     \RequirePackage{helvet}     \renewcommand\familydefault{\sfdefault}  }  I get told that: ! LaTeX Error: \RequirePackage or \LoadClass in Options Section.  i.e., I am not allowed to load packages between \DeclareOption and \ProcessOptions. But that would mean that I can't load different packages based on option? How can I then do things like change font based on Options? In fact, most things I do in LaTeX I do by loading packages, how can I do anything much at all based on options in class files?


I have created a tikz picture as a standalone.  Can I export the tex file as an image instead of as a pdf?


Is there an explicit expression for a bijection between [0,1] and (0,1)?

I need to find an explicit expression for a bijection between $[0,1]$ and $(0,1)$. I've seen some between $[0,1]$ and $[0,1]$, but I can't seem to find one between $[0,1]$ and $(0,1)$.  Thanks in advance!


How can I send an HTTP POST request to a server from Excel using VBA?

What VBA code is required to perform an HTTP POST from an Excel spreadsheet?


Label PGFPlot table points with coordinates

I would like to label each plotted point with its x and y coordinate. I am able to label with a single one using the MWE below. I must avoid manually labeling each point since my actual table size is larger and will be changed out regularly. \documentclass{standalone}   \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.16}  \begin{document}  \pgfplotstableread[col sep=&,row sep=\\]{  x     &  y     \\  0.940 &  0.992 \\  0.992 & -0.940 \\ -0.992 &  0.940 \\ -0.940 & -0.992 \\ }\mytable  \begin{tikzpicture}  \begin{axis}     \addplot+[only marks, nodes near coords]table[x=x,y=y,meta=x]{\mytable}; \end{axis}  \end{tikzpicture} \end{document}  which creates the following figure  The desired output is for each point to be labelled with both coordinates. For specific example the top left point would be labelled with "(0.94, 0.992)".


"We make an identity for ourselves" or "We make identities for ourselves?"

“We make an identity for ourselves”   or   “We make identities for ourselves?”  Which one is better? Why?


Using biblatex and I can't get the bibliography to print

so I'm trying to get to grips with the biblatex package and so far I can't get a citation or my bibliography to print properly onto PDF. Here's my .bib file:   article{einstein,     author =       "Albert Einstein",     title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})     [{On} the electrodynamics of moving bodies]",     journal =      "Annalen der Physik",     volume =       "322",     number =       "10",     pages =        "891--921",     year =         "1905",     DOI =          "http://dx.doi.org/10.1002/andp.19053221004",     keywords =     "physics" }  @book{dirac,     title={The Principles of Quantum Mechanics},     author={Paul Adrien Maurice Dirac},     isbn={9780198520115},     series={International series of monographs on physics},     year={1981},     publisher={Clarendon Press},     keywords = {physics} }  @online{knuthwebsite,     author    = "Donald Knuth",     title     = "Knuth: Computers and Typesetting",     url       = "http://www-cs-faculty.stanford.edu/~uno/abcde.html",     keywords  = "latex,knuth" }  @inbook{knuth-fa,     author = "Donald E. Knuth",     title = "Fundamental Algorithms",     publisher = "Addison-Wesley",     year = "1973",     chapter = "1.2",     keywords  = "knuth,programming" } ...   And here's my .tex file:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel}  %\usepackage{csquotes}% Recommended %\usepackage[style=authoryear-ibid,backend=biber]{biblatex} \usepackage{comment}  \usepackage[backend=biber,style=authoryear,sorting=ynt]{biblatex} \addbibresource{ref.bib} %\usepackage{natbib} \usepackage{bibentry}   \title{Bibliography management: \texttt{biblatex} package} \author{\LaTeX} \date{ }  \begin{document}  \maketitle  \section{First section}  \begin{enumerate}     \item A citation command in parentheses: \parencite{einstein}.     \item A citation command for use in the flow of text: As \textcite{Smith:2013jd} said \dots     \item A citation command which automatically switches style depending on location and the option setting in the package declaration (see line 12 in the LaTeX source code). In this case, it produces a citation in parentheses: \autocite{Other:2014ab}. \end{enumerate}  \medskip  \nocite{*} \printbibliography \end{document}   And the result it produces:


I have ran into some issues when it went down to install Steam on Debian. The console as well as Apper comes up with missing dependencies  and the package isn't going to install.


What's the most pythonic way to scp a file in Python?  The only route I'm aware of is   os.system('scp "%s" "%s:%s"' % (localfile, remotehost, remotefile) )   which is a hack, and which doesn't work outside Linux-like systems, and which needs help from the Pexpect module to avoid password prompts unless you already have passwordless SSH set up to the remote host.  I'm aware of Twisted's conch, but I'd prefer to avoid implementing scp myself via low-level ssh modules.  I'm aware of paramiko, a Python module that supports SSH and SFTP; but it doesn't support SCP.  Background: I'm connecting to a router which doesn't support SFTP but does support SSH/SCP, so SFTP isn't an option.  EDIT: This is a duplicate of .  However, that question doesn't give an scp-specific answer that deals with keys from within Python.  I'm hoping for a way to run code kind of like  import scp  client = scp.Client(host=host, user=user, keyfile=keyfile) # or client = scp.Client(host=host, user=user) client.use_system_keys() # or client = scp.Client(host=host, user=user, password=password)  # and then client.transfer('/etc/local/filename', '/etc/remote/filename')


Ambiguity feature in apa style for biber creating non-apa-like et al behavior

we are currently experiencing some issues with the ambiguity feature of apa for biblatex/biber (we use biber) in TexLive 2012.  What would be correct with the ambiguity feature:  Doe J., Peters M., Kramer N., Conan B. (2012) Doe J., Mayer M., Smith N., Walker J. (2012)  Citations in text (subsequent ones) - AS IS AND CORRECT Doe, Peters et al (2012) Doe, Mayer et al (2012)   But in case of different years, it shouldn't actually do this ...  Doe J., Peters M., Kramer N., Conan B. (2012) Doe J., Mayer M., Smith N., Walker J. (2009)  Citations in text (subsequent ones) - AS IS: Doe, Peters et al (2012) Doe, Mayer et al (2009)  Citations in text (subsequent ones) - HOW IT SHOULD BE: Doe et al (2012) Doe et al (2009)   Can anyone help here?  Thank you!


I am currently working on a project and have hit a snag.  I'm taking in an unformatted string[] of football teams and I'm trying to filter the data and return it in a more orgainised format.   I'm fine with most of it (splitting the string to get the relevant values and sorting the format) except i have created a Team object which holds most of this data and as i loop through the original string i create a new team object each time i see a team name. Then i check to see if i've seen that object before and if i have i don't create a new object. After creating the Team or skipping that part i add the relevant info to the team object and continue.  My issue is the list i'm using to hold the final team info has many duplicates mean my check to see if the object exists or not doesn't work. The code is :   After splitting string,          List<Team> teams = new List<Team>();          for (int i = 1; i <= matches.Length - 1; i++)         {             string fullStr = matches[i];              string[] score = fullStr.Split(',');              string[] team1 = score[0].Split('!');             string team1Name = team1[0];              Team teams1 = new Team(team1Name);             if (teams.Contains(teams1) != true)             {                 teams.Add(teams1);             }              string team1Score = team1[1];             int team1ScoreInt = int.Parse(team1Score);              string[] team2 = scores[1].Split('!');             string team2Name = team2[1];               Team teams2 = new Team(team2Name);              if (!teams.Contains(teams2))             {                 teams.Add(teams2);             }   When i print the list i get the format i want but multiple Germanys etc. And only the score etc of that 1 game rather than them all adding to 1 Germany Team object.  Any ideas how i can stop the duplicates and maintain using only the 1 Team object every time i see that team name?   Thanks


Show that if $p \equiv 3$ mod $4$ is a prime in $\mathbb{Z}$, then $p$ is a prime in $\mathbb{Z}[i]$  I think I probably have to use something related to norm to solve this problem but I can't seem to figure out anything. Can someone suggest how I can solve this problem? Thanks


Trek 750 multitrack chainnsize and length?

It has 3 gears in the front and 7 gears in the rear. And the derailers are suntour XC-Master.


I am asking a related question here:   If a ball is accelerating at a surface at a non-straight angle, it will bounce off with the opposite trajectory, like if you imagine a line under a V, and shoot a ball at the wall from one side of the V it will follow the whole V. But, why would the ball keep moving at all? If it's impact on the wall applies an equal and opposite force to it, shouldn't the two forces cancel out, stopping the ball, at least in the direction of the wall?


General Relativity and antimatter: Would antigravity of antimatter really disprove GR?

I understand that this may be a naive question but my understanding is that GR predicts that antiparticles should be affected by gravity just as regular matter is. But does GR discuss how a massive (say planet-sized) chunk of antimatter would curve space?


Do I have to install a monitor driver to access full display modes of a monitor

I bought a Lenovo ThinkVision 23 inches monitor today and I checked the resolution of the monitor from the official website and it happens to be so big, its resolution is 1680*1050,} after checking this with Windows, Windows says that the resolution is 1366*768 and I can't seem to edit that combo box and change the value to 1920*1080, is this the maximum resolution that windows support for large screens, or is it the Intel HD graphics driver that seems to have a problem? I really want the physical resolution of the screen to match the one Windows reads. Then after reading the installation guide, there is a driver that should be installed for the monitor. The monitor driver in Device Manager is showing a generic PnP monitor. Is this what is making me unable to select a different display resolution? And then the guide pdf has a note: "If your system has been previously configured with a screen whose resolution is lower, you might want to re attach that monitor and change before connecting the new monitor" The model of the monitor is Lenovo l2251


I know that when 1.8 came out originally, I could run it just fine, though not anymore.  I normally play 1.7.10 because that's the latest version that some of my mods are available in, but today I tried to load up 1.8.7 without mods.  Turns out Minecraft can't run anything past 1.7.10- 1.8 and later all result in this:   A fatal error has been detected by the Java Runtime Environment:    EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fedf30c475, pid=2800, tid=7648   JRE version: Java(TM) SE Runtime Environment (8.0_25-b18) (build 1.8.0_25-b18)  Java VM: Java HotSpot(TM) 64-Bit Server VM (25.25-b02 mixed mode windows-amd64 compressed oops)  Problematic frame:  C  [ig4icd64.dll+0x30c475]   Failed to write core dump. Minidumps are not enabled by default on client versions of Windows   If you would like to submit a bug report, please visit:    http://bugreport.sun.com/bugreport/crash.jsp  The crash happened outside the Java Virtual Machine in native code.  See problematic frame for where to report the bug.   I've tried re-downloading Minecraft and using different versions of Java, but nothing works and I still can't load anything past 1.7.10.    EDIT: I tried the older Minecraft.exe launcher.  Seems to work fine with that one, but not the other two.  huh


Connection and curvature using differential forms

I am trying to understand how one would use differential forms to calculate the components of the connection and the curvature tensor given a metric. Can anyone point me to relevant resources for the same? I have a basic understanding of differential geometry.