I have a Lenovo laptop that came with a 4 GB ram installed in one of its two slots. It supports upto 8 GB distributed in the two slots. It worked fine. But one day I noticed that my laptop is getting very slow and checked the available RAM in the windows task manager where it should 2.57 GB usable out of 4 GB, 1.4. GB system reserved. I thought it was a windows problem and did research online but nothing solved my problem. Now I am on Linux but the same case here. Whether I use a 32bit system or a 64 bit one, whether I place the ram in other slot or place a new RAM there. The problem remains the same. When I use the existing RAM with another 4GB in the remaining slot, it shows 6GB instead of 8. I checked the same laptop of my friend and it works just fine. My BIOS settings, version everything is exactly same as my friend's Laptop. Can anyone tell me what is the problem here with my PC

I have a HP pavilion g6 1301tx laptop. It came up with 2GB of DDR3 ram, windows 7 pro (64 bit), 1 GB ATI graphic card and motherboard - hp 1670 serial number- pcela212c1bo7I. Few months back I installed Windows 10 (32 bit) . Now I want to increase ram by 2 GB , total of 4 GB so I installed a 2 GB DDR3 ram to the other slot and  checked system properties of my computer it says 2.5 GB usable out of 4 GB, now I don't understand why rest of the 1.5 GB is not usable what should i do to get 4 GB ram?


I've been trying to figure this out for two hours, and I give up. I want to externally redirect about.php to about/, and also have about/ internally redirect to about.php  RewriteRule ^about/$ /test/about.php [L]     RewriteRule ^about\.php$ /test/about/ [R,L]   Both of these rules work fine by themselves, but when they're combined they cause an endless loop (since each rule undoes the other one).  How can I combine them without causing an endless loop?  EDIT: In the "related" tab it shows a question that's exactly the same as this that I just couldn't seem to find myself through Google, and the solution works perfectly:    This:  RewriteRule ^about/$ /test/about.php [L,E=CLEAN_CONTACT_URL:1] RewriteCond %{ENV:REDIRECT_CLEAN_CONTACT_URL} !1 RewriteRule ^about\.php$ /test/about/ [R=301,L]   works exactly the way that I wanted, I just didn't know how to use RewriteCond to do something like this. Now I'm glad I posted my question!

I have a couple of specific URLs that I want to display differently on my website, like this:  RewriteRule ^contact$ contact.php   To get ride of the ".php" extension.  And to be SEO friendly (to avoid having 2 different URLS pointing to the same page), I also want to do a 301 redirect between the old URL and the new one:  Redirect 301 /contact.php http://www.example.com/contact     Each of the lines above works well separately. But if I add them both in my htaccess, I have a redirect loop, and nothing is displayed on my website. How can I fix that?  In the end, if I either type "/contact" or "/contact.php", I want to see the contact page with the url "/contact".


nmap -p1-65535 localhost gives me   PORT     STATE SERVICE 8080/tcp open  http-proxy   What is the process that is using this port.  From /etc/services/:  http-alt    8080/tcp    webcache    # WWW caching service

I am installing hadoop on my Ubuntu system. When I start it, it reports that port 9000 is busy.  I used:  netstat -nlp|grep 9000   to see if such a port exists and I got this:     tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN   But how can I get the PID of the process which is holding it?


What's the best way to find the uninstalled aptitude package associated with a command? I'm aware of apt-file but it's output is usually hard to parse.  For example, apt-file search ifconfig outputs 45 results. I could probably use some regex to reduce that even more, but that's far from ideal.  I'd like to be able to do something like findpkg ifconfig and see net-tools without clutter.

Simple enough question: is there some shell command (or GUI method) I can use that, given the path to a file on my system, tells me what package put it there? Assuming the file did in fact come from a package, that is.  Bonus question: what if it's a file that isn't installed on my system? Is there, say, a website that will let me look up a file and see what packages, if any, provide it?


I will be taking my MacBook Pro as a personal laptop with me. I will be bringing back an additional work laptop.    Would I have to pay duty on either one?

I am planning to travel to India (COK airport, Kerala) from United States. I want to take my laptop as well as my tablet (iPad). Am I allowed to take both in my backpack with my documents related my work. I think I am allowed to take only one computer as per the rule. Will the customs consider my iPad as a computer?  What all I can take?   One of my friends took 2 laptops (1 work and 1 personal) and had trouble at the airport.  Also I am planning to take some wristwatches (7 of them, each avg price is 45 $). I read in a website that I can take stuff up to max 35000 INR. Is that true? In that case, how will I manage my stuff?


import os; import sys; import random;   particle_list = [[-1, float(1)/100]] * 20; print particle_list;  for i in range(0, len(particle_list)):      a = random.randint(0, 10);     particle_list[i][0] = a;     print str(a);      print particle_list[i][1];     particle_list[i][1] *= 2;     print particle_list[i][1];     print;   if you print out the result, in the particle_list, all the results are same. Can anyone help ?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I was wondering if I can get some assistance here to install an apache2 web-server on my Ubuntu 16.04. I have followed the instructions, such as : opening the terminal, and typing : sudo apt-get update, then press "enter".  I receive the following message : password. Which password is it referring to ? I really need help.

What is the default password of the sudo? I visit some forums, it tells that the default password is password, but it doesn't work, how can I determine the password?


Is it the case that set membership problem for all regular languages can be solved in the time complexity of order $O(n)$ ? And Can we say that all set membership problems that can be solved in $O(n)$ are regular, where n is the input set?   My approach: We can construct a DFA for the regular language, then in that case the time complexity will be of order $O(n)$, but it does not prove that all set membership problems that run in $O(n)$ will be regular so how should we proceed with this part of the proof.

(I don't think that this is a good fit on cstheory, since I figure that this question already has a known answer.  However, if you think that this would be a better fit there, please feel free to migrate it)  It can easily be shown that REGULAR (the class of regular languages) is contained in DTIME(O(n)), because for any regular language L we can decide membership in that language in O(n) time by converting a DFA that decides L into a TM that decides L in a single pass over the input.  However, is it also true that DTIME(O(n)) is contained in REGULAR; that is, that any language that can be decided in O(n) time by a single-tape TM is necessarily regular?  I have no idea how to approach this problem, and every language I can think of in DTIME(O(n)) seems to be regular.  Intuitively, this would make sense, since if you're only allowed to make finitely many passes over the input, you could only remember finitely many things about it, which it seems like you could simulate with a sufficiently large DFA.  However, the fact that you can write to the input tape seems like it might complicate things.  And no, this isn't a homework problem.  I'm actually teaching a course that covers computability and complexity theory and thought it would be interesting to present the answer to this question in lecture. :-)  Thanks!


I want to pull a file from the gitlab and add a sentence to it and then push it. However, I am not sure how to do it. How do I pull the project which is uploaded on gitlab and append a sentence to a file, then commit the change and push the commit to the server?

Ok, after seeing , I have decided to skip to the end and go with .  So what I need is a beginner's practical guide to Git.  "Beginner" being defined as someone who knows how to handle their compiler, understands to some level what a  is, and has touched source control without understanding it very well.  "Practical" being defined as this person doesn't want to get into great detail regarding what Git is doing in the background, and doesn't even care (or know) that it's distributed.  Your answers might hint at the possibilities, but try to aim for the beginner that wants to keep a 'main' repository on a 'server' which is backed up and secure, and treat their local repository as merely a 'client' resource.  So:  Installation/Setup    How do you set up Git?  Try to cover Linux, Windows, Mac, think 'client/server' mindset.         Working with the code          How do you handle binary files (visio docs, for instance, or compiler environments)? How do you merge files changed at the "same time"?    Tagging, branching, releases, baselines    How do you pull a particular 'release'?   How do you resolve conflicts and complete the merge? How do you merge parts of one branch into another branch?        Other   Describe and link to a good GUI, IDE plugin, etc. that makes Git a non-command line resource, but please list its limitations as well as its good.    - Cross platform, included with Git  - Cross platform history viewer, included with Git  - Mac OS X  - Mac OS X history viewer  - Cross platform, commercial, beta  - console GUI for Linux  - GUI for Windows, Linux  - package for Windows, includes friendly GUI  Any other common tasks a beginner should know?     How do I work effectively with a subversion repository set as my source control source?   Other Git beginner's references                 Delving into Git     (and )    I will go through the entries from time to time and 'tidy' them up so they have a consistent look/feel and it's easy to scan the list - feel free to follow a simple "header - brief explanation - list of instructions - gotchas and extra info" template.  I'll also link to the entries from the bullet list above so it's easy to find them later.


I am getting a NullPointerException on the following code on the 2nd line of the snippet. I've tried looking it up online but can't fix it. If anyone could please help me it would be greatly appreciated! for (int j=1;j<12;j++) {         while (!topCard.getCardDetails().toString().equals("")) {             hand1[j-1] = (String) topCard.getCardDetails();         }             topCard = topCard.getNextCard();         removeCard(topCard);         topCard = topCard.getNextCard();

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


I'm trying to encode a string that contains accented uppercase letter like:  $string = "This is a test - À ";   i'm trying to encode using utf8_encode in this way:  $string  = "This is a test - À "; $encoded = utf8_encode($string);   And returned string is:  "This is a test - ã ";   What function can i use instead utf8_encode ?  EDIT  This string is stored into a table in mysql db.  This is how i connect to database:  $host = "xxxxxx:3306"; $uid =  "username"; $pwd =  "password"; $dv_database_name = "db_name";  $db_dv = mysql_connect($host, $uid, $pwd);  mysql_query("SET NAMES utf8",$db_dv); $sql = "..."; $res = mysql_query($sql, $db_dv); $row = mysql_fetch_array($res); $string = $row['myField']; // THIS IS THE STRING WITH ACCENTED VALUE

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I'm using classicthesis for my dissertation. By default the TOC begins with "List of Figures", "List of Tables", and "Listings", as can be seen in the Contents.tex source file.  As per university style requirements, I need to add a "List of Appendices" section.  Modeled on the sections above it in Contents.tex, I've added the following code to produce a "List of Appendices".  %---------------------------------------------------------------------------------------- %   List of Appendices %----------------------------------------------------------------------------------------  \refstepcounter{dummy} \addcontentsline{toc}{chapter}{List of Appendices} \pdfbookmark[1]{List of Appendices}{List of Appendices}  \chapter*{List of Appendicies} Appendix \ref{app:1} Foo \pageref{app:1}\\ Appendix \ref{app:2} Bar \pageref{app:2}\\ Appendix \ref{app:3} Baz \pageref{app:3}\\  \vspace*{8ex} \newpage   But this is inelegant. Is there a way to do this so appendices are automatically picked up and listed, the way figures, tables, and code listings are?  Currently, I declare my appendices in main.tex as:  \include{Chapters/Chapter0A} \include{Chapters/Chapter0B} \include{Chapters/Chapter0C} ...   so they are already listed individually in the TOC.  According to the style requirements, the TOC should include a separate "List of Appendices" entry, and below, only display an entry for the beginning of the set of appendices, called "Appendices".  In other words:     TOC      Dedication   Acknowledgements   Foreword   Abstract   List of Figures   List of Tables   List of Appendices   Introduction   Chapter 1   ...   Chapter N   Conclusion   Appendices   Bibliography     And the "List of Appendices" section should appear as:     List of Appendices      Appendix A    Foo    X   Appendix B    Bar    Y   Appendix C    Baz    Z   ...   analogously to "List of Figures" say.

How to get a list of appendices like the list of figures and list of tables? How to set it on a separate page, like the list of figures and list of tables?


Developing an Etch-A-Sketch project using JavaScript - run into an issue which I'm not entirely sure about. Trying to attach an event to div2 however - it doesn't seem to be defined even though I have assigned const div2 = document.createElement('div') inside a for loop which creates a 16 x 16 grid:  ]  for(let i = 0; i < 16; i++){     const div =  document.createElement('div');     div.style.cssText = 'border: 1px solid black; flex: 1';     container.appendChild(div);      for (let j = 0; j < 16; j++){         const div2 = document.createElement('div');         div2.classList.add('square');         div.style.display = 'flex';         div.appendChild(div2);         } }      div2.addEventListener('mouseover', function(){ let randomColor = colors[Math.floor(Math.random() * colors.length)];  if(randomColor === '1'){     div2.style.changeBackground = 'red'; } else if(randomColor === '2'){     div2.style.changeBackground = 'blue'; } else if(randomColor === '3'){     div2.style.changeBackground = 'yellow'; } else if(randomColor === '4'){     div2.style.changeBackground = 'orange'; } else{     div2.style.changeBackground = 'green'; }   });  I also tried attaching the same event to square which is a class grabbed using a querySelector - however that returns null - 'Uncaught TypeError: square.addEventListener is not a function'. My overall aim is to have the user hover over a square on the grid and have the grid change colour when the cursor goes over it.

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


i want to work in singapore/canada for sometime and the local recruiting consultancies are asking me to share my passport details for onward process. it is heard that this kind is dangerous. what do you say?

In one of the questions on this site, it was suggested the use of  to save a backup copy of your passport, in case you need to proof who you are if your original document is lost.   I like the idea, but what if someone gets access to your Dropbox folders and is able to acquire the copy of your passport.  The same goes for when you leave a copy of your passport at a hotel receptions desk. Once someone has the info printed on that copy, would that make it easier to steal your identity?


I am trying to detect if an iphone/ipod is jailbreak. Then I thought the application could try to access a file outside its area, for example, try to see if MobileMail.app is there...  here is the code  NSString *filePath = @"/Applications/MobileMail.app"; if ([[NSFileManager defaultManager] fileExistsAtPath:filePath])     {         NSString *title = @"problem";         NSString *message = @"you are using a jailbroken iphone";         NSString * buttonOK = @"OK";          UIAlertView *alert = [[UIAlertView alloc] title message                           delegate:self  cancelButtonTitle: buttonOK   otherButtonTitles:nil];           [alert show];           [alert release];        }   as jailbroken iphones can access areas outside its sandbox and the normal iphone can't, this code, in theory, would show if a device was jailbroken or not, but this is the problem.  Someone raised the point that Apple could not approve an application using this code as it may think the Application was trying to access a file outside its sandbox.  Is this true? If yes, can you guys suggest any other code that could verify if the application is running on a jailbreak device?  thanks for any help.

If I want my app to behave differently on a jailbroken iPhone, how would I go about determining this?


I inherited responsibility for the back-end of a growing distance education program. They have a Proliant DL160 Gen8 web server which serves video from a ReadyNAS Pro 6. We currently share the ReadyNAS with another department and are planning on giving it to them and switching to hosting the videos on our own machine.  My current question is whether I should throw more drives in RAID in the web server, get a separate server for storage or a true NAS. We serve about 100GB/video per hour but need to allow for 3-5x that amount as the program is rapidly growing. Network traffic peaks as high as 200MB/s.  At the moment, we really only need to store 2-3TB of video per semester after which it can be moved to archive. I'm trying to find the optimal combination of price, speed and reliability. Thanks in advance for any suggestions, I want to make sure I set this up right the first time and heavily document everything for my eventual successor.

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I am basically selecting a checkbox by click function. And i want to unclick /unselect it.  $("#element").click();  Is there any function unclick() exists ?  I tried with with prop(),unbind(),off() but no luck. Please assist me in getting this right.

I'd like to do something like this to tick a checkbox using jQuery:  $(".myCheckBox").checked(true);   or  $(".myCheckBox").selected(true);   Does such a thing exist?


Why do Young slits projecting via an intermediary mirror to a screen still shows the normal pattern of interference? This happens even though the mirror is so close that not all interference is constructed yet. The more dramatic experiment being to use a mirror for each slit so as to split and then using two other mirrors to recombine the light. It is my understanding from QM that the interference pattern only happens because there is no measurement between the slits and the screen. However, I don't see how the mirror avoids any measurement at all. Do mirrors somehow escape measuring light and if so, what is the justification for this exception? I find it even harder to accept this possibility considering the mechanical effect of radiation pressure on the mirror.

This question is specific to the Copenhagen interpretation, which states that the wave function collapses on interaction. If we have a beam of light reflected off a mirror, whether you see this light as a quantum field or a stream of photons, either way the reflected light is not the same as the original light. The original photons have been absorbed in the mirror and new photons reemitted in a different direction. The wave function also is different accordingly. So on one hand, it would seem that the original wave function collapses at the mirror.  However, a mirror reflection does not affect the results of interference experiments, such as the double slit experiment. Mirrors are used in lasers producing highly coherent light. And finally, mirrors are used in various quantum entanglement setups without affecting the state of entanglement. If this understanding is correct, then it would seem that a mirror does not collapse the wavefunction.  What is the correct understanding and the physical intuition behind it? If the reflected photon is not the original entangled photon, but is reemitted by the mirror, how can it possibly still be entangled with the counterpart of the original photon absorbed by the mirror?


I have this huge gap in my world. I was just starting to get things going with the FTB mod so please tell me this is easy to fix.    When I enter it I can move forward very slowly. I did not move in all the way but just a bit with SHIFT and took me some time to get out of it. I cannot build in it either. For further experimentation, I need to bring my Efficiency IV, Unbreakable III, and Fortune II diamond pickaxe to safety first, which is another reason I want this world fixed.

I have interesting bug that I have experienced before but has gone away on its own. This one is not going away though.  I have a giant stripe or chunks missing from my desert biome, I would say probably 7 chunks long.  I'm guessing the chunks are corrupted or something, what was hoping to figure is whether it can repaired or reverted.  Here is a picture of the problem.


I am trying to add appendix at the end of  my thesis after references in LyX, Document-> Start appendix here But I am not getting where I am doing wrong as it doesn't come in TOC, please guide me what should I do??   \appendix \noindent \begin{center} \textbf{Questionnaire (Case Study 1)} \par\end{center}

I want to add an appendix (questionnaire etc.) at the end of my thesis after the references. I use the article class and work with LyX: Document -> Start appendix here. But I am not getting it in the TOC.  \documentclass[12pt,english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \setlength{\parskip}{\smallskipamount} \setlength{\parindent}{0pt} \usepackage{color} \definecolor{document_fontcolor}{rgb}{0, 0, 0} \color{document_fontcolor} \usepackage{babel} \usepackage{float} \usepackage{textcomp} \usepackage{pdfpages} \usepackage{tipa} \usepackage{amsmath} \usepackage{graphicx} \usepackage{setspace} \PassOptionsToPackage{normalem}{ulem} \usepackage{ulem} \usepackage[unicode=true,  bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,  breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]  {hyperref}  \makeatletter  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} %% A simple dot to overcome graphicx limitations \newcommand{\lyxdot}{.}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \numberwithin{equation}{section}  \@ifundefined{date}{}{\date{}} \@ifundefined{showcaptionsetup}{}{%  \PassOptionsToPackage{caption=false}{subfig}} \usepackage{subfig} \makeatother  \appendix \noindent \begin{center} \textbf{Questionnaire (Case Study 1)} \par\end{center}


$a, b, c \in \Bbb Z$  $a, b, c, \gt 0$  $(\frac {a}{b} + \frac {b}{c} +\frac {c}{a})  \in \Bbb Z$ How to prove that $abc$ is an integer cubed?

$\frac{x}{y}+\frac{y}{z}+\frac{z}{x}=k$ and $x, y, z, k$ are integers.  Prove that $xyz$ is cube of some integer number.    I was wondering about giving a parametrization for the rational points on the elliptic curve in $\mathbb{P}^2(\mathbb{R})$ $$ x^2 y + y^2 z + z^2 x = k xyz$$ but I am not too confident in the topic, so I am asking you to shed some light.  Thank you for your help.


Let $SL_2\left(\Bbb{Z}\right)$ denote the group (under usual matrix multiplication) of $2\times 2$ matrices with integer entries and determinant $1$.Let $H$ be the subgroup of $SL_2\left(\Bbb{Z}\right)$ consisting of those matrices such that: $\bullet$ the diagonal entries are all equivalent to $1$ mod $3$. $\bullet$ the off diagonal entries are all divisible by $3$. What is the index of $H$ in $SL_2\left(\Bbb{Z}\right)$? $\bf{Try}:$ The elements of $H$ look like $\begin{pmatrix} a & b \\ c  & d\end{pmatrix}$ where $b$ and $c$ are entries form $\Bbb{Z} $ mod $3$.And a$a$ and $d$ are equivalent to $1$ mod $3$.Hence $b$ has $3$ choices and $c$ has $3$ choices. So there are $9$ closets. They look like $\begin{pmatrix} 1 & {0/1/2}\\ {0/1/2} & 1 \end{pmatrix} +H$ Am I correct? If not please show me the way. Thanks in advance.

Let $SL_2(\mathbb{Z})$ denote the group (under usual matrix multiplication) of $2\times2$ matrices with integer entries and determinant $1$. Let $H$ be the subgroup of $SL_2(\mathbb{Z})$ consisting of those matrices such that the diagonal entries are all equivalent to $1 \pmod 3$ and the off-diagonal entries are all divisible by $3$.   What is the index of $H$ in $SL_2(\mathbb{Z})$? There are a total of $3^4=81$ different equivalence classes of matrices in $SL_2(\mathbb{Z})$ modulo $3$ (each of the entries can have $0,1,2$ as remainders). Now, the given condition implies only one of the possible $81$ combinations modulo $3$. How do we proceed? any hints? Thanks beforehand.


My raster is displaying at a very low resolution so it is almost useless.  Last time I used this file it was at a much higher resolution, so I know the information is there.    To change it I first wanted to know what it was so I googled how to display it and read the Esri documentation on 'Displaying the raster's spatial resolution:' right-click for Properties, go to Display tab, then it said to check a box that doesn't exist.  Any ideas?  I'm using ArcGIS 10.2.2 for Desktop.

I have NDVI images (250 m) and Soil map (1000 m).   How can I change the resolution from 1000 m to 250 m, so I can compare/work with them?


I'm trying to recover a Windows system from backups and can't seem to find where Chrome saves its bookmarks.   Does anybody know where Chrome saves its bookmarks on Windows?

Having recently switched to Google Chrome, I was wondering what files and directories I should be including in my backups to make sure that bookmarks and history are included.  Along the same lines, is there a process to restore these settings on a new install?  This is on Windows Vista.


I would like to be able to shutdown or restart a computer on a remote network. If it were on my local area network, I would use the shutdown -i command. How can I do this remotely? I cannot use Remote Desktop Connection. The network has a static IP address.

I use a remote desktop program (usually ) to connect to a Windows machine everyday. The remote computer has a fixed IP address, and if the computer is on and responsive, I can access it and even reboot the computer remotely if necessary.  Unfortunately, if the remote computer freezes (for example, if it gets a blue screen), as far as I know, I can't use a remote desktop solution to restart it. Similarly, if my computer is off, I can't use remote desktop to boot it.   I know that one solution is to ask somebody who is physically near the computer to press the reboot or power on button, but I am opening this thread because I am interested in solutions that do not require the physical presence of people to turn on or reboot a remote frozen computer.  Is this possible? If so, what are my options?


Can I use "that" 2 times in a sentence next to itself?

Have you ever had a case where you felt compelled to include strange things like a double that in a sentence? If so, then what did you do to resolve this?  For me, I never knew whether it was acceptable grammar. However, what I did learn was that it was a logic distractor, could lead to confusion, and therefore should be reworded to avoid this.


I know how to slice a list in python. But I have a confusion when I see the following codes:  from PIL import Image import numpy as np import matplotlib.pyplot as plt  img = Image.open('test.jpg') img = np.array(img) print(img.shape) # (204,204,3) plt.imshow(img) plt.imshow(img[:,:,::-1])   Both the last two lines can display the image correctly. But I wonder why img[:,:,::-1] as the img itself can display correctly. Is it just for fun or intentionally?   Thanks in advance!

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


I have 3 classes: A, B, and AnotherClass. Where B is derived from A:  class A { public:     A(){}     virtual void method() {//default action} };   Then I have a derived class, B:  class B : public A { public:     B(){}     void method() {//redefine action} };   And AnotherClass:  class AnotherClass { public:     AnotherClass(A& a);     A a;     anotherMethod(){ a.method()} }; AnotherClass :: AnotherClass(A& a) : a(a) //initialization   So, if I construct an object of AnotherClass with an object of B:  B b(); AnotherClass myObj(b);   Keep in mind, since B inherits from A, and AnotherClass accepts an object of A, I am able to successfully pass in a B object as the argument.  And I call:  myObj.anotherMethod();   I expect this to execute anotherMethod(), and when it does, I expect it to call the REDEFINED method() that belongs to B, but instead it calls the default method() defined in A  I was thinking my problem is because I specify the argument of AnotherClass as an object of class A. However, I do not want to change this argument to an object of class B because I also have classes C, D, and E, that also inherit directly from A. So I want to use the base class as the argument type so I am not limited to only being able to pass in a b object. But, I read some older posts on this site and most proposed solutions was to pass the derived object (b) by reference, which I am doing.  Can someone explain why this is happening?

Someone mentioned it in the IRC as the slicing problem.


Does the US European Novel Coronavirus travel ban restrict US Citizens from traveling back to the US from Europe or the UK?

This community wiki explains the current restrictions by the United States of America on the entry of individuals who may pose a risk of transmission of the SARS-Cov2, the virus which causes the Covid-19 disease.


I just got this Dell Optiplex 780 and I'm wondering which linux/ubuntu to install on it and where to find it. Mr. google offered no help to me in this case. + How do I know if it should be 32-bit or 64-bit?

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I had question:  long timeInMillis = 1488943098615; //-> Wed Mar 08 2017 10:18:18  How to switch from 1488943098615 (wed mar 08 2017 10:18:18) -> ? (timeInMillis) (wed mar 08 2017 00:00:00). That means taking all the time of the day. Eliminating hours and minutes.

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


Is there a demonstrable species that went through mutation breeding and through successive generations it drifted so far away from its initial parent species that it can't breed with them anymore? (I assume it would need to be able to breed with intermediate generations though). Also by "demonstrable" I mean a case where we can directly demonstrate this process by starting from a parent species to a new species and not establish this relationship by looking back (like observing the connection between corn and teosinte through genetic information). Edit: I'm mainly curious about postmating/post- zygotic reproductive isolation. As I understand, the timescale of us is not enough to observe that kind of speciation (we can either directly observe the start of the isolation or the end of it but not both), that's why I'm curious about whether induced mutation could speed up the process enough to directly demonstrate speciation by the most difficult to achieve definition. I have checked the thread  but it seems to me that those results only shows premating isolation. I have checked:  article which says, that postmating barriers observed may be due to postcopulatory-prezygotic mechanisms. Thank you for the corrections, Im reading into

Background  The standard definition of species refers to the concept of . If two lineages are found to be reproductively isolated, then we consider these two lineages to belong to different species. My question concerns evolved reproductive isolation in Drosophila sp. following labs due to experimental evolution.  Question  Have we ever demonstrated that two Drosophila sp. lineages that could initially interbreed (in nature or in labs) evolved through artificial selection (and drift and mutations) in labs to finally not be able to interbreed anymore either due pre- or post- zygotic isolation (see )? Or, in other words, have we ever demonstrated that two drosophila lineages evolved to become different species (reproductive isolation definition) in labs experiments?  If not, have we ever observed some partial reproductive isolation such as inbreeding depression for example?    Note: This question is motivated by @LotusBiology that could not receive the answers she/he was waiting for because he/she failed to ask questions that are possibly answerable! So I wanted to ask this question that somehow addresses  question he/she asked (now on-hold)  For more information about the concept of species, please have a look at


In attempt to render the following with a transparent background, the image exported is shown with a black background.  While the transparent option underneath the Film category is selected, and background images is disabled, it renders normally shown with a transparent background.   However, when it is saved as an image, it is replaced with a black background  What can I do to make sure the image itself has a transparent background?

I would like to render an animation as a series of .png images with transparent backgrounds for use in a video. Is this possible?


Which of the following is correct?     The data was kept in soft form.   The data were kept in soft form.

My non-native English speaking friend just asked me: "Data is..." or "Data are..."?  I said both but that's because I've been desensitized from reading/writing both (especially from writing code and adding quick comments).  My question: Is it acceptable to utilize either for a university paper? Or is one safer than the other (when confronted with stickler professors)?    Related questions:


Let $a$, $b$, and $c$ be integers with $\gcd(a, b, c) = 1$. Prove that there is some integer $x$ such that $\gcd(a + xb, c) = 1$.    I know I should use the Chinese remainder theorem, but I'm still a little stuck on this proof.

I can't crack this one.      Prove: If $\gcd(a,b,c)=1$ then there exists $z$ such that $\gcd(az+b,c) = 1$ (the only constraint is that  $a,b,c,z \in \mathbb{Z}$ and $c\neq 0)$


Newbie here in C#..  I am creating a calculator, and would like to display my numbers through UI text elements. Problem is that i want to limit my number to say, 4 decimals like 10.4812  I tried with Tostring("F4"), which works, but then when i have a round number like 12, it will display "12.0000", which is ugly.  What would be the simplest way to achieve this ? I thought of complicated ways, like converting my ui element.text into a char array, then detecting the ".", counting 4 digits and removing the rest, but that sounds crazy maybe ?  It has happened many times that i was trying too insane things when something simple was existing, so i thought it was worth asking :D.  Thanks in advance!

When displaying the value of a decimal currently with .ToString(), it's accurate to like 15 decimal places, and since I'm using it to represent dollars and cents, I only want the output to be 2 decimal places.   Do I use a variation of .ToString() for this?


What is the "substantial difference" that might occur between the google shares?

Why are there two ticker symbols for Google — GOOGL and GOOG?  They seem to be mostly identical, but their market values are different: currently, 551.64 for  and 548.79 for .


In a LaTeX article we  have \section, \subsection, \subsubsection,  \paragraph, \subparagraph. What do I do if I want to go deeper and want to use \subsubparagraph or \subsubsubparagraphand avoid the arbitrary restriction imposed by LaTeX?  Or what if I want to do instead \subsubsubsubsubsubsubsection?

I have a document which requires many levels of sectioning. I have sections, subsections and subsubsections, but require one more level below that. I can't change the sections to be parts and move everything up a level, as this document will eventually be included in another document which has parts/chapters already.  I see that the \paragraph command is used for defining the section level below subsubsection, but that doesn't produce headings in the same way that subsection and subsubsection do. Is there any way to either (1) change the \paragraph command so that it works like subsubsection but just adds another number - ie. 1.2.3.4 or (2) create a \subsubsubsection command to do the same thing?


What is the difference between relation and relationship?   What's the purpose of the suffix?

What is the difference between relation and relationship? Some say that relationship often refers to social connections. For instance,  She has a close relationship with her daughter.  How about the following?  the relationship between poor housing and health problems (Longman Dictionary) the special relationship between Britain and the US (Longman Dictionary)


Hey everyone I like Risk and play it a lot. But I always see the same strats, take a small continent like australia and slow push. The other option I have been seeing is take territories in a large continent and then expand quickly with overwhelming number quickly.   My issue is that these all have they're own issues. For instance when you turtle and slow push with Australia but can be cornered and ganged up on. So I am wondering if there are any other strategies possible and if there are, I would love to hear them.

In general what do you recommend at the beginning of the game?


So if i have posted a question and i have awarded some bounty for the question. So if the bounty period expires the bounty points will be reduced from the users account. And the users will never get back the lost points even if the questions does not have an answer. So my question is why SO doesn't have a feature like give back the bounty points to the user if that question receives at least one answer or more than that.  Or what about giving back the bounty points to the user if that question didn't received at least an answer with a minimum number of positive votes..  Otherwise there is no point of losing the points from the reputation.

I have  with a bounty that will expire in a few days. It looks like nobody will get the bounty; only one answer was posted during the bounty period, and it has no upvotes.  In cases like this, the bounty is thrown away.  Why isn't it refunded instead, if no answerer has earned it?


This morning I ran sudo apt update and, I got following error (many times):  I think it is able to connect with some repos. I tried pinging 43.255.166.254 which showed 100% packet loss. I also tried running 'Software Updater' which just basically told me to "Please check your internet connection". I have checked my connection and verified that internet is working---chrome and firefox has no issue whatsoever.

I am trying to apt-get update but it gets stuck on   0% [Connecting to ph.archive.ubuntu.com (202.90.159.172)]  and after a couple of minutes it gives me the following:  Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]      Hit:2 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease Err:3 http://ph.archive.ubuntu.com/ubuntu xenial InRelease                        Could not connect to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80] Err:4 http://ph.archive.ubuntu.com/ubuntu xenial-updates InRelease   Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80] Err:5 http://ph.archive.ubuntu.com/ubuntu xenial-backports InRelease   Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80] Fetched 102 kB in 2min 0s (846 B/s)                       Reading package lists... Done W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Could not connect to ph.archive.ubuntu.com:80 (2001:d18:0:23::172). - connect (101: Network is unreachable) [IP: 2001:d18:0:23::172 80] W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80] W: Failed to fetch http://ph.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease  Unable to connect to ph.archive.ubuntu.com:http: [IP: 2001:d18:0:23::172 80] W: Some index files failed to download. They have been ignored, or old ones used instead.   I have tried disabling IPV6 connection as described  but it doesn't seem to fix the problem. What should I do? I'm an Ubuntu newb and using 16.04.


I am getting the following error while installing MySQL-server:  E: Package 'mysql-server-core-5.5' has no installation candidate.   I tried many steps like adding repositories and installing it again, but no use. Can anyone give the solution?

What does the above Error mean? What is an installation candidate?  I was trying to do  sudo apt-get install munin-memcached     and I get this message:  Reading package lists... Done Building dependency tree        Reading state information... Done Package munin-memcached is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package munin-memcached has no installation candidate   I googled for the problem and someone said to do a apt-get upgrade but it still did not solve my problem.


I remember a story or movie from my childhood where the protagonist goes back in time to retrieve some object, and while doing so he inadvertently steps on something small (like a fly or butterfly). When he returns to the present, he finds the future has changed quite a bit.  Does anybody know the story I'm talking about?  Also, does anybody know about the scientific law/paradox which governs this phenomenon?

I heard of this in high school, but never learned its title or author- supposedly the aforementioned worm butterfly would have played a part in evolution that caused the extinction of the dinosaurs (instead of that meteor most people blame now). This story might even have been parodied on a certain Simpsons Halloween Special (the one where Homer accidentally makes a time machine trying to fix the toaster).


I have simple document:  \subsubsection{Dodanie testu} \begin{lstlisting}[caption={ComplexTest},label={lst:complex-test}]     public class ComplexTest{          public testComplexAddition(){             Complex a = new Complex(1,2);             Complex b = new Complex(3,4);                } \end{lstlisting}     Some text    \subsubsection{Uruchomienie testów} Some text   \subsubsection{Napisanie kodu} Some text   with these settings for my listings:  \lstset{ language=Java, captionpos=t, tabsize=3, frame=none, keywordstyle=\color{blue}, commentstyle=\color{darkgreen}, stringstyle=\color{red}, numbers=left, numbersep=-8pt, showstringspaces=false, basicstyle={\small\ttfamily} }   my output looks like for first page:   for second page:    but when I put \pagebreak just before \begin{lstlisting} to have it on the next page I have got strange vertical spaces between subsubsections and texts. There is the output:    PS. The same occours when I put additional lines of code to my listing and Latex implicit breaks line and put these lines on next page.

On some pages of my document LaTeX introduces a lot of spacing between my headline/paragraphs (around 5 times more than usual).  What is the reason for this and how can I avoid it? It seems it is trying to fill the page until the next chapter starts.


I need help to prove that the following is true:   $$1+\cos2\theta+\cos4\theta+\cos6\theta+\cos8\theta=\frac{(\cos4\theta)(\sin5 \theta)}{\sin\theta}$$  I realize that I must evaluate the real part of this, but whatever I get I am not quite sure how to get to the required expression. I have multiplied the numerator and denominator of the result of the geometric sum by the conjugate of $ e^{2i\theta} $   and still have no luck. $$\sum_{i=0}^4 e^{2ni\theta}$$  (Apologies for poor formatting)

So I have this result  $1 + z + z^2 + ... + z^n = \frac{z^{n+1}-1}{z-1}$  which I proved already. Now I am supposed to use that result and De Moivre's formula to establish this identity     $1 + \cos\theta + \cos2\theta +... + \cos n\theta = \frac{1}{2} + \frac{\sin[(n+\frac{1}{2})\theta]}{2\sin(\frac{\theta}{2})}$   Can anyone help me?


Step 1: Suppose that $F$ is an infinite field and $f(x) \in F[x]$. To claim the statement, "If $f(a)=0$ for infinitely many elements $a$ of $F$, then $f(x)=0$". To prove this statement using proof by contradiction. Suppose that $f(x)=a_{n}x^{n} + a_{n-1}x^{n-1} + \cdots + a_{1}x+a_{0}$ with $\deg (f(x))=n$. May I have your idea about the next steps?

Show that if $ R $ is an integral domain then a polynomial in $ R[X] $ of degree $ d $ can have at most $ d  $ roots.  Thoughts so far:  I feel like I might be missing something here. If $ R $ is an integral domain, then so is $ R[X] $. The factor theorem gives a correspondence between roots and factors. Clearly (is this clear?) a polynomial of degree $ d $ can't have more than $ d $ irreducible factors.


How can I read the shutter count on Canon EOS 6D Mark II on Windows with a preferrably free tool?

Most utilities that I found to check the actuations count haven't been updated in a long time. I also read that the actuations count isn't included in the EXIF data anymore.  So what is the best/easiest way to check the actuations count on a Canon EOS 80D? I have Lightroom and Photoshop available, but I'm willing to install another (free) utility if necessary. I use Windows, Linux is optionally available. Thank you!


$$\int_{-\infty}^{\infty} e^{-({x-1)}^2} dx$$   I tried polar coordinates but couldn't apply the right  variable transformation...

I know from probability class that the area under the bell curve $e^{-x^2}$ is $\sqrt{\pi}$. I would like to be able to verify this, so in other words, solve this integral: $$\int_{-\infty}^{\infty} e^{-x^2} dx $$ The proof we saw in class used polar coordinates, but I don't like polar coordinates! Is there another way to evalutuate it?  Thanks!


As far as I understand, English nouns do not have a 'gender' so to speak - when I say the word 'manager' I may be referring to a woman or to a man, one cannot infer the gender just by hearing the word. This is different of French, for instance, where you may use directeur to a man and directrice to a woman.  I have been reading a lot of texts and papers on management lately and I have noticed some texts where the authors usually use she to refer to a leader or manager, as in the snippets below:     The product owner herself should generally not come up with new ideas or changes [...]   Or     An analyst may work on an upcoming large feature that she feels hasn't received enough attention [...]   Or     [...] assume that the customer identifies [...] she then selects an additional 30% more work [...]   My question is:- is there any reason as to why the author (who is American) has chosen to refer to customer, analyst and product owner using she? Or does it not make any difference at all and the author could well have used he without any issue?  I am assuming it does have a reason to say she, otherwise the author would've said she/he (she/he feels hasn't received enough attention) and himself/herself (The product owner herself/himself)   Let me just stress out one point case someone gets jumpy:- I am not being sexist - I don't care if the author says he or she or the person or the being. All I am trying to do is understand if there is a special reason as to why he treated those roles as female roles. I may also add that in my native language every noun has a gender, as in French or Portuguese, and therefore treating a noun as a female one in English puzzles me a bit.

Reading different specifications and manuals I've noticed that more often and often pronouns she or her are being used when some unknown person's behavior is described.  For example: "when user opens the first screen, let she be notified about something" or "let user input her address". Actually, I've seen more versatile examples but cannot remember anything nice now.   Is it a last-years tendency? Or is it something only UK-specific? Are there any rules about it? Or, maybe, is it applicable only for written document/spoken language?  I'm not an informant (as you've already guessed) and it's very important to me how should I write in official correspondence with British/US customers and not to hurt their feelings?


I didn't know what to put in the title that would be brief, so here is the question:     I am interested in web development, but I am not entirely sure what route/what things I should learn for what I want to do. I am interested in creating websites for desktop in addition to a mobile app which uses the same data from the website.       For example, let's say my desktop website is a phone book—stores numbers, names, emails, addresses, etc—with interface to view entries, and add and delete new entries. I also want to then design a native mobile app which can also do the same things by viewing and modifying the same data the website uses.       Sorry I don't know how to explain this any better, I am obviously new to this area so I don't really know how to phrase this. I am not lacking in programming knowledge though—I do know a fair share of Java and C++, as well as some HTML, CSS, and JavaScript.   Thank you.

I want to know which forum, in the Stack Exchange multiverse, is the most appropriate to ask questions like...      I am new to working with csv files in perl, Can someone please point me to any good references on the subject?   I know questions like these are less specific and I will get yelled at on most of the forums I use within Stack Exchange.


a person, lets call him bob had unprotected sex with jane on friday night lets say saturday morning at like 4 am. Monday evening at around 11 pm the girl feels like throwing up and bad generally.  Can it be because she is pregnant?

How long will it take to show the signs of pregnancy after having intercourse without using any birth control method? Please assume the couple as fertile.   Ex:- Nausea with or without vomiting, Increased urination, Food aversions or cravings, Fatigue  Thanks


prove that for all: $x_{1},...,x_{n} > 0$  $\lim\limits_{t \to 0} (\frac{1}{n}\sum_{k=1}^{n}x_{k}^{t})^{\frac{1}{t}} = (x_{1}\cdots x_{n})^{\frac{1}{n}} $  i tried to some how use: Inequality of arithmetic and geometric means but with no success

The problem in question is.     Let $a_1,a_2,...,a_n>0$. Prove that    $${\lim_{p\to 0} \left(\frac{{a_1}^p+{a_2}^p+\cdots+{a_n}^p}{n}\right)^{1/p}}=(a_1a_2\cdots a_n)^{1/n}$$ i.e. show that as $p$ approches $0$, the $p$-mean approaches the geometric mean.    The direct proof of this is simple and can be done using logorithms. However when I started this problem I had the following idea:  Notice first that by the $AM-GM$ inequality,     $$\frac{a_1^p+\cdots+a_n^p}{n}\geq(a_1a_2\cdots a_n)^{p/n}$$ Thus, $$\left(\frac{a_1^p+\cdots+a_n^p}{n}\right)^{1/p}\geq(a_1a_2...a_n)^{1/n}$$ Equality is achieved in the above iff $a_1^p=a_2^p=\cdots=a_n^p$. But when $p$ approaches $0$, $a_1^p=a_2^p=\cdots=a_n^p=1$. Of course this does not prove the problem in question but I am trying to use this idea to construct a proof but it is much trickier that expected. Any ideas? The most promising idea I had so far was to create a subsequence of the p-mean and prove that it is decreasing and the geometric mean is the infinimum of this subsequence. But that is very hard to do.   So I guess my main question is: Could we find some special case where if the terms $a_1,a_2,\cdots,a_n$ approached some $x$ in some limit $L$ then, $L(AM)$=$L(GM)$?


So I'm having an odd problem, I've spent a decent chink of today making a hollow knight charm in 3D and the way I made it involved making a lot of separate objects and a lot of the time I end up hiding certain objects and for whatever reason, they aren't un-hiding.  You can see in the outliner that they still exist and in the properties menu that they are still there and have dimensions and whatnot, but they don't respond to alt + H nor do they respond to the same command via the object menu. I have no idea what happened here but that was alot of work that id rather not have lost so if anyone has any clue please respond asap.

For some reason I can't unhide my objects anymore in this file. Is it a bug?


I answered this question  and noticed the user has set a bounty once again. If no better answer is presented can I get a bounty twice? Is there a difference between the user awarding a bounty to an answer that already received one, and the auto-awarding of the bounty? oh and kittens

Is there any restriction to prevent multiple bounties ( not simultaneously) being awarded to different answers on the same question ?  i.e., on a question  -  I want to set multiple bounties since I've received 2 awesome answers. Can I set award a bounty on answer A first, and then set the bounty and award it to answer B ?


An important part of the early plot of the original Stargate film is finding the "seventh symbol" - the "point of origin" that allows them to dial Abydos. The Air Force apparently already had recovered the first six, but couldn't make it work without calling in Dr. Jackson to find the seventh.  Why couldn't the seventh symbol have been discovered through brute force? There are only 39 symbols on the gate, and "failed" dials have been shown to be non-dangerous according to SG1 (dialing a "wrong number" doesn't make the gate explode or summon Cthulhu, it just doesn't open a wormhole). Even if they chose to try only one candidate seventh symbol per day, they would have found it in a few weeks - why even bother with tracking down an Egyptologist?  I know that the out-of-universe answer is plot - that Dr. Jackson would never have been recruited if they could have just tried addresses until they succeeded. I'm asking about the in-universe reason. Was this ever addressed in any Stargate material? Was there a fear that the gate would blow up if the wrong seventh symbol was used? Was the energy requirement to dial the gate with the primitive equipment they had at the beginning so enormous that getting it right on the first try was a major budgetary goal?

From what I recall from the movie, Daniel only finds the seventh symbol... however when he explain they give way to show him the star gate and they put their sequence in the dialing computer. This proves the dialing computer was prepared to dial 7 chevrons.  It’s also stated they’ve also tested the 6 previous symbols in the order they appear on before, one has to assume only to fail when they insert the 7th, making them aware of the fact you can, at least dial 7th chevrons.  With 39 chevrons on the gate and 6 already locked in, that leaves 33 to try to get a lock. Those are not that many not to go and simply try one by one so... how come nobody brute forced the thing?


This is part of a bigger exercise.   I am stuck on evaluating. $\sum_{k=2}^\infty \frac{k}{3^k}$   Though have done all the rest of the task..   If you calculate it on wolfram you will find out that: $\sum_{k=1}^\infty \frac{k}{3^k} = \frac{3}{4}$ But why? I need to prove it by hand. I thought about writing it as a cauchy product but i think it is impossible.

How can I evaluate $$\sum_{n=1}^\infty\frac{2n}{3^{n+1}}$$? I know the answer thanks to , but I'm more concerned with how I can derive that answer. It cites tests to prove that it is convergent, but my class has never learned these before. So I feel that there must be a simpler method.  In general, how can I evaluate $$\sum_{n=0}^\infty (n+1)x^n?$$


I want grayscale mode to turn on at a specific time every day, then turn off automatically a few hours later. I know ctrl + windows + c can be used to do it manually but it would be great to automate the process such as turning on at 9pm and off at 7am for example.

I'm trying to get Windows 10 to emulate the new "Digital Wellbeing" feature that Google released alongside Android 9. Basically it changes the screen to grey-scale at night-time to try and incentivize people to get off their phone and go to sleep.  When I learned of Windows 10's "color filter" feature (which also allows you to set the color profile to grey-scale), I thought scripting this might be easy, but I can't seem to find a way to do this in a script directly.  At the moment, I basically have it working by turning on the Win+Ctrl+C toggle hotkey, and have a scheduled task set to run an AutoHotkey script that essentially hits those keys to trigger the shortcut. This works ok, but I'd like to be able to leave the shortcut key disabled so I don't accidentally hit it, or have such an easy way to disable the feature (and weaken the "Digital Wellbeing" effect). Also, the script has no way to know what the state of the setting is. If it runs twice, it undoes itself. Currently I don't have the machine scripted to unset the feature, but if I created a task to do that, and I shut the machine off before the nightly trigger, it might go grey-scale in the morning.  My question is to ask if there is any way I might be able to explicitly set "color filter on", or "color filter off" directly (via PowerShell, Batch, VBS, whatever) that doesn't depend on the shortcut key, and preferably that doesn't toggle?


I was very surprised to see a      sex scene between Batman and Batgirl    given that it was the genius Bruce Timm directing the movie, with legends such as Mark Hamill and Kevin Conroy reprising their parts.   The scene seemed a bit off from the overall story, not to mention that a sexual and romantic relationship between Barbara and Bruce isn't a very popular one.  All of this got me wondering whether it was actually Timm's idea to include this scene. Has there been any statement on that?

I loved the comic book. I've read it multiple times. And given that the purpose of the book and consequently, the movie, was       for the Joker to prove that anyone can be driven mad simply because of "one bad day", all he needed was the Commissioner right?    Why would they need to have us, as viewers, bond with Batgirl emotionally for around 25-30 minutes, have her frolic around with Batman and try to prove herself to him, etc.?     Sure, you feel deep sorrow for Barbara when she gets shot and molested by Joker. And this obviously is what affects Commissioner Gordon (in part),   But it isn't essential to the crux and the essence of the movie in my opinion (and going by the book, so to speak). Did Sam Liu or Brian Bolland offer any explanation to this end?


I am using Chromium for Ubuntu and it's telling me I need to install Adobe Flash Player (AFP) when I go to play a certain video by directing me to Adobe's website. I have AFP installed via Ubuntu Software Center, however that seems to be not good enough.  How can I get it working?  I have done some research before posting this and I'm being told (from Adobe's website) to download the tar ball, extract, then cp the files into certain directories, namely libflashplayer.so into Chromium's "browser plug-in directory" and a /usr folder into "the flash player local settings configuration."   I presume this process will work given that it's in Adobe's readme file; I have a few questions about the instructions. How do I find the browser plugin in directory, generally speaking; I'd like an answer that applies to any OS as well as browser if possible.  If there is a better way to go about solving this problem, please address it.

I've deleted ~/.macromedia and ~/.adobe contents and after a restart chromium can't detect flash plugin. It works just fine in Firefox  I have only "Chromoting Viewer" on chrome://plugins/  chromium-browser 34.0.1847.116-0ubuntu2 adobe-flashplugin 11.2.202.350-0trusty1   I have profile-sync-daemon active (tried stopping it, of course) and broken PolicyKit as in   Does the detection depend on PolicyKit? What else can I do?


The point of inflection on the curve $𝑦=𝑥^3−𝑎𝑥^2−𝑏𝑥+𝑐$ is a stationary point of inflection. Show that $b=8a2$.  Thank you for your help.  Edit: The solution to this question drafted in another post is wrong, according to the book. That is why I post it again, in a separate post.   Edit 2: I am not sure, then, why some of you still mark it as a duplicate.

The point of inflection on the curve $y=x^3-ax^2-bx+c$, is a stationary point of inflexion.   I do not understand the meaning of 'stationary', how can it be shown that $b=8a^2$?


Good day,  So to start off, I have found a few questions related to this, but not what I'm looking for -  -  What I'm really looking for is a way to keep a service running, without having to place any funny stuff inside it (what's normal to the spider - is chaos to the fly). So to break down the structure of the system that I am designing, here is some background:There is a service that runs in the background. This service will hold objects that perform processing at specified intervals. These objects are different types of processes (i.e. Reporting, Processing, etc.) that all launch at different intervals. The idea is that there will be an application that passes values to the service using the ServiceBase.OnCustomCommand(int cmd), where these commands will translate into "Pause", "Start", "Restart" and other object queries to determine processing success / completion of a certain queue. So in other words, I am running the "different processors" in parallel, as well as depending on the process, it allows multiple files or tasks to be processed / run in parallel. I have tried running this service but it stops by itself each time, even if I have the CanStop property set to false. In debugging (using a compiler if) I was able to determine that the service never crashes, but just runs through once, then at the end of the OnStart method, execution terminates.  So back to the question, how can I allow this service to continue running in the background without having to set up a nonsense timer inside of the service?  Some Code Service  public override void OnStart(string[] args) {     try {        double interval = double.Parse(ConfigurationManager.AppSettings["Interval"]);        fileProc = new FileProcessor(interval);     }     catch(Exception ex) {        fileProc = new FileProcessor(180000); // global variable     } }    File Processor  public FileProcessor(double interval) {     pauseTimer = null;     runTimer = new System.Timers.Timer()     {         AutoReset = true,         Enabled = true,         Interval = interval     };     runTimer.Elapsed += FileProcessor_OnRun;     OnPause += FileProcessor_OnPause;     runTimer.Start();     IsRunning = true; }     Thank you in advance for any assistance.

I made a Window service and let it work automatically and under localsystem account, when the service starts it fires this message for me and then stops     The [service name] service on local computer started and then stopped. Some Services stop automatically if they are not in use by another services or programs.   What's the problem and what's the solution?


I was playing GTA SA for some time, but the main problem for me was earning money. I either cheated or murdered to get money, sometimes completed missions. But I want to ask, what are the ways to earn money in GTA SA, except murder, cheating and horse races hack?

There are quite some houses and clothes for sale, but I do not have any money. What is the fastest way to get money in GTA San Andreas?


Suppose I've measured the length $l$ with an uncertainty $\Delta l$ in order to calculate the Volume of a cube $V = l^3$. If I were to add an error: why am I supposed to do it like $\Delta V = \sqrt{\left(\partial_l V\right)^2\,\left(\Delta l\right)^2}$ and not just $\Delta V = \left(l+\Delta l\right)^3-l^3$

1) Up until now, during practical work sessions, I always used these formulas for uncertainty propagation:  if $C = A+B$  or  $C = A-B$ $$\Delta C = \Delta A + \Delta B$$ if $C = AB$ or $C = \frac{A}{B}$ $$\frac{\Delta C}{C} = \frac{\Delta A}{A}  + \frac{\Delta B}{B}$$ if $C = A^m$ $$\frac{\Delta C}{C} = |m|\frac{\Delta A}{A}$$   These formulas are derived from the expression for the differential of a function of multiple variables:  if $C = f(A,B)$ $$ dC = \frac{\partial C}{\partial A}dA + \frac{\partial C}{\partial B}dB \Rightarrow \Delta C = \frac{\partial C}{\partial A}\Delta A + \frac{\partial C}{\partial B}\Delta B$$  and I think that makes sense because the value C is just a function of two variables that happen to be measurements.  2) But this morning, I was told that this is wrong and I should actually use these instead:  if $C = A+B$  or  $C = A-B$ $$(\Delta C)^2 = (\Delta A)^2 + (\Delta B)^2$$ if $C = AB$ or $C = \frac{A}{B}$ $$\left(\frac{\Delta C}{C}\right)^2 = \left(\frac{\Delta A}{A}\right)^2  + \left(\frac{\Delta B}{B}\right)^2$$  which are apparently derived from a general formula:  $$(\Delta C)^2  = \left(\frac{\partial C}{\partial x_1}\Delta x_1\right)^2 + \left(\frac{\partial C}{\partial x_2}\Delta x_2\right)^2 +   \hspace{0.3cm}...$$  or   $$\Delta C  = \sqrt{\left(\frac{\partial C}{\partial x_1}\Delta x_1\right)^2 + \left(\frac{\partial C}{\partial x_2}\Delta x_2\right)^2 +   \hspace{0.3cm}...}$$  3) So:   Why is this formula better?  Where does it come from? What does it actually represent? (Do I recognize the shape of a norm in that last formula?)  What is wrong with the formula of the differential?   I'm asking a lot, but the propagation of uncertainty always confused the ship out of me.


How to get the file extension or content type from file byte array. in C#  we have a problem in our production environment that, after last production upgrade PNG files uploaded previously were saved as JPG file extension. so when i read that file i cannot set mimetype as PNG, since currently it takes from path.getextension, but this is wrong- my actual file is PNG type. this is causing issues in rendering images.  How to get the file extension or content type from file byte array. in C#

I'm downloading some images from a service that doesn't always include a content-type and doesn't provide an extension for the file I'm downloading (ugh, don't ask).  What's the best way to determine the image format in .NET?  The application that is reading these downloaded images needs to have a proper file extension or all hell breaks loose.


I am creating a  modded forge minecraft server v 1.12.2, but my friend on a different network than mine cannot join. Here is the error he gets: io.netty.channel.abstractchannel$annotatedconnectexception: connection refused  Here are some things I have done so far:   Set my PC's IP to a static one Port forwarded my static IP with port 25565 (TCP/UDP) Disabled all firewalls on my PC (the one running the server, also tried having my friend disable his) Allowed the 25565 port through windows firewall by adding inbound/outbound rules (even though its disabled...) My friend is using my public Ipv4 (did not try public ipv6, it gives a long weird string of chars, and i've never connected to a server like this) tried connecting with just the ip, and ip:port methods. Tried using a laptop I own to connect to the server (using my phone's hotspot data) to simulate a different computer joining from a different network. It also gave the same error. I can connect to the server on the host PC fine, the server starts up when checking canyouseeme.org with my public ipv4 and the port 25565, it says "I could not see your service on ___ on port 25565. Reason: Connection Timed Out" I do not have any third part antivirus apps or anything of the sort installed (that i know of). also did not specify a server ip in the properties file of the server   I am not sure what to do now, and I am not sure why canyouseeme.org says the port is not open. I had the server running when I checked this.   Are there any other diagnostic tests I can do? The only thing I am not sure of is my static IP. I have it set to stay on whatever my PC was on at the time (ie. it is set to be an ip that is in the possible ranges of dynamic IPs on my network). I'm not sure if this is a problem, but I saw it mentioned once somewhere.

I am getting the following error when I try to connect to a Minecraft server:  This is all servers, not just one. The error says:  io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: Version 1.12  I've tried:  Restarting Minecraft Restarting Computer Uninstalling and Reinstalling Mincraft Uninstalling and Reinstalling Java Altering Firewall Restarting Internet I've messed with my port, made a second windows account, reset netsh winsock Checked hosts Made a new WINDOWS account  The overlay in the bottom right is Geforce's Overlay for game capturing. I don't have any mods installed. A Mojang support ticket wouldn't help. Im desperate.


I have a batch file script that needs to verify if the directory that the user enters in is a real directory or path so that I can create it if it dose not exist.  :GetDir set /p Dir= if not <is directory?> %Dir% goto:GetDir if not exist %Dir% mkdir %Dir%   How can I determine if the value given by the user is a directory? There are millions of things that the user could enter in that is obviously not a directory.  notes for editor: This note is to be removed after the editor reads it. I apologize ahead of time if I was not supposed to add this note in. Please correct me so I don't do this again if this is the case and I would appreciate being told where to add these types of notes if a similar situation comes up again. I am trying to maintain and recover this question from when I originally asked it in order to fix my bad reputation for asking bad questions on here. This is not a duplicate question because the marked duplicate is in a different scripting language that I am unfamiliar with. I would also like to mention that I did to some heavy research before asking this question on the the issue that I was having. It would also be greatly appreciated if answering this question could be enabled again so that I can answer my own question because I am not sure that anybody else is going to have the answer, and I currently know how to answer it.

Is there any way to find out if a file is a directory?  I have the file name in a variable. In Perl I can do this:  if(-d $var) { print "it's a directory\n" }


As I went through my financial and travel records for 2007, I realized that as usual I had made a great many mistakes. I’d like to help you to avoid making the same mistakes, so here they are. They might be considered New Year’s resolutions. Or they might be called Lessons Learned. When it comes to travel, do not trust...()   Q: Can I replace the "might"s with "could"s?

Which one of the following is commonly used in daily British English conversation?        The story could be true, but I don't think it is.   The story might be true, but I don't think it is.   The story may be true, but I don't think it is.


I was reading about immutable classes, and the ways to make a class immutable were said to be:    1 - Make the class final to prevent inheritance  2 - Make the mutable variables final  3 - Don't provide setter methods.   I think the third condition is unnecessary. When we make a variable final and provide any value to it, after that new value can't be assigned to it even through a setter method (because final variables can't be changed once a value is assigned to it). So why do we need the third condition of not having setter methods?  Am I understanding something in a wrong way?

This could be the dumbest question ever asked but I think it is quite confusing for a Java newbie.    Can somebody clarify what is meant by immutable?  Why is a String immutable? What are the advantages/disadvantages of the immutable objects? Why should a mutable object such as StringBuilder be preferred over String and vice-verse?   A nice example (in Java) will be really appreciated.


I need help writing an if/then statement in ArcMap 10.5.  Scenario: I generated a near table, but since the closest features (polylines) were mostly all overlapping with the input (multipoints), the table "ranked" the outputs as tying since the distances were zero.  I would like to re-rank these values so that the rank # is always unique, as I need to convert this near table into a pivot table next. It doesn't matter what ranking they get, as they're technically all the same distance.  Any ideas for an expression to rewrite the ranking # if there are duplicates, or a different workaround?  Example: IN_FID 2 found three features that were within my search radius. Instead of listing them as rank 1, 2, 3 it's listing it as 1, 1, 2 because the Near_Dist is 0. I just want a way to re-rank these so that the table doesn't have rank numbers that tie, like how this example has two "1"s. These can be arbitrary numbers, and don't need to be in this field. I just need a field to give a unique number between 1 and 3 for every IN_FID in this Near Table.

In field calculator i calculate sequential values in field [ORDER_ID]  What need change in script to calculate sequential values based on group field [GROUP_ID]. I select values manually and use autoincrement () in Field Calculator.  Parser: Python  Expression: autoIncrement() Pre-Logic Script Code:  rec=0 def autoIncrement():  global rec  pStart = 1  pInterval = 1  if (rec == 0):    rec = pStart   else:    rec = rec + pInterval   return rec   This is the result. Field ORDER_ID is already calculated manually (i select GROUP_ID and use autoincrement).     What changes script needed to use it in field calculator?


As you can see in the picture in the camera the red bordered rectangle is what the camera sees. How can I zoom in to this rectangle without changing the camera viewport/settings.

I'm manipulating some things in the scene from camera view, and I'd like to be able to tell exactly how big they will appear in the render.  Is there some way to make the camera view zoom to 1:1 in the viewport, without rendering the scene?


I have created four levels in Super Marion Maker - they form a world. Nintendo says on their site that you simply press the play icon. I do not see any "play" icon anywhere. I can only play the levels in "edit" mode. I want to play them with three lives as one world.  Can anyone help me?  Screen shots would be appreciated because I've seen too many places that I should press the play icon - and obviously I am not able to find it.

Whenever I save a course, it goes into the "World" levels, but I can't find that world window other than when saving.    How can I play my own levels without uploading each of them and is it possible to play the world levels in order?


I have a pipeline that consists of several stages. Jobs in the same stage can be worked on in parallel. But all jobs in stage 1 have to completed before anyone can start working on jobs in stage 2, etc.. I was thinking of synchronizing this work using a CountDownEvent. My basis structure would be this.WorkerCountdownEvent = new CountdownEvent(MaxJobsInStage); this.WorkerCountdownEvent.Signal(MaxJobsInStage); // Starts all threads  // Each thread runs the following code  for (this.currentStage = 0; this.currentStage < this.PipelineStages.Count; this.currentStage++) {     this.WorkerCountdownEvent.Wait();     var stage = this.PipelineStages[this.currentStage];     if (stage.Systems.Count < threadIndex)     {         var system = stage.Systems[threadIndex];         system.Process();     }      this.WorkerCountdownEvent.Signal(); // <--  }  This would work well for processing one stage. But the first thread that reaches this.WorkerCountdownEvent.Signal() will crash the application as its trying to decrement the signal to below zero. Of course if I want prevent this, and have the jobs to wait again, I have to call this.WorkerCountdownEvent.Reset(). But I have to call it after all threads have started working, but before one thread is done with its work. Which seems like an impossible task? Am I using the wrong synchronization primitive? Or should I use two countdown events? Or am I missing something completely? (Btw usually jobs will take less than a milliseconds so bonus points if someone has a better way to do this using 'slim' primitives like ManualResetEventSlim. ThreadPools, or Task<> are not the direction I'm looking at since these threads will live for very long (hours) and need to go through the pipeline 60x per second. So the overhead of stopping/starting a Tasks is considerable here). Edit: this questions was flagged as a duplciate of two questions. One of the questons was answered with "use thread.Join()" and the other one was answered with "Use TPL" both answers are (in my opnion) clearly not answers to  a question about pipelining and threading primitives such as CountDownEvent.

I'm running into a common pattern in the code that I'm writing, where I need to wait for all threads in a group to complete, with a timeout. The timeout is supposed to be the time required for all threads to complete, so simply doing thread.Join(timeout) for each thread won't work, since the possible timeout is then timeout * numThreads.  Right now I do something like the following:  var threadFinishEvents = new List<EventWaitHandle>();  foreach (DataObject data in dataList) {     // Create local variables for the thread delegate     var threadFinish = new EventWaitHandle(false, EventResetMode.ManualReset);     threadFinishEvents.Add(threadFinish);      var localData = (DataObject) data.Clone();     var thread = new Thread(         delegate()         {             DoThreadStuff(localData);             threadFinish.Set();         }     );     thread.Start(); }  Mutex.WaitAll(threadFinishEvents.ToArray(), timeout);   However, it seems like there should be a simpler idiom for this sort of thing.


I've got a popup on page A which appends to (or creates, if it doesn't already exist) a listview on page B. After creating or appending to the listview, I call:  $('#summaryList').listview().listview('refresh');   In the listview on page B, there is an a within each li. The a  opens up another popup. This is all working as expected. I'm trying to get an alert to fire when the a tag is clicked, but nothing seems to be working.   I've tried:  $(document).ready(function() {     $('a.editBtn').click(function( event ) {         alert("test");     }); });   as well as  $("a.editBtn").on('pagecreate', function() {     alert("test"); });   Any suggestions?

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


What will happen if we don't use it? will the compiler automatically add it like it does in C++?

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


I have a 4GB DDR3 800Mhz recently I installed another 4GB. It turns out it's  DDR3 667MHz. Does it really matter I should own both rams 800MHz?    Slot1 shows recent RAM installation. ALSO I don't know if this is 1600MHz (it shows 800x2 and 667x2 for other) or just 800MHz ram.

I have a  1 GB DDR2 667 MHz RAM   installed into my system   can i use  2 GB DDR2 800 MHz RAM   along with the existing RAM   is there any problem if i use both in different slots simultaneously  or  shall i remove the previous RAM.


I want to apply for a PhD in computer science. My end goal is to become a professor and teach at a university. I have interests in data structures, algorithms, networks and programming languages. I would love to apply for a PhD in algorithms but cannot figure out a research topic.  Can some one please suggest how should I go about it? I don't mind if I get into a PhD program in a field other than algorithms as the final goal is to teach.  Thanks a ton!

In many countries an application for a PhD position includes a written research proposal, so my questions is what are some advises/strategies to come up with a good topic/idea for a PhD research proposal and how can one assess the quality/fruitfulness of an idea? As an undergraduate student one just doesn't have the experience to foresee which ideas might have promising research results and which probably won't have. (And I doubt that potential supervisors have the time to comment on every idea of every potential applicant in cases where it is possible to establish some kind of contact before the actual application.)


If I remember correctly, what caught fire was Vader's mutilated leg at the stump, but how is that the case? The robes should be way more flammable than flesh, shouldn't it?

While duelling that close to lava, I would suspect that they would get dangerously hot and dehydrated, and possibly burned. Did they use the Force to protect themselves in some way, for example lower their body temperatures and cool the air around them while duelling?


I need a iron golem spawner for my iron farm. Is there a command(setblock or give) to give me a mob spawner that spawns iron golems?

In Minecraft, the NBT (Named Binary Tag) format is used to store data of our Minecraft worlds, including block, entity, and item properties. In the Java Edition of Minecraft, you can modify this data by including the data in the command, like so: /give @s diamond_sword{Enchantments:[{id:"minecraft:knockback",lvl:10s}]}  In the Bedrock Edition, on the other hand, NBT is inaccessible from commands. In order to modify NBT, we need to use an external editor. What are some useful item properties that I can modify with an NBT editor, and how can I do so?  Related:


As for learning purposes, as I am developing my own micro-CMS (well, in fact a femto-CMS) in PHP + MySQL, I would like to locate the earliest possible version of the source code of Drupal. In Drupal.org I can only locate from version 4.x and above, I would like to find 1.0 or even an earlier beta version.

I'm trying to find a copy of 6.20 to run a diff on a client's Drupal install. I believe there's been changes to core.   How can I get version 6.20? Additionally, how can I download any older Drupal versions?


When editing a list, when you want to add a comment between two lines in a list with numbers, the next number after the comment will appear as 1. regardless of the number that you will actually input.

I noticed what seemed to be a bug in the way the stackoverflow editor handles numbered lists. I did a search on meta for this and it didn't come up, but if it is a duplicate, I'll delete the question.  Consider the following code:  Here are some points:  1. One 2. Two 3. Three  Here are some more points which continue the theme:  4. Four 5. Five   When you actually type this into the text editor, this is the result:  Here are some points:   One Two Three   Here are some more points which continue the theme:   Four Five   In this case, the ordered list resets after the break. This is probably just an edge case (and not necessarily worth fixing), but I ran into the problem today and figured this would be a good place to raise the topic! My workaround was to use back-ticks around the numeral, but then you lose the hanging indent. (ie, 1. One)  Might this be worth fixing? Is it expected behavior? Or am I doing it wrong?


Let $f$ be continuous on $[a,b]$, let $f(x) \geq 0$ for all $x \in [a,b]$ and let $M_n = (\int_{a}^{b} f^n )^{\frac{1}{n}}$. Show that $\lim(M_n) = \sup\{f(x):x\in [a,b]\}$   Here is what I have so far: Let $M = \sup(f)$ and $p \in [a,b]$ such that $M = f(p)$. Given $\epsilon > 0$, there exists an interval $[c,d]$ containing $p$ such that   $$M - \epsilon \leq f(x) \leq M, ~~~x \in [c,d]$$  Note that $0 \leq (d-c) \leq (b-a)$ so I raise everything to the power of $n$ and then add $(d-c)$ and $(b-a)$ to the inequality. $$ (M-\epsilon)^n(d-c) \leq \int_{c}^{d}f^n \leq \int_{a}^{b}f^n \leq M^n(b-a)$$  Then I take the $nth$ root to get  $$(M-\epsilon)(d-c)^{1/n} \leq M_n \leq M(b-a)^{1/n}$$  Then since $\lim(\alpha)^{1/n} \to 0$, by the squeeze theorem, $\lim(M_n) = \sup(f(x)) = 0$?

Let $f(x)$ be a continuous real-valued function on $[a,b]$ and $M=\max\{|f(x)| \; :\; x \in [a,b]\}$. Is it true that: $$ M= \lim_{n\to\infty}\left(\int_a^b|f(x)|^n\,\mathrm dx\right)^{1/n} ? $$  Thanks!


I am building a random quote machine (learning AJAX). AJAX request works and .done() successfully called. Now I am trying to do error handling and my .fail() does not work when AJAX request actually is not successful.  Any ideas what might be wrong here? Thank you!         `  var quoteRequestTimeout = setTimeout(function(){         if ($.isEmptyObject(backupQuote)){          $quoteText.text('Failed to get a new quote');          $author.text('');         }         else {         $quoteFail.text('Failed to get a new quote');         $quoteText.text(backupQuote.quoteText);         $author.text(backupQuote.quoteAuthor);         };         }, 8000);      $.ajax({         url: "https://api.forismatic.com/api/1.0/",         jsonp: "jsonp",         dataType: "jsonp",         data: {             method: "getQuote",             lang: "en",             format: "jsonp"         },         cache: false     })    .done(function(data, status, jqXHR) {         console.log(data);         $quoteText.text(data.quoteText);         $author.text(data.quoteAuthor);         backupQuote = {             quoteText: data.quoteText,             quoteAuthor: data.quoteAuthor         };         $quoteFail.text('');         clearTimeout(quoteRequestTimeout);      })    .fail(function(jqXHR, textStatus, errorThrown) {         console.log(errorThrown.toString());         console.log("it worked");      });`

Is it possible to catch an error when using JSONP with jQuery? I've tried both the $.getJSON and $.ajax methods but neither will catch the 404 error I'm testing. Here is what I've tried (keep in mind that these all work successfully, but I want to handle the case when it fails):  jQuery.ajax({     type: "GET",     url: handlerURL,     dataType: "jsonp",     success: function(results){         alert("Success!");     },     error: function(XMLHttpRequest, textStatus, errorThrown){         alert("Error");     } });   And also:  jQuery.getJSON(handlerURL + "&callback=?",      function(jsonResult){         alert("Success!");     });   I've also tried adding the $.ajaxError but that didn't work either:  jQuery(document).ajaxError(function(event, request, settings){    alert("Error"); });   Thanks in advance for any replies!


My pokemon account is saying that my bag is full but it is not full. I have plenty of room and I can collect items no bother at pokemon stops. I can't catch pokemon  as it comes up saying my bag is full.  Can you help?

It seems that I can buy 50 more slots using 200 coins, but what if I keep on getting more and more common Pokemons such as Pidgey or Rattata, then the slots will be full again.  Right now, I am sorting by CP (Combat Power) and then "Transfer" the lowest CP Pokemons to the Professor (to give it away), but wonder what is a good or better way to handle this?  (For example, can I combine several Pidgey into one?)


I need to get a full list of files modified, and if possible files accessed too, by a complex script, as well as all files accessed at the same time of the script running by any other process.  So i want to START logging all IO file access before the application start, and then STOP logging when it ends. (or inspect full log between 2 time stamps ?)  How can i do that ?

Is there any way in unix to find out who accessed certain file in last 1 week? It may be user or some script ftp it to some other place. Can I get a list of user name who accessed certain file? How can I find out who is accessing particular file??


I have a simple password protection. I do it like this:  EditText editText1 =  (EditText) findViewById(R.id.editText1); String Password = editText1.getText().toString(); if(Password == "a"){   Toast.makeText(getApplicationContext(), "Success" + Password, Toast.LENGTH_SHORT).show(); } else {   Toast.makeText(getApplicationContext(), "Failure" + Password, Toast.LENGTH_SHORT).show(); }   I have edittext and button. If user is typing in "a", toast should say success. But it is always saying failure. I don't understand what is wrong in my code...

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


Is it possible to concatenate two BibTeX .bib-files? E.g. to write:  \include{child.bib}   into my parent.bib?

I have two .bib files that I want to use in my bibliography. Entries do not overlap. I have found quite a few forum topics on that, but none of them really satisfied me. So my idea is to merge the two to one .bib file which I will use in the .tex. Most conveniently, this would be done from within LaTeX (so I do not use bibtool, or reference software). So, I made a macro to merge two files:  \newwrite\bibwrite \newcommand{\concatbib}[2]{%   \begingroup   \IfFileExists{#1}%     {\CatchFileDef{\bibone}{#1}{}}      {\let\bibone\empty}   \IfFileExists{#2}%     {\CatchFileDef{\bibtwo}{#2}{}}     {\let\bibtwo\empty}%   \immediate\openout\bibwrite=MyBib.bib\relax   \immediate\write\bibwrite{\bibone \bibtwo}%   \immediate\closeout\bibwrite   \endgroup }   which is basically taken from another question (). Now the problem is that Latex wants to interpret the file contents, and things like \noexpand, \detokenizedid not work as desired. So I have to read it in verbatim, which I tried according to Martin Scharrer's answer here: .  \def\alltext{   \begingroup   \let\do\@makeother % define \do to change the category code of its argument to 'other'   \dospecials % makro that is a string of every special character preceeded with \do -> all catcodes are changed   \all@text } \def\all@text#1{   \endgroup   #1 }   and I would use this within the other macro. Testing it alone, though, I get the error that Use of \all does not match its definition \alltext, and I think that I am missing a big point here.   I think that I put the definition of \all@text after \alltext so I can close the group, which to my understanding I need to define the region where the catcodes are altered. But I do not see why \all@text should be known already in the definition of \alltext? up to now I understood that \@... commands are primitive commands, but I thought it was only a notation. Is there more to it? is there a way to make that code work?


so i am trying to learn texturing so that i can render my cars, but these car paint materials are pretty hard to make for a noob. I did some research and tried making this shader in cycles but failed miserably. Can anyone help me here? How can i get car paint shader like one shown here in cycles?

This is something that has been irking me for a while, as I've been working on a car project. I'm trying to create a paint (in cycles) similar to the the material in this image:    The problem is, whenever I try to make it, it always comes out looking to diffused or too sharp.  Here's my node setup:    And here's the render:


I tried install nvidia driver  The following packages have unmet dependencies:  nvidia-current : Depends: nvidia-304 but it is not going to be installed E: Unable to correct problems, you have held broken packages.  user@host:$ install nvidia-304 Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  nvidia-304 : Depends: lib32gcc1 but it is not going to be installed               Depends: libc6-i386 but it is not going to be installed E: Unable to correct problems, you have held broken packages.   But it have broken dependency. How install nvidia driver properly?

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


Bijection from $ P=\{A|A\subset N\}, \Omega=\{<x_n>|x_n \in\{0,1\}\} $  I know that both sets are uncountable but I can't come up any example.  Can anyone give me a hint? or solution?

How would I show that $P(\mathbb{N})$ is equivalent to $2^\mathbb{N}$? The questions asks to form a theorem from the statement I just gave. Any help would be appreciated.


What is the difference between the two, a ptr pointing at a variable and a ptr pointing at memory?  I know a pointer is a variable that holds the memory address of a variable. So... A ptr pointing at a variable holds the address of that variable whereas a ptr pointing at memory is directly pointing at memory?  The first somehow still holds some information about the initial variable whereas the later only knows an address?  EDIT: I didn't mean for this question to cause so much controversy and I'm not entirely sure why it's getting downvoted.  I'm just trying to understand pointers... After doing some reading on the linked 'duplicate' it is my understanding that a ptr pointing to a variable always references that variable, cannot be reassigned, and cannot point to other pointers, and share an address with the variable.  Memory pointers can point to NULL, can be reassigned, can point to other pointers, and have their own memory address.  Are these true for C or only C++

I know references are syntactic sugar, so code is easier to read and write. But what is the difference between a pointer variable and a reference variable?


I am wondering if, for example, kryptonite is supposed to be to like radium or some other radioactive metal is to humans to Superman? Is it radioactive in a conventional sense? Does it decay, have a half-life? Or does it bear no resemblance to other elements? Is it even supposed to be an element or is it a compound? Does it melt? Of course, I am asking based on what has been disclosed in comics/novels/movies. It does not seem to me that any substance would affect a human as rapidly as kryptonite does, maybe some gas like fluorine would but not merely being in the presence of solid form of any element. I think a human could even hold Pu or radium for minutes or longer without noticing a problem.

According to the official sources, is the radioactive green crystal that serves as Superman's Achilles' heel actually composed of the noble gas krypton, or is it supposed to be made out of some other substance? If so, what is that substance?