I've just been awarded a 3 year Schengen multiple entry visa with 90 days "duration of stay".  Does this mean that I only have a total of 90 days to visit the Schengen area over 3 years i.e. each trip counts towards this total?

In July 2015, I have been granted Multiple entry Schengen Visa valid for 5 years, with duration of stay : 90 days. My job requires me to frequently travel In and Out of Schengen countries, and have almost consumed 40 days by now, and I am afraid I will soon exhaust these 90 days stay limit.  Question 1: If by chance I exceed 90 days before the expiry in year 2020, what will happen ?  Question 2: Is there any way I can apply to Consulate who issued me this Visa and extend my limit of stay in Schengen, or do I need to apply for another type of Visa for my frequent travel to Schengen?


How can I delete the /dev/loop0,... Until /dev/loop7 I receive permission denied. On my laptop I have no harddisk. I use only the ram. I use Ubuntu.

I just realized using gnome-disk-utility (3.18.3.1) that my 16.04 installation is featuring several small loop devices.  In detail:   78 MB Loop Device (/var/lib/snapd/sn_ntu-core_352.snap -> /dev/loop0) 76 MB Loop Device (/var/lib/snapd/sn_ntu-core_216.snap -> /dev/loop1) 79 MB Loop Device (/var/lib/snapd/sn_ntu-core_423.snap -> /dev/loop2) 705 KB Loop Device (/var/lib/snapd/snaps/tpad_12.snap -> /dev/loop3) 684 KB Loop Device (/var/lib/snapd/snaps/tpad_11.snap -> /dev/loop5) 705 KB Loop Device (/var/lib/snapd/snaps/tpad_13.snap -> /dev/loop6)   Image showing gnome-disk-utility    My questions are as follows:   What are those loop devices used for? Is that an expected behaviour in 16.04? Can  I remove them? And if so - how (just by unmounting)? Is there any risk in removing the 2 installed snaps mentioned below (tpad and ubuntu-core)   UPDATE  Installed snaps  According to snap list I do have   tpad (1.8.1) ubuntu-core (16.04.1)   installed. I remember I did tinker with snaps for a short time when  I realized this option - but am pretty unsure if  I  installed those 2 snaps - or if they are pre-/auto-installed.  tpad is a Terminal text editor with GUI-like user interface  I  did install manually, as  I don't use it  I removed it now via sudo snap remove tpad. As a result the 2 loop devices pointing to tpad are gone in gnome-disk-utility.  So - at the current point  I am still having 1 snap installed called ubuntu-core and I don't know what it is used for. The summary of this particular snap is   The ubuntu-core OS snap


I have a My Book Essential external hard-drive from WD that ships with a 12Vdc 1.5A 18 Watt adapter. Will I be risking everything by plugging it into a 12Vdc 1.25A adapter?

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


Suppose f is a continuous function in a domain $\Omega$ and $\Gamma$ is a contour contained in $\Omega$ and parametrized by the smooth path $\gamma$ : [a,b]$\rightarrow$ $\mathbb C$. Prove that the function g defined as g(z) := $\int_\Gamma$ $\frac{f(w)}{w-z}$ dw is holomorphic in $\mathbb C$ \ $\Gamma$ and find its derivative.  I have tried to show it is holomorphic by using the following definition of a holomorphic function: Suppose that f : $\Omega$ $\rightarrow$ $\mathbb C$ is a function, where $\Omega$ is an open subset of $\mathbb C$ . If f is differentiable in the set $\Omega$ (at every point in $\Omega$), we say that f is holomorphic in $\Omega$. My thought was to use that $\int_\Gamma$ f(z) dz = $\int_a^b$ f($\gamma$(t))$\gamma$'(t) dt, but $\gamma$ is not defined for this. My other thought was to use Cauchy-Reimann equations, but I'm unsure as to how to implement this exactly. Any help would be greatly appreciated!

I have to prove that given $\gamma$ contour of $G \subset \mathbb{C}$  and $f$ continuous function on $G$. Then the function $g(z) = \int_{\gamma} \frac{f(w)}{w-z}dw$ is holomorphic on $\mathbb{C} - \bar{G}$ My attempt: I started by using that given any parametrization $\alpha :[a,b] \rightarrow \gamma$ we can rewrite $g(z)$ as: $g(z) = \int_a^b \frac{f(\alpha(t))}{\alpha(t)-z}\alpha'(t)dt$ Now using the fundamental theorem I derivate to see where $g'(z)$ is defined and I get: $g'(z) = \frac{f(\alpha(b))}{\alpha(b)-z}\alpha'(b) - \frac{f(\alpha(a))}{\alpha(a)-z}\alpha'(a) $ Here I get stuck, I fail so see how this links back to $g$ being holomorphic at $\mathbb{C} - \bar{G}$. Any hints on how to proceed? Thanks!


What I have:  What I would want (sorry for a terrible sketch):  How to convert object/generated coordinates in such way?

In Cycles, is there a way to create a procedural texture that follows the longitudinal lines of a sphere? Like a beach ball or globe? The texture should be able to be mapped to any sphere-shaped object, not just perfect spheres.    My current approach is to use a rotated wave texture, but that doesn't come from the poles (It uses latitudes)


Let $T :\mathbb{R}^m \rightarrow \mathbb{R}^n $ be a linear map, where $m > n$. Then, it is possible to prove that there is no $T$ injective in this case. In fact,  if such a map exists the Rank-Nullity Theorem gives us  $$ n \geq \dim Im (T) = m  > n, $$ so, we obtain a contradiction. A natural question arises here:   It is possible to obtain a injective continuous (nonlinear) map  $f:\mathbb{R}^m \rightarrow \mathbb{R}^n$ when $m > n$ ?   I try to construct such an example, but it seems so delicate. There exist some way to prove that a such map does not exist ?

I have the following question, more general that   Let $U\subset\mathbb{R}^n$ be a domain. If $f:U\longrightarrow\mathbb{R}^m$  ($m< n$) is a continuous function, how to prove that $f$ is not injective.  Any hint would be appreciated.


I installed Ubuntu using the Windows installer and I was wondering how to get rid of the old windows install, deleting it and everything with it.   I tried to just install it from my external hard drive but that didn't work.

I have installed Ubuntu on my D: partition using Wubi. Is there any way in which I can remove my Windows from C: drive and move my existing Ubuntu installation to C: drive and make it a regular install.


If I do not use tmux my terminal is the following:  ~$ echo $TERM xterm   If I use tmux by adding the following into .bashr  # tmux configuration tmux attach &> /dev/null  if [[ ! $TERM =~ screen ]]; then     exec tmux fi   My .tmux.conf has a line set-option -g default-terminal "screen-256color", but the terminal is the following:  ~$ echo $TERM screen   This makes VIM ugly.  How can I get the tmux to use screen-256color?  Using gnome terminal on Ubuntu 14.02

I have 256 colors working just fine in konsole,. I thought I'd give tmux a try because, unlike screen, it seems to support vi mode.  However I find that the colors of my prompt show up and this is most likely because I have a 256 color mode prompt. What do I need to do to get tmux to recognize all 256 colors?


I need paging on news archives page. Data is coming correctly if display all records on same page. But if i add paging code, then pagination values (such as 1,2,3,...16) coming correctly, but if i click on page 2 then it displays the same post title as on page 1.
News

     <?php     $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $all_posts = get_posts(array(     'post_type' => 'news',  'posts_per_page' => 20,   'orderby' => 'date',     'order' => 'DESC',     'paged='. $paged, ));      // this variable will contain all the posts in a associative array     // with three levels, for every year, month and posts.      $ordered_posts = array();      foreach ($all_posts as $single) {        $year  = mysql2date('Y', $single->post_date);       $month = mysql2date('F', $single->post_date);        // specifies the position of the current post       $ordered_posts[$year][$month][] = $single;      }      // iterates the years     foreach ($ordered_posts as $year => $months) { ?>

<?php echo $year ?>

         <?php foreach ($months as $month => $posts ) { // iterates the moths ?>

<?php printf("%s (%d)", $month, count($months[$month])) ?>

               <?php foreach ($posts as $single ) { // iterates the posts ?>
                   <?php echo mysql2date('F j', $single->post_date) ?> <a href="<?php echo get_permalink($single->ID); ?>"><?php echo get_the_title($single->ID); ?>  (<?php echo $single->comment_count ?>)

                <?php } // ends foreach $posts ?>

         <?php } // ends foreach for $months ?>
          <?php if(function_exists('wp_paginate')) {         wp_paginate();     }  ?>
 <?php     } // ends foreach for $ordered_posts     ?>
   here is the screen shot:-

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 started with an even odd arguement, where I tried to show that no matter which numbers you pick, the sum would always be even. However, this doesn't work for the arrangment of 3 evens and one odd. Where do I go from here?

Let $a,b,c,d$ be natural numbers with $ab=cd$. Prove that $a+b+c+d$ is composite. I have my own solution for this (As posted) and i want to see if there is any other good proofs.


I have multiple dynamic dropdown i am validating it through jquery required validator. But issue is the dropdown is starting from 0 index so validation not working when Select is selected. I'm using the following code.  jQuery('form#add_form :input').each(function(){     jQuery(this).rules('add', {         required: function(element) {              if(element.type=='select')  {                 if(jQuery(this).children('option:selected').val() == '0')                 {                     return false;                 }                 else                  {                     return true;                 }             } else              {                 return true;             }         } });  });   Form tag :  {{Form::open(array('','method' => 'post','class'=>'add-form','id'=>'add_form')) }}   @foreach($parent_attrs as $pattr)                                               <div class="col-md-6">                                                 <label>                   {!! Form::select('product'.$pattr->id, $products, $pattr, ['class' => 'form-control']) !!}                                                </div>                                               @endforeach

How do you create a simple, custom rule using the jQuery Validate plugin (using ) that doesn't use a regex?  For example, what function would create a rule that validates only if at least one of a group of checkboxes is checked?


The reason was justification provided regarding purpose and conditions of your trip are not considered reliable   I submitted all documents properly with a French citizen’s sponsor letter.  I am going to my brother’s wedding in Saint Vallier, France.  Again my brother and mother-in-law going to get sponsor letter from the French council for me.  Can I apply for a French visa again?

Schengen refusal formulae can be difficult to understand sometimes.  Sometimes an applicant receives a refusal with:       Justification for the purpose and conditions of the intended stay was not reliable.     often accompanied by:       Your intention to leave the territory of the Member States before the expiry of the visa applied for could not be ascertained.   What is meant by this refusal reason?  What are they trying to say?


I want to copy all contents in folder A(but not include A itself) to another folder B recursively, and overwrite any existing files or folders with the same name.  Originally I plan to use the following command:  cp -f -r /home/alan/A/* /home/alan/B/   However, after searching online, I find all others recommend the following format:  cp -f -r /home/alan/A/. /home/alan/B/   such as:     The strange thing is that I cannot find any official document on this advanced cp command. I tried to use:  man cp info coreutils 'cp invocation' cp --help   But none of them indicate such usage. How can I find the official document on advanced cp command and usage?  Thank you very much.

reveals that one can copy all files - including hidden ones - from directory src into directory dest like so:  mkdir dest cp -r src/. dest   There is no explanation in the answer or its comments as to why this actually works, and nobody seems to find documentation on this either.  I tried out a few things. First, the normal case:  $ mkdir src src/src_dir dest && touch src/src_file src/.dotfile dest/dest_file $ cp -r src dest $ ls -A dest dest_file  src   Then, with /. at the end:  $ mkdir src src/src_dir dest && touch src/src_file src/.dotfile dest/dest_file $ cp -r src/. dest $ ls -A dest dest_file  .dotfile  src_dir  src_file   So, this behaves simlarly to *, but also copies hidden files.  $ mkdir src src/src_dir dest && touch src/src_file src/.dotfile dest/dest_file $ cp -r src/* dest $ ls -A dest dest_file  src_dir  src_file   . and .. are proper hard-links as , just like the directory entry itself.  Where does this behaviour come from, and where is it documented?


I have a struct and a list as follow, I just wanted to sort the Inputpoints according to date. I have used the following commands but I can not see any sorting.  public struct Points {     public Date Date;     public double Quantity; } _test = new List<Points>(InputPoints); _test.OrderBy(t => t.Date);

I'm using C# on Framework 3.5.  I'm looking to quickly sort a Generic List<T>.  For the sake of this example, let's say I have a List of a Person type with a property of lastname.  How would I sort this List using a lambda expression?  List<Person> people = PopulateList(); people.OrderBy(???? => ?????)


It is me whom she loves   or   It is I whom she loves   Because I know that "It is I" is grammatically correct.

Which is the correct usage of the third person, plural pronoun?     It is they who lied.   It is them who lied.


In our algorithms class, my professor insists that n! has a higher order of growth than n^n. This doesn't make sense to me, when I work through what each expression means.   n! = n * (n-1) * (n-2) * ... * 2 * 1 n^n = n * n * n * n * ... * n * n   Since n is, by definition, greater than n -1 or n-2, shouldn't any n^n, which is the product of n number of n's, be greater than n!, which is the product of an n number of integers less than n?

$$\lim_{n \to\infty} \frac{n!}{n^n}$$  I have a question: is it valid to use Stirling's Formula to prove convergence of the sequence?


import javax.swing.*; public class TestProject {      public static void main(String[] args) {          String test = "Hel lo !";          String[] array = new String[test.length()];          for (int a=0; a<test.length(); a++) {             array[a] = test.substring(a, (a+1));         }         NoSpaces(array);          for (int g=0; g<test.length(); g++) {             System.out.print(array[g]);         }      }     public static String[] NoSpaces(String[] theArray) {         int count=0;          for (int c=0; c<theArray.length; c++) {             if (theArray[c] == " ") {                 count++;             }         }         String[] d = new String[theArray.length-count];          for (int f=0; f<(theArray.length-count); f++) {             if (theArray[f] != " ") {                 d[f]=theArray[f];             }         }         return d;     }   }   I'm trying to create a program that takes a phrase constructed from user input and stores them into an array, and then to make a static method to return an array with the output being the input, except with no spaces. Here I declared a test String and stored them into an array. Then I print out the array modified by my static method. My static method includes making a new array with a length of the original String minus the spaces and only included the non-space characters. However, when I run my code, it prints the exact same thing as my input. What error did I make in my code?

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I am using following template  \cvlistitem{  \begin{itemize}  \item 1  \item 2  \item 3  \item 4  \item 5  \item 6  \end{itemize}}   Currently, if it is not able to fit in same-page, it take whole thing to next page. I want a page break between 3 and 4. How can I put a page break here?

I'm typesetting a document with lengthy itemize lists and in most cases LaTeX leaves lots of empty space before the environment in order to get it entirely on one page.  How can I encourage LaTeX to put page breaks within lists?  Update: I found that it works just fine when used not within \cventry command.  Is there anyway to fix \cventry definition in order to avoid non-breaking behavior?  From moderncvstylebanking.sty:  \renewcommand*{\cventry}[7][.25em]{   \begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}%       {\bfseries #4} & {\bfseries #5} \\%       {\itshape #3\ifthenelse{\equal{#6}{}}{}{, #6}} & {\itshape #2}\\%   \end{tabular*}%   \ifx&#7&%     \else{\\\vbox{\small#7}}\fi%   \par\addvspace{#1}}   Examples: Originally I've used \cventry in the following way:  \cventry{March 2009--April 2011}{Software Developer}{Company}{City}{}{     \begin{itemize}         \item Item 1;         % Lots of items here         \item Item n.     \end{itemize} }   Probably I'm just misusing \cventry because using the following makes it just fine:  \cventry{March 2009--April 2011}{Software Developer}{Company}{City}{}{} \begin{itemize}     \item Item 1;     % Lots of items here     \item Item n. \end{itemize}


I am using an old computer running Ubuntu Server 18.04 as an all around server. It is hosting a Plex server, a small website and is used as a home NAS. I am using SMB shares when using it as a home NAS. If I want to access them files from outside the network what is better/more secure, do I port forward the SMB shares or do I use something like FTP or is there a better option that I don't know about. Thanks

Goal: I want to be able to securely use the internet via my home PC while my notebook is connected to an open hotspot/access point.  I do know that I can use a SSH tunnel/SOCKS proxy, but I don't want to fiddle around with applications (making them use it, if even possible). I guess what I need is an OpenVPN setup, so I'm looking for a detailed guide on how to:   Install and setup the OpenVPN server Setup the OpenVPN client (NetworkManager)   Ubuntu versions this should work on are 10.10 and 11.04.


We were trying to Install Ubuntu 14.04 In Dual Boot Mode With Windows 8.1 UEFI in my new HP laptop. The installation of Ubuntu was finished successfully. But when I rebooted (with secure boot disabled) it is not showing any GRUB menu and directly going to Windows.  So I tried Boot-Repair. For this I plugged our USB drive back in and reboot so that the live version of Ubuntu runs again. Then I used following command for boot repair.  sudo add-apt-repository ppa:yannubuntu/boot-repair sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list sudo apt-get update sudo apt-get install -y boot-repair && (boot-repair &)   Then I repaired the boot with the launched Boot-Repair window. But it end with the following error message.     "An error occurred during the repair.      Please write on a paper the following URL:         In case you still experience boot problem, indicate this URL to:   boot.repair@gmail.com       You can now reboot your computer. Please do not forget to make your   BIOS boot on sda (1000GB) disk!"   I also send a mail to the given mail ID. Please suggest a method to solve my problem. Thanks.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


When i run system update then i got following error:  W:Failed to fetch cdrom://Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64      (20130820.1)/dists/precise/restricted/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  W:Failed to fetch cdrom://Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64 (20130820.1)/dists/precise/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  W:Failed to fetch cdrom://Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64 (20130820.1)/dists/precise/restricted/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  W:Failed to fetch cdrom://Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64 (20130820.1)/dists/precise/main/binary-i386/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  E:Some index files failed to download. They have been ignored, or old ones used instead.   please help me on this.

I have recently installed ubuntu 11.10. But when i try to install a software it tries to 'updating cache' but after a while, it stops, showing:                            Failed to download repository information                           Check your internet connection   so, now i am totally unable to install any software in my ubuntu.  Please,let me know how to solve the problem.


Why don't electrons and protons collide?   Hydrogen atoms are often ionized. After ionization, it is divided into electrons and protons, which can merge into hydrogen atoms at any time.  Why don't electrons crash on protons?  According to Coulomb's law, when they are getting closer, they attract more and more. One of the most possible choices is to crash.   This is not a duplicated question. Because instead of talking about the structure of atoms (why electrons don't crash nuclei), we're talking about why they don't merge together because of the Coulomb attraction when electrons are close to protons.

I'm having trouble understanding the simple "planetary" model of the atom that I'm being taught in my basic chemistry course.   In particular,    I can't see how a negatively charged electron can stay in "orbit" around a positively charged nucleus. Even if the electron actually orbits the nucleus, wouldn't that orbit eventually decay?  I can't reconcile the rapidly moving electrons required by the planetary model with the way atoms are described as forming bonds. If electrons are zooming around in orbits, how do they suddenly "stop" to form bonds.     I understand that certain aspects of quantum mechanics  to address these problems, and that there are  of atoms. My question here is whether the planetary model itself addresses these concerns in some way (that I'm missing) and whether I'm right to be uncomfortable with it.


I understand Terminal by default doesn't support PgDn and PgUp but is there an alternative to the linux terminal that supports this?  Cygwin has an option to enable this so I would assume linux does also.  EDIT:I have changed the location of my page down and page up on my keyboard and this appears to not work there. I do not have page down and page up keys on my keyboard.

I've grown quite weary of shift-pgup to page up in gnome terminal, the command line, terminator, and guake, etc.  Any way to easily make these apps use the straight page-up and page-down keys for paging around?


On some sites (like User Experience), under the "Hot Network Questions" on the side, the links you have clicked on previously are darker than ones you haven't visited (I think this is the way it should be...).  However, on some sites (like Music: Practice and Theory) it is REVERSED! (Links you haven't visited are darker than links you have visited).  This drives me nuts, I always get confused. Is there any reasoning behind this?

This is a HNQ excerpt from Stack Overflow. Visited questions are objectively darker.    This is a HNQ excerpt from Super User. Visited questions are objectively lighter.    This is a HNQ excerpt from Seasoned Advice. Visited questions are objectively darker.    This is a HNQ excerpt from Puzzling, a beta site. Visited questions are objectively darker, although the difference is hard to spot.    This is a HNQ excerpt from Travel. Visited questions actually have a completely different color.    These are 5 different sites, with 5 different formats for how the HNQ sidebar displays links. Some make visited links darker. Some make them lighter. Some make them a little big darker. some give visited links a completely different color. This is very confusing: If someone visits one of these HNQ questions and wants to continue browsing the HNQ from there, they likely expect that the links in that HNQ segment have consistent layout compared to the HNQ segment from the website they came from.  Is this something worth looking into? I realize that each site has their own look and feel, but an element that appears on every site should be consistent IMHO. People have expectations about how links work, and one of those is that if you click on a link within the same domain (which the HNQ segment arguably is), they behave similary on that page as they do on the page you come from.


I want to download YouTube videos as mp3 files in its best quality. The below code helps to download youtube videos as m4a but not us mp3  youtube-dl -f bestaudio --audio-quality 0 --audio-format mp3 https://www.youtube.com/playlist?list=PLYRruMbyFRcBVdVN8v4FNkIKkXvL-bZn_   can you tell me how to use bestaudio parameter to download YouTube video as mp3

There are several Q&A threads that explain how to download youtube videos using the terminal.  However, I would also like to learn how to extract the video's soundtracks as MP3 files--also using only the terminal.  Answers briefly explaining how to use youtube-dl or other similar utilities before explaining how to extract the MP3 would be ideal for the sake of having all the information in one place--even though this aspect has been covered in other posts.


Simple question really. When you double the ISO does it mean your shutter speed needs to be half of the original value to have the same brightness in the image?

What is the exposure triangle? How do the "sides" affect my photographs?


So I am trying to make a tile based game, it is rendering about 40 tiles on the screen at once. I get about 40 FPS on an okay computer. When I tell it to not render the FPS jumps to around 400 so I know its something with the rendering. I was wondering if there is a more efficient way to render a lot of tiles. Here is the code for my Tile class :   public class Tile {     public static Tile empty;     public static Tile rock;     public static Tile flower;     public static Tile grass;  public static Tile[] tiles;   protected boolean solid,breakable;  public static final int TILE_SIZE = 32;  public static final int VOID_TILE = 0, ROCK_TILE = 1,GRASS_TILE = 2,FLOWER_TILE = 3;  private int width = 16,height = 16;  private SpriteSheet image; private int xCrop,yCrop; private String path; private boolean toRender = true; private int ID;  public Tile(int ID) {     this.ID = ID;     path = ("res/spritesheet.png");     if(ID == VOID_TILE) {         solid = true;         toRender = false;         width = height = 16;     }      if(ID == ROCK_TILE) {         solid = true;         breakable = true;          xCrop = yCrop = 1;         width = height = 16;          path = ("res/spritesheet.png");     }      if(ID == GRASS_TILE) {         xCrop = yCrop = 0;         width = height = 16;          path = ("res/spritesheet.png");     }      if(ID == FLOWER_TILE) {         xCrop = 1;         yCrop = 0;         width = height = 16;          path = ("res/spritesheet.png");     }     if(toRender) {         try {             image = new SpriteSheet(path,width,height);         } catch (SlickException e) {             System.out.println("Error Loading File : " + path);             e.printStackTrace();         }     }  }  public static void initTiles() {     empty = new Tile(VOID_TILE);     rock = new Tile(ROCK_TILE);     grass = new Tile(GRASS_TILE);     flower = new Tile(FLOWER_TILE);      tiles = new Tile[] {empty,rock,grass,flower}; }    public void render(int x,int y) {     if(image!=null)image.getSubImage(xCrop, yCrop).draw(x,y,TILE_SIZE,TILE_SIZE); }  public void update() {  }  public int getID() {     return ID; }  public void setID(int iD) {     ID = iD; }   }

I've been working up a game engine similar to , mostly as a challenge, and while I've figured out most of it, I can't really seem to wrap my head around how they handle the millions of interactable/harvestable tiles the game has at one time. Creating around 500.000 tiles, that is 1/20th of what's possible in , in my engine causes the frame-rate to drop from 60 to around 20, even tho I'm still only rendering the tiles in view. Mind you, I'm not doing anything with the tiles, only keeping them in memory.  Update: Code added to show how I do things.  This is part of a class, which handles the tiles and draws them. I'm guessing the culprit is the "foreach" part, which iterates everything, even empty indexes.  ...     public void Draw(SpriteBatch spriteBatch, GameTime gameTime)     {         foreach (Tile tile in this.Tiles)         {             if (tile != null)             {                 if (tile.Position.X < -this.Offset.X + 32)                     continue;                 if (tile.Position.X > -this.Offset.X + 1024 - 48)                     continue;                 if (tile.Position.Y < -this.Offset.Y + 32)                     continue;                 if (tile.Position.Y > -this.Offset.Y + 768 - 48)                     continue;                 tile.Draw(spriteBatch, gameTime);             }         }     } ...   Also here is the Tile.Draw method, which could also do with an update, as each Tile uses four calls to the SpriteBatch.Draw method. This is part of my autotiling system, which means drawing each corner depending on neighboring tiles. texture_* are Rectangles, are set once at level creation, not each update.  ...     public virtual void Draw(SpriteBatch spriteBatch, GameTime gameTime)     {         if (this.type == TileType.TileSet)         {             spriteBatch.Draw(this.texture, this.realm.Offset + this.Position, texture_tl, this.BlendColor);             spriteBatch.Draw(this.texture, this.realm.Offset + this.Position + new Vector2(8, 0), texture_tr, this.BlendColor);             spriteBatch.Draw(this.texture, this.realm.Offset + this.Position + new Vector2(0, 8), texture_bl, this.BlendColor);             spriteBatch.Draw(this.texture, this.realm.Offset + this.Position + new Vector2(8, 8), texture_br, this.BlendColor);         }     } ...   Any critique or suggestions to my code is welcome.  Update: Solution added.  Here's the final Level.Draw method. The Level.TileAt method simply checks the inputted values, to avoid OutOfRange exceptions.  ...     public void Draw(SpriteBatch spriteBatch, GameTime gameTime)     {         Int32 startx = (Int32)Math.Floor((-this.Offset.X - 32) / 16);         Int32 endx = (Int32)Math.Ceiling((-this.Offset.X + 1024 + 32) / 16);         Int32 starty = (Int32)Math.Floor((-this.Offset.Y - 32) / 16);         Int32 endy = (Int32)Math.Ceiling((-this.Offset.Y + 768 + 32) / 16);          for (Int32 x = startx; x < endx; x += 1)         {             for (Int32 y = starty; y < endy; y += 1)             {                 Tile tile = this.TileAt(x, y);                 if (tile != null)                     tile.Draw(spriteBatch, gameTime);              }         }     } ...


Can someone explain how to mathematically perform linear regression on some data while constraining the fit line to pass through the $(0,0)$ point?

We have the following points: $$ (0,0)(1,51.8)(1.9,101.3)(2.8,148.4)(3.7,201.5)(4.7,251.1)  \\ (5.6,302.3)(6.6,350.9)(7.5,397.1)(8.5,452.5)(9.3,496.3) $$ How can we find the best fitting line $y=ax$ through the points? My calculator has the option to find the best fitting line $y=ax+b$ through these points, which is:  $$y = 53.28x + 0.37$$  How can I find the best fitting $y=ax$? It seems to me we can't just remove the $0.37$ without compensating in the $a$?


I'm looking for a book series in which a girl meets aliens. She was the only person on Earth to have met aliens.  One of them was an intelligent purple ball that I think could morph into other shapes, but I could be wrong. She helped them (possibly by fighting aliens or something) and when she was sent to some sort of alien training academy they made her a robot to temporarily take her place on Earth.

I'm trying to remember the name of a graphic novel from the late 90's or early 00's. I've done a bunch of searching online but can't find anything. I don't have much to go off of. It was beautifully drawn series of comics or compiled into a graphic novel.   EDIT: Okay so after obsessing all night and reading the guide I might have a wee bit more to identify it.    It was mostly if not only B/W and a serial comic that were collected into several books.  Each book was some grand adventure in a new place (maybe) one of which was on a ship, or air ship, or balloon ship. The central character was this young girl who is looking for her parents or her parents died or something. She has tube like hair and giant eyes. She has been thrown into this fantasy world and is exploring/looking running from... haha. I think she has a crew of weird creature friends that are helping her. There's all these strange creatures, big and small and strange and beautiful landscapes. More on the girl: She looked a little like  and she acted young and would get angry a lot. The drawings were ornate and detailed, but who wouldn't be if you were thrown into a fantasy world.   The drawing style was almost like the style of Bone, or the Arrival.    It was so long ago, and I have this vivid memory of reading it, but I've even gone back to search through all the graphic novels at my old library where it was and it's not there... ha. I wonder if it was like a small publishing company or something.   Thanks Fuzzy for the edits!


After watching the Harry Potter movies I became confused as to how wands and Magic work.  Some spells require wands, while others do not some spell seem to be spoken and others are unspoken which is very confusing. I was wondering if anyone could explain this to me

In the beginning of the series, it's mentioned that Muggle-born wizards/witches are identified due to inadvertent spell-casting. However, it seems like later in the book, disarmed wizards/witches are completely helpless.   What is the explanation for why some spells can be cast without a wand and is there an in-universe explanation for why this isn't done? Also, are there spells that can be cast non-verbally (with/without a wand)?


I would like my target completion column to have a date that is greater than in my start column.  Excel supports a date validation option but I do not see this in Google Sheets.  Is it there and I just don't know how to use it or is my only option to write an Apps Script add-on?

I would like my target completion column to have a date that is greater than my start column. Excel supports a date validation option but I do not see this in Google Sheets.  Is it there and I just don't know how to use it?  I saw this question:  but I can't see how to get it to apply to the same row in the other column.  Obviously I don't want a new rule on each cell.


I was wondering with a question for a quite long time, thought to ask here.  I need to know is there any material or element which can block magnetic field? I mean I am searching for such material or element that cannot allow magnetic field though itself?  The practical scenario is, there are two permanent magnets and those are positioned within each other's magnetic field. I want to put something so that both the magnets become free of interference withing themselves.  Hope I could clarify my question.  Can anyone help me of give me some suggestion on this aspect please?

I need to shield my device from magnetic interference, including earth magnetic field (if you move device around, it might be enough to cause slight currents i guess) and magnetic field caused by power nets, wires with large currents e.t.c .  I know this could be achieved by making case out of , but it seems that I can't find it anywhere (especially in small quantities).  So, are the other, easier ways to shield magnetic field?  Will multiple sheets of steel work for example?


I really like the intuitive profile page of Meta Stack Exchange. Is there a way to upgrade the same in a different community, for example, ?

By January 2016, All communities have been updated     The design team has been rolling out design updates to sites as part of network-wide update to a new base css framework. The updates allow us to:   Use .svg sprites for retina displays  Fix layout bugs globally  More easily add new features to all of our sites in the future  Synthesize healthy, nutritive rations to feed employees from a small, battery-powered, toaster-sized device. Roll out the new (2015) Profile/Activity pages    As sites get updated, the designer who did the work posts on the local Meta, so the community knows the change is live, and can provide any relevant feedback.  They'll update this page too.  Done           (Apple)                                              On Deck  (I'm told this is a well-known "sports" metaphor.)  The order of this list is random (it is not the order in which the new design will be rolled out):   Looks like we are all done now...   Not Planned  Not scheduled for the redesign or the new user page:


This has been flagged as a duplicate but to clarify once my drop down appears I do not want to run any more jquery click function on it.  I simply wish to select the drop down available by select I mean select it as you would a regular drop down.    I'm currently adding some li elements from some dynamic data like so.  $(document).ready(function() {        $('#size li').click(function() {              if ($(this).text() != '') {               // var select = $(".dynamic li").closest("ul").prop("id");               // var value = $(this).text();               // var dependent = $(this).closest('ul').data('dependent');               // var _token = $('input[name="_token"]').val();               var productId = $(this).attr("value");                // here we'll make ajax call to post details of dropdown and get new data               $.ajax({                     url: "{{ url('product_details/fetch/productId') }}".replace("productId", productId),                     dataType: "json",                     success: function(result) {                         // clear the drop downs so no data will be there                         $("ul[data-dependent='quantity']").empty();                          // add quantity drop down based on selected size                         $.each(result.productQuanties, function(i, item) {                           $("ul[data-dependent='quantity']").append("
" + item.quantity_name + "
");                         })   This appends to an empty drop down ul and the html code viewable in the dom is this:
25

50

100
 etc.   This appears as a drop down on my web page.  However when I go to select the li nothing happens.  By nothing happens I mean the drop down just appears as it did before I clicked anything.  The data is still there but it is not showing as selected.  The expected result would be for me to just click on it and it remained clicked.

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


I have a MacBook Pro 2018. Currently it has two 4GB LPDDR3 2133MHz memory cards. My son has just bought a new computer and already upgraded the memory and has given me his  Samsung 8GB 1Rx8 PCA-2666V-SA1-11 card which I think is DDR4. If I take one of the 4GB LPDDR3 cards out of my Laptop can I replace it with the new Samsung DDR4 card? First would it fit and second if it did would I gain anything?

I have a computer with two sticks of DDR4 RAM, and someone just gave me some old RAM that's DDR3. Can I use both in the same computer?


I noticed  in particular, which has 5 deleted answers on it.  The most recently deleted answer was deleted by a diamond mod 3 minutes prior to the time it was protected by Community ♦  Is there an automated process that causes a question to be protected by Community ♦ instead of a human?  If so, what are the qualifications that it checks for in order apply the protection?  Related:

Questions can be protected (i.e. marked "highly active").   What does it mean for a question to be protected? Why are some questions protected? Who can protect and unprotect questions? Who can answer a protected question? How are protected questions displayed? When should I protect or unprotect a question? When does the Community user protect a question?


I try to resolve some task in code wars. I have to create method, which returns column title(occurring in Excel). The method gets one parameter, it's number. For example:  def get_column_title(n) //code end   If n = 1. It should return A.      Test cases:  Test.assert_equals(get_column_title(1), "A") Test.assert_equals(get_column_title(26), "Z") Test.assert_equals(get_column_title(52), "AZ") Test.assert_equals(get_column_title(53), "BA") Test.assert_equals(get_column_title(702), "ZZ")   What I have:    def number_values     {       1 => 'A', 2 => 'B', 3 => 'C', 4 => 'D', 5 => 'E', 6 => 'F', 7 => 'G',       8 => 'H', 9 => 'I', 10 => 'J', 11 => 'K', 12 => 'L', 13 => 'M', 14 => 'N',       15 => 'O', 16 => 'P', 17 => 'Q', 18 => 'R', 19 => 'S', 20 => 'T',       21 => 'U', 22 => 'V', 23 => 'W', 24 => 'X', 25 => 'Y', 26 => 'Z'     }   end  def translate_values     if @n <= 26       number_values[@n-26*0]     elsif @n <= 52         'A'+ number_values[@n-26*1]     elsif @n <= 78         'B' + number_values[@n-26*2]     end end   Issue: I don't know how to resolve this task algorithmically. I thought about dividing the number by 26 in a loop. Can you give me some hints how to approach the task?  Source of exercise:

How do you convert a numerical number to an Excel column name in C# without using automation getting the value directly from Excel.  Excel 2007 has a possible range of 1 to 16384, which is the number of columns that it supports. The resulting values should be in the form of excel column names, e.g. A, AA, AAA etc.


Are there functions satisfying $\int f(x)g(x)dx=\int f(x)dx \times \int g(x)dx$  I came up with one which is  $f(x)=e^{x \sec ^2 \alpha}$ and $g(x)=e^{x \csc^2 \alpha}$  $$\int f(x)g(x)dx=\frac{e^{x(\sec^2 \alpha+\csc^2 \alpha)}}{\sec^2 \alpha +\csc ^2 \alpha}$$  Also  $$\int e^{x\sec^2 \alpha}dx \times \int e^{x \csc^2 \alpha} dx=\frac{e^{x(\sec^2 \alpha+\csc^2 \alpha)}}{\sec^2 \alpha \csc ^2 \alpha}=\frac{e^{x(\sec^2 \alpha+\csc^2 \alpha)}}{\sec^2 \alpha +\csc ^2 \alpha}$$

Suppose $f,g$ are real valued on $\mathbb{R}$ (and no further restrictions apart from the obvious requirement that the integrals exist), then when does $\displaystyle\int f(x)g(x)\,dx = \int f(x) \, dx \int g(x) \, dx$? (all integrals indefinite)  This question was posed on another site, and I was wondering whether there are any large classes of functions $f,g$ that work.  Aside from the trivial solution, things like $f(x) = e^{nx}, g(x) = e^{\frac{n}{n-1}x}$ $(n\not= 1)$ work by inspection.  I've tried re-casting the problem as:  $$\int F^2 - \left(\int F\right)^2 = \int G^2 - \left(\int G\right)^2$$  With $F=f+g, G=f-g$, to introduce some symmetry. This gives rise to similarities with the variance formulae but nothing more than that.  Using power series $F(x) = \displaystyle\sum_{n=0}^{\infty} a_nx^n, G(x) = \sum_{n=0}^{\infty} b_nx^n$, and the cauchy product, this equation boils down to:  $$\sum_{m=0}^n \frac{(n-m)(a_ma_{n-m} - b_mb_{n-m})}{(n+1)(n-m+1)}= 0\qquad \forall n\geq 0$$  But again, progress is limited.


I have been reading sources such as  on absorption and emission which make statements such as:     The interesting thing is that each atom will only absorb photons with   exactly the right energy.   I am struggling to understand this because how exact does the energy/wavelength have to be? Would an atom absorb light with a wavelength of 455 nm but not 455.5 nm? or 455.05 nm etc?

According to Quantum Mechanics, in order for an atom to absorb a photon the energy of the photon must be precisely that of a "jump" between energy states of the atom.  How precise must it be?   If I create a photon with an energy within an error of 0.0001% of that of an energy state, will it be absorbed by my atom?


I'm having trouble telling which direction each face is facing, is there any easy way of changing the default face colors to something else than light grey/slightly darker grey? or are there any other easy ways of telling when a face is pointing the wrong way?

While hunting down some wrong-flipped faces I find it a bit tedious to differentiate the color of the wrong-sided face with the right-sided face.  It would be very handy if the wrong-sided faces would have the color red. How can I use a trick for that?


The problem is that when i write this  \begin{lemma} \label{lemma}     Something \end{lemma}  \cref{lemma}   It comes out like this:   My preamble looks like this  \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{definition}[theorem]{Definition} \usepackage{cleveref}   What i want is for the reference to be named "lemma 0.1" not "theorem 0.1"

I have a problem with cleveref. Apparently, it does not work with mdframed.  \documentclass[12pt,a4paper]{book} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[left=2.50cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry} \usepackage{xcolor} % Definition of colors \definecolor{toc_heading}{RGB}{0 51 89} \definecolor{toc}{RGB}{0 119 138} \definecolor{section}{RGB}{0 113 187} \definecolor{subsection}{RGB}{0 115 207} \definecolor{headline}{RGB}{77 112 139} \definecolor{citecolor}{RGB}{0 124 48}  \usepackage{amsthm}  \usepackage[framemethod=TikZ]{mdframed} \mdfsetup{skipbelow=3ex} \newtheorem{dummy}{dummy}[chapter]   \newmdtheoremenv [%  hidealllines=true, leftline=true,  linewidth = 2pt,  linecolor=section,  leftmargin = 0,rightmargin = 0,%  skipabove=\dimexpr\parskip+10pt\relax,  innertopmargin = 0,splittopskip =3ex,  innerrightmargin=2ex,splitbottomskip=3ex,innerbottommargin=2ex,  ntheorem = false ,backgroundcolor=section!20% ]{theorem}[dummy]{Theorem} \usepackage{hyperref} \usepackage{cleveref} \crefname{theorem}{theorem}{theorems} \begin{document} \chapter{Chapter 1} \begin{theorem}\label{thm:1}    bla \end{theorem}  This is \cref{thm:1}.  \end{document}   This code produces: This is ?? 1.1.   Has anyone encountered a similar problem?


I have this problem that I have been stuck on for a while. I know that I can write the elements of $D_4$ as products of the identity, rotation by $90$ degrees and a vertical reflection and I have already written the $8$ elements of $D_4$ as their cycle notation is $S_4$ but have no idea what to do from there and would really appreciate the help!

Is $D_n$, the dihedral group of order $2n$, isomorphic to a subgroup of $S_n$ ( symmetric group of $n$ letters) for all $n>2$?


I'm porting to Java some C++ code that uses the pretty common C++ trick of allocating an object on the stack (it happens to implement a UDP connection) which has some internal state information (here, a UDP socket).  While in scope the object is used to do various things (send and receive UDP messages).  The nice thing is that when control leaves this scope the object's destructor will be run and this can be counted upon to automagically cause the release the object's internal resources (in this case, I make sure the socket gets closed so that I can reuse its address and port numbers in other parts of my program).  In trying to figure out how to do this I have learned that Java does not have a destructor, that "finalize" won't do what I want, etc.  Surely there is some similarly clever technique of accomplishing the same thing in Java?  I realize I could add a "close()" method and try to make sure that it is always called at the appropriate time, and I further realize this would probably be more easily and reliably done in Java than in C++.  But do I really have to go that route?

Is there a destructor for Java? I don't seem to be able to find any documentation on this. If there isn't, how can I achieve the same effect?  To make my question more specific, I am writing an application that deals with data and the specification say that there should be a 'reset' button that brings the application back to its original just launched state. However, all data have to be 'live' unless the application is closed or reset button is pressed.  Being usually a C/C++ programmer, I thought this would be trivial to implement. (And hence I planned to implement it last.) I structured my program such that all the 'reset-able' objects would be in the same class so that I can just destroy all 'live' objects when a reset button is pressed.  I was thinking if all I did was just to dereference the data and wait for the garbage collector to collect them, wouldn't there be a memory leak if my user repeatedly entered data and pressed the reset button? I was also thinking since Java is quite mature as a language, there should be a way to prevent this from happening or gracefully tackle this.


I already changed TeXShop as the default TeX application instead of TeXworks, but I see no way of editing my .tex file using TeXShop. Whenever I double-click a .tex file, it will automatically typeset the .pdf and I'm not able to see the code anymore. Any ideas?  Note: I am a total newbie to MacTeX.

I have a problem with TeXshop (on Sierra). When I click on a .tex-file it compiles it to PDF but I cannot see (and thus modify) the source window. Any idea why ?


$$ f(x) = x - \int_0^{\pi/2} f(x)\sin(x)dx $$ How do you solve this equation for the function $f(x)$? The question had a hint to use integration by parts.

A function $f(x)$, where $x$ is a real number , is defined implicitly by the following formula:   $$f(x)=x-\int^{\frac{\pi}{2}}_0f(x)\sin(x)dx$$   Find the explicit function for $f(x)$ in its simplest form.   This question appeared in the recent New Zealand Qualifications Authority 2016 Scholarship Calculus examination.    What I have done  Let $f(x)=y$  $$f(x)=x-\int^{\frac{\pi}{2}}_0f(x)\sin(x)dx \Rightarrow y=x-\int^{\frac{\pi}{2}}_0y\sin(x)dx$$  $$ y=x-\int^{\frac{\pi}{2}}_0y\sin(x)dx  \Leftrightarrow \int^{\frac{\pi}{2}}_0y\sin(x)dx=x-y$$  Consider the integral  $$ \int^{\frac{\pi}{2}}_0y\sin(x)dx$$  Let $u=y\Rightarrow du=dy$ and $dv= \sin(x) \Rightarrow v=-\cos(x)$  $$ \int^{\frac{\pi}{2}}_0y\sin(x)dx = \left[y\sin(x) \right]^{\frac{\pi}{2}}_0+\int^{\frac{\pi}{2}}_0\cos(x) dydx$$   How can I continue?


So I just bought a used Sony vaio with the ubuntu operating system. I disabled my admit account thinking that when I powered up it would just go to the home screen. Now I can't log in. It recognizes my user name but not the password. How can I get passed the log in screen?

I'm trying to install the  IDE in my Ubuntu and in the process it's asking for my root password which I don't remember. I know my  user password. How can I recover my root password?


The title is a bit vague, but my problem is this. In Microsoft visual studio im making a console application in c#, and in the code i wanted to be able to launch a windows form inside the same project. In visual basic this can be done with Application.run(formName), however if done in c# using a refrence, the windows form oppens but then immediately stops responding. What is the correct way to open a form from a console app?  class Program {     static void Main(string[] args)     {          Console.WriteLine("Enter a number");         int x = int.Parse(Console.ReadLine());          if (x == 3)         {             menu menuInstance = new menu();    //menu would be the name of the windows form             menuInstance.Show();            }           Console.ReadKey();          }     } }

How do I create, execute and control a winform from within a console application?


E is measurable, and E is a disjoint union of E1, E2. I want to show that  if m(E)= m*(E1)+m*(E2) then E1 and E2 are measurable.  How can I do this?

I am trying to show that for $A$, $B \; \subset \mathbb{R}$ $A \cup B$ is Lebesgue measurable such that \begin{align} \infty > \mu(A \cup B) = \mu^{*}(A) + \mu^{*}(B), \end{align} Then $A$ and $B$ are Lebesgue measurable.  Thus far, I have tried reversing the directions in the proof of Caratheodory.  I seem to want to do the following:  If $A \cup B$ is Lebesgue measurable, then, for any $E \subset \mathbb{R}$, \begin{align} \mu^{*}(E) \geq \mu^{*}(E \cap (A \cup B)) + \mu^{*}(E \cap (A \cup B)^{c}). \end{align}  I want to use this and work backwards from here adding and subtracting sets to get  \begin{align} \mu^{*}(E) \geq \mu^{*}(E \cap A) + \mu^{*}(E \cap A^{c}). \end{align} yet I am having trouble.


Running a cloud server on Rackspace: Windows Server 2008 R2 x64 (4 GB Standard Instance) It hosts sql server, IIS, and serves our application to users. It has been fine for months/years. Last night through this morning, it was "jammed" at 100% cpu usage, couldn't remote in, etc. Finally got in through emergency console and rebooted.  Server and sites will come up but CPU usage keeps going to 100% and server is becoming unresponsive every 30-60 min. Two weird questions:   Looking at the server's task manager seems to unclog it. Yes, looking not doing anything. I get reports the server is hanging, I remote in and pull up task manager and I see system idle go back to 80's and 90's. There is a file, msiexev.exe from s:\windows\security that keeps popping up on task manager and takes 50% of the processor load at least. I do not know what this file is, but it keeps reappearing when I kill the process. I even deleted the file from its folder (into recycle bin) but it reappeared in its folder and in task manager.   I have disabled the windows installer service just in case. I read that msiexec is an install utility, but searches for msiexeV are coming up empty. Any ideas?  Thanks!

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


In assume consume,s is pronounced as /s/,but in resume presume,s is pronounced as /z/.why?  The 4 words have a common root sume which is from Latin,but get different pronunciation eventually.

When do you pronounce ‹s› as /z/ in the middle of words? Is there any rule? I also saw there are some differences in articulating medial s between American and British accents. I already know the rule for pronouncing plural s and es.  Is there any case where ‹c› is pronounced /z/?


This is what I see from my account (which has the close vote privilege):  It says "Viewable by the post author and users with the close/reopen votes privilege," yet this is not true.      Here is evidence for that. This is what users without the close vote privilege see (which makes us think what the above said is true)     But if you click that button, well, they too can see what's forbidden:     Is this a possible bug?

I am not a user with close/reopen votes privileges on Travel Stack Exchange, therefore I can't see the names of the close voters :    However, they are visible when going to the revision history:    or the timeline of the post:    This also happens when I am not logged in: I cannot see the banner (and so if the question has been closed), but from the revision history/timeline of the post I can get that information.  Shouldn't names of close-voters be completely hidden from people without close/reopen privileges (even if the revision history is a little hard to find)?


Did you contacted them?   Did you contact them?      Which of above sentences is correct? If both are correct, what's the difference between them?  In which scenarios can I use them?

In regard to this , my question is similar but that answer is not clear. I want to know why we use base form of verb, e.g. 'go' to form the past tense instead of past form such as 'went'?     Question: Did you go to a bank?  (Why we use 'go' here, rather than 'went'?)   Answer: I went to a bank.   Am I confusing verb forms with tenses? Please note that I'm not a native speaker so some clarification or reference on this would be helpful.


How can I separate a set of faces from a continuous mesh in Edit mode, without moving the selected faces to another object? I'd like to keep the faces within the same object, if possible.

I don't know how to disconnect a face from the rest of the mesh in edit mode.  This isn't like pressing P to separate the selection into a completely different object. I just want to select a face and disconnect/rip it away from the rest of the mesh but keep it as a part of the original object.  One way to do it would be to duplicate the face with ShiftD and then delete the original face. But I suspect there is a "native" command for disconnecting selected faces and I would like to learn it.


I recognize that parts of this topic have been discussed on this forum. Some examples:       What I still don't understand is why OLS regression is still the default solution to the problem of linear regression. It seems to me that in the majority of practical situations, the costs associated with errors are linear or approximately linear. If I order 2 extra parts, I incur twice the unnecessary cost as compared to if I order 1 extra part. Therefore, the optimal solution that OLS produces will not correspond to an optimal solution in reality. I understand that in general, you can minimize whatever error metric makes the most sense in the situation. My question is not about whether it is possible or a good idea to use MAE in a specific case; it is about the convention. Why is MSE minimized in nearly all simple cases instead of MAE when the real cost is typically linear?   The cases I have seen made for minimizing MSE include the following:   MSE is continuously differentiable Squaring gives a greater penalty to large errors It makes sense because we assume errors to be normally distributed   However, if we can perform regression with absolute errors easily, and we are concerned primarily with prediction, I don't see how those points lead anyone to choose squared errors. If we are to choose a convention, isn't absolute error better?   This post has received many excellent answer which have all been useful to me. Of those answers, and the answers elsewhere which the mods believe answer my question, none of them exactly address the real source of my confusion except for the answer by @richard-hardy.

Why use Root Mean Squared Error (RMSE) instead of Mean Absolute Error (MAE)??    Hi  I've been investigating the error generated in a calculation - I initially calculated the error as a Root Mean Normalised Squared Error.  Looking a little closer, I see the effects of squaring the error gives more weight to larger errors than smaller ones, skewing the error estimate towards the odd outlier. This is quite obvious in retrospect.   So my question - in what instance would the Root Mean Squared Error be a more appropriate measure of error than the Mean Absolute Error? The latter seems more appropriate to me or am I missing something?  To illustrate this I have attached an example below:                    The scatter plot shows two variables with a good correlation,  the two histograms to the right chart the error between Y(observed ) and Y(predicted) using normalised RMSE (top) and MAE (bottom).     There are no significant outliers in this data and MAE gives a lower error than RMSE. Is there any rational, other than MAE being preferable, for using one measure of error over the other?


I asked if If $mn+1$ is a multiple of $24$ , prove that $m+n$ is also a multiple of $24$. And i got this response: If $m$ is odd, then $8∣m^2−1=(m−1)(m+1)$ because $m−1,m+1$ are consecutive even integers so $4$ divides one of them. If $3∤m$ then $3∣m^2−1=(m−1)(m+1)$ because $3$ divides (exactly) one of the three consecutive integers $m−1,m,m+1$. Now if $24∣mn+1$, then $m$ is odd and not divisible by $3$, so $24=3⋅8∣m^2−1$ and $24∣m×(mn+1)−n×(m^2−1)=m+n$. But what i can't understand is why $24∣m×(mn+1)−n×(m2−1)=m+n$

Please use UK pre-uni methods only (at least at first). Thank you.


From Silverman's A Friendly Introduction to Number Theory, exercise 12.3 (This is not homework). We start with a prime number $p$ and let  $$\sum_{n=1}^{p-1}{\frac{1}{n}} = \frac{A_p}{B_p}$$  where $\frac{A_p}{B_p}$ is a reduced form fraction. The exercise asks to find a simple way to express $A_p$ (mod $p^2$).  I understand that $A_p$ is $0$ (mod $p$), which can be proved by rewriting $A_p$  $$A_p = \sum_{n=1}^{p-1}{\frac{(p-1)!}{n}}$$  and noting that each term in the sum is in the form  $$\frac{(p-1)!}{n}$$  which allows us to write  $$ (p-1)! \equiv -1 \text{ (mod } p)\\ \frac{(p-1)!}{n} \cdot n \equiv -1 \text{ (mod } p)\\ \frac{(p-1)!}{n} \equiv -n^{-1} \text{ (mod } p). $$  Since every number between $1$ and $p$ - $1$ is represented by $-n^{-1}$ (mod $p$) for some unique $n$ between $1$ and $p$ - $1$, we can write   $$A_p \equiv T_{p-1} = \frac{(p-1)p}{n} \equiv 0 \text{ (mod } p).$$  However, the problem only asks for $A_p$ (mod $p^2$), for which I don't know where to proceed. I've tested every prime number up to $p = 37$ and found that with the exception of $p = 3$ every value of $A_p$ is $0$ (mod $p^2$).  If someone who understands what I'm missing can point me in the right direction or give me a hint I'd appreciate it.  EDIT  It's been suggested that Wolstenholme's theorem can be used to finish the proof. The connection between the problem here and Wolstenholme's theorem is interesting so I will try to study Wolstenholme's theorem. However, it doesn't seem like a likely path to have taken from where I'm at in my understanding. I'm also skeptical Silverman had intended for the audience of his book to discover Wolstenholme's theorem as a lemma to proving that $A_p$ is $0$ (mod $p^2$).

According to the theorem, if  $$1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\frac{1}{5}+\cdots+\frac{1}{p-1} =\frac{r}{q}$$  then we have to prove that $r\equiv0 \pmod{p^2}$.  (Given $p>3$, otherwise $1+\dfrac{1}{2}=\dfrac{3}{2}$, $3 \not\equiv  0 \pmod 9$.)  I guess there's a $(\bmod p)$ solution for this, but I don't really get how to start it.


This piece of Star Trek has been eating me for a while.  Many years ago, I saw an episode of Star Trek - it was either the original or TNG.  The Enterprise crew comes across a strange device which turns out to be a weapon of "peace".  It was advanced and powerful enough to destroy any known weapon.  But it did not attack anyone who was unarmed and I recall the captain ordering the crew not to even "think" violent thoughts.  The weapon then seemed pacified and caused no further harm.  Which series/episode was this?  What was the name of the weapon?

In what episode of TNG was an ancient Vulcan psionic weapon discovered? If I recall correctly, the device had 3 parts: life, death and balance in between. It worked only against aggression (to the best of my recollection).


I just set up my server today with one of my new static IP addresses to act as a mail and web server. The web server is working fine, and the mail server is working fine to receive mail, but I am unable to send any mail except to my own domain. I've looked in the SMTP log and it is filled with entries like this:  Oct  3 21:36:02 osxserver postfix/smtp[17767]: connect to mx3.hotmail.com[65.55.92.136]: Operation timed out (port 25) Oct  3 21:36:13 osxserver postfix/smtp[17965]: connect to mx1.icloud.com.akadns.net[17.172.34.10]: Operation timed out (port 25) Oct  3 21:36:32 osxserver postfix/smtp[17767]: connect to mx1.hotmail.com[65.55.37.72]: Operation timed out (port 25) Oct  3 21:36:43 osxserver postfix/smtp[17965]: connect to mx3.icloud.com.akadns.net[17.172.34.64]: Operation timed out (port 25) Oct  3 21:37:02 osxserver postfix/smtp[17767]: connect to mx3.hotmail.com[65.55.92.168]: Operation timed out (port 25) Oct  3 21:37:13 osxserver postfix/smtp[17965]: connect to mx3.icloud.com.akadns.net[17.172.34.65]: Operation timed out (port 25) Oct  3 21:37:32 osxserver postfix/smtp[17767]: connect to mx1.hotmail.com[65.54.188.72]: Operation timed out (port 25) Oct  3 21:37:43 osxserver postfix/smtp[17965]: connect to mx4.icloud.com.akadns.net[17.172.34.66]: Operation timed out (port 25) Oct  3 21:38:02 osxserver postfix/smtp[17767]: connect to mx3.hotmail.com[65.55.92.184]: Operation timed out (port 25) Oct  3 21:38:13 osxserver postfix/smtp[17965]: connect to mx6.icloud.com.akadns.net[17.172.34.70]: Operation timed out (port 25) Oct  3 21:38:32 osxserver postfix/smtp[17767]: connect to mx4.hotmail.com[65.55.92.184]: Operation timed out (port 25) Oct  3 21:38:43 osxserver postfix/smtp[17965]: connect to mx2.icloud.com.akadns.net[17.172.34.12]: Operation timed out (port 25) Oct  3 21:39:02 osxserver postfix/smtp[17767]: connect to mx2.hotmail.com[65.54.188.126]: Operation timed out (port 25) Oct  3 21:39:13 osxserver postfix/smtp[17965]: connect to mx2.icloud.com.akadns.net[17.172.34.11]: Operation timed out (port 25) Oct  3 21:39:32 osxserver postfix/smtp[17767]: connect to mx4.hotmail.com[65.54.188.126]: Operation timed out (port 25) Oct  3 21:39:43 osxserver postfix/smtp[17965]: connect to mx1.icloud.com.akadns.net[17.172.34.9]: Operation timed out (port 25) Oct  3 21:40:02 osxserver postfix/smtp[17767]: connect to mx4.hotmail.com[65.55.92.168]: Operation timed out (port 25) Oct  3 21:40:13 osxserver postfix/smtp[17965]: connect to mx5.icloud.com.akadns.net[17.172.34.68]: Operation timed out (port 25) Oct  3 21:40:13 osxserver postfix/smtp[17965]: 449966C1EC: to=<jehamlett@icloud.com>, relay=none, delay=39809, status=deferred (connect to mx5.icloud.com.akadns.net[17.172.34.68]: Operation timed out)   Any recommendations on how I can fix this so that I can send mail? My server is running OS X Server 10.4.11 and my ISP is AT&T u-verse business class.

My ISP has started blocking port 25 so I can not send email through my dedicated server any more.   I have several options:   Send email through the SMTP server provided by my ISP. Any problems with this? Setup mu server so that it receives email on another port instead of port 25     No one else sends email through my server so it should be OK. How do I do this on a Linux server? Buy a static client IP - these are not being blocked so far.   Which one is preferable?


I found these sentences:     PCA before random forest can be useful not for dimensionality   reduction but to give you data a shape where random forest can perform   better.      I am quiet sure that in general if you transform your data with PCA   keeping the same dimensionality of the original data you will have a   better classification with random forest   from this page:   In my case I found this is really true, for a regression problem with a database of ~1M records and 25 predictors. The error decreases by about 10% if I use the 25 PCA as predictors instead of the 25 original predictors.  Can anyone help me in understanding and clearly interpreting this result?

Suppose I am running a regression $Y \sim X$. Why by selecting top $k$ principle components of $X$, does the model retain its predictive power on $Y$?   I understand that from dimensionality-reduction/feature-selection point of view, if $v_1, v_2, ... v_k$ are the eigenvectors of covariance matrix of $X$ with top $k$ eigenvalues, then $Xv_1, Xv_2 ... Xv_k$ are top $k$ principal components with maximum variances. We can thereby reduce the number of features to $k$ and retain most of the predictive power, as I understand it.   But why do top $k$ components retain the predictive power on $Y$?   If we talk about a general OLS $Y \sim Z$, there is no reason to suggest that if feature $Z_i$ has maximum variance, then $Z_i$ has the most predictive power on $Y$.   Update after seeing comments: I guess I have seen tons of examples of using PCA for dimensionality reduction. I have been assuming that means the dimensions we are left with have the most predictive power. Otherwise what's the point of dimensionality reduction?


Sorry if this is a duplicate, I've been searching around for a while but I've not been able to find a clear, simple and straightforward answer to this question. I have a Windows 10 PC with an existing user profile, f.e. C:\Users\Username. I want to move the profile to a different path, f.e. D:\Username. I want to move the full user profile, not only the user folders (Documents, Pictures.etc.). I know this must be done while logged on as another (administrative) user, otherwise the user profile is locked; that's fine. But how do I actually move an existing user profile do a different location?

The default location for User Profiles are C:\Users.  I would like to move this location to another drive (i.e. D:\Users).  I've already been able to customize the library locations, however there are other things that I like to migrate as well.  Is there a simple way to change the default location of the User Profiles?


Can I use the installer to install Ubuntu and then go and delete Windows Vista while I'm running Ubuntu?

I have installed Ubuntu on my D: partition using Wubi. Is there any way in which I can remove my Windows from C: drive and move my existing Ubuntu installation to C: drive and make it a regular install.


For command, it states, "The target must succeed on a Wisdom saving throw or follow the command on its next turn" without any context to how high the target needs to roll for it to succeed. What does the target need to roll to succeed that saving throw? Is the number specific for command or is it the same for all spells like this? I'd like to get all the info I can for this.

I'm a pretty new player, and I'm building a bard in D&D 5e. I understand how saving throws work in general, but I am a little confused about one thing. Say I cast Blindness/Deafness on a humanoid. They must then make a Constitution saving throw. My question is: what value do they have to roll in order to make the save? Does their roll (plus their constitution modifier) have to beat my constitution (plus my modifier)? This is more of a general player question than one specific to the Bard or that spell.


I was looking at some of the shape classes in the java.awt.geom package when I noticed that most of the classes such as Ellipse2D.Double, Arc2D.Double, etc are defined as static.   I've seen what static fields and methods of a class are, but what does it mean for a class to be static? Does it just mean that all of it's fields and methods are static or is there more to it?

What is the main difference between an inner class and a static nested class in Java? Does design / implementation play a role in choosing one of these?


So this question came up on one of the exercise in a workbook and I am having trouble finding a clear answer.  Some suggests that "whom" is the correct word to use here: "you" is the subject, "think" is the verb and "whom" is the object. However, in this context this combination doesn't makes sense to me. I thought that maybe "who" can be a subject, "you think" is adjective, "do" is verb and the "job" is the object. So am I overcomplicating this?  I appreciate any thoughts!

I can never figure out whether I should use who and whom. Most people use who for both colloquially, but some people say this is not correct.  What’s the rule for using who and whom correctly?


I know this , but obviously there's still something that keeps this from being implemented/fixed.  I am a pretty active editor on Stack Overflow. In fact, I do edit a lot more questions than I answer. I have the Strunk-and-White badge, and if that one would stack I would have it several times by now. I am pretty high-rep — in short: I know what I'm doing.  Still.  When a question has been edited by someone whose edit needs approval, I cannot "instant-approve" his edit. Why on earth should another user be needed to approve my decision?  I know, if I go to "improve", I can overwrite the suggested edit. But that's not what I want. Especially if the edit is good, why should I take credit for it?  If I click "approve" instead, the system doesn't even let me "improve" the edit anymore. Seriously, this makes no sense at all.

It's not consistent to leave an edit pending for approval (thus not making available for everyone else and locking its state) after a user who has those privileges have given his endorsement.   You could say why don't I improve the edit, but that makes no sense for something that is correct and it would not follow the "keep it simple" policy.  Update:  This is the current time line:   Someone who doesn't know about formatting makes a question. It's not legible A user without edit privileges amends the formatting. The correction is not visible, still not legible. I see the question and the pending revision and then cast my approval. It doesn't take effect yet, still not legible. Even for me if I didn't take care of copying the question source because it disappears from my own revision page!   I might agree that one's approval is indicative of both revision's quality and editor's competence. But we should retain that the main objective is to ask and answer questions. So, I propose this model:   Someone who doesn't know about formatting makes a question. It's not legible A user without edit privileges amends the formatting. The correction is not visible, still not legible. A user with edit privileges cast his approval. Revision takes effect. Although it keeps the pending approval (the Edit (1) button). If a second user with edit privileges cast a rejection, it also takes effect as a rollback.


I've re-installed  win xp sp3 and now have a lot of problems finding the corresponding drivers.  There are many yellow quest marks in device manager. There is no sound, graphic driver is missing, the machine cannot even go to internet.  Here are data from CPU-Z  cpu - amd athlon+    Motherboard - hp0A64h  chipset - ATI Xpress 200 (RS480)  Graphic interface - PCI express Graphics - AsusTek Computer Inc. ATI Radeon  Here are yellow quest hardware IDs from Device Manager  Other devices   Audio Device on High Definition AUdio Bus HDAUDIO\FUNC_01&VEN_1002&DEV_AA01&SUBSYS_00AA0100&REV_1002 HDAUDIO\FUNC_01&VEN_1002&DEV_AA01&SUBSYS_00AA0100  Audio Device on High Definition AUdio Bus HDAUDIO\FUNC_01&VEN_10EC&DEV_0260&SUBSYS_103C280A&REV_1004 HDAUDIO\FUNC_01&VEN_10EC&DEV_0260&SUBSYS_103C280A  Ethernet Controller PCI\VEN_14E4&DEV_167B&SUBSYS_280A103C&REV_02 PCI\VEN_14E4&DEV_167B&SUBSYS_280A103C PCI\VEN_14E4&DEV_167B&CC_020000 PCI\VEN_14E4&DEV_167B&CC_0200  SM Bus Controller PCI\VEN_1002&DEV_4385&SUBSYS_280A103C&REV_13 PCI\VEN_1002&DEV_4385&SUBSYS_280A103C PCI\VEN_1002&DEV_4385&CC_0C0500 PCI\VEN_1002&DEV_4385&CC_0C05  Video Controller (VGA Compatible) PCI\VEN_1002&DEV_68F9&SUBSYS_30001043&REV_00 PCI\VEN_1002&DEV_68F9&SUBSYS_30001043 PCI\VEN_1002&DEV_68F9&CC_030000 PCI\VEN_1002&DEV_68F9&CC_0300   Any help, pls.

I reinstalled windows on a new machine and the drivers are not present for the product network card.   When in device manager all I get is the question mark and I am unable to figure out the actual name of the vendor or model of the card. This is making my search to find the correct driver hard.   Anyone know how I to find out more about the hardware that does not have drivers?


I did shit and I ran: sudo chdmod 777 -R /  Is there a way to fix this? Without having to reinstall ubuntu everything?

I accidently ran  sudo chmod 755 -R /   instead of  sudo chmod 755 -R ./   I stopped it after few seconds, but now there is some problems such as  sudo: must be setuid root   How can I revert permissions back?


Do the following (1) and (2)sentences have the same meaning ?   Being taken to the hospital, he died. While being taken to the hospital, he died.   ( Do both sentences mean: while he was being taken to the hospital, he died)?  Is it correct to use No1 and No2 sentence? What kind of sentence construction they have? I Was told by @P.E Dent in previous question  that first example sentence is in "continueous participle clause in passive voice". I don't understand what "continueous participle clause in passive voice" mean.

What is the difference in the meaning between the following sentences:      Being beaten by snow, he died.     Beaten by snow, he died.    Or:      Being taken to the hospital, he survived.     Taken to the hospital, he survived.    Here are my opinions about them:  When we use Being+past participle as a participle clause, it refers to the reason for the action of the main clause and it replaces 'Because'.  when we use past participle clause as a subordinate clause it also refers to the reason for the action in the main clause. Thus, both(being+p.p and p.p) work the same and their meanings also same in sentences. They convey the same meangs but only their construction is different. I'm not sure,so I'm confused here.  If i understand the usage and meaning of them, my confusion will certainly be eliminated.


Why is the following relation anti-symmetric?  {(1,2), (2,3), (3,4), (1,4), (1,3), (2,4)}  From my understanding, it is anti-symmetric if:  $$ (a, b) \in R,  (b, a) \in R, b=a $$  Must hold. Which is it this case not true. I would rather say it is asymmetric since there is no symmetric nor anti symmetric relation at all.

Given a set $\{1,2,3,4\}$, how is the following relation $R$ antisymmetric?  $$R = \{(1, 2), (2, 3), (3, 4)\}$$  Note: Antisymmetric is the idea that if $(a,b)$ is in $R$ and $(b,a)$ is in $R$, then $a = b$. In my textbook  it says the above is antisymmetric which isn't the case as whenever $(a,b)$ is in $R$, $(b,a)$ is not.


I don't want to send editable file or native file (i.e. Ai.) to client. I read some articles and found out that people send pdf file to client. Do I need to add password to it? because when I open pdf file on illustrator, I still can edit it and see all the layers.   Please advice

I have designed a logo for a non-profit that I want to allow different committees to use it, but I don't want them to be able to alter anything but the size.  I have created the design as a vector image(all font saved as outlines) with transparent background and with separate versions for black, greyscale at 80%, white to print on dark backgrounds and a specified color.  The skill of members varies as does their printers, some barely know what a jpeg is, others are prepping brochures for press printing, others are using the image on the web and for email.  I know I can take most image formats and extract, distort, erase, change colors, superimpose other elements etc.  I don't want others to be able to do this without permission from the organization board.  Using illustrator in CS5 on iMac 27" OS X 10.10.4


I am writing a function to find the intersection of two linked list.  My first implementation was like this (advanceByK function advances and does not return value):  public ListNode getIntersectionNode(ListNode a, ListNode b) {          int aLen=findLength(a);         int bLen = findLength(b);          if(aLen==0 || bLen==0) return null;          ListNode aTemp = a, bTemp = b;          if(aLen>bLen) {             advanceByK(aTemp,aLen-bLen);         } else if(bLen > aLen) {             advanceByK(bTemp,bLen-aLen);         }          while((aTemp!=null) && (bTemp !=null)) {             if(aTemp.equals(bTemp))return aTemp;              aTemp = aTemp.next;             bTemp = bTemp.next;         }         return null;     }      public void advanceByK(ListNode head, int k) {          while(k>0) {             if(head!=null) head=head.next;             k--;         }     }      public int findLength(ListNode head) {         ListNode temp = head;         int res =0;         if(temp==null) return res;          while(temp!=null) {             res++;             temp = temp.next;         }          return res;     }   And then I changed to this and it worked      public ListNode advanceByK(ListNode head, int k) {          while(k>0) {             if(head!=null) head=head.next;             k--;         }         return head;     }   What I am doing wrong here?  I know that Java pass by reference, and it should have moved the head in the advanceByK function

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


When reviewing the Late Answers queue (this might apply to other queues, I encountered it with this one) we might want to edit the answer. If we do, the edit window will be inside the scope of the review and when posting the edit, we will be back to the review page, being able to select "I'm Done". But if there is already a proposed edit that we want to review, we will be redirected to review it inside the Suggested Edits queue. This means that when we submit the review, we will keep getting more edit items to review, instead of going back to the original Late Answers queue item. This deprives us from marking the approval/rejection of the edit as the action taken on the late answer (i.e. approving an edit should be equal to editing as an action taken on the late answer). I would like to suggest changing the edit review from a different queue to be a pop-up, similar to reviewing an edit from the question's page itself and not from the Suggested Edits queue.

I was in the first posts review queue and chanced on a post with a suggested edit. (Note: I have enough reputation to review suggested edits.) I clicked on “edit (1)” and was taken into the suggested edits queue. When I approved the suggested edit, I was taken to the next suggested edit, and so on until there were no more suggestions (“There are no items for you to review.”, still in the suggested edits queue). In this situation, I think it would make more sense if I was brought back to that post I was working on in the first posts queue, as soon as I acted on its suggested edit. Alternatively, the suggested edit should be shown in the same kind of pop-up as on a question thread page. The same goes for other queues (late answers, low quality, etc.).


Definition. $S(x):=x\cup${$x$}.  Theorem1. For all natural numbers $x$ and $y$, if $x\in y$ then $x\subseteq y$.  Theorem2. For all natural numbers $x$ and $y$ if $S(x)=S(y)$ then $x=y$.  Note that we will use Theorem1 for proof of Theorem2.  Proof of Theorem2. Assume not. i.e., if $S(x)=S(y)$ then $x\neq y$. We know that $x\in x\cup$ {$x$}. Also, by the assumption $x\in y\cup$ {$y$}. Hence, either $x\in y$ or $x\in$ {$y$}. So,...  Can you help?  Answer:

Definition. $0=\emptyset$.  Definition.  $S(x):=x\cup\{x\}$, $S(y):=y\cup\{y\}$.  Definition. $S(x):=x\cup${$x$}.  Theorem1. For all natural numbers $x$ and $y$, if $x\in y$ then $x\subseteq y$.  Theorem2. For all natural numbers $x$ and $y$ if $S(x)=S(y)$ then $x=y$.  Note that we will use Theorem1 for proof of Theorem2.


The integral is:  $$\int_{0}^{1} \dfrac{\ln(x+1)}{x^2+1} dx$$  This is a Putnam question from my calculus book. It was in the section about trig substitution. However, I see no way of how mixing a trig function with a natural logarithm would make it any easier. I've tried the substitution $x=\tan \theta$ and got $$\dfrac 12\int \ln(1+\tan \theta)^2 d \theta$$  However, I wasn't able to simplify it to any integrable form.

How can I calculate the integral $I=\int_0^1\frac{\ln(1+x)}{1+x^2}\,dx$ by substituting $t=\frac{1-x}{1+x}$.


suggests commands as you type based on history and completions:    Is it possible to make zsh-autosuggestions work in PowerShell?  Is there an equivalent module which provides the same functionality?  Note that this is not a request on how to auto-complete like shown in . This is about showing the suggestion before you type it, in gray, in the same line you are typing, without having to press TAB to see the options. It's about emulating the beavior of zsh-autosuggestions like shown in the animated GIF.

I was wondering if there was anyway to change the way the current powershell autocomplete works. I have been using bash and had changed them to offer a few features that I'd like in my powershell experience.   Currently powershell as I'm writing a command with a folder it will tab autocomplete and also cycle through my folders. This works how I like but one feature that I miss is using partial matching of a command and hitting the up key and it would find that command that matches the rest of what I do.   So Id write 'echo test'  Then id write other commands and try 'ec' and tap up and 'echo test' would complete and not the last command I typed  Just wondering if there is anyway anyway to get this back?


I've come across this issue multiple times already and never really figured out the best way to do it.  I'm designing a controller PCB for a drone and I would like to have a few different ways of powering it. USB power just for the control electronics, a battery connector (2-4S, not really sure yet) for the ESCs/motors and another regular connector for development 12V supply so I don't have to rely on batteries.  Now, I'd love to have a circuit that would automagically switch between these and make sure only one of them is active at any time to protect other supplies from reverse current and what not if multiple are plugged in at the same time. For instance, I would probably have USB and the 12V supply or battery plugged in at the same time during development because USB would just be used for debugging and the 12V supply or the battery to power all of the electronics and motors. Priorities would be 12V supply > battery > USB.  I could probably figure out the rest out myself but I just don't know where to start with this.

Following on an earlier  I am looking for a circuit where it powers from USB when it is available and uses the battery when USB is not plugged in.  I want voltage drop to be minimal, zero if possible. So using oring diodes is not possible. The mosfet power oring ICs mentioned in the answer are extremely expensive (4$ for 1K) although they have low voltage drop.   I am looking for a discrete solution where I can build with simple switches or even a cheap LDO. I didn't try to build it but I thought I could use the existence of the Vbus to do a simple switch to control LDO's one from VBus, the other from VBat.   UPDATE   Ideally zero drop is wanted however up to 100mV can be tolerated.  My system has 4 AA batteries, so there could be cases where the battery voltage is larger than 5V, that is why I focus on the existence of VBus. The small drop comes from the Operation voltage of one of the ICs, it needs to be 3.5V (min) and the larger voltage drop eats into the battery life. (i.e. 4 battery, 0.9 each, 3.6V, 100mV drop, I can squeeze the batteries). If there is a 0.7V drop, I can not use the full battery power. (I have to shut down the system at some point of time to ensure proper operation but batteries has still a lot of juice left)


I want to put the citation number like [2] just after Theorem number and no space between them. For example Theorem 1.2.1[7].

Can we remove the ( ) bracket from the environment like Theorem 1.2.1 ( [7]).


I would like to see the proof of the following identity without the use of induction.  For a real convex function $f$, numbers $x_1, x_2, ..., x_n$ in its domain, and positive weights $a_i$, Jensen's inequality can be stated as:  $$f\left( \frac { \sum { { a }_{ i }{ x }_{ i } }  }{ \sum { { a }_{ j } }  }  \right) \le \frac { { a }_{ i }f({ x }_{ i }) }{ \sum { { a }_{ j } }}$$   PS: I would like to see a derivation rather than the proof. Thanks in advance

I want to prove that     Suppose there is a function $f:[a,b] \to \mathbb R$, and there are $x_i \in [a,b], w_i \gt 0 $ for $i=1,\dots,n$ such that $\sum_{i=1}^nw_i=1$, then if the function is convex, the following inequality holds $$\sum_{i=1}^nw_if(x_i) \ge f(\sum_{i=1}^n w_ix_i)$$   and if the function is concave, flip the sign of inequality.   Please include (very) detailed explanation, because I do not have much mathematical maturity, and perhaps may not be able to understand what the equation defining convex means if the explanation is too concise.


Is it possible to animate a sprite shape?  I don't see the Sprite Shape Profile in the animator properties, so I was just wondering if there's another way to do that. To clarify: Our game is 2D animated by hand, and one level has conveyor belts that span the level.  We can animate it normally, but that will end up taking more video memory than if we were able to animate the conveyors as tiled sprite shapes.  It may not end up being worth the effort to save the memory, but I figured it was worth a shot.  Because the sprites span the level, they end up taking up lots of space in a sprite atlas.

Our game is a 2D point-and-click adventure game.  One of the levels is set in a factory with conveyor belts that span the scene.  The game is hand animated in 2D and so animating these conveyor belts could potentially take up lots of memory since the sprites are as long as the screen (it's an HD game - 1920 x 1080). I'm not sure if tiled sprite shapes can be animated, so I was wondering if there's a prescribed way to handle larger sprite animation like this - efficiently.


According to , about the book “”, there is one word in the English language which starts with a silent B. Unfortunately, they don’t tell us which word it is, and I’d quite like to know!

My dad and I were playing a game in the car where we picked a letter and then each alternated saying a word that started with that letter. We did it with b, for example, it might go:     Dad: bath   me: ball   dad: buffalo   me: bank   etc.   As we were playing/debating the rules of our game, I noticed that there were no b-words that I could think of that started with a sound other than /b/. Whereas, for example, for words starting with the letter t, some of them begin with the sound /ð/ or /θ/ rather than /t/.  Am I missing some obvious contradictions to this 'rule'? Is there any sort of etymological explanation for this?  To clarify as requested by a comment:  I am looking for   A word that starts with a b that makes a sound other than /b/. More broadly, whether or not there is an etymologically explained pattern among starting letters that shows whether or not there exists the non-phonetic sound at the beginning of a word for a certain letter (or the commonality of the existence of those cases).   From here I'm looking at which starting letters of words have a tendency to be pronounced non-phonetically.


I want to know why we cant use <, <=, >,>= relational operators on String literals.   import java.util.*; public class Coffee{     public static void main(String args[]){         String s1="Cat";         String s2="Dog";         System.out.println(s1<s2);     } }   gets an error " operator < cannot be applied to java.lang.String" why?  can't it compare like this C < D so true???  Can anyone explain why?? Thanks in advance.. :)

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


I have to replace a wifi/bluetooth/isight cable on my mid-2009 MacBook Pro 13".  I have seen resources and vids that show how to essentially replace the cable up to the card and including the card but there is the other long end of the cable that feeds and connects too?  How do I replace this without causing damage.  Help!

If my iSight camera no longer works and neither does my bluetooth, should my wifi still technically be working? Aren't they all co-dependent(if that makes sense) or can the fact that my wifi is still functional mean that the iSight camera still works and it's a software problem.


What's the C++ way of returning a derived type as a abstract type in a function with this caveat?  Say the function creates a derived type and wants to return that object as the abstract base type. How do you do that in C++ without resorting to messy C like  pointers?

What is a smart pointer and when should I use one?


I'm obsessed with the liability Imperial installations seem to carry in terms of worker accidents.  (For instance, they build installations where you have insane drops, with no railings at all.  We saw this recently I think on Starkiller Base in The Force Awakens.)   is especially concerning.  I recall a droid skimming on the actual lava on some sort of vehicle that offered scant protection.  I know droids aren't considered people, but I got the strong sense biological organisms are working with the same lack of safety measures. (I understand that the natives of Mustafar have thick, heat resistant skins, but that's not going to help all that much if you fall 1000 feet into a river of lava!)  It seems pretty clear that the Empire (and probably the Tech Union, which had possession of Mustafar previously) aren't concerned with working conditions, but:  Was the Old Republic any better than the Empire in terms of worker safety standards?

Is there anything in the Star Wars canon that explains the alarming lack of safety railings on various structures in the Republic?  An example from The Empire Strikes Back, a landing pad on Bespin:    The ankle level curb might be considered a weak nod toward safety but I would not want to be on that platform if winds were high.  Given that Bespin is a city in the clouds, winds would be high a lot of the time.  There are other examples, such as the open catwalks over an abyss in the first Death Star, the balconies on Coruscant, open staircases everywhere, and the catwalks on which Qui-Gon, Obi-Wan and Darth Maul fought on Naboo.  There are some exceptions, too.  The Ewoks believed in safety apparently and used railings on the catwalks between their tree dwellings.  On Bespin in the lower level where Vader and Luke fought there is a railing on the gantry stretching over the abyss.    No note is made note of this situation in the movies, but there is much more Star Wars related material than I will ever see or read.  Does any of it address the railings issue?