I'm using debian to do most of my coding work, and I was doing a homework project that required a certain version of gcc to compile the program I was working on.  I downloaded the gcc source and compiled/installed it, but forgot to change any options, so I think it installed it to the default location, which in my case was /usr/local/bin/gcc. I wasn't really planning ahead when I did this, and when I realized I was done with the version of gcc for my homework, I didn't know how to remove it. Upon googling, I realized that this wasn't really possible, unless I used checkinstall which I didnt. Now however, because /usr/local/bin is ahead in my path, it uses my newer version of gcc to compile by default which causes problems when I try to use gdb to debug those versions of applications. I'm also worried that this will cause unwanted behavior in other applications that can screw things up.  Note: I can't just reorganize my path, because there are applications in /usr/local/bin that I want that override ones in /usr/bin  So my question is this: How do you manage self-compiled applications with packaged ones from repositories? What I mean is, what is the correct way of going about this, so that they don't conflict and one can safely be removed without screwing anything up? In terms of mixing them, how would I do something like using a self-compiled version of an application as a dependency for a packaged version? I don't think debian will automatically recognize that if I install gdb or something, that my local version of gcc will meet the criteria.  Also as a side-note: Where the heck do you install compiled applications? /usr/local/bin? /opt? /home/user/bin? /own_directory?  My apologizes if I wrote this badly or anything, I can clarify more if needed.

When I install a simple program it often uses make && make install and doesn't often even have an uninstall target.  If I wish to upgrade a program, is it standard protocol to assume it just rewrites seamlessly over the old program?  How do I keep track of these programs; do most people just 'fire and forget' and if no uninstall target is given do I have to manually delete everything?


Let $X_1$ and $X_2$ be two i.i.d. continuous random variables which have probability density function $$f(x) = \frac{1}{\pi}\frac{1}{1+x^2}.$$ Now I want to calculate the density of $X_1 + X_2$. $$ f_{X_1+X_2}(z)  = \int_{-\infty}^{\infty} f_{X_1}(x_1)f_{X_2}(z-x_1)dx_1  = \int_{-\infty}^{\infty} \frac{1}{\pi} \frac{1}{1+x_1^2}                            \frac{1}{\pi} \frac{1}{1+(z-x_1)^2} dx_1   $$ Is there any efficient way to calculate this integral?

Is there any method to show that the sum of two independent Cauchy random variables is Cauchy? I know that it can be derived using Characteristic Functions, but the point is, I have not yet learnt Characteristic Functions. I do not know anything about Complex Analysis, Residue Theorem, etc.   I would want to prove the statement only using Real Calculus. Feel free to use Double Integrals if you please.   On searching, I found . However, I was wondering if I could get some help directly on the convolution formula:  $$f_Z(z)=\int_{-\infty}^\infty f_X(x)f_Y(z-x)\,dx=\int_{-\infty}^\infty\frac{1}{\pi^2}.\frac{1}{1+x^2}.\frac{1}{1+(z-x)^2}dx\tag{1}$$  Here I have supposed that $X,Y$ are Independent Standard Cauchy. But I think the general formula can be derived easily after some substitutions. I need some help on how to proceed from $(1)$.  EDIT: Just as what the hint in the hyperlink said, I got the answer using that hint. However, I am not quite sure that the hint is algebraically correct. Maybe there has been some typing mistake in the book.


When using logistic regression how critical is to have balanced treatment groups. I have a binary response variable (pregnant and non-pregnant) from two treatments at n=40 and n=14? How does the need for balance compares to OLS analysis? Is there any published information on the subject?

I'm working on a project using logistic regression to predict student retention. The data were collected through three self-report instruments. We are trying to find out which predictors are powerful enough to predict the at-risk students. I came across some articles saying a balanced sample (50% stay, 50% dropouts) is desirable for such study, e.g. Glynn, J.G., Sauer, P.L., & Miller, T.E. (2003). , NASPA Journal, 41 (1), 41-67:     A problem however, is that the distribution of the dependent variable is likely to be highly skewed toward persistence. For example, if 85% of the analysis sample were persistors, a classification model that classified every student as a persistor would have a success rate of 85%, or would classify 85% of student correctly. To resolve this issue, the maintenance of relative balance between the number of dropouts and the number of persistors (about 50% each) in the analysis sample was desirable.   Is this true? Our sample only has about 25%-30% dropout students. Will this affect the results?


I run a simple SQL query command though I want to know if it is possible to retrieve, in C#, the duration (the amount of time it took SQL to run the query) without having to look at the command through SQL profiler.

I am providing search functionality in my website, when user searches a record then I want to display the time the query taken to get the results same as google does. When we search anything then google displays how much time it takes to get results?  For this I have declared a @start variable in my SP and finding the difference in the end, as below;  DECLARE @start_time DATETIME  SET @start_time = GETDATE()  -- my query SELECT * FROM @search_temp_table  SELECT RTRIM(CAST(DATEDIFF(MS, @start_time, GETDATE()) AS CHAR(10))) AS 'TimeTaken'   Is there any other easy and fast way, or a single line of query with which we can find out the time a query taken to execute?  I'm using SQL Server 2005.


I have successfully set up Ubuntu 20.04 on a raspberry PI 4. It is connected to a TV via HDMI. When I have the TV on and tuned to the PI input the PI boots perfectly. However when  the TV is off or I am using another source the PI does not boot properly. I am using Teamviewer to remote to PI and it says the pI isactive but I just cannot logon. I had the same issue with another PI running raspian and that was an easy fix but I am at a loss as to what to try

I have an Ubuntu 14.04 server that has no external monitor connected.  I use NoMachine to remote control the machine.  When I do so, the Unity/Gnome interface doesn't see any monitors connected, so I can only use 800x600 when connecting with NoMachine.  If I plug in a monitor, I can set the resolution to whatever size the NoMachine window is on the remote computer.  Is there a way to create a "fake" monitor device on Ubuntu so I can set a desktop resolution in Unity/Gnome?


I'm using MikTeX 2.9 and TeXstudio 2.6.6. The path to MikTeX is correct and in "Check LaTeX installation" the process exite normally.   My problem is when I tried to "Build & View" (F1) an error message pops up with the message:  Could not start Build and View:PdfLaTeX:pdflatex.exe -synctex=1 interaction=nonstopmode   and no log file is found.  Using TeXWorks the process is done without any problems.  I like using TeXstudio, what can I do to fix this?

I just installed  and compiled the following  \documentclass{article} \begin{document} \end{document}   but I get this error  Error: Could not start the command: "/usr/texbin/pdflatex" -synctex=1 -interaction=nonstopmode "texstudio_qH5268".tex   I already installed , so why do I get this error?


I have a website build for two groups both groups are working on a different domain but this domain points to the same website en show partly the same and partly different content. Is this going to be seen as duplicate content?  My set-up:  One Drupal (CMS) Installation. I have two urls group1.com and group2.com when group1.com the end up on a homepage showing different information then going to group1.com. This is all fine. But on both sites there are articles.  group 1 has access to:   group1.com/article-001 group1.com/article-002 group1.com/article-005 group1.com/article-006 group1.com/article-007 group1.com/article-009   group 2 has access to:   group2.com/article-001 group2.com/article-002 group2.com/article-003 group2.com/article-004 group2.com/article-005 group2.com/article-007 group2.com/article-008   So article-001, article-002, article-005 and article-007 are the same, and because of the different domain I think the are seen as duplicates. How to prevent negative impact because of this?  Is this as simple as adding a canonical url saying group1.com or group2.com is the original?

This is a general, community wiki question regarding duplicate content.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on .     What does Google consider to be duplicate content? Will the way I am presenting my content result in a duplicate content penalty? How can I avoid having my site's content treated as duplicate content?


KiCad's default library footprint for C_0402 is longer than R_0402.  Why?

My PCB design software comes with some libraries that include some common components, like chip resistors and capacitors.  I have noticed, however, that the footprint land pattern for the 0805 resistor is not identical to the 0805 capacitor.  I then did some googling, and discovered multiple IPC standards that don't seem to quite agree with each other.  Is there a reason an 0805 resistor would have a different land pattern than an 0805 capacitor?  Is there a "best standard"?  IPC-7351, IPC-SM-782, or what?


I want to CREATE a table using using PDO prepared statments. The problem is that bindValue adds '' around the binded value. I don't understand why this happens. How can I avoid this so that my table name is set as users and not 'users'? Thanks.  Code:  <?php  $table = "users";  try {    $db = new PDO("mysql:host=localhost;dbname=test", "root", "");   $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    $sql = "CREATE TABLE `:table` (id INT(11) AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) NOT NULL)";   $stmt = $db->prepare($sql);   $stmt->bindValue(':table', $table);   $stmt->execute();  } catch(PDOException $e) {    echo $e->getMessage();  }  ?>   Here is the result in phpmyadmin:

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


When I try to install Python 3.8 terminal says it done but when i run python --version it say Python 3.7? (base) user@admin:~$ sudo apt-get install python3.8 Reading package lists... Done Building dependency tree        Reading state information... Done python3.8 is already the newest version (3.8.2-1ubuntu1.2). The following packages were automatically installed and are no longer required:   libllvm9 libllvm9:i386 Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.  (base) user@admin:~$ python --version Python 3.7.6

The python program command executes Python 2. Python 3 can be executed using the python3 command.  How can Python 3 be executed using the python command?


Let $\mathbb{R}_+$ denote the set of positive reals. Let $\mathbb{R}_+^{\mathbb{R}_+}$  denote the set of all functions $f:\mathbb{R}_+\to \mathbb{R}_+$. For $f,g: \mathbb{R}_+\to \mathbb{R}_+$ we say $f\leq^* g$ if there is $N\in\mathbb{N}$ such that $f(x)\leq g(x)$ for all $x\geq N$.  Let $A=\{ f\in\mathbb{R}_+^{\mathbb{R}_+}: \exists n\in\mathbb{N}: f(x) = x^n \text{ for all x}\in \mathbb{R}_+\}$ and let $B=\{ f\in\mathbb{R}_+^{\mathbb{R}_+}: \exists \varepsilon\in\mathbb{R}_+: f(x) = (1+\varepsilon)^x \text{ for all x}\in \mathbb{R}_+\}$.  Question. Is there $s\in\mathbb{R}_+^{\mathbb{R}_+}$ such that for all $a\in A$ and for all $b\in B$ we have $a\leq^* s\leq^* b$?  Soft question. (Just out of interest; not needed for acceptance of answer.) If "yes" to the main question above, is there a "natural" problem that is not polynomial, but solvable in "time $s$"?

What is known in contemporary mathematics about orders of growth for functions that exceed any degree polynomial, but fall short of exponential?   This is a subject for which I've found little literature in the past.  An example: $Ae^{a\sqrt x}$ clearly will outrun any finite degree polynomial, but will be outrun by $Be^{bx}$.     If we replace $x$ with $y^2$ then that example doesn't seem so deep. Are there functions that exceed polynomial growth yet fall short of $Ae^{ax^p}$ for any power $0<p<1$?     What classes of functions can we distinguish with different kinds of in-between orders of growth?   What can we know about their power series expansions, or behavior in the complex plane?   Those are examples of the kinds of questions I have, and would like to find literature on.  Have any definitions or terminology been established concerning this?  The right jargon will facilitate searching.


I want to display product categories on separated pages. Should be 6 posts of 1 category on a page, and if we have more than 6 postings in this category, - so I want to display a pagination. I googled hours, tried a lot, but nothing was working. I used the blank theme "base" from themify.  The only thing I got to work is this:  <?php global $wp_query; $result = new WP_Query('cat=5'); $args_pagi = array( 'base' => add_query_arg( 'paged', '%#%' ), 'total' => $result->max_num_pages, 'current' => max( 1, get_query_var('paged') ) );  $args = array(         'orderby'        => 'post_date',         'order'            => 'DESC',         'category'        => '5',         'post_type'        => 'post',         'post_status'        => 'publish',         'posts_per_page'    => 6,         'paged'            => $paged,     );  $myposts = new WP_Query( $args ); foreach( $myposts->posts as $post ) : setup_postdata($post); ?>

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

          <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(array( 120,120 ), array( 'class' => 'recent-thumbs' )); ?>          <?php the_excerpt(); ?>
 <?php endforeach; ?>
 <?php echo paginate_links( $args_pagi);?>
    The problem is, the output was mixed by categories, - shows 5 posts of cat.5 and 1 of cat.7, shows four products of cat.7 on page 2 and two of cat.5. (there are 8 postings of cat.5 in db)  Under  /wp-admin "Reading", the setting is 6 posts per page.  What is wrong?

I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination?  Addendum  I have modified the main loop query via . Why isn't pagination working, and how do I fix it?


I have a PC Dual Core with 4 GB ram. Which version can i install? It must be near the latest and support Windows XP. Please have a link to download. I tried with the lower version 2.75 & 2.76. I have installed with giving error and when i want to uninstall its giving error   The installer has encountered an unexpected error installing this package. this may indicate a problem with the package. The error code is 2753.  How can i proceed. Im stuck in the way.

I downloaded Blender 64 bit and the OS indicated that the program was not compatible with my computer chip. I then downloaded the 32 bit version which seemed to allow me to install. However the blender Icon in windows when pressed informs me that the program is not a window application. I have an Intel(R) Core (TM)2 Duo CPU E7300 @2.66Ghz if that is important and I am running XP. I am fairly sure I am doing something wrong here- can anyone help please?


I need to change the system date on Win 7 when the date does not match the requested date. For example:  If actual date  !=  requested date, then change the date to a specified value.  I'm looking for some kind of application, .exe program which can run in the background. Is there any idea on how to achieve this?

How can I change the local system's date & time programmatically with C#?


Pinging either of them echoes back from an ip address of 198.35.26.96. So whatever PC's these two websites are hosted on, they are connected to the internet by a common router, which is then port-forwarded to either of these PC's, right? And both of these two forwarded ports are registered with the corresponding domain names wikipedia.org and wikimedia.org, right?  But ip-address.org shows that the ip 192.35.26.96 has Wikimedia Foundation as internet service provider, and text-lb.ulsfo.wikimedia.org as ip host.  I didn't know Wikimedia Foundation would count as an ISP; I thought the ISP would be some other networking firm with a wireless tower here and there(you got the idea), who connects wikipedia with the world with a strong broadband connection. Also the IP host is a subdomain of wikimedia.org, which is equally puzzling. How could wikimedia.org be defined and registered even before the IP host had been defined and registered?  If my picture of the networking world is naive, please clarify why.

Is it possible for many domain names to share one IP address? For example, www.xjtl.com, www.fmie.com, sdmfl.com, etc.  Hundreds of domain names share just one IP – when you do a DNS query for each of them, the same IP is returned.  Are there any laws or Internet rules that disallow this?


I'm trying to setup ssh over https using apache and proxytunnel on Ubuntu 18.04, but I want the proxy server to be the same as the ssh server.  I have apache going, and from netstat and the output of ssh -vvvv, it looks like I'm successfully connecting to the apache server as after awhile it says HTTP return code: 503 Service Unavailable and netstat shows an established connection between my laptop and the server. It looks like it is getting hung up trying to connect to itself over ssh.  Line from netstat: tcp        0      1 192.168.2.195:51156     public_ip:22      SYN_SENT    24246/apache2  It gets stuck here until it eventually returns bad request. The server is behind a NAT, so that may be contributing to the issue.  I was wondering if there is an elegant way to have the server connect to localhost instead of having it connect to the router and get reforwarded back to the server  Thanks in advance, let me know if you need more info.

This is a  about Hairpin NAT (Loopback NAT).   The generic form of this question is:  We have a network with clients, a server, and a NAT Router. There is port forwarding on the router to the server so some of it's services are available externally. We have DNS pointing to the external IP. Local network clients fail to connect, but external work.   Why does this fail? How can I create a unified naming scheme (DNS names which work both locally and externally)?   This question has answeres merged from multiple other questions. They originally referenced FreeBSD, D-Link, Microtik, and other equipment. They're all trying to solve the same problem however.


i havent used it in a bit and to my understanding, if a had a class member called speed, and a parameter in a setter method called speed, if i used the keyword "this" it would be referring to the parameter, so the method should be written  public void setSpeed(float speed) {   speed = this.speed; }   however, in the documentation for it, the example shows it the other way (which i know ive seen and used several times in the past)  public void setSpeed(float speed) {   this.speed = speed;  }   so am i mixing up what the "this" keyword is actually referring to or is this just special syntax involved with using it for some reason?

I was curious about how other people use the this keyword. I tend to use it in constructors, but I may also use it throughout the class in other methods. Some examples:  In a constructor:  public Light(Vector v) {     this.dir = new Vector(v); }   Elsewhere  public void SomeMethod() {     Vector vec = new Vector();     double d = (vec * vec) - (this.radius * this.radius); }


Often times I am not interested in the question so much as I am the answer. Unfortunately, the only site option for bookmarking an optimal answer is to bookmark the question. This leaves you having to remember that no the question wasn't that great, but there's an answer in here worth a million. It'd be nice to be able to favorite an answer allowing you to jump immediately to the answer that was much more valuable than the question. I understand that I can bookmark the answers link using my browser but it seems being able to favorite the answer within the site's ecosystem is useful.

Lots of questions are very generic, "share an experience" kinds of questions. In these cases, I am quite often interested in specific answers that may not have gotten that many upvotes. These questions also tend to elicit lots of responses, so going back to find the answers I'm interested in somewhere in the middle of a sea of responses is a pain. Is there a way to favorite or bookmark these answers?


I read the answer  and learn a command   sudo apt-get install -y hardinfo    then I tried to find the option -y in the man page  me@alpha:~$ man apt-get | grep '-y' Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. me@alpha:~$ man apt | grep '-y' Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. me@alpha:~$ man install | grep '-y' Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. me@alpha:~$ man 'apt install' No manual entry for apt install   How could I get a manual about options to apt install?

The man command brings up a nice manual for many programs, but how can I use it more effectively? For example man gcc brings:  NAME        gcc - GNU project C and C++ compiler  SYNOPSIS        gcc [-c|-S|-E] [-std=standard]            [-g] [-pg] [-Olevel]            [-Wwarn...] [-Wpedantic]            [-Idir...] [-Ldir...]            [-Dmacro[=defn]...] [-Umacro]            [-foption...] [-mmachine-option...]            [-o outfile] [@file] infile...         Only the most useful options are listed here; see below for the        remainder.  g++ accepts mostly the same options as gcc. .... many text   But what if I need only some part of it? What is the best way to jump to the section where -Idir is described, for example?


My characters skin looks Caustic in Cycles and the Shirt Texture is missing. Cycles Render  EEVEE render

Since the Denoise feature was added to Blender I only use the default setting with it and it really does the work. But sometimes the denoise is noticable on some of my renders. How can I overcome the blurred effect? Denoising for me is a big help because my system is quite aged.


We're looking to install some temperature/humidity monitoring in an existing facility. Installing new cabling would be very expensive because of the nature of the plant. Using the existing cat-5e structured cabling would cost nothing. The product of interest  is the Teracom TCW210-TH plus TSH300 Modbus modules, if anyone is interested.  I have a few questions concerning the viability of running Modbus (RS485) over a cat-5e UTP cable plant. I'm unfamiliar with these technologies. With Google I've found somewhat contradictory statements like "not guaranteed above 30m but known to work over much greater distances", and elsewhere references to ~200m being where Modbus over cat5e becomes flaky. Anyone have experience on this front?  Firstly, is it likely to work reliably with a total bus length of around 120 meters? I'm aware that Cat-5e characteristic impedance is 100 ohms, whereas RS485 is spec'ed for 120ohm STP cable.   Secondly, does RS485 reject interference between twisted pairs in a single cable, in much the same way that BaseT Ethernet does?  In which case, could I construct the ModBus daisy-chain using "Y" adapters plugged in to a single wall socket, with the signal coming in on one pair and going out on another? (And similarly in the wiring cabinet). You can certainly run two 10BaseT or even 100BaseT Ethernet links down a single cat5e cable in this way.  The alternative  would be to use an Ethernet connection into each room in the facility and ModBus purely for linking modules within that room. The drawback  is that the data would then be spread out over several Ethernet devices, rather than all conveniently aggregated in one place. The TCW-210 appears to do almost everything we want in its own firmware and web interface, so saving us on programming costs and time.

I have a serial comms project coming up.  A number of boards with RS-485 interfaces need to communicate.  Date rate is 57600bps and cable length will be less than a few hundred feet.  Will shielded CAT5 cable work well enough in this situation or should I pay the extra for "true" RS-485 cable such as ?    I cannot easily visit the install site ahead of time as it's interstate.  I do have the same boards here in the lab I can test with however.


Given $A,B\in K^{n\times n}$ with $AB=0$. I am trying to prove that $rg(A)+rg(B)\leq n$.\ My attempt: Since $AB=0 \implies \dim(\ker(AB))=n$. Using dimension formula to calculate dimension of images: $$\dim(\text{im}(A))+\dim(\ker(A)) = \dim(K^n) = n\\ \dim(\text{im}(B))+\dim(\ker(B)) = \dim(K^n) = n\\ \implies \dim(\text{im}(A))+\dim(\text{im}(B) = 2n-(\dim(\ker(A)+\dim(\ker(B))$$ If I could prove that $$\ker(AB) = \ker(B) \cup (\ker(A)\cap\text{im}(B)) = \ker(A) \cup \ker(B)$$ then I get a lower bound of n for the sum of the dimension of the individual kernels: $$\dim(\ker(AB)) = n = \dim(\ker(A)) + \dim(\ker(B)) - \dim(\ker(A) \cap \ker(B))\\ \implies n\leq \dim(\ker(A)) + \dim(\ker(B))$$ Which leads to the desired inequality, since $rg(A) = \dim(\text{im}(A))$ (same for $B$). I am having trouble proving the upper assumption and don't even know if it is true. Any advice would be appreciated.

Let $A,B\in M_n(\mathbb{R})$ such that $AB=0$. Prove that   $$\mathrm{rank}(A)+\mathrm{rank}(B)\leq n.$$   From the given information, I only know that $\mathrm{rank}(AB)=0$.


I'm about to visit Canada in 10 days from USA and planning to stay there for about 5 months. I have a multiple entry tourist visa which is valid for 5 years.  Do I still need to provide proof of funds when I arrive there? If yes, how much should it be for something around 5 months? And, should I provide a document for it or is that fine just to have it in my US bank accounts and just show a print of statements?  The reason I ask is that they already asked for the proof of funds when I applied for the Visa last year, but I'm not sure if they also will ask for it when I arrive there or not, and if they will ask proof for a big money as I'm planning to stay there for 5 months?

I am a Romanian citizen.  Our co-national friends who are established in Canada will provide me and another person free accommodation and food. We are both EU citizens and we will stay in Canada 1 month.  These days we are gathering documents for our online visa application and we need to prove that we have enough money to spend there.   How much money is generally required in order to be sure we are eligible? We don't plan to spend more than 1000 EUR, but I intend to bring at least 2000 CAD. Is it enough?


I am using SharePoint 2010 Picture library Slideshow webpart. But want to disable the link from opening in another window.   I have used the following code succesfully to change the image link to the page link.   in particular this line of code.  ssObj.link.href = '';  //<--put your custom picture link url here   I have a customer requirement to disable links from the slideshow. Is there a way of getting the javascript code in the link above to just go back to the top of the page in the same page? Maybe using the #top or _self ? giving the illusion of the link being redundant.

On our team site we have added a web part that is a "Picture Library Slideshow" web part. Currently clicking on the images that scroll in the slideshow directs the browser to just the image's URL. I would like to modify that to point to any other URL of my choice.   I have tried forcing a modification of the javascript that is generated by the slideshow webpart using my own script on the page. Looking at the source, the Picture Library uses a var that actually sets the links, it's called "linkArray":  var pictureArray = ['http://intranet/HomePicture/_w/image1.jpg','http://intranet/HomePicture/_w/image2.jpg']; var linkArray = ['http://intranet/HomePicture/image1.jpg','http://intranet/HomePicture/image2.jpg']; var titleArray = ['','']; var descriptionArray = ['','']; var heightArray = [268,268]; var widthArray = [383,383];   Using my own script I tried to clear out the array and insert my own links into it, but for some reason the links only update (i.e. my script's function runs) after the first image changes. Even if I manually change the first image's href tag, the script still thinks the "first" image is the second one that the slideshow scrolls to. Is there a way to force the function to overwrite the existing javascript immediately on page load?


How can I avoid vertical underfull boxes in a document which contains a lot of Here figures? My document is pretty big and I ask about general guidelines, so I did not provide a MWE.  I thought setting the spacings after and before the figures/captions etc. to be a multiple of \baselineskip should work.  By the same token setting figure height to be a multiple of \baselineskip should also help with this case. Do you agree with this?   I cannot change the float placement specifier [H] since the figures/tables must be before the text which refers to them.

Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?


At the Battle at the Ministry of Magic, Dumbledore and Voldemort's wands connect (Priori Incantatem) but as far as I'm aware, the Priori Incantatem only happens when two wands share the same core  Voldemort's wand has phoenix core and Dumbledore (the Elder wand) has a Thestral core.  Can someone explain to me why the wands connected?

During the climax of Fantastic Beasts and Where to Find Them, Tina briefly duels with Graves and their wands appear to lock with each other (see picture). I believe this also happens some other times in the later Harry Potter films other than Harry and Voldemort's duel in the graveyard during Goblet of Fire.    We know that this is definitely a case of Priori Incantatem for the graveyard duel in Goblet of Fire, as the wands are locked for a sufficient amount of time for past spells to begin showing themselves (significantly, showing the people Voldemort had murdered), but is this the case for the other instances of wands locking? If so, does that mean there are a lot more wands out there with shared cores, as it was my understanding this could only happen if that criteria was satisfied?


At the end of , Darth Vader . At the start of , Darth Vader's ship is firing lasers on the Tantive IV. So he must have been able to track it somehow to Tatooine.  In other scenes from Star Wars, Vader and the Imperial Fleet are not able to track a ship when it jumps. For example, when the Millennium Falcon jumps into hyperspace after leaving Cloud City at the end of . Or when the Millennium Falcon jumps into hyperspace to escape the Death Star in A New Hope.  To quote General Motti from A New Hope, his sorcerer's ways obviously don't give him clairvoyance enough to track down the stolen data tapes.  So did he have extra information that allowed him to find the Tantive IV? Just as  in The Empire Strikes Back.  Is there anything in the novelizations or extended universe that mentions somebody told him the Tantive IV was at Tatooine?  Edit to add:  asks about tracking ships through hyperspace in general. My question is whether Vader had specific knowledge about the destination of the Tantive IV. I'm assuming that ships can not be tracked after they jump, otherwise the Imperial Fleet would have found the rebel base before Episode 4.

In Rogue One,       Vader arrives at the battle and witnesses the escape of the Tantive IV into hyperspace.   At the beginning of A New Hope, we see Vader's ship chasing the Tantive IV, eventually overpowering it. How was Vader able to find the Tantive IV? Presumably through some method of tracking the ship through hyperspace, but this raises more questions:   If ships can be tracked through hyperspace, why do the Imperials need to place a tracking device on the Falcon? Why aren't Rebels chased through hyperspace more often? (E.g. after successfully destroying both Death Stars, or after practically any engagement in the SW:Rebels show) Does Vader himself use unconventional means to locate the Tantive IV?   So my question is thus: Can ships be tracked and chased through hyperspace without the use of a planted tracker or Force shenanigans?


This equation  $$3^x+4^x=2^x+5^x$$ has two obvious real roots. The question is if it has more real roots than two. A proof is required in any case.

Solve the equation $2^x + 5^x = 3^x + 4^x$. I can figure out two special solutions $x=0$ and $x=1$, and I try to prove that they are the only two solutions. However, I find it hard to do so because I can't prove the monotony given there are also exponential in the derivative. Any hints to that?


I need to calculate the grid coordinates for a point on an arc using the distance traveled along it.  I'm given the endpoints, radius, center, clockwise direction, and distance.  How can I calculate the coordinates for the new point marked by the distance traveled?  If I had the angle of the arc point relative the the positive x axis, I could simple use the Radius, Cos(angle), and Sin(angle) to figure out the coordinate. But in this case it isn't given. I think I need to figure out x-axis angle for each endpoint by subtracting the center from each endpoint and then dividing by the radius. This then could be used with inverse tangent to find the angle for each endpoint. But how do I find the coordinates for the point traveling along the arc?

Given an arbitrary arc, where you know the following values: end point (x1,y1), radius (r) and arc direction (e.g. clockwise or counterclockwise from start to end), how can I calculate the other endpoint of the arc (and I say endpoint because I think of an arc as line segment that is curved, which happens to lie on the circumference of the circle and it has two end points).   Though that's just how I interpret the problem and maybe I'm not thinking about it correctly.  EDIT: Yes, I know the Origin point and the length of the arc. Sorry I forgot to mention. Also, the that circle would be on a 2D Cartesian plain (x and y axis.) Sorry, my math terminology is lacking.   Also, I'm not trying to cheat on homework or anything. This is a legitimate problem for an SVG graph I'm trying to create using JavaScript and I've tried my best but I need help.  Thanks in advance.


Ok so im trying to get his specific command to work:  /give @p minecraft:sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"tp @p 500 12 0\"}}",Text2:"{\"text\":\"Click Here\",\"underlined\":true,\"color\":\"yellow\"}",Text3:"{\"text\":\"For Help\",\"underlined\":true,\"color\":\"yellow\"}"},display:{Name:"Help Sign"}}  And i'm not sure how to get it to work correctly, since i used a generator to get this command.... (I'm not at all experienced in commands like this) So if you have a tried and true method to convert it, please tell me.

I have put the following command into a command block, but it keeps saying invalid command syntax: give @p spawn_egg 1 17 {display:{Name:"help!}}  What do I need to do to fix this?


I'm trying to modify the work of a predecessor to improve our workflow. He used a shortcut to a *.bat file and *.exe to configure then start our heavily controlled engineering software. This works great for starting the program, but it means that we can't set the software as the default program to open the file type. This means we always have to open files through the engineering software's GUI, which is lacking in sorting and searching capabilities (critical in folders with thousands of engineering parts).  So currently, the shortcut goes to: %Sharedrive1%\bin\licenseconfig.bat engrCAD.exe  I figured maybe starting engrCAD.exe from the .bat would allow me to use the .bat as a default editor by creating a .bat ConfigNLaunchEngrCAD.bat which has the contents of the original .bat plus start "" engrCAD.exe to the end of the .bat file. This worked in opening the program straight from the .bat, but still goes nowhere when I try to open a file in engrCAD through ConfigNLaunchEngrCAD.bat.  I think what I need to do is make the batch script able to take the file name as a parameter and pass it to the CAD software.  But I can't find how to implement that.  Is it a parameter I can add to the start command to accept the file name and directory selected? Or am I supposed to use a different command all together to accomplish this?  Much obliged, friends.  EDIT  I'm having trouble seeing the similarity with the other question.  I'm looking for a way to run an exe after a .bat configuration through windows that will allow it to be set as a default program for a specific file type.  The other post has similarities in the keywords "pass parameters" but little else in common.  If I am wrong, I'm sorry, but I may need a little more help to see how the other solution is applicable to this situation.  This  is more similar, but instead of inputing the file name in cmd prompt, I want it to be able to get the file path from me opening the file in windows with the .bat as the default program.

I need to create a batch file as per below requirements  1) pass path1 & path2 while running the batch file  exl: testrun.bat E:\ERP\test1.txt E:\ERP\header.txt  2) Need to store these command line paths values in batch file  exl: var1=E:\ERP\test1.txt var2=E:\ERP\header.txt  3) zip the path1 using PKZIPW.exe or 7z.exe and create new o/p zip file  exl: 7z.exe u -tzip E:\Erp\Test1.zip var1  4) copy path2 in newly created o/p file  exl: copy /b var2+test1.zip E:\Erp\Final_output.zip


I have a HP dV7t-7000 laptop with windows 8. I added a second HDD which gets detected in the BIOS, but not in windows 8. Both drives are 1TB in size.

Recently purchased a new Windows 8 PC.  It came with one hard drive.  I want to a second hard drive to it.  This second hard drive is my data hard drive from my previous computer.  However, I have run into issues when the system accesses it.  The drive is found in the BIOS. But is not seen by Explorer or Disk Management.  I have added the drive to the next available SATA slot:  SATA 2.  The machine is a UEFI/ACHI based machine.  In my reading I have found people documenting the following:  1) adding multiple partitioned hard drives (like mine is) to UEFI based machines is not  possible 2) I have seen it suggested that you can only add blank hard drives to UEFI based machines.  However, in doing so, I did not have success.  I tried to add it as a hard drive with unallocated space and then as a hard drive with a single simple partition.  Both attempts failed.  My ultimate question:  What is the proper procedure for adding a second hard drive to a UEFI/ACHI machine?  I do not want to reinstall the OS and start from scratch as I have seen suggested elsewhere.  There has to be a way to accomplish this without all that hassle.  Thanks in advance for your help.


I'm quite new to C++ programming and it seams that I have fundamental problems in understanding how the compiling and linking works. Here is my Minimum example: I have thre files a.hpp, a.cpp and b.cpp.  a.hpp:  namespace A {    template<typename T>    double helpA(T t1,T t2); }   a.cpp:  #include "a.hpp" namespace A {    template<typename T>    double helpA(T t1, T t2){       return(t1 +t2);    } }   b.cpp (main)                                                                          #include <iostream> #include "a.hpp"   int main (int argc, char *argv[]){          double t = A::helpA(1.0,2.3);         std::cout << t << "\n";  }   When I now try to compile the Thing by calling  g++ b.cpp a.cpp   I get the following error:  b.cpp:(.text+0x24): undefined reference to `double A::helpA<double>(double, double)'  collect2: error: ld returned 1 exit status   Every help is appriciated

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


How can I get a color of a specific point on screen with Apple Script?  I would give the point in pixels such as {120,400}. Should I use an external app and "tell" it to find color value of some point or does Apple scripts come with this functionality? It would be the best for my needs not to launch another app.

My AppleScript app needs to get color of pixel in coordinates 123, 456 in screen.


What are current expressions/phrases for a date or point in time in the future that does not exist, meaning "never"? In German, we have "St. Nimmerleinstag" (meaning "the day of saint never"), what would be comparable English expressions?

In Persian, we say "When the  blooms" when we want to  express that an event:   Never happens. (This is only the opinion of the speaker so it's not a fact) It's very unlikely to happen. It's going to take so long to actually happen. (It's so long that you'd be better off giving up expecting it)  3.1. We also use it when someone is always postponing something they have to do so you never actually see it happen.   For example:      Kyle: When are you going to pay my money back?      Cartman: When the  blooms.   Now I don't know if I got the plant's name right because there are some other versions like:        In any event, they have mentioned this plant in the idiom because apparently some versions of it actually never bloom. Others believe it's because farmers harvest them before they get the chance to bloom (e.g to make music instruments), so it never happens. I'd love to know the equivalent idioms or expressions for this.  PS: I only know "When pigs fly" but I'm not a fan of it because the word pig sounds a bit rude to me and partly because it implies a strong impossibility which doesn't work for the #3 use.


I find it distracting, so I decided to try get rid of it by doing 20 reviews, but it kept coming back. It should be enough that review is visible on every page right?    It says there are 6 reviews pending in the image above.

Now that I've reached 2k on Stack Overflow, I get access to the "Suggested Edits" review queue.  Although I only have 20 edits per day, the "suggested edit awaiting" icon in the top bar is always there and it bothers me a lot!  My suggestion is to apply one of three solutions:   Remove the suggested edits icon when we reach the maximum (50) edits Remove the Highlight (orange) on the suggested edits Remove the suggested edits part when we click on it   What do you think?


For function $f:\mathbb{R}\rightarrow\mathbb{R}$ that satisfies $f\left(x+y\right)=f\left(x\right)f\left(y\right)$ and is not the zero-function I can prove that $f\left(1\right)>0$ and $f\left(x\right)=f\left(1\right)^{x}$ for each $x\in\mathbb{Q}$. Is there a way to prove that for $x\in\mathbb{R}$?  This question has been marked to be a duplicate of the question whether $f(xy)=f(x)f(y)$ leads to $f(x)=x^p$ for some $p$. I disagree on that. Both questions are answered by means of construction of a function $g$ that suffices $g(x+y)=g(x)+g(y)$. In this question: $g(x)=\log f(x)$ and in the other $g(x)=\log f(e^x)$. So the answers are alike, but both questions definitely have another startpoint.

Let  $f(xy) =f(x)f(y)$ for all $x,y\geq 0$. Show that $f(x) = x^p$ for some $p$.    I am not very experienced with proof. If we let $g(x)=\log (f(x))$ then this is the same as  $g(xy) = g(x) + g(y)$   I looked up the hint and it says let $g(x) = \log f(a^x) $   The wikipedia page for functional equations only states the form of the solutions without proof.  Attempt  Using the hint (which was like pulling a rabbit out of the hat)  Restricting the codomain $f:(0,+\infty)\rightarrow (0,+\infty)$ so that we can define the real function $g(x) =  \log f(a^x)$ and we have $$g(x+y) = g(x)+ g(y)$$   i.e $g(x) = xg(1)$ as $g(x)$ is continuous (assuming $f$ is).  Letting $\log_a f(a) = p$ we get $f(a^x) =a^p $. I do not have a rigorous argument but I think I can conclude that $f(x) = x^p$ (please fill any holes or unspecified assumptions) Different solutions are invited


I want to check whether  $\lim_{n\rightarrow\infty} (\frac{1}{n+a} + \frac{1}{n+2a} + \cdots + \frac{1}{n+na}) $  converges or not. (a is a positive constant number.) If it converges, how to find the value it converges? And if not, why?

Problem :   Let $a$ be a positive number. Then $$\lim_{n \to \infty}\left[\frac{1}{a+n}+\frac{1}{2a+n}+\cdots +\frac{1}{na+n}\right]$$  Please suggest how to proceed in such limit problems, will be of great help thanks.


I'm aware of (multitudinous)  concerning this, but I still feel tentative for the following example. I also referenced . Predicated on these, I'd guess that        "there are happiness and joy" is correct,   and "there is happiness and joy" is wrong.      Here, there is (I know why it's NOT there are here) a compound subject containing two nouns, thus the verb must be conjugated for a plural subject.  Yet  contradicts this significantly? Why? I fear that I  misconstrued something?

It seems I put a   Bounty assigned by outside party, two lengthy, reference-citing answers, one "-1" (awarded the bounty), one "-2", two others scored "0" and "-2" respectively, the answers suggesting one or the other is correct, 73 comments and no consensus so far - and me, as the asker, lost without a clue what to think of the answers anymore -  this is no longer "Learners' Level" question, so I thought I'd bring it here and hear what the experts have to say.    Original question:  Plurality of verb depending on plurality of list elements  An edit was suggested to my sentence.     There was were an orange, some grapes, two apples and a small pile of cherries on the plate.   In my native language plurality of the verb always follows plurality of the first element on the list. There were an orange,... sounds awkward to me, no matter what follows up. My simple solution was reordering:     There were some grapes, an orange, two apples and a small pile of cherries on the plate.   But that's not the first time I faced this situation and I'd like to know what the rules of grammar say about that - was my editor overzealous or am I trying to copy rules of my language that don't apply in English?    Someone linked a  for negatives, where the situation is more clear-cut ("There is no..."). Same applies to connection with "or" apparently, per accepted answer there. Still, nothing for "and".  It seems there is a consensus that in that if the verb goes after the list, it will be plural.     an orange, some grapes, two apples and a small pile of cherries were on the plate.   There doesn't seem to be clear consensus for:     On the plate { was | were } an orange, some grapes, two apples and a small pile of cherries   Adding more to the confusion is the abbreviated form: "There's"     One last note. In North America, at least, there is a widespread use of using a singular form like "there is" and "there was", without regard for the subject item or items, and this "there is" is often shortened to "there's":           There's three apples on the table!      Could you please clarify this mess?


I have created a file "~/.aliases" file with the content:  # git stuff alias ga="git add" alias gaa="git add ."   in "~/.bashrc" at the top I have this code.   # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples  . ~/.aliases   I thought this should work but when I run, for example, gaa in the command line, I get an error.   No command 'gaa' found, did you mean:  Command 'gav' from package 'gav' (universe)  Command 'gap' from package 'gap-core' (universe)  Command 'gpa' from package 'gpa' (universe)  Command 'aa' from package 'astronomical-almanac' (universe)  Command 'gac' from package 'gap-dev' (universe)  Command 'gak' from package 'gui-apt-key' (universe) gaa: command not found

If you create an alias for example:   alias cls="clear"   It exists untill you kill terminall session. When you start a new terminal window the alias doesn't exist any more. How to create "permanent" alias, one that exists in every terminal session?


I have a ListView that fills from existing database, when user clicked on each item, one of the other columns, should be displayed on second Activity (Like dictionary App)   But I can't execute any queries on second activity.  I'm using SqliteAssetHelper library.  Database class:  public class MyDatabase extends SQLiteAssetHelper {  private static final String DATABASE_NAME    = "database.db"; private static final int    DATABASE_VERSION = 1;   public MyDatabase(Context context) {     super(context, DATABASE_NAME, null, DATABASE_VERSION); }  }   On the first activity, listView filled from the database:   private void fillFromDb() {     G.itemLists.clear();     Cursor cursor = mydb.rawQuery("select * from test order by title limit 0,50 ", null);     while (cursor.moveToNext()) {         StructNote test1 = new StructNote();         test1.title = cursor.getString(cursor.getColumnIndex("title"));         G.itemLists.add(test1);     }     cursor.close();     mydb.close();     adapter.notifyDataSetChanged();     }   but the problem is in the second activity; I can't execute any queries!  public class ActivityResult extends Activity {  private MyDatabase    MyDataBase; public SQLiteDatabase mydb;   @Override protected void onResume() {     G.currentActivity = this;     super.onResume(); }   @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.result);      Cursor cursor = mydb.rawQuery("SELECT * FROM test ", null);     while (cursor.moveToNext()) {         try {             Log.i("LOG", cursor.getString(cursor.getColumnIndex("title")));         }         catch (Exception e) {}     }     cursor.close();     mydb.close();  }   }   logcat: NullPointerException  Many thanks...  My question was not duplicate! Other answers that I found about NullPointerException were not fully addressing my question :)   Because my problem and solution was only in use of SqliteAssetHelper library, that I couldn't find anything about it ;)

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 new to c# but quite familiar with c, this error however doesn't make much sense to me, as I have specifically followed the required syntax shown on   using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;  namespace WindowsFormsApplication1 { public partial class Form1 : Form {     int years = 1;     while (years <=10) {      public Form1()     {         InitializeComponent();     }      private void numericUpDown1_ValueChanged(object sender, EventArgs e)     {         int value = Convert.ToInt32(bushels1.Text);         numericUpDown1.Maximum = value;     }      private void bushels1_Click(object sender, EventArgs e)     {      }      private void nextYear_Click(object sender, EventArgs e)     {      }     }    } }

I am not sure what the problem is but I keep receiving this error when I try to use a while statement in my code.     Invalid token 'while' in class,   struct, or interface member   declaration   I want to use a while loop to have something continuously update while a statement is true.  The rest of my code is rather long but whenever I type in the syntax:  while(a<b) { //do whatever i want it to do here }   It gives me that compiler error right off the bat. Not quite sure what the problem is. I am doing this in a C# windows application under the Form1.cs file with all the other event handlers (for buttons and such).  Thanks!    I was unaware that loops had to be placed within a method (fairly new to c#), but I tried it and no errors were returned. Thanks for your help everybody!  Previously, I just had the loop within the main class of the program.


I have a problem in beamer (warsaw) each time I create a new section and compile it a slide containing the table of contents is created before it; That slide contains the table of contents with the other sections invisible but this section is visible. How to remove the slide that appears containing the table of contents before each new frame created in beamer ?

I use the LaTeX Beamer style for presentations and get a table of contents (toc) after the title page, as well as at the start of each section (where the contents of the current section are highlighted).  How can I remove all those extra tocs at the start of each section?


Ive had an ebike for several months, putting 250 miles on it. I've inflated the tires once since receiving the bike...100 miles ago.  Today, a couple hours after a ride I heard a loud BANG, went to investigate, and found my bike on the ground and the front tire's tube exploded.   What happened?  The bike was in the sun, but the temp was only 72 degrees at the time.

Been running a set of quite nice slicks at 120-140 PSI for a couple of months. Might have done 400-600 km on the bike in that time. Tonight the rear tire exploded while the bike was sitting in my entryway. It's split right along the seam, with a roughly 2 inch long gap. Very loud bang etc.  Before I go out and buy another $70 tire, I want to get an idea of what caused this. Some possibilities that I've thought of include:   Running the tire at 140 PSI. The tire is rated to that pressure, but maybe this is still too much? Some brief stretches of gravel road (1-2km) I did on it last weekend. The bike seemed fine then however. There is a central heating/cooling vent directly adjacent to where the bike is stored. Perhaps the changes in temperature were enough to damage the tire? The roads in this area are not always very good. Maybe this is just the result of accumulated damage from dozens of minor nicks and bumps? The tire could be defective.    Edit: added a picture. Looks like the tube has a ~1cm hole in it.


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?


My hard drive has four partitions.    Windows 80gb  Ubuntu Linux 70gb  Storage 530gb  Recovery 14gb   I used Gparted (booted Linux from pen drive) to remove 30 GB from storage and subsequently re-allot it to Ubuntu Linux (Yes that's 100 for Linux, a lot, I know. Just don't worry about it lol. I'm new.) That finally finished and my partitions show up as their respective new sizes, however, the properties of my "storage" partition still show it holding the extra 30gb.   The partition is 500gb but the filesystem properties still says 530gb like before, how do I fix this?

I had resized my root partition from 30gb to 70gb using gparted. But Ubuntu still shows that I have the same old disk size while gparted shows that I acually have 70gb and that the other 40gb is somehow used. How can I fix this?  Output of 'df -h':  Filesystem      Size  Used Avail Use% Mounted on /dev/sda5        30G   16G   13G  55% / none            4.0K     0  4.0K   0% /sys/fs/cgroup udev            1.9G  8.0K  1.9G   1% /dev tmpfs           391M  884K  390M   1% /run none            5.0M     0  5.0M   0% /run/lock none            2.0G  284K  2.0G   1% /run/shm none            100M   48K  100M   1% /run/user /dev/sda6       341G  115G  227G  34% /media/Data /dev/sdb1       932G  459G  474G  50% /media/sidharth/passport   Output of mount:  /dev/sda5 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/cgroup type tmpfs (rw) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev) none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755) /dev/sda6 on /media/Data type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfsd-fuse on /run/user/sidharth/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=sidharth) /dev/sdb1 on /media/sidharth/passport type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


I'm trying to set my local computer (which has Linux Mint 13 Maya) so that I can chmod & chown  any file with my regular max user account.  Following this page,    I've done the following:  #edit the /etc/sudoers file via `visudo`  sudo visudo  #in the file, added these lines: Cmnd_Alias NOPASS_CMNDS = /bin/chmod, /bin/chown max ALL=(ALL) NOPASSWD: NOPASS_CMNDS   Then saved. (I got the locations for chmod and chown using which)  So, my visudo file now looks like this:  # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults        env_reset Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"  # Host alias specification  # User alias specification  # Cmnd alias specification  # User privilege specification root    ALL=(ALL:ALL) ALL  Cmnd_Alias NOPASS_CMNDS = /bin/chmod, /bin/chown max ALL=(ALL) NOPASSWD: NOPASS_CMNDS  # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL  # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL  # See sudoers(5) for more information on "#include" directives:  #includedir /etc/sudoers.d   This is the output from sudo -l  $ sudo -l Matching 'Defaults' entries for max on this host:     env_reset, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin  User max may run the following commands on this host:     (ALL) NOPASSWD: /bin/chmod, /bin/chown     (ALL : ALL) ALL   I then open a new shell tab and try to sudo chmod a file which is owned by a different user & group, and it asks me for a password:  $ ls -l  tmp/0000000001 -rw------- 1 www-data www-data 19245781 Sep 10 16:59 tmp/0000000001  $ sudo chmod +w tmp/0000000001 [sudo] password for max:   Am I missing something here?  I don't know if I've done it wrong or have misunderstood what I was actually trying to change.  Do I need to reboot, or reload/restart something to see the change?

I need to run something as sudo without a password, so I used visudo and added this to my sudoers file:  MYUSERNAME ALL = NOPASSWD: /path/to/my/program   Then I tried it out:  $ sudo /path/to/my/program [sudo] password for MYUSERNAME:    Why does it ask for a password? How can I run/use commands as root with a non-root user, without asking for a password?


In a scientific article, should I write "3m", "3 m", "3 meters", or "3 [meters]"?

I remember reading somewhere that if a unit is abbreviated as one character, there must not be a space between the number and the unit (e.g., 5m, 26K). If the unit is abbreviated as two or more Characters, there must be a space between the number and the unit (e.g., "10 km", "USD 5").   Can you please help me find the source again? Is this recommendation correct?


On installing Ubuntu 18.04 one of the first things I do is install gnome-tweaks and change these settings:   Appearance > Themes > Applications Appearance > Background > Image Appearance > Lock Screen > Image Desktop > Home > off Desktop > Network Servers > off Keyboard & Mouse > Mouse > Acceleration Profile > Flat Workspaces > Static Workspaces   Supposing I wanted the setup of a new machine to be fully scripted. How would I make the same changes in a script? In which files are all these things stored?

I like to be able to configure things from the command line, so that when I reinstall the OS I can just run a script and get my preferred configuration back.  Since "upgrading" to Ubuntu 17.10, I found I had to use gnome-tweak-tool to get some settings the way I want them.  Once I find a setting in the gnome-tweak-tool GUI, how can I figure out its scriptable translation?  For example the following gsettings lines match the relevant entries in the gnome-tweak-tool screen shot below...  gsettings set org.gnome.desktop.wm.preferences titlebar-font "Tahoma Bold 8" gsettings set org.gnome.desktop.interface font-name "Tahoma 8" gsettings set org.gnome.desktop.interface document-font-name "Tahoma 8" gsettings set org.gnome.desktop.interface monospace-font-name "FixedSC 10"    ...but how could anyone guess that? And how would I, for example, figure out where to get the corresponding settings for hinting and antialiasing?


So I need to prove that if gcd(a,b) = 1, then gcd(a,a+b) = 1. How do I go about it? I tried going with the ax + by = 1 method but it didn't work out so well.

Let $a$ and $b$ be integers. Show that if $(a,b) = 1$ then $(a,a + b) = 1$.   I'm stuck on how to do this proof. I tried using the fact that $ax+by=1$ but that didn't seem to help.


This is a theoretical question, I haven't figured a straight well explained answer yet, about object oriented design. Let's say we have a class of a Music Event, and we would like to implement a Rating class with maybe one int member(stars 1-5) and maybe one getter and one setter function. Maybe I haven't thought some bigger picture yet?  If we want our Music Event class to have ratings (just one not an array), why is it better -if it is- to inherit from the Rating class, and not to add a Rating class member inside the Music event class?  in coding:  //why is this better... class MusicEvent:public Rating {   string name;   string duration;   //and other stuff here }   //...than this  class MusicEvent {   string name;   string duration;   Rating rating;  //and other stuff here }

Why prefer composition over inheritance?  What trade-offs are there for each approach?  When should you choose inheritance over composition?


The hottest stars have surface temperatures in the range of 40,000K.  Wolfram Alpha says that  should radiate almost no energy in the visible spectrum.  Why then do such stars appear blue?  I know the composition of elements in a star can affect its color via absorption lines, but I don't see how that would affect actual radiated light.  And it doesn't seem that even these large stars are large or fast enough to red-shift their output by such a large amount.  Why aren't these stars invisible?  As we don't seem to observe it, is there a reason that it is not possible for a star that is hot enough to radiate mostly in ultra-violet?

For an object to create different EM waves, it needs to increase the temperature, so what if we or some material could be so hot, that it would emit ultraviolet light, and thanks to that be invisible for the human eye.   I have a lot of questions about this and I would like you to answer me.   At which temperature does an object emit UV light? If an object emits UV light, we wouldn't see anything or we would see some type of violet light? Is there any material that can get to that temperature without melting? Is there any powerful insulator?   Thanks for reading this, and for breaking my dream of making someone invisible, I invite you to day-dream and imagine stupid questions.


In the book "Brownian Motion and Stochastic Calculus" by Karatzas and Shreve I encountered Problem 6.1 which the authors refer to as "not be hard to show":  Let $\{B_t, \cal{F}_t;t\geq 0\}$ be a standard, one-dimensional Brownian motion. Give an example of a random time $S$ with $P[0\leq S<\infty]=1$, such that with $W_t:=B_{S+t}-B_S$, the process $W=\{W_t, \cal{F}^W_t;t\geq 0\}$ is not a Brownian motion.  Surely, if S being a stopping time $(W_t)_t$ would still be a Brownian motion. I tried out some distributions for $S$ but none of them gave a sufficient answer.  Most likely I am missing a crucial point here and appreciate any kind of help.

Let $\{B_t,\mathcal{F}_t,t \geq 0\}$ be a standard one dimensional Brownian motion. Give an example of a random time $S$ with $P[0\leq S< \infty]=1$ such that with $W_t:=B_{S+t}-B_S$, the process $W=\{W_t, \mathcal{F}^w_t;t\geq0\}$ is not a brownian motion.  How could I go about constructing such an example. I have no idea of how to proceed. I tried to invent an almost sure finite random time using the law of large numbers for Brownian motion $T_{\epsilon}=\{\sup_{s \geq0}: B_s\geq s\epsilon\}$ but I am not sure on how to handle the object $B_{T_{\epsilon}+t}-B_{T_{\epsilon}}$.  Any help would be appreciated


The map $f:A\rightarrow B$ is injective if and only if $f$ has a left inverse. Proof (only the first implication). If $f$ is injective, then $f(a_1) = f(a_2) \implies a_1=a_2$. Assume that $f$ does not have a left inverse, then there exists no function $g:B\rightarrow A$ such that $g\circ f:A\rightarrow A$ gives the identity map on $A$ ($g\circ f(a_n)=a_n$). Now assume there is an $f(a_1)\in B = f(a_2) \in B$. Because there is no function such that $g\circ f(a_n)=a_n$, there is no mapping back to $a_1$ or $a_2$, but there must be one because $f$ is injective. QED Now, I don't think my proof is correct because it makes the assumption that there is no mapping back to $a_1$ or $a_2$.

I've already done a lot of searching (in particular: ) to try to prove this statement:      $f: A \to B$ is injective if and only if it has a left inverse. [I'm going to also assume $A$ and $B$ are nonempty.]   My attempt so far:     $\Leftarrow$ Suppose $f$ has a left inverse and $f(a_1) = f(a_2)$ for    $a_1, a_2 \in A$. Then there is a function $g: B \to A$ such that   $g\left(f(a_1)\right) = a_1$ and $g\left(f(a_2)\right) = a_2$. Since   $g$ is well-defined, it follows that $g\left(f(a_1)\right) =  g\left(f(a_2)\right)$, and hence $a_1 = a_2$.         $\Rightarrow$Now   suppose $f$ is injective. Then $f(a_1) = f(a_2) \implies a_1 = a_2$.   Furthermore, since $A$ is nonempty, there is an element $x \in A$.   Define $g: B \to A$ by  \begin{equation*} g(b) = \begin{cases}  f^{-1}(b), & b \in \text{Im}(f) \\ x, & b \in A \setminus  \text{Im}(f)\text{.} \end{cases} \end{equation*} This mapping is   well-defined, since if $f$ is injective, $f^{-1}(b)$ is unique.   My main question: does this imply that if $f: A \to B$ is injective that any mapping $g: \text{Im}(f) \to A$ is bijective? Otherwise, I don't understand why we can even use $f^{-1}$ on an element. [Please read the link above for more details - in proof 1.]


$f_{n}(x)=\{\frac{nx}{1+n^2x^2}\}$ , $0\le x\le 1$  So to find the limit function (If it called this way) we take $x_{0}$ and the limit, so we get $\lim_{n\to \infty}f_n(x)=\lim_{n\to\infty}\frac{nx_{0}}{1+n^2x_{0}^2}=\lim_{n\to \infty}\frac{\frac{nx_{0}}{n^2}}{\frac{1}{n^2}+\frac{n^2x_{0}^2}{n^2}}=\lim_{n\to \infty}\frac{\frac{x_0}{n}}{\frac{1}{n^2}+x_{0}^2}=0$  Nowe to find Uniform convergence we let there be  $\epsilon>0$ we need to find $N<n$ such that $|f_n(x)-f(x)|<\epsilon$  So we have $|\frac{nx}{1+n^2x^2}-0|=\frac{nx}{1+n^2x^2}<\frac{nx}{n^2x^2}=\frac{1}{nx}<\epsilon$  So we got $\epsilon$ that depends on $n$ and $x$ so therefore it is not uniform converges.  The book gives an example of the point $\frac{1}{n}$, what can we learn from this point, or what does this point proves?

My Approach. To prove the given statement it is sufficient to show that $$\exists \epsilon > 0, \exists x \in [0,1], \forall N \in \mathbb{N}, \exists n > N $$ $$ \Rightarrow | f_n(x) - f(x)| > \epsilon$$    Let $\epsilon = \frac{1}{10}, x = \frac{1}{n}, n =N+1$. Hence $| f_n(x) - f(x)| = \frac{1}{2} > \epsilon = \frac{1}{10}$. Hence, we have shown for every $N \in \mathbb{N}$, how to choose $n$ such that $| f_n(x) - f(x)| > \epsilon$. Thus, $f_n(x)$ does not converge uniformly on $[0,1]$.    Is there any logical flaw or wrong steps in my proof. Any help would be appreciated.


If V and W are 3-dimensional subspace of $R^5$ then prove that V and W must have a nonzero common vector.

Prove that if $V$ and $W$ are three-dimensional subspaces of $\Bbb R^{5}$, then $V$ and $W$ must have a non-zero vector in common.  So far I got $V = \{v_{1}, v_{2}, v_{3}\}$ and $W = \{ w_{1}, w_{2}, w_{3}\}$ because they are 3-dimensional subspaces. Then $V \cup W = \{v_{1}, v_{2}, v_{3}, w_{1}, w_{2}, w_{3}\}$  My prof said that now I need to prove that they are linearly independent so this is a contradiction and the statement is wrong because we are in $\Bbb R^{5}$ and we have 6 elements on it.  I don't know how to express them as a linearly independent proof, so I hope anyone can give me a good explanation on it.


I upgraded to Ubuntu 17.10 a few days ago.   Gnome-shell was eating up my memory (somewhere around 13% according to topand climbing), so I started looking for solutions online. I opened up Settings to check my gnome version, and as soon as I did, my computer ground down to a halt.  After 15 minutes of waiting for the terminal to open up, it finally did, I managed to write in top, and after about 5 minutes I saw that gnome-software had taken up over half of my available memory (56%).  In a painstaking process that took another 10 minutes I managed to write sudo kill -9 PID, and free up my computer. My relief lasted only for about a minute before my laptop slowed down to a crawl again. At that point I rebooted.  What do I do about gnome-software? How can I fix this?

I've been running Ubuntu 17.10 for a good while. Starting yesterday (April 9) the process gnome-software started using large amounts of memory. I don't know if it is related to the update that I took that day.  gnome-software grows to use up to 7G of memory (my system has 8G of RAM.)  This expands into eating up swap and root. My root usually runs at 51% of its total disk space and it went up to 96%. System ground to a halt. Had to power off. Only after some automatic disk cleaning (?) did root return to 51% usage on its own.  This happened twice yesterday and it is starting again today.  After running only 1 hour gnome-software is now using (according to system monitor) virtual mem=5.4G, Resident me=4.7G, memory=4.7G    More info:    This is continuing to happen.  The root disk space is being used in at least the file /var/log/syslog.  Over the last few hours it has grown to 4.9G in size.  I have to manually kill the gnome-software process and delete the log file to keep the computer functional.  When gnome-software starts using memory, the CPU jumps up and down  from 100% to 0%.  This can be seen in the system monitor program in the resources tab. I verified this by stopping the gnome-software process and CPU usage goes to almost nothing.  Telling the process to continue show CPU usage jumping all over again.  This CPU usage doesn't show up in "% CPU" on the process page.  Probably due to the refresh interval?    Even more info:    This is the error that repeats over and over in /var/log/syslog when this is happening. syslog was 1.7G when I caught it this time.  Apr 10 20:27:31 rwkeating-XPS-8300 gnome-software[2485]: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed Apr 10 20:27:31 rwkeating-XPS-8300 gnome-software[2485]: Ignoring unexpected response   I verified this by pausing the gnome-software process while doing a tail on syslog and then un-pausing the gnome-software process only to see the error flooding the log.  So it is caught in this loop.  Don't know what it means ... yet.


$f(x)$ is infinitely differentiable and $∃ L∈\mathbb{R}$  such that $|f^{(k)}(x)|≤L$ for any $k∈\mathbb{N}$.  I need to prove that :   If $f(1/n)=0$ then $f(x)=0$ for any $x∈\mathbb{R}$.

$$ f: \Re \longrightarrow \Re \ \in C^{\infty} \\ \exists \ L>0: \ \forall x \in \Re, \forall n\in N \\ |f^{(n)} (x)| \le L \\ f(\frac{1}{n})=0 \ \forall n\in N \\ f(x) \equiv 0  $$  Good morning,  Can you give me an help to make this proof?  This is my thought:   $\lim_{n \rightarrow +\infty } \dfrac{1}{n}=0=\theta$ $f(\theta)=0$ $f^{(n)} (\theta) =0\\f(x)=\sum_{k=0}^n \dfrac{f^{(k)}(x-\theta)^k}{k!}$  $f$ is analytic, the rest of Taylor's expansion is 0, because the derivatives are bounded, $f$ is null.   I have thought this reasoning, but I have difficulties to demonstrate part 3. Can you help me?  Is there any mistake?  Can I use an easier way to make the proof?  Thanks.


I want this to show me the most recent submitted record by ID, but I only want it for when the most recent is between these two dates.  It is not, however, allowing me to group.    select id, type, location_id, max(submitted)   from events   where type='status'    and max(submitted) between '2014-08-05' and '2014-08-22'  group by id

What is the difference between HAVING and WHERE in an SQL SELECT statement? EDIT: I have marked Steven's answer as the correct one as it contained the key bit of information on the link:  When GROUP BY is not used, HAVING behaves like a WHERE clause  The situation I had seen the WHERE in did not have GROUP BY and is where my confusion started. Of course, until you know this you can't specify it in the question.


A: Why is your baby's face so dirty?      B: "He _______ (eat) chocolate."   I know the answer is present perfect continuous (has been eating), but what about present perfect (has eaten)? Can we use it in similar situations?  I'm interested in British English in particular.

"Why is your baby's face so dirty?"   "She _______ (eat) chocolate"   I know, the answer is Present Perfect Continuous - has been eating. What about the Present Perfect - has eaten? Can't we use it in similar situations?


I have noticed both google.com and amazon.com, redirect requests to www.google.com and www.amazon.com  I am thinking of doing the same for my website which is hosted on AWS. What is the best approach to do this? I am not sure if it would be better to implement this in Load Balancer or S3? Also is there any downside to always redirecting to www sub-domain?

I want to redirect all requests from example.com to www.example.com.   Preferably, this should happen at DNS level. I tried using PTR records, but that simply fails, returning a 404.  wwww.example.com is an ALIAS for an Elastic Load Balancer.  What’s the simplest way to achieve this?


I'm new in Java and now I try lambda/stream.  How can I sort the Map by value?  I tried as follows, but it's not correct:  time = time.entrySet().stream()            .sorted(Comparator.comparing(Map.Entry::getValue))            .collect(Collectors.toMap((String)Map.Entry::getKey,                        (Long)Map.Entry::getValue, LinkedHashMap::new));   I found the following method, but don't know how to use it:  Collector<T, ?, M> toMap(Function<? super T, ? extends K> keyMapper,                            Function<? super T, ? extends U> valueMapper,                            BinaryOperator<U> mergeFunction,                            Supplier<M> mapSupplier)

I am relatively new to Java, and often find that I need to sort a Map<Key, Value> on the values.  Since the values are not unique, I find myself converting the keySet into an array, and sorting that array through array sort with a custom comparator that sorts on the value associated with the key.  Is there an easier way?


It is clear from the Lorentz Parameters, applied to Einstein's Equations, that as velocity, v approaches speed-of-light, c, the denominator (1 - [v/c]) tends to zero; when v=c, time, t=0: time stops?!  This accounts for the theory that an astronaut, travelling at almost the speed-of-light, for what he conceives to be a short time, returns to find that x-number of years have passed by, on Earth (bit of a shock).   Is this true; or, is it a quirk of mathematics; or, is it impossible to say?

Please will someone explain what time dilation really is and how it occurs? There are lots of questions and answers going into how to calculate time dilation, but none that give an intuitive feel for how it happens.


How can I scale my desktop icons in Ubuntu 18.04? With Ubuntu 16.04 I could scale my icons under the screen size tab in Settings. With Ubuntu 18.04 I cannot do that.

I just upgraded to 18.04 (with GNOME 3.28) from 16.04. I am using gnome-shell, gnome-ubuntu-desktop. After upgrading the icon size on desktop are very large.  I am unable to find my option to decrease the size in preferences. How do I decrease it?


I am trying to get the last equation in a list of aligned equations boxed, however this is more challenging than I thought it might be.  I would like to be able to do it with the box both including the equation number and without.  Below are my current simple methods for framing equations.  Any input is welcome and appreciated.  \documentclass{article}  \usepackage{amsmath} \usepackage{mdframed} \usepackage{empheq}  \begin{document}  Blah blah blah.  \begin{mdframed} \begin{align} 1+2&=3\\ 1+2+3&=6 \end{align} \end{mdframed}  Blah blah blah.  \begin{empheq}[box=\fbox]{align} 1+2&=3\\ 1+2+3&=6 \end{empheq}  \end{document}

I would like to define a command that puts a red box around an equation with yellow highlighting.  I have the basics working pretty well. What I am unable to figure out is:   How to keep the alignment of the equations on the equal sign. Be able to have the alignment character within the call to highlight box.  That is, I would really prefer to be able to say something like:  \highlightbox{g &= f}   instead of what I resorted to doing below.  Here is what I have so far:  \documentclass[11pt]{article} \usepackage{color} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts}  \newcommand{\highlightbox}[1]{%     \setlength{\fboxrule}{6pt}\fcolorbox{red}{yellow}{#1}\quad% }  \begin{document} \begin{align*}    \highlightbox{a} &\highlightbox{= b} \\                  c  &              = d \\                  e  &              = f  \\    \highlightbox{g} &\highlightbox{= f} \\ \end{align*} \end{document}


Is there a school of magic in Australia?

With the new  and the upcoming release of  film, JK Rowling has been awesome and given us new writing on the .  In the introduction it is stated that there are eleven established/registered schools. There are writings for six of them. I don't think we need a new writing for Hogwarts... so that means seven have been located and defined.   Hogwarts School of Witchcraft and Wizardry - Great Britain  - France  - Northern Europe (possibly Estonia, Latvia, or Belarus)  - Japan  - Africa (possibly Congo/DRC)  - Brazil  - United States   Do we know anything of possible location or names of the other four schools? I know Koldovstoretz was mentioned as school in Russia, but is that still canon?   Koldovstoretz - Russia (maybe depending on current canon)   The final three are my guesses based on the population and geography on the world.   Name Unknown - China (based on population) Name Unknown - India (based on population) Name Unknown - Australia (based on geography)   Related:


I think this is a "meta-analysis" situation.  I've got 3 samples (from 3 studies); I've assumed that two are from population A (treatment A) and one is from population B (treatment B). I have the sample means, standard errors & sample sizes for each sample (and that's all). I want to test if the pop A mean equals the pop B mean.   I did t-tests for samples A1 vs B1 and A2 vs B1 and got p-values of like 0.6 and 0.3 respectively. What can I say about A vs B overall? How do I get an overall p-value for the null hypothesis $\mu_A = \mu_B$?  I can compute the sample mean of A1 union A2, by taking the weighted average of the two means. It would be nice if I just had the sample variance of A1 union A2, but I don't (I'd guess it's about equal to the sum of the A1 variance and A2 variance..).  [sorry I'm sure there's a bunch of answers to this on here and elsewhere, but I'm unable to identify/understand them]

Say there are $m+n$ elements split into two groups ($m$ and $n$). The variance of the first group is $\sigma_m^2$ and the variance of the second group is $\sigma^2_n$. The elements themselves are assumed to be unknown but I know the means $\mu_m$ and $\mu_n$.  Is there a way to calculate the combined variance $\sigma^2_{(m+n)}$?   The variance doesn't have to be unbiased so denominator is $(m+n)$ and not $(m+n-1)$.


Under what circumstances the coefficients from simple linear regression of $Y$ on $X$ is equal to that of $X$ on $Y$? Will it hold when the standard deviations of $X$ and $Y$ are the same? I would very appreciate it if anyone can give me any idea of it! Thanks.

The Pearson correlation coefficient of x and y is the same, whether you compute pearson(x, y) or pearson(y, x). This suggests that doing a linear regression of y given x or x given y should be the same, but I don't think that's the case.   Can someone shed light on when the relationship is not symmetric, and how that relates to the Pearson correlation coefficient (which I always think of as summarizing the best fit line)?


I hope this isn't a stupid question. Smartphones have a HDR option, where you can take 1 shot and the smartphone then applies HDR. With a camera, you can't do (to the best of my knowledge) HDR with a single shot. You take successive shots with different EVs obtained by changing the aperture, but other than that, the shots are the same. So time, ISO and frame are untouched: a tripod is used to guarantee that all shots are aligned. The process is fairly mechanical: I only decide if I want to use 1 or 2 stop intervals, which corresponds to 3 or 5 shots.  Why can't this be done automatically by the camera itself? It requires 2 ingredients:   to be able to take multiple shots in rapid succession: most cameras can do that (Burst mode) to be able to modify the aperture automatically. All cameras can do this: exposure time, ISO and aperture are all set by the camera if one uses Auto mode.   In practice, I would set time and ISO, choose the number of shots (or equivalently the interval in stops between successive shots) and the camera would take the shots in rapid succession. It seems both convienient and easy to do. What am I missing?

When taking landscape photos, I often struggle with dynamic range. I have either a burned out skies or landscapes are too dark.  Now I'm reading  that some cameras can take 3 pictures with different exposures, and combine them automatically to one image with higher dynamic range.   So my question is, which cameras have this feature?


A person who wastes money could be called a ____. I saw this article that made me want this word, I can't believe governments are spending like 100x consumer price per unit.  Government workers are professional ______s.  I have considered "splurgers", but that seems more like throwing money around, and doesn't have strong enough connotations of being wasteful. Maybe a synonym for prodigal? It feels weird to me to use prodigal as a noun, even though it can be one. But I would definitely associate the word I want with a rich son showing off his wealth, like playboy style. Like the Batman Begins scene where Bruce Wayne rolls up to the hotel in his million-dollar car with his foreign escorts, and then buys the hotel so carelessly because he got told off that his escorts were bathing in the water fountain centrepiece. I want a word that means, this is a person who spends lots of money, without caring at all about whether they are getting appropriate value for it. They expend no effort at all in fighting for a fair price or doing market research, they are happy to let themselves get conned, they don't care at all if they're being charged thousands of times production costs, they waste money like whatever.

What is a single word for someone who spends their wealth very foolishly?  For example: A person is obligated to take care of their children but instead spends their money on unnecessary things leaving no money to provide the necessary things for their children like food and clothes.


I am doing an error propagation experiment with the CBC mode.I have encrypted a 100 byte text file with openssl. I made the 55th bytes of my encrypted file corrupted.As per theory the corresponding block of 49-64 bytes and the subsequent block of 65-80 bytes should be affected on decryption.But I am only getting the 49-63 bytes impacted in the result.Any help to let me understand this contradiction will be appreciated.

From :  Error propagation It was common to discuss the "error propagation" properties as a selection criterion for a mode of operation. It might be observed, for example, that a one-block error in the transmitted ciphertext would result in a one-block error in the reconstructed plaintext for ECB mode encryption, while in CBC mode such an error would affect two blocks.  I read  similar post before. And I can understand that in CBC decryption, only two blocks are affected due to error propagation (error in 1 block). But, for the same case in CBC encryption, why are still only two blocks affected? It looks like all the following blocks will be affected.


Had J. K. Rowling already planned all along the surprise storyline revealed in Deathly Hallows that Snape      is secretly in love of with Lily?   In my opinion this is probably true from the fifth book on, because, reading through the lines, I always thought that Dumbledore's trust toward Snape based itself on the knowledge of this secret. Is this true? Can this be extended to the other books?

If we chart out a 2 tiered timeline, the upper tier being the in-universe events and the lower tier being the period in which J. K. Rowling is writing the Harry Potter books, does the lower tier ever out-pace the upper tier?  In other words, as an example, when she wrote Harry Potter and the Philosopher's Stone did she already have the events of books 2, 3, n... sketched out in a notebook somewhere?  It is an exceptionally long series, one which became wildly popular before it was complete. I am very curious how much of it she managed to write ad hoc (stretching it on and on) and when exactly she conceived the final stages of the story.


I started my component orientation when I suddenly see those white outlines around my components. And as I zoom in, they increase in number. Even when I tried to move my components elsewhere, they stayed right where they were. What are these? What's going on?

I am using altium for first time for my little circuit project. My layout start showing these weird capacitor looking things in PCB layout. What exactly are they and what are they used for and how do I disable them to show up on layout?


Will the mana that has been added to your mana pool by 's -2 ability empty as your turn ends, or is the mana from the -2 ability added for the rest of the game?

Does mana added to your pool from  get destroyed when the card that added it is destroyed?


There are a couple of Autobiographer questions here, but I'm still curious about the point of it.  Look at the following attachment:   I can see my Real Name and Email Address.  I understand the badge is supposed to let you know what fields exist, but you can't see anyone else's real name and email.  The person on the bottom has the Autobiographer badge and I can't see that information in his profile.  Also, consider : it's pretty clear his info is a little...  let's just say he's full of poo.  So, if it can be so easily "gamed", and you can't ever see all of the fields in someone else's profile, why does this badge exist?  Is it just an incentive to fill out all the information to create a sense of community?  I'm stealing this from the Bronze badge description: "In the case of Autobiographer, the point of the badge is for users to see all the fields available on their profile and fill them up. So, even if it is getting gamed, the badge is serving its purpose of creating awareness of the existence of those fields/profile."  But, again, what good is it to be aware of fields that you can only see on your own profile?  And is that awareness really badge-worthy?  Judging by what I've seen, making them read a primer on "How to write a good question" is probably more badge-worthy.  EDIT: This is not a dupe of , because I'm asking why you need to be aware of fields that no one can see, and isn't it a better idea to create a badge for "How to ask better questions", which is more important than filling out fields no one sees.

What is the reason that Autobiographer badge is kept in Stack Exchange?  This does not show any participation and people can just fill garbage to achieve this badge.   Is there a reason behind it?


I have noticed recently in books a disparity with regards to punctuation marks around quotes.  In one example I saw a punctuation mark (in this case a full stop) was placed inside the closing quotation mark. However, I am more accustomed to seeing the punctuation mark outside the closing quotation mark.   For example: Mark said 'I go there all the time'. or 'I go there all the time.'  Which is correct? Or would both be considered to be fine?

The American convention in quotations is (typically) to place punctuation inside quoted text. But I always run into situations where the punctuation of the quote interferes with the punctuation of the sentence. How would you punctuate this (American, non technical)?     When my friends ask, "What do you want for your birthday?", I never know how to respond.   It seems odd to place the last comma outside the quote simply because of the question mark. Is that the preferred (i.e. most often accepted) standard?


I want to hide an object in the Viewport up to a certain frame in the Timeline and then make it visible (e.g. at frame 30). How can i do that?

I've been trying to create an animation where an object blinks on and off.   For example, I have a Cube and I set a keyframe on it's Restrict Visibility icon (the "eye" icon) with I, then I toggle off that "eye" so my cube doesn't show in the Viewport and again I press I to record that keyframe. Then, when I preview the animation in the Viewport, I see my cube appears and then disappears like I want, but when I render it, the cube does not disappear at all.  What am I doing wrong?


how long can I store the data on the flash drive safely, without connecting it to a computer or any other host?  Edit  I understand that flash pens are absolutely not suitable for backup and storage. My question is the issue of data recovery. That's why it's tagged accordingly.  have in mind the use of the stick from time to time. In other words, do I have a chance to find the data corrupted if I haven't used the drive for a long time?

Say you had some sensitive information that you didn't want to store on the internet, was incredibly important to you, and you didn't need to access very often either.  Think of a digital picture taken of your grandma days before her death or something... Very important stuff.  So you load the file to a flash drive, put it in a vault, and forget about it.  When should you re-visit the vault to back-up the data to a newer, futuristic flash drive or whatever they are using to store data with in the future.  What are the chances that the data will have dissappeared or the flash drive become unreadable in 5 years? 10 years? 25 years? 100 years?


There is no obviously apparent way to request that sites profile to be removed like on all the other sites.  How do I get that profile removed?

How can I delete my Stack Exchange account(s)? Also,  What happens to my content? Can I request it be deleted as well? What if I'm suspended, rate-limited, or banned from posting questions or answers? What will happen to my votes? Will other users be impacted? Why wasn't my account deleted immediately after the timer expiring? What will happen to my pending bounties and close, reopen, delete, or undelete votes? I want my account deleted on all Stack Exchange sites. How do I do this? Will my profile on chat be removed once I delete my site account?   For more information, see "" in the .


Can we say that every uncountable set $X$ is equipotent to the set of all the parts of a certain set $A$ ?

What cardinals can provably not occur as the cardinality of a power set? I know that $\mathbb N$ and natural numbers that are not powers of two are such cardinals. What else is out there?


It's a matter of principle for me as I'm struggling with it for a long time. I had this issue back on Mavericks and now on Yosemite 10.10.5.  What I'm trying to do is to set Sublime text 3 as a default text editor for all plain text files (my target were files with . and without extension, e.g .bashrc).  Here is an extract of ~/Library/Preferences/com.apple.LaunchServices.plist after I used this  advice:  {     LSHandlers =     (                 {             LSHandlerContentType = "public.plain-text";             LSHandlerRoleAll = "com.sublimetext.3";         }     ); }   In Finder when I press CommandO on e.g .gitconfig file it still opens with TextEdit.  Any help would be appreciated.

I've seen questions  which don't quite solve my problem.  I'd like to make Sublime Text 3 the default file viewer/editor for all files that currently use textedit.  Most of these files can be command+i'd, but the ones that have no extension cannot. They give all sorts of permissions errors such as the ones in this image   Is there any way to just never use textedit, and instead set sublime as the default editor for all files?


In my class, I have created a variable...  private ImageView imgLayoutImgEditPet;   In the onCreate method, I reference the variable...  imgLayoutImgEditPet = new ImageView(this);   I then add this ImageView to the layout...  layoutImgEditPet.addView(imgLayoutImgEditPet);   This should work, yet I get this error...  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.addView(android.view.View)' on a null object reference  How can I instantiate a new ImageView to my layout?

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?


What is the origin of using '-wise' as a suffix in expressions such as the following. Is it grammatically correct? Is it strongly idiomatic, or sloppy language?   'What is he doing job-wise these days?'  'Grammar-wise it is a good essay, but content-wise it is very thin.'  'When she goes up to university what will she do accommodation-wise?'  'Have you any thoughts of the best plan transport-wise?'

I found myself writing the following in a bit of technical documentation:     The Trainers' and Students' clients have very little in common, both user interface-wise and code-wise.   At first, I wondered whether I should have written user-interface-wise, user interface-wise, user interface wise or user interfacewise... or some other combination. A quick Google search  however that the "-wise" suffix actually isn't one you can or should use on any word.  What do you suggest? I guess the easiest way out is rephrasing (e.g., not only for what concerns the user interface, but also for actual methods), but I wanted to learn whether appending "-wise" to arbitrary words is incorrect, frowned upon or merely a stylistic choice.


We need to prove the following statement:     Let $A$ be an abelian group, $x_1,\dots,x_h \in A$ and let $q_1,\dots,q_h$ be prime numbers. Suppose that, for all $1 \leq i \leq h$, there exists $k_i \in \mathbb{N}$ such that $o(x_i) = q_i^{k_i}$. Then $o(x_1 + \dots + x_n) = \prod_{i = 1}^h q_i^{k_i}$.   First, since we're assuming that $q_1,\dots,q_h$ are prime numbers, we have that $\gcd(q_1^{k_1},\dots,q_h^{k_h}) = 1$. Thus $\text{lcm}(q_1^{k_1},\dots,q_h^{k_h}) = \prod_{i=1}^h q_i^{k_i}$. Obviously, we have that: \begin{equation}  \prod_{i = 1}^h q_i^{k_i} (x_1 + \dots + x_h) = 0 \end{equation} This implies that $o(x_1+\dots+x_n)$ divides $\prod_{i=1}^h q_i^{k_i}$. Now I'm stuck. How to complete the proof?

Let $G$ be a group and $g,h \in G$. I need to prove that if $g$ and $h$ commute and their orders are coprime, then $|gh| = |g||h|$, that is, the order of their product is the multiple of their orders.  Since $gh = hg$, then $(gh)^{ lcm(|g|, |h|)} = e$, so, $|gh|$ divides $lcm(|g|, |h|)$. Since $\gcd(|g|, |h|) = 1$, then $lcm(|g|, |h|) = |g||h|$.  So, $|gh|$ divides $|g||h|$.


I have a flight from Kathmandu, Nepal to Lubbock, Texas, USA on Qatar Airways with the DFW to LBB flight on American Airlines. Will my luggage be checked through to Lubbock, or will I need to collect in Dallas?

I'll be traveling to Memphis, Tennessee form New Delhi, India via Qatar Airways.  The itinerary would be: New Delhi <--> Doha || Doha <--> Chicago || Chicago <--> Memphis  Would I be required to claim and re-check my baggage at Chicago even though all the flights were booked with Qatar Airways or can I check it in all the way from New Delhi to Memphis without re-checking in the baggage again?


Is there an easy, objective way to tell?

I have a 2013 Shimano XT rear derailleur. It is part of a 2x10 drivetrain. How can I find out if it is a medium or a long cage one? The picture below shows the derailleur.