Say you have n randomly selected students from another planet whose birthdays are known. x of them have birthdays that collide with at least one other student. How do you estimate the number of days in their year?  Alternatively, perhaps you can use the fact that you know these n students have $x_1$ birthday collision pairs, $x_2$ birthday collision triplets and so on. How could the number of days in their year be estimated from that?  Edit for context: I am building a framework where teachers can build small programs to procedurally generate math questions and I would like to show them an estimation of how many actual questions they are generating. I can sample their program a bunch of times to get different questions and check if I have seen them before (birthday collisions).   Of course immediately after giving up and posting here I realize that $x_1$, $x_2$ etc mentioned above would give me a binomial distribution where if I can get P, I beleive the "population size" should be 1/P. I am trying this approach right now and will sanity check and compare to wolfram alpha. Also please be gentle, I'm just a programmer, I don't really know what I am doing.

This problem is probably simple enough to have an analogous problem, I just don't know the name so I'm going to describe it and hopefully somebody can point me in the right direction.  The problem is this: estimating the number of sides of a .   Let's say you perform the following process:   Shake the "Magic 8 Ball" and mark down the result If the result has not previously been seen, add it to the set of possible results and label the trial "N" (for "new") If the result has been previously seen, label the trial "O" (for "old") Repeat all steps   I imagine the following kind of sequence occurring: NNNNONNOONOONOOONOOOONONNOONOOONNOONOOOOOONOOONOOOOOOONOOOOOOOONOOOOOOOO...  Now imagine we don't know there are twenty sides to a Magic 8 Ball. Or imagine that you have a Magic 8 Ball with 1000 sides. As the number of "new" trials approaches the actual number of sides, we'll get increasingly more "old" trials showing up in the mix. Once we've seen all of the possible results, we'll always get "old" results. But we're never 100% sure we've seen every single possible result.  So here are the questions I'm interested in:   As we proceed with trials, can we estimate the total number of "sides" of the Magic 8 ball based on the number of "new" and "old" trials up to this point? Can we calculate a probability that our current estimate is correct, or a probability that some bounded estimate is correct?


Whenever I try to install some .deb packages which I downloaded before (e.g. Atom, BP-tools etc.) I receive this error in Ubuntu 17.10:  ./bp-tools_17.12_amd64_Xenial_free.deb  ./bp-tools_17.12_amd64_Xenial_free.deb: line 1: syntax error near unexpected token `newline' ./bp-tools_17.12_amd64_Xenial_free.deb: line 1: `!<arch>'   can anyone help, please?

How do I install a .deb file via the command line?


public void doFilter(ServletRequest req, ServletResponse response, FilterChain next) throws IOException, ServletException {     HttpServletRequest request = (HttpServletRequest) req;     String accessToken=(String) request.getSession().getAttribute(AppConstants.AUTHZHEADER);     new JwtBearerTokenHandler(accessToken);     UserInfoWrapper userInfo = new UserInfoWrapper();     List<String> roles = userInfo.getRole();     String user = userInfo.getUid();     if (null != user) {         next.doFilter(new UserRoleRequestWrapper(user, roles, request), response);     } else {         next.doFilter(reqeust, response);     }     ...  Error: Message: Network error: An IO error occurred sending the request. Details: java.io.IOException: Connection closed during ALPN negotiation. <!doctype html>               <title>HTTP Status 500 â€“ Internal Server Error</title>
HTTP Status 500 â€“ Internal Server Error

             Type Exception Report

             Description The server encountered an unexpected condition that prevented it from fulfilling the request.

             Exception

java.lang.NullPointerException              abc.SelectMarqueServlet.performTask(SelectMarqueServlet.java:68)             cmetool.runtime.servlet.BasicServlet.doPost(BasicServlet.java:66)             javax.servlet.http.HttpServlet.service(HttpServlet.java:652)             javax.servlet.http.HttpServlet.service(HttpServlet.java:733)             org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)             com.renault.common.log.LogMdcFilter.doFilter(LogMdcFilter.java:62)             com.renault.auth.filter.UserRoleFilter.doFilter(UserRoleFilter.java:55)

             Note The full stack trace of the root cause is available in the server logs.

Apache Tomcat/8.5.57

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


When I'm trying to install Kodi, I get:  root@xKaganovich:/home/kaganovich# apt-get install kodi Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   fonts-roboto fonts-roboto-hinted kodi-data libcec-platform1v5 libcec3   libfstrcmp0 libhdhomerun2 libjs-iscroll libsdl2-2.0-0 libsndio6.1 Use 'sudo apt autoremove' to remove them. Suggested packages:   kodi-pvr-mythtv kodi-pvr-vuplus kodi-pvr-vdr-vnsi kodi-pvr-njoy   kodi-pvr-nextpvr kodi-pvr-mediaportal-tvserver kodi-pvr-tvheadend-hts   kodi-pvr-dvbviewer kodi-pvr-argustv kodi-pvr-iptvsimple   kodi-audioencoder-vorbis kodi-audioencoder-flac kodi-audioencoder-lame The following NEW packages will be installed:   kodi 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 0 B/20.0 MB of archives. After this operation, 37.1 MB of additional disk space will be used. (Reading database ... 264739 files and directories currently installed.) Preparing to unpack .../kodi_2%3a17.6+git20171114.2125-final-0xenial_all.deb ... Unpacking kodi (2:17.6+git20171114.2125-final-0xenial) ... dpkg: error processing archive /var/cache/apt/archives/kodi_2%3a17.6+git20171114.2125-final-0xenial_all.deb (--unpack):  trying to overwrite '/usr/share/kodi/media/icon32x32.png', which is also in package kodi-data 15.2+dfsg1-3ubuntu1.1 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Processing triggers for man-db (2.7.5-1) ... Processing triggers for menu (2.1.47ubuntu1.16.04.1) ... Errors were encountered while processing:  /var/cache/apt/archives/kodi_2%3a17.6+git20171114.2125-final-0xenial_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   How can i fix this problem?

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


After accidently deleting files in the wrong dir, using find . -delete, is there anyway to recover the files or are they permanently removed from the filesystem?  EDIT:  I am hoping to find a relatively specific answer, rather than the recovery of a single file. There are several files deleted and manual restoration of each, individually, isn't a viable option.

I accidentally deleted a file from my laptop. I'm using Fedora. Is it possible to recover the file?


Let's consider this sentence:     The postponement of marriage in order to accumulate credentials or job experience, the willingness to move to further career goals, and — in the case of bohemians — the willingness to accept incomes too low to support children in order to be an avant-garde writer or artist or revolutionary sets intellectuals and other elite professionals apart from the working-class majority whose education ends with high school and who rely on extended family networks for economic support and child care.   (Excerpted from Michael Lind - aldaily.com)  In the above sentence, the subject consists of three components separated by two commas. However, the main verb of this sentence, "sets", does not agree with the subject (since it contain three parts). Therefore, can someone elucidate this sentence for me? Thanks!

Which is correct?  "When quality and integrity matter..." or "When quality and integrity matters..."?


I want to show that: $\vdash (\lnot \alpha \to \alpha) \to \alpha$, and here's what I've tried:  Using the deduction theorem, this is the same as proving $\{(\lnot \alpha \to \alpha)\} \vdash \alpha$ $\alpha \to (\lnot \alpha \to \alpha)$ (axiom) $(\alpha \to (\lnot \alpha \to \alpha)) \to ((\alpha \to \lnot \alpha) \to (\alpha \to \alpha)) $ (axiom) $(\alpha \to \lnot \alpha) \to (\alpha \to \alpha)$ (Modus-Ponens on 2 and 3)  How do I go ahead from here? Thanks! List of Axioms:  $\alpha \to (\beta \to \alpha)$ (1) $(\alpha \to (\beta \to \gamma)) \to ((\alpha \to \beta) \to (\alpha \to \gamma))$ (2) $(\lnot \beta \to \lnot \alpha) \to (\alpha \to \beta)$ (3)  and Modus-Ponens is the sole rule of inference.

Problem. Let $(\mathscr{L},\vdash)$ be a logic and $\Gamma\subseteq\mathscr{L}$ be a set of formulas such that for some $\varphi\in\mathscr{L}$ we have $$\Gamma\vdash\varphi\to\neg\varphi$$ $$\Gamma\vdash\neg\varphi\to\varphi$$Then show that, $$\Gamma\vdash(\varphi\to\neg\varphi)\to\varphi$$using only the following, $\color{crimson}{\text{Axiom 1.}}\  P\to (Q\to P)$ $\color{crimson}{\text{Axiom 2.}}\  (S\to (P\to Q))\to((S\to P)\to (S\to Q))$ $\color{crimson}{\text{Axiom 3.}}\  (\neg Q\to\neg P)\to(P\to Q)$ $\color{crimson}{\text{Rule of Inference.}}$ . $\color{crimson}{\text{Theorem.}}$ .  I have tried for some hours to find a proof of the claim but couldn't succeed. Can anyone help?


i read an article about when to pass pointers as argument of functions. But i want to know about some situations in which you should pass a pointer to pointer as argument of a function. To be more clear i want to know when one should use something like:  func(int **x);

What are the benefits of passing by pointer over passing by reference in C++?  Lately, I have seen a number of examples that chose passing function arguments by pointers instead of passing by reference.  Are there benefits to doing this?  Example:  func(SPRITE *x);   with a call of  func(&mySprite);   vs.  func(SPRITE &x);   with a call of  func(mySprite);


The perimeter of the original square is $4$ (where each side is $1$). The perimeter of each subsequent shape is also $4$ by observation. Yet the limiting shape, a right angled triangle of base $1$ and height $1$ has perimeter $2+\sqrt2$. How can this be?

What is wrong with this proof?    Is $\pi=4?$


I am using Ubuntu Budgie and using Terminix as terminal alternative.   I have two users a and b, when I login with user a and use 'gedit .bashrc', gedit works.  However, when I switch to user b using 'su b' and run 'gedit .bashrc', I am getting the following error.  ****No protocol specified Unable to init server: Could not connect: Connection refused (gedit:7211): Gtk-WARNING **: cannot open display: :0****   I tried to use the fix this by following methods.   Manually set display variable.  export DISPLAY=:0.0 //Doesn't work.    I even tried adding the line to .bashrc and sourcing it. Doesn't work either.   Tried setting xTerm.  xhost +local: No protocol specified xhost:  unable to open display ":0"    Still same error is shown.   Copy .Xauthority of one user to other. This too doesn't work.   Seems I am unable to launch any text editor (Atom,Sublime etc.) from terminix.

I login as user 'foo' and if I am able to run gedit and edit files in my Ubuntu 12.04 machine with a DISPLAY setting as :0  If I "su - bar" and then try to edit files, I get a no protocol specified error and it doesn't open the necessary files. What coule be the problem here?


I am studying ring theory and have come across polynomial rings. There is an exercise to show that $$u \in R^{x} \implies u \in R[X]^{x}$$ where $(R,+, \times)$ is an integral domain. I know that $R^{x}$ is the set of all units in R, which is the set of all elements of $R$ with a multiplicative inverse, and similarly for $R[X]^{x}$. But I am stuck with proving the above statement.

My lecture notes state that an 'easy' result is     If $R$ is an integral domain then an irreducible element of $R$ remains irreducible in $R[x]$, and the units in $R$ and in $R[x]$ are the same.   I can't seem to get my head around why this is the case, and what a unit in $R[x]$ means intuitively because I don't see how the units can be the same if $R$ is the coefficients of the polynomials in $R[x]$. I.e. for an unit say $\alpha \in R$ then what is the 'corresponding' unit in $R[x]$? I is it $\alpha x$ or $\alpha x^2$... or am I getting the wrong end of the stick here?


I'm trying to make two methods. One to add people, and another to view them. This is what I've got so far:  Contacts contactObj = new Contacts();   private void viewContact() {     System.out.println("Here are your contacts: ");     contactObj.getNames().forEach(System.out::println); }   private void addContact() {     System.out.println("You're about to add " + firstName + " " + lastName + " to your contacts");     System.out.println("Are you sure? [y]es or [n]o");     String confirmation = fetchContactDetails.next().toLowerCase();      if (confirmation == "y" || confirmation == "yes") {         contactObj.addName(firstName + lastName);         contactObj.addName("connor template");     }      if (confirmation == "n" || confirmation == "no") {         firstName = null;         lastName = null;     } }   I also have a Contact file that looks like this:  import java.util.ArrayList; import java.util.List; import java.util.Objects;  public class Contacts {      private List<String> names;      public Contacts() {         this.names = new ArrayList<>();     }      //add a name to list     public void addName(String name) {         if (!Objects.nonNull(names)) {             this.names = new ArrayList<>();         }         this.names.add(name);     }      //get the name attribute     public List<String> getNames() {         if (!Objects.nonNull(names)) {             this.names = new ArrayList<>();         }         return this.names;     }  }   So theoretically I should be able to call addContact() and it should ask me their name and last name. I should then be able to call viewContact() it should display a list of people. Unfortunately it says "Here are your contacts: " with no contacts. Thanks for any help :)

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?


How can I recursively replace a string in all folders and files' name with a different string? I am running Red Hat 6 and I can find them with:  find . -name \*string\*   I've managed to do it for strings within files:  find . -type f -exec sed -i 's/string1/string2/g' {} +   but how could I replace in a similar way all file names?

I have a directory full of images:  image0001.png image0002.png image0003.png ...   And I would like a one-liner to rename them to (say).  0001.png 0002.png 0003.png ...   How do I do this?


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}$.


I am Indian national, residing in Qatar.  I am traveling to the  US through London Heathrow (UK). My stopover at Heathrow is approx. 4 hours, before proceeding to US on same day of my arrival.  I will be changing terminals at LHR. I have no idea about the UK Immigration controls & baggage section also. I already booked/reserved my ticket with flight operated by American airlines/American airlines operated by Qatar airways.  Please let me know the whether TRANSIT Visa required for 4 hrs. stay at LHR before moving for onward journey to US.

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


Let $|z_1|=\dots=|z_n|=1$ on the complex plane.  Prove that:  $$ \left(1+\frac{z_2}{z_1}\right) \left(1+\frac{z_3}{z_2}\right) \dots \left(1+\frac{z_n}{z_{n-1}}\right) \left(1+\frac{z_1}{z_n}\right) \in\mathbb{R} $$  I have tried induction and writing every "subexpression" as $(1+e^{i(\theta_n-\theta_{n-1})})$.  Any ideas?


I know we say "do you know who he is / I don't know who he is" but I saw this sentence in an article translated by a Chinese famous translator who was born in 1921 so it is unlikely to send him an email to ask him such a question.    At the beginning of the translation is :     Do you know who is the most well-known person in China?   so     Do you know who is the most ... is in C   or     Do you know who the most... is in C   Which one is correct? Both?

Which one of the following is correct use? If both are correct, what difference does this change make in a conversation?   Do you know when is this being used? Do you know when this is being used?


\begin{align} . \end{align} \begin{align} \text{Why is } \emptyset \neq\{\emptyset\}? \end{align}  \begin{align} . \end{align}

Why is the following true?  $$\{ \emptyset \}  \neq \emptyset $$  Is it just because the Empty set already refers to there being a set present and so it is just the same argument that $\{ \{3\} \} \neq \{ 3\} $?  And is there a proof for the following?   For any set$\, X$,   $$X \cup \emptyset = X \quad \text{and} \quad X \cap \emptyset = \emptyset$$


All, I download ubuntu-12.04.3-desktop-amd64.iso try to install it in the VMWare. During the installation , Everything looks fine. But when it install the vmware tools . It seems it didn't fail with it .But Why I can't see the Graphic UI ? Any one know what happen to it ? thanks.

I have a Mac OS X and VMware Fusion.  I did a fresh install of 12.04.  I do not have VMware Tools installed.    I read that I do not have to log in at the command window, that I have to wait for VMware Tools to get installed. It seems like something is wrong.


I have the following situation.   Table1   +----+-------------+ | id | name        | +----+-------------+ |  1 | John        | |  2 | Alice       | +----+-------------+   Table2  +----+--------------+--------------+ | id | trait        | color        | +----+--------------+--------------+ |  1 | hair         | blond        | |  1 | eyes         | blue         | |  2 | hair         | brown        | |  2 | eyes         | blue         | +----+--------------+--------------+   I would like to find the names of everyone who is both blond and blue-eyed in one query. I have tried something like this, but it hasn't worked:  SELECT t1.name FROM table1 as t1, table2 as t2     WHERE         t1.id = t2.id AND         (t2.trait = 'hair' and t2.trait = 'blond') AND         (t2.trait = 'eyes' and t2.trait = 'blue');   I'm of course looking for the most efficient MySQL way to do this.  Edited: Initial question was too simple and did not accurately reflect my situation

This is a very basic query I can't figure out....  Let's say I have a two column table like this:  userid  |  roleid --------|--------    1    |    1    1    |    2    1    |    3    2    |    1   I want to get all distinct userids that have roleids 1, 2 AND 3.  Using the above example, the only result I want returned is userid 1.  How do I do this?


the problem is when i click on button to reload, it reloads successfully but soon after that my like  buttons get disabled and i am unable to push like and and many more features get disable like they have just reset by itself.
  if (mysqli_num_rows($results) == 1) : ?>                                                 <span class="unlike fa fa-heart inline-item" style="font-size:25px;" data-id="<?php echo $row['id']; ?>">                        <span class="like hide fa fa-heart-o inline-item" style="font-size:25px;" data-id="<?php echo $row['id']; ?>">                     <?php else : ?>                                                <span class="like fa fa-heart-o inline-item" style="font-size:25px;" data-id="<?php echo $row['id']; ?>">                        <span class="unlike hide fa fa-heart inline-item" style="font-size:25px;" data-id="<?php echo $row['id']; ?>">                     <?php endif ?>                     <?php echo $row['likes']; ?> likes
  Here is my script for reloading onclick   here #refresh is my button id

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.


In the past few weeks when I turned my computer on it wrote me this error:     mount: mounting /dev/disk/by-uuid/280914ad-ed45-4948-bfdf-9      ac440455635 on /root failed: Invalid argument      mount: mounting /dev on /root/dev failed: NO such file or directory      mount: mounting /sys on /root/sys failed: NO such file or directory      mount: mounting /proc on /root/proc failed: NO such file or directory      Target filesystem doesn't have requested /sbin/init.      No init found. Try passing init=bootarg.      Busy Box v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter      'help' for a list of built-in commands.      (initramfs)   I fixed it by booting from a live CD and type in the Terminal:     e2fsck -f -y -v /dev/sda1   But every few reboots i get the same error. If someone know what cause this error and how to get it fixed permanently I'll be grateful.  Thanks in advance.    Well it happend again. This is the: "e2fsck -f -y -v /dev/sda1" command output:     ubuntu@ubuntu:~$ sudo e2fsck -f -y -v /dev/sda1 e2fsck 1.42      (29-Nov-2011) /dev/sda1: recovering journal Error reading block      2655492 (Attempt to read block from filesystem resulted in short      read).  Ignore error? yes      Force rewrite? yes      Clearing orphaned inode 265302 (uid=1000, gid=1000, mode=0100600,      size=8192) Pass 1: Checking inodes, blocks, and sizes Inode 1182032,      i_size is 31422, should be 40960.  Fix? yes      Inode 1182032, i_blocks is 72, should be 88.  Fix? yes      Pass 2: Checking directory structure Pass 3: Checking directory      connectivity Pass 4: Checking reference counts Inode 1182190 ref count      is 1, should be 2.  Fix? yes      Unattached inode 1182583 Connect to /lost+found? yes      Inode 1182583 ref count is 2, should be 1.  Fix? yes      Pass 5: Checking group summary information Block bitmap differences:       +595467 +595478 Fix? yes      Free blocks count wrong for group #18 (29091, counted=29089). Fix? yes      Free blocks count wrong (5135588, counted=5135536). Fix? yes      Free inodes count wrong (1341369, counted=1341362). Fix? yes      /dev/sda1:  FILE SYSTEM WAS MODIFIED       184558 inodes used (12.09%)   107 non-contiguous files (0.1%)   188 non-contiguous directories (0.1%)       # of inodes with ind/dind/tind blocks: 0/0/0       Extent depth histogram: 143481/16   967760 blocks used (15.86%)     0 bad blocks     1 large file       111100 regular files    18489 directories    57 character device files    25 block device files     0 fifos     2 links    54874 symbolic links (40967 fast symbolic links)     4 sockets       --------   184550 files ubuntu@ubuntu:~$   Please help me I don't now what more i can do.

I installed 10.10 a few days ago. The only changes to the default install are the addition of Chrome and Pinta.  It was fine for a few days, then today login etc seemed slow. Likewise it couldn't even render the restart/shutdown menus.  Hoping it was some botched update, I ran the update manager; it tried to install but failed (the UI didn't make it obvious what had failed).  Fine, ok. Shut it down (press enter on the blank shut-down dialog).  Fire it up hoping... And... #fail.  Target filesystem doesn't have requested /sbin/init. No init found. Try passing init= bootarg.   Is it now a brick?     More details:  GRUB 1.98+20100804-5ubuntu3   With  Ubuntu, with Linux 2.6.35-22-generic   Causes  udevadm trigger is not permitted while udev is unxonfigured Giving up waiting for root device.   Or  Ubuntu, with Linux 2.6.35-23-generic   Causes  mount: mounting /dev on /root/dev failed: No such file or directory   Then the same for /sys and /process


Strangely, I can't find any references to anyone else having this problem.  is close, but that OP is using a work phone with security profiles that prevent any bluetooth settings changes. My problem is that one—only one—bluetooth device is missing the (i) button, which means I can't forget that device. An unforgettable bluetooth pairing! Has anyone seen anything like this before?    The reason I care, of course, is because I'm having very bad connectivity issues with that one device. The only troubleshooting instructions are to forget and then pair again, but I can't forget!

I would like to remove my Raspberry Pi from my iPhone 8 (running iOS 11.2.1) as a connected bluetooth device.  Normally, I would go into my Settings -> Bluetooth and select the Info button (a small blue circled "i") to show the "Disconnect" and "Forget Device" dialogs:    Unfortunately, iOS does not give me this option for my device. The bluetooth device list does not contain an "i" for the item, and there is seemingly no other way to disconnect.    How do I unpair this device if there is no button to trigger to the unpair prompt?  Due to work restrictions I cannot completely reset the device.


I try fix dependencies problem in this case. Can I get advise?  Running rpm_check_debug ERROR with rpm_check_debug vs depsolve: mysql = 5.1.73-5.el6_6 is needed by (installed) mysql-server-5.1.73-5.el6_6.x86_64 ** Found 13 pre-existing rpmdb problem(s), 'yum check' output follows: coreutils-8.4-37.el6.x86_64 has missing requires of coreutils-libs = ('0', '8.4', '37.el6') coreutils-libs-8.4-43.el6.x86_64 has missing requires of coreutils = ('0', '8.4', '43.el6') 1:cups-libs-1.4.2-74.el6.x86_64 is a duplicate with 1:cups-libs-1.4.2-72.el6.x86_64 glibc-2.12-1.166.el6_7.1.i686 has missing requires of glibc-common = ('0', '2.12', '1.166.el6_7.1') glibc-2.14.90-14.x86_64 is a duplicate with glibc-2.12-1.166.el6_7.1.i686 libXinerama-1.1.3-4.fc23.i686 is a duplicate with libXinerama-1.1.3-2.1.el6.x86_64 libXrandr-1.4.2-2.fc23.i686 is a duplicate with libXrandr-1.4.1-2.1.el6.x86_64 libicu-4.2.1-14.el6.x86_64 is a duplicate with libicu-4.2.1-12.el6.x86_64 mysql-5.5.52-1.el6.remi.x86_64 has missing requires of real-mysql-libs(x86-64) = ('0', '5.5.52', '1.el6.remi') mysql-devel-5.5.52-1.el6.remi.x86_64 has missing requires of libmysqlclient.so.18()(64bit) mysql-devel-5.5.52-1.el6.remi.x86_64 has missing requires of real-mysql-libs(x86-64) = ('0', '5.5.52', '1.el6.remi') mysql-server-5.1.73-5.el6_6.x86_64 has missing requires of mysql = ('0', '5.1.73', '5.el6_6') poppler-0.12.4-10.el6.x86_64 is a duplicate with poppler-0.12.4-4.el6_6.1.x86_64 Your transaction was saved, rerun it with:  yum load-transaction /tmp/yum_save_tx-2016-10-21-11-567RNI_J.yumtx    I want remove @remi repos package (downgrade) I want fix glibc package version error   How Can I do?

Hi I'm having an issue with yum, I seem to have broken dependencies? I have a general knowledge of Linux but I'm not sure how to fix this. Running CentOS 6.6.  Here's the output from yum:  yum update Loaded plugins: fastestmirror Setting up Update Process Loading mirror speeds from cached hostfile  * epel: mirror.symnds.com Resolving Dependencies --> Running transaction check ---> Package ntpdate.x86_64 0:4.2.6p5-1.el6.centos will be updated --> Processing Dependency: ntpdate = 4.2.6p5-1.el6.centos for package: ntp-4.2.6p5-1.el6.centos.x86_64 ---> Package ntpdate.x86_64 0:4.2.6p5-2.el6.centos will be an update --> Finished Dependency Resolution Error: Package: ntp-4.2.6p5-1.el6.centos.x86_64 (@base)            Requires: ntpdate = 4.2.6p5-1.el6.centos            Removing: ntpdate-4.2.6p5-1.el6.centos.x86_64 (@base)                ntpdate = 4.2.6p5-1.el6.centos            Updated By: ntpdate-4.2.6p5-2.el6.centos.x86_64 (updates)                ntpdate = 4.2.6p5-2.el6.centos  You could try using --skip-broken to work around the problem ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows: ntp-4.2.6p5-2.el6.centos.x86_64 is a duplicate with ntp-4.2.6p5-1.el6.centos.x86_64 ntp-4.2.6p5-2.el6.centos.x86_64 has missing requires of ntpdate = ('0', '4.2.6p5', '2.el6.centos')   Running yum --skip-broken doesn't seem to do anything. I'm assuming this is important to resolve due to the NTP exploit that was recently found.  Thanks!


There are functions for is_home(), is_blog() is_single() etc...  What's the best way to tell if I'm on a page that is requesting that I login? I guess that would just be the wp-login.php page.

How can I check if the current page is wp-login.php or wp-signup.php ?  Are there more elegant solutions than using $_SERVER['REQUEST_URI'] ?


How many ways we can  arrange  4  letters  from  PROFESSOR?  The way I tried to do  is by grouping the repeated words like (OO), (RR), (SS)  and that can be done in three ways which seems to me a bit complicated and time consuming too. Can't we do this any simple way that wouldn't take much time?

How many 6-letter permutations can be formed using only the letters of the word, MISSISSIPPI? I understand the trivial case where there are no repeating letters in the word (for arranging smaller words) but I stumble when this isn't satisfied. I'm wondering if there's a simpler way to computing all the possible permutations, as an alternative to manually calculating all the possible 6-letter combinations and summing the corresponding permutations of each. In addition, is there a method to generalize the result based on any P number of letters in a set with repeating letters, to calculate the number of n-letter permutations?  Sorry if this question (or similar) has been asked before, but if it has, please link me to the relevant page. I also apologize if the explanation is unclear, or if I've incorrectly used any terminology (I'm only a high-school student.) If so, please comment. :-)


If the relation between the cosines of the angles of a triangle is given by   $\cos A + \cos C= 2 - 2\cos B$  then what relation do the sides of the triangle follow? That is, are they in Arithmetic, Geometric or Harmonic progression?  I tried using trigonometric addition formulae and then deducing the results. I applied $\ cosx + \ cosy $ formula along with $A + B + C = \pi$ but I could not solve the question.  Please Note: This question is intended to be a multiple choice question.

By using the formula :  $$ \cos(A)+\cos(B)+\cos(C) = 1 + 4 \sin\left(\frac{A}{2}\right)\sin\left(\frac{B}{2}\right) \sin\left(\frac{C}{2}\right) $$  I've managed to simplify it to :   $$ 2\sin\left(\frac{A}{2}\right)\sin\left(\frac{B}{2}\right)=\sin\left(\frac{C}{2}\right)$$  But I have no idea how to proceed.


Initial state: dual boot laptop to either Windows 7 or Ubuntu.  What I tried to do: change my partition of Ubuntu to Ubuntu-Mate.  First problem: first booting for the installation worked fine, but I didn't create a partition with the free space obtained from the previous one.   What I tried to solve it: I restarted the computer and unplugged the usb in order to create the partition in Windows.  What really happened, and final problem: grub rescue is displayed, no matter what boot source used. (Edit 3: I wanted to gain access to my Windows partition, so that I could rearrange my partitions)  Thank you very much for any suggestion.  Edit: I've tried using a bootable Ubuntu usb to get the Boot-info, but it keeps giving an error: "unknown filesystem".  Edit2: I've tried via Boot-Repair-Disk, but even so it doesn't work, to   check whether the iso is correctly burned, I'll try it in another computer.

After I deleted my Ubuntu partition, I rebooted my computer and I only get a prompt:   grub rescue >   The command ls lists   (hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)   I check them one by one:  ls (hd0,msdos5)/ ls (hd0,msdos1)/   But I cannot find the right partition.


I am trying to add new partitions which are not logical volumes. But I have a system with logical volumes. I tried reducing the lv_home partition size using ‘lvresize’, and reduced a LV size by 5GB successfully. And I want to create new partition with that 5GB. But I am not able to find that space.  xvda 202:0 0 150G 0 disk  ├─xvda1 202:1 0 500M 0 part /boot  └─xvda2 202:2 0 149.5G 0 part     ├─VolGroup-lv_root (dm-0) 253:0 0 50G 0 lvm /     ├─VolGroup-lv_swap (dm-1) 253:1 0 3.9G 0 lvm [SWAP]     └─VolGroup-lv_home (dm-2) 253:2 0 90.6G 0 lvm /home   I reduced lv_home from 95 to 90GB. Now where this free space is available?. When I tried to make partion using "fdisk xvda" it says no free sectors. I want to create 2 or 3 partitions using that 5GB. Would some one help me in doing that?

I have a drive, sda. It has two partitions:  sda1: /boot sda2: LVM managed in Volume Group volgrp01   volgrp01 contains the following Logical Volumes:  lv_root (30 GB) lv_swap (8 GB) lv_scratch (430 GB)   What I want to do is reduce lv_scratch to 50 GB, and re-allocate that newly freed 380 GB into a new partition, sda3 (which I'll then add to another Volume Group).  I've attached an image of my desired BEFORE and AFTER. I'm right in the middle of learning about LVM, and while I can grasp the idea of resizing Logical Volumes within a Volume Group, I'm unsure of how one would re-allocate that space into a new partition.  I'm using RHEL6.


I am working on a API triggered journey with a single email send activity. Though the trigger successfully sent the email and also received the email.  I am unable to see the trackig data neighter in Marketing cloud "My Tracking". Nor in "Individual Email Results" in Sales Cloud

The official documentation from Salesforce is to use Salesforce Data Extensions if you want to push tracking information from Marketing Cloud to Salesforce ().  This is what we've done but I've noticed that after creating data extensions in the data extensions folder, emails sent are still being tracked and tracking is still being sent to Salesforce.   My question is can I create data extensions anywhere and tracking will always be sent to sales cloud? what do i need to look out for to insure that tracking is being sent?


I was perusing my  in my network profile when I clicked on page 2. I was surprised when I was confronted with an error stating that no favorites were found. The fact that there is a page 2 option leads one to believe that there is in fact a page 2. Upon further inspection I found that I had exactly 30 favorite questions. This magic number prompts the pagination controls to appear. To see if this was in fact a bug (a minor bug..) I found another question to favorite, and returned to see if page 2 was still a lie. Alas, the 31st favorite appears on the second page. I then removed two questions from my favorites list (29 total)... The pagination controls are no longer present on my favorites tab. I propose that the pagination controls should only appear when there are greater than 30 favorites. This seems to be related/similar to the issue seen here:

In  inbox I have lots of items. Wanted to see the first items I got so clicked the last page:    Just to be greeted with cryptic and misleading "No inbox items":    I don't want to click "next" 522 times. Can this please be fixed? On further investigation using the direct URLs (which are normally loaded via AJAX) I found the last page is actually 521 and it contains exactly 20 items. Edit: now that I got more items, I can indeed see the last page so the previous assumption is proved: page count is incorrect if last page has 20 items exactly.


I am interested in exporting finger model with texture as Wavefront file (.obj) using a script. Many scripts were available online but they provide only vertices or faces. It would be of great help if anyone could provide me a script to save the all the information on that model. The model is shown below:

It is possible to export all object from a scene into different obj files (each object in a obj file separately)?


I got this error, when I tried to open my partition ...  Error mounting /dev/sda1 at /media/gr3ch/28DA3B12DA3ADC2E: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda1" "/media/gr3ch/28DA3B12DA3ADC2E"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda1': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   In this partition I didn't have windows , I have installed Ubuntu where I have Windows 8 after installation Linux I can't open partition .

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


I am trying to achieve such effect on transparent background: What I currently have: Is it possible to get something like this rendered in blender? Or should I use Gimp to manually add my outline?

I'm trying to render a lightsaber on a transparent background to use as game sprites. I've followed a  on youtube to create the glow/blur effect and it worked great on a black background but it's completely invisible on a transparent background. I figured I had to put an alpha channel node somewhere to make it work but I tried all the "alpha" named nodes all over the place and without success.   This is how the node setup looks like   Here is the  if you want to take a closer look.  EDIT: Found a solution/workaround. Doesn't look as good as before but it's close enough.


I have made a small command creation in 1.11.2 that makes giant zombies from normal zombies. Basically you throw a red mushroom at a normal zombie and it grows in to a giant zombie. Now this worked fine as logn as i was in 1.11 and 1.11.2 but in 1.12 it's broken and i don't know how to fix it. I know that they have made again some changes to the command blocks but i don't know what they did.  Here are the commands:  1.Repeating-Unconditional-Always active  /scoreboard players tag @e[type=Item] add red_mushroom {Item:{id:minecraft:red_mushroom}}   2.Chain-Unconditional-Always active  /execute @e[tag=red_mushroom] ~ ~ ~ /tp @e[type=zombie,c=1,r=1] ~ ~-500 ~   3.Chain-Conditional-Always active  /execute @e[tag=red_mushroom] ~ ~ ~ /summon Giant ~ ~ ~ {CanPickUpLoot:true}   4.Chain-Conditional-Always active  /execute @e[tag=red_mushroom] ~ ~ ~ execute @e[type=giant,c=1,r=1] ~ ~ ~ kill @e[tag=red_mushroom,r=1,c=1]   I had some others command creations in my test world and many similar to this has also broken.

I am trying to lock some boxes in a map of mine, and I used this command:   /blockdata 10 4 9 {Lock:Elyiana's Mage Key}   At first it worked, but then when I logged back on the next day it gave me this error message:    Data tag parsing failed: Expected '}' but ''' at: {Lock:Elyiana'<--[HERE]     I don't know why it doesn't like the apostrophe in the key's name. I would change it, but it already worked and locked some other items. My version is 1.12, does anyone have an answer to my problem?


I always delete my own answers when a better answer is upvoted and accepted. There is no reason for having bad or not-satisfying answers being around.  I did not always have that behaviour. So I have a lot of none-upvoted none-accepted answers on my list. Once in a while I go back and delete some of my own none-accepted answers with no upvotes when I see there is another (better, I presume) answer accepted.  Recently I have noticed, that I get a -4 rep "fine" per answer deleted for doing this. But I do not get that "fine" when I am deleting a fresh or relatively new answer.  Why this difference? I am cool with being fined for deleting content, but why the fine for old answers, and not for new ones?    Update. I tried to make a proof of concept, by deleting 1 old answer to a question where there were another accepted answer. I ensured that my answer not had any upvotes or downvotes. So far, after +30 minutes, I have not received this self imagined "fine" of 4 rep. I think @animuson was absolutely right.   What have happend is most likely a freaky chain of coincidences. I have 3 times in a row, over a period of propably some weeks or a month, deleted two answers almost at the same time, both with apparently 0 upvotes. But one of the answers have all three times received both an upvote and a downvote, giving a total rep of 8, hidden behind the "0". All three times I have not been aware of those hidden rep, and then I have seen the overall rep drop 8, for two deleted answers, I began to see a pattern, and suspected there perhaps was introduced a fine for deleting old answers.   I actually really believed that this was the case!

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


I am self-studying the general topology these day and find that the third axiom of the  $(X,\tau)$ defined by open set is:  For any finite collection of $U_i \in \tau$, the intersection of $U_i$ is still a member of $\tau$.  Now I am wondering is there any space$(X,\tau)$ such that satisfying the following conditions:  $1)\emptyset , X \in \tau$  $2)$For any finite or infinite collection of $U_i \in \tau$, the union of $U_i$ is still a member of $\tau$.  $3)$For any finite or infinite collection of $U_i \in \tau$, the intersection of $U_i$ is still a member of $\tau$.  I come up with space $(X,2^X)$ satisfying this condition but I cannot find non-trivial one satisfying such condition.  Does such a space exists?  What name is it?

We know that in the usual topology, countable or arbitrary intersection of open sets can zoom into a singleton, hence is not in the topology.   I am curious if there is well known classes of topologies, whose open sets maintains their openness after countable or arbitrary intersection.   I know two examples:      1) In the discrete topology, $\mathcal{T} = \mathcal{P}(X)$. The power   set is a $\sigma$-algebra, hence "closed" under countable   intersections, so a countable intersection of open sets in the   discrete topology is open.      2) In the particular point topology, given $x_o \in \mathbb{R}$,   $\mathcal{T}_{x_o} = \{U \subseteq \mathbb{R}| x_o \in  U\}\cup\{\varnothing\}$, an arbitrary intersection of open sets will   always contain $x_o$, in particular $x_o$ is open. Hence a countable   intersection of open sets in the particular point topology topology is   open.   Are there a lot more well known classes of topology whose condition on intersections of open set can be extended?


I am a resident of New Delhi, India. I received a 10-year B-1/B-2 type US visa on 17th January 2014, which expires on 15th Jan 2024. On account of this visa, I travelled to the United States for 15 days last year, from 11th - 24th February 2014.   I again have to visit the United States from 26th June to 21st July, on account of my acceptance into the prestigious Hansen Summer Institute 2015 Fellowship program being held at the University of San Diego. During the verification of my documents for the same, I learned that my visa has been red-flagged for overstaying on account of my previous journey. I didn't overstay my visa duration and have NO idea whatsoever what led to them red flagging my visa. I was in and out of US in just 15 days.   I tried to check my travel history on the US Customs and Border Protection website, which showed only my date of arrival (11th February, 2014) at JFK Airport, New York. The date of departure was absent, which leads me to believe that somehow the information of my exit from JFK Airport, NY on 22nd February, 2014 was not recorded due to some clerical error. But this issue, in which I have absolutely no fault at all, is causing me a lot of trouble as I have to fly to US again on 26th June.  I am desperately trying to get an interview at the consulate office. Right now they are saying that my case has been forwarded to the embassy and I need to just wait for them to revert back. It's been seven days since I sent them the email and have received absolutely no word from their side.  I have my flight tickets booked for the United States on 26th June, all accommodation arrangements for me have also been made, and therefore it is extremely urgent that you reply back with the relevant details as soon as possible. I have effectively only 11 days left.  I have a copy of my air ticket from New York on the 22nd February 2014, by which I came back to New Delhi on 24th February, which along with the stamp at Indian Immigration should dispel any doubts.   Right now I am not able to get an appointment at the US consulate because there is no predefined procedure for this sort of a thing.

Three years ago I was on holidays in Canada and visited the Niagara Falls. I also went to the American side of the falls and got something like a "short-term visa". I also got a green paper with all my information (name, passport number, etc.) which I should give back at the border when leaving USA again.  When I got back from the USA side of the falls, the border was abandoned. Therefore I couldn't give the green paper back to the officials. Now I'm really a bit afraid that in their computer system I still haven't left the USA.  Next summer I plan to visit USA again. Can I get into trouble at the border?


I'm trying to follow  answer but I can't make it work.  I simplified it down as much as I could to try work out what's going on  (just running this at the terminal for now):  rsync --progress -iav /my/dir1 /my/dir2 | awk '{ print($0) }'   But it only prints messages likersync: failed to set times on [file].  What am I doing wrong?  Edit: On further investigation it seems like awk is doing some sort of buffering. This:  for i in 10 20 30; do echo $i; sleep 1; done | awk '{print $0}'   Demonstrates a problem where no output is seen until 3 seconds have passed.  So I guess the question is how do I get awk to flush its buffer? I tried:  for i in 10 20 30; do echo $i; sleep 1; done | awk '{print($0); fflush()}'   Which had the same problem.

I have a script which calls two commands:  long_running_command | print_progress   The long_running_command prints progress but I'm unhappy with it. I'm using print_progress to make it nicer (namely, I print the progress in a single line).  The problem: Connection a pipe to stdout also activates a 4K buffer, so the nice print program gets nothing ... nothing ... nothing ... a whole lot ... :)  How can I disable the 4K buffer for the long_running_command (no, I do not have the source)?


How do I create 5 bins of equal width to plot a frequency histogram of the following sequence of numbers?   0.15 0.54 0.23 0.65 0.36 0.15 0.87 0.65 0.90 0.64 0.74 0.98 0.96 0.74 0.82 0.91 0.19   This is just an example: I have more numbers. I am also asked to find it for 10 and 20 bins.  Could someone show me an example of how I would go about doing this?

I'm working on a software project that involves creating a visualizer for flood simulations. As part of this project, I've created a water gradient that shows water depth at particular points. To set what values will represent what colors, I go through the data and get the minimum and maximum values that occur and evenly distribute the colors according to that scale.  However, there are often times points in these simulations that have significantly deeper water at them than anywhere else in the simulation. This causes most of the points on the map to have very similar colors and this is not very informative and makes the areas where the water is deeper very hard to see.  My goal is to dedicate a larger range of colors to depths that occur more frequently. For example, if depths go from 0 to 12 but most depths are between 1 and 2, I want more color variation to occur within that range than does between say 11 and 12 or 4 and 5. It seems I need to use standard deviation or something involving normal distribution to do this, but I'm a bit fuzzy on how these things work and how I can use them to accomplish my goal.  Any help that can be provided will be appreciated. Thank you.


I've been trying to make an adventure map in minecraft and I can't figure out how to make a villager trade a wooden pickaxe with a name and can only break certain blocks with it.

I want to make a special villager that will trade a custom structure block upon the given items. I don't know how to get a villager to trade items with NBT tags though. What would I do with this example:  /summon Villager ~ ~ ~ {Profession:0,CustomName:"Carpenter",CustomNameVisible:0,Career:4,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Silent:1,Invulnerable:1,Attributes:[{Name:"generic.knockbackResistance",Base:"1f"},{Name:"generic.movementSpeed",Base:"0f"}],Offers:{Recipes:[{buy:{id:"stick",Count:8},buyB:{id:"wooden_pressure_plate",Count:1},maxUses:9999999,sell:{id:"structure_block",Count:1},rewardExp:false}]}}


I would like to be able to determine whether how much exposure to Wi-Fi radiation is safe for my health.  I can see GSM phones are , until confirmed otherwise, but that's taking into account the specifics qualities of GSM phones available and their usage patterns:   Output power of the phones is strictly limited in terms of , the rate at which energy is absorbed by the human body; and that is strictly controlled for. We usually only keep it pressed to our heads for a limited time, then some more time 30-40 cm away from our head (when texting/surfing/gaming), the rest of the time even further away.  is another concern entirely; they should be safe when mounted atop of high towers (as radiation levels at the ground level should be lover than the ones from a phone), but are they safe, if mounted, say, on the outside wall of the apartment building, besides a window to one's apartment?   So, how safe is using Wi-Fi at home? I'm currently running a 24/7 access point which is mounted at least 2 meters away from my head when I'm working and sleeping. The hardware is an old computer (modified to be extra silent) with a regular PCI Wi-Fi card. This is probably ok.  But as I'm browsing the market I see the proliferation of Wi-Fi cards boasting higher and higher output power1 and ever more powerful access points2. I'm not aware of standards governing acceptable output power for these, and a) whether or not they are ignored or circumvented by the over-enthusiastic hardware manufacturers in pursiut for more output power b) one should keep in mind that a Wi-Fi access point in one's home is analogous to a base station: higher powered and working 24/7.  So, how do I go on to assess which Wi-Fi hardware, mode of operation and place of installation should be safe for my health?  Footnotes:   The most powerful powerful Wi-Fi cards I saw so far are:   : 2 W : 3 W  The most powerful powerful access point I saw so far (that I would actually consider for home use):    (upcoming): 22W

I am most likely being an overprotective parent but since the birth of our newborn, my wife and I have been wondering about credible studies dealing with Wi-Fi and health concerns. I love my Wi-Fi, it's the cornerstone to all my gadgets and computer setup through out my house, and it makes my world easier plain and simple, but having a newborn enter that world changes the way I think about everything.    Now before people start writing that Wi-Fi is safe because they use it in hospitals and schools, let me be clear, I'm aware of all that, but the idea of having it 24/7 for years to come around this little person that is our responsibility to look out for makes me want to have a definitive answer to the subject.  I will put on my tin foil hat and await for some well thought out/educated answers.


I am writing my thesis and using biblatex. The journal papers appear as:  H. Zhang and S. Wang. “Linearly constrained global optimization via piecewise- linear approximation”. In: Journal of Computational and  Applied Mathematics 214.1 (Apr. 2008), pp. 111–120.   However, I want the reference to appear as  H. Zhang and S. Wang. “Linearly constrained global optimization via piecewise- linear approximation”. In: Journal of Computational and  Applied Mathematics vol. 214 no. 1, pp. 111–120 April 2008.   Here is the compilable files    \documentclass[oneside,final, letterpaper, 12 pt]{ucr} \usepackage{setspace}   %%%%  for double sizing  \usepackage{subfigure} \usepackage{epsfig} \usepackage{amssymb,amsmath,color,graphicx, amsbsy} \usepackage{mathtools} \usepackage{algorithm} \usepackage{algorithmic} \usepackage{amsfonts} \usepackage{epstopdf} \usepackage{booktabs, multicol, multirow} \usepackage{pifont}% http://ctan.org/pkg/pifont \newcommand{\cmark}{\ding{51}}% \newcommand{\xmark}{\ding{55}}% \renewcommand{\tabcolsep}{.14cm}  \usepackage[style=numeric,         hyperref=true,         url=false,         isbn=false,         backref=false,         citereset=chapter,         maxcitenames=3,         maxbibnames=100,         block=none]{biblatex}   \DeclareFieldFormat[article]{volume}{vol.  #1} \DeclareFieldFormat[article]{number}{\addnbspace no.   #1}  \addbibresource{Bib_Files/Thesis_Bib_File.bib}  \DefineBibliographyStrings{english}{%  bibliography = {Bibliography}, }  \makeatletter \newcommand{\rmnum}[1]{\romannumeral #1} \newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@} \makeatother  \begin{document}  %%%%%%%%%%%%% For Double Spacing  \makeatletter \let\@currsize\normalsize \makeatother \setstretch{1.667} %%%%%%%%For Double Spacing    \title{Tile} \author{Author} \degreemonth{June} \degreeyear{Year} \degree{Degree}  \chair{Chair}  \maketitle \copyrightpage{} \approvalpage{}  \degreesemester{Spring}  \begin{frontmatter}  \begin{acknowledgements}   \end{acknowledgements}  \begin{dedication} \null\vfil {\large \begin{center} To my parents. \end{center}} \vfil\null \end{dedication}  \input{abstract}  \tableofcontents \listoffigures %\listoftables \end{frontmatter}  \begin{doublespace}  \graphicspath{{chapter1/}} \input{chapter1/ICC2012}  \graphicspath{{chapter2/}} \input{chapter2/ICC2012}  \graphicspath{{chapter3/}} \input{chapter3/proof}  \graphicspath{{chapter4/}} \input{chapter4/Risk_Managment}   \end{doublespace}   \begin{singlespace}  \printbibliography[heading=bibintoc]  \end{singlespace}   \end{document}

I switched to biblatex only recently and I'm still struggling with understanding how to do things properly. My question is: How to change the order of entries/units/blocks in the bibliography? The style I'm using is "numeric". Now, the default order is:   B. B. Aggarwal, Y. Takada, and O. V. Oommen. “From chemoprevention to chemotherapy: common targets and common goals”. In: Expert Opin Investig Drugs 13.10 (Oct. 2004), pp. 1327–1338.  Basically, I need commas as separators, a comma between the journal title and the volume; "In:" should be removed, the volume and the number should have prefixes and comma as a separator, and, finally, the date should go at the end, without the brackets. Something like this:     B. B. Aggarwal, Y. Takada, and O. V. Oommen, “From chemoprevention to chemotherapy: common targets and common goals”, Expert Opin Investig Drugs, vol. 13, no. 10, pp. 1327–1338, Oct. 2004.   If there is a step-by-step tutorial about how to customize bibliography or how to crate a bibliography style for use with biblatex, I'll be most grateful for it. Thanks.  Here's a code for testing purposes:  \begin{filecontents}{mybib.bib} @article{Aggarwal2004b, author = {Aggarwal, B. B. and Takada, Y. and Oommen, O. V.}, journal = {Expert Opin Investig Drugs}, month = oct, number = {10}, pages = {1327--1338}, publisher = {Informa Pharma Science}, title = {{From chemoprevention to chemotherapy: common targets and common goals}}, volume = {13}, year = {2004} } \end{filecontents} \documentclass{article} \usepackage[style=numeric]{biblatex} \bibliography{mybib}   \begin{document} Test~\cite{Aggarwal2004b}. \printbibliography \end{document}


I'm a new Ubuntu user.  I've installed Ubuntu 13.10 on my desktop alongside windows 7.  When I try to play any mp3 file with Parole Media player (which I believe is the default) , it says :     Parole needs MPEG-1 Layer 3(MP3) decoder to play this file. It can be   installed automatically.   Then I click Install and it gives error like Required plug-in could not be found.  Even when I am connected to the Internet .  I read many solutions on this very forum , but none of them seemed to work .   The last thing I tried was to manual download and install the MP3 plug-in package . It installed successfully, but I still can't play Music.

I would like to install the restricted extras package, which I didn't select during the install. How can I do that?        is a meta-package that installs:         Support for MP3 and unencrypted DVD playback   Microsoft TrueType core fonts   Flash plugin   codecs for common audio and video files


How to achieve same battery life on Ubuntu LTS 16.04 as Windows 10 using Nvidia graphics adapter?   I've tried disabling the Nvidia 940MX in BIOS, but there is no option available to do this.  I know that Ubuntu comes with Nvidia drivers installed (Nouveau), however the performance and battery life are much worse compared to Windows 10 with original Nvidia drivers.  Is it possible to disable the Nvidia graphics adapter completely when running Ubuntu, such that only the Intel graphics card consumes power?  In this case, I will achieve Windows-like battery life, right?

How can I optimize Ubuntu for minimal energy usage? I use my laptop for development, but also for writing. I have a 9 hour flight coming up and a 6 hour battery life when already using   limited screen brightness no usb devices no networking bumblebee installed and the nvidia card switched off TLP set on powersave   How can I now increase my battery life knowing that I only want to write (using LibreOffice)? I essentially want a very minimal system for a sort of 'writing mode.'   Should I limit my quadcore to one core? Should I disable some services? Here is the list of service --status-all  [ + ]  acpid [ + ]  anacron [ + ]  apache2 [ - ]  apparmor [ ? ]  apport [ + ]  atd [ + ]  avahi-daemon [ ? ]  binfmt-support [ + ]  bluetooth [ - ]  brltty [ + ]  bumblebeed [ + ]  console-font [ + ]  console-setup [ + ]  cron [ + ]  cups [ + ]  cups-browsed [ - ]  dbus [ ? ]  dns-clean [ - ]  elasticsearch [ - ]  fancontrol [ + ]  friendly-recovery [ - ]  grub-common [ ? ]  irqbalance [ - ]  kerneloops [ ? ]  killprocs [ + ]  kmod [ ? ]  lightdm [ - ]  lighttpd [ - ]  lm-sensors [ ? ]  mysql [ ? ]  networking [ + ]  nmbd [ ? ]  ondemand [ - ]  openvpn [ + ]  postgresql [ ? ]  pppd-dns [ + ]  prey-trigger [ - ]  procps [ - ]  pulseaudio [ ? ]  rc.local [ + ]  resolvconf [ + ]  rfkill-restore [ + ]  rfkill-store [ - ]  rsync [ + ]  rsyslog [ + ]  samba [ + ]  saned [ - ]  selfcontrol [ ? ]  sendsigs [ + ]  setvtrgb [ - ]  smartmontools [ + ]  smbd [ ? ]  speech-dispatcher [ - ]  sudo [ - ]  timidity [ ? ]  tlp [ - ]  udev [ ? ]  umountfs [ ? ]  umountnfs.sh [ ? ]  umountroot [ - ]  unattended-upgrades [ - ]  urandom [ + ]  winbind [ - ]  x11-common    Should install a more lightweight desktop environment? Can I do this in a nice and clean way (after all I have my laptop nicely set up and do not want to have to reinstall before 14.04). Should I do something else?    One last thing: I would like to activate or deactivate all these options with one script (which I will run only when working on battery). Please be as kind as to include suggestions on how to do what you suggest.  PS: the info in some of the possible duplicates is dated for 13.10.


Honestly I have no idea what this error could be or could stem from so I will just give as much information as possible.   I am trying to install Ubuntu alongside Windows 10, but the main issue I am having is I cannot boot into Ubuntu properly. I downloaded the iso from ubuntu.com, and installed it to a usb by means of Rufus and Universal usb installer, and I have even tried installing as a DD which I am not clear on what that means. I even redownloaded it thinking it might have an error, and used different ports on my computer and different thumb drives and I am still getting the same error.  Whenever I boot into Ubuntu it comes up and asks if I would like to try or install, no matter what I choose from there I get a bunch of graphical explosions which may not be errors and after some time I am presented with a login. There is my first problem, I do not believe I should have to login, should I not be setting my login? At any rate, I looked up the default login and it is ubuntu and blank on password. This seems to work but then a dialog box pops up saying "System Program Error" or something along those lines asking me to report, and then after a second it turns black and then disappears and takes me back to the login. Call for terminal does not work at all (not entirely sure it is supposed to) and then I were to wait on the login screen for more than five minutes, whether I try to log in or not, It will say authentication failed and be stuck with a retry button that seemingly does nothing. I have no idea what to do at this point. I would appreciate any help anyone can give.  Computer Specs if it is important:   Intel i7-6700k 4.0GHz Gigabyte GA-Z170XP-sli ATX motherboard Adata 16GB ddr4-24000 2 MSI Geforce GTX 960 4GB Video card in SLI Windows 10 (if it makes a difference)   Thank you so much for your time, I appreciate anything.   So upon suggestion I am able to get into the tty6 and log in in a way. I am still looking to install the OS, could it be that it is a graphical error and it has difficulty displaying things? Could it be I need specific drivers? I'm sorry you'll have to excuse me I have never used this screen before and I'm not quite sure how to fix it myself.   New edit: So I went in and I tried to update the drivers involved and then went back and tried to log in with the user friendly version, which I assume is tty7, and the whole screen went black. Then I tried to go back to where I was using the command suggested, CTRL+ALT+F6 and it did this:  Note: There was no key that was pressed, the command was being continually run I suppose.  The error says:  Error: Driver 'ebridge' is already registered, aborting... nvidia-nvlink: alloc_chrdev_region failed: -16

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I have installed support for CTL-480 tablet as per:  . Thus, the pen moves the pointer and clicking all the buttons on the pen works. However, the tablet does not show up in gnome-control-center > Wacom Graphics Tablet > which just displays "No tablet detected, Please plug in or turn on your Wacom tablet".  Do I need to update or install something to get it to show or is this settings manager independent of getting the drivers to work? I am trying to remap one of the buttons to middle click.  Ubuntu 12.10, Cinnamon.

My Wacom tablet (CTH-480) is not detected by the Wacom Tablet option under settings. The Tablet shows up when I run lsusb but does not show up under settings. Again Thanks.


I want to resize the Ubuntu 12.04 partition and install Windows 7. How can I do that?  Please refer to the screenshot of Gparted editor. I want to resize the dev/sda3 partition.

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


I am a new learner of Stripe. How to Integrate Stripe to salesforce using REST API? and How it works? Could you please give me any ideas..

i am new to stripe and salesforce integration.How to integrate Stripe to saleasforce and salesforce to Stripe.  Can anyone please suggest me how to integrate two ways.


I am getting an error: 'System.LimitException: Too many SOQL queries: 101'  when I run a testing class for another class similar to this one, which is located in the same Object. I am trying to use classes that handle all the code instead of writing the code in triggers. Can anybody please tell if the code i wrote for this class is good approach or should I use a different one.   I will appreciate any help!  Trigger code:  trigger RollupSalesAndUnits on MWSOrderItem__c (before update) {  //to fire the class rollupSalesTriger if (Trigger.isUpdate) {     RollupSalesAndUnits.Run(Trigger.new); } }   Class code:  public class RollupSalesAndUnits {   public static void Run(MWSOrderItem__c [] items){   Map<Id, NRProducts__c > osos = new Map<Id, NRProducts__c >();       for(MWSOrderItem__c p : items){             if(!String.isEmpty(p.NRProduct__c )){                 NRProducts__c prod = osos.get(p.NRProduct__c );              if (prod == null) {                 prod= new NRProducts__c (Id = p.NRProduct__c );                  osos.put(p.NRProduct__c , prod);             }              for(AggregateResult result : [SELECT  NRProduct__c p, SUM(Detail_Total__c) FROM MWSOrderItem__c WHERE NRProduct__c =: p.NRProduct__c AND AgeSet__c < 7 AND Order_Complete__c = 'Yes'  GROUP BY NRProduct__c]){                   prod.X24_Hrs_Sales__c = (Double)result.get('expr0');                             }              for(AggregateResult result : [SELECT  NRProduct__c p, SUM(Detail_Total__c) FROM MWSOrderItem__c WHERE NRProduct__c =: p.NRProduct__c AND  AgeSet__c < 7  GROUP BY NRProduct__c]){                    prod.X7_Days_Sales__c = (double)result.get('expr0');               }               for(AggregateResult result : [SELECT  NRProduct__c p, SUM(Detail_Total__c) FROM MWSOrderItem__c WHERE NRProduct__c =: p.NRProduct__c AND   AgeSet__c < 30  GROUP BY NRProduct__c]){                    prod.X30_Day_Sales__c = (double)result.get('expr0');                }               for(AggregateResult result : [SELECT  NRProduct__c p, SUM(Detail_Total__c) FROM MWSOrderItem__c WHERE NRProduct__c =: p.NRProduct__c AND    AgeSet__c < 60  GROUP BY NRProduct__c]){                     prod.X60_Days_Sales__c = (double)result.get('expr0');               }              }      }    update osos.values();    }  }

I am getting a Too many SOQL queries: 101 error on a trigger when I am trying to deploy another trigger.  I am posting the trigger which is causing the error.  trigger rollupAccountShowings on Account (before insert, before update) {    if (trigger.isinsert) {       for (Account a:Trigger.new){           a.No_of_Viewings__c = 0;        }    } else {      for (account a : [select                   id,                  (select id from pb__Showings__r)                  from account                   where id in:trigger.new LIMIT 1]) {           trigger.newMap.get(a.id).No_of_Viewings__c = a.pb__Showings__r.size();      } }   Can anyone correct me where I have gone wrong and suggest me the changes.  Thanks


This is the problem, how to know the index of a matrix using a method in Java?  package myMethods;  public class MyMath {  public static int[] indexOfMatrix(int[][] M,int toFind) {         int index[]= {-1,-1};         for(int rows=0; rows<M.length; rows++) {             for(int columns=0; columns<M[rows].length; columns++) {                 if(toFind==M[rows][columns]) {                     index[0]=rows;                     index[1]=columns;                     return index;                 }             }         }         return index;     }     public static void main(String[] args) {         int[][] d={{3,7,8},{4,5,6},{2,1,0}};         System.out.println(indexOfMatrix(d,4)); }  }    I expect a number to be the output not "[I@15db9742"

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]


Given a class MyClass where I did redefine equals() and hashCode() methods, however I forgot to mention the keyword @Override such as :  public class MyClass {     public boolean equals(Object obj){         //Content omitted     }      public int hashCode(){         //Content omitted     }      //Remainder omitted }   What would be the consequences of such mistake on the design of MyClass?  UPDATE : So if I respect the method signature of the supertype class while redefining my method in the subtype class, I still override the given method although I am not mentioning the @Override keyword, right?

What are the best practices for using Java's @Override annotation and why?     It seems like it would be overkill to mark every single overridden method with the @Override annotation.   Are there certain programming situations that call for using the @Override and others that should never use the @Override?


Suppose $X$ is a normed linear space and $Y\subset X$ a linear subspace.  I remember that any linear map $L\colon Y\to L^\infty(\Omega)$ can be extended to a linear map $\tilde{L}\colon X\to L^\infty(\Omega)$ that has the same operator norm. (Under some assumptions, I guess $\sigma$-finiteness, on the measure that on $\Omega$)  Does anyone have a reference for that?

Just wondering... Let $E$, $G$ be Banach spaces, let $U\subset E$ be a subset of $E$, and let $f:U\rightarrow G$ be a continuous linear function. Can $f$ be extended to a continuous linear function on $E$, $F:E\rightarrow G$? For which cases does this happen?


I am looking to typeset this in latex.    Could anyone suggest a method or package that would enable me to do this?  Thank you!

There is a part of my paper where I use the distributive property and it might not be clear to the reader to see the operation result (I'm using in proposional logic for a proof). The logic equation (part of) is: $$ (l_{1}) \vee \big( (p \vee q) \wedge (\neg p \vee q) \wedge (p \vee \neg q) \wedge (\neg p \vee \neg q)\big) $$ $$ (l_{1} \vee p \vee q) \wedge (l_{1} \vee \neg p \vee q) \wedge (l_{1} \vee p \vee \neg q) \wedge (l_{1} \vee \neg p \vee \neg q) $$  So I was wondering if there is a way to represent this operation like a 'shower' (see another example in pic ). Maybe there is some hidden magic mathmode command or pkg for this. At last we can also rely on tikz.


My crossword is a table made with <td> tags. The input boxes are textboxes (input="text"), styled with CSS. My question is how do you get the focus to the next cell/textbox by using the keyboard arrows. (Up, down, right, left, and backspace)

I am making a crossword puzzle, using a canvas.  How do you get the keyboard arrows to interact with the screen so that when the user presses any of the arrow keys, the cursor will advance to the next available input block.  This is how I drew the blocks on the canvas, with css styles added, button 1 and button 2: The "names001" stands for each box in the puzzle, then each box is assigned a letter value:  var r = event.keyCode; if (r == 13 && m003 == "c") {     w003 = 1;     document.getElementById("names003").value = "c"; }   then a variable checks to see if each word is right and places a checkmark beside clue:   var check001 = w010 + w011 + w012 + w013 + w014;  if (check001 == 5) {      clue001.innerHTML = "✔"  }   Now, I want to know when the puzzle is drawn to the canvas, how do you get the keyboard arrows to interact with the canvas when the user presses one of the arrows(up, down, left, right and also the backspace to clear entry when guess is wrong; I want to move the cursor to advance to the next block.


Any of y'all have any suggestions on books/websites that give an intuitive intro to abstract algebra/basic algebraic structures?

Last semester I picked up an algebra course at my university, which unfortunately was scheduled during my exams of my major (I'm a computer science major). So I had to self study the material, however, the self written syllabus was not self study friendly (good syllabus overall though).  The course was split up into 3 parts, group theory, ring theory and field theory. As a computer science major we only had to study the first 2.  Now that I passed the exam for this course I want to study the field theory part ( which covers Galois theory, etc).  So, now I want to ask whether any of you know any good books on abstract algebra, which lift off at basic ring theory and continue to more advanced ring theory and to finite fields, Galois theory, ...  Please keep in mind that I am not a math major, and that I would like books which are suited for self study (thus a lot of examples and intuition).  Thanks in advance!


Here is my question: Prove that there are infinitely many primitive pythagorean triples $x,y,z$  such that $y=x+1$.  They gave me a hint that I should consider the triple $3x+2z+1, 3x+2z+2, 4x+3z+2$, but I honestly do not know how to start.   Do I need contradiction?

Generally one can see that there are infinite number of solutions for this equation $$a^{2}+b^{2}=c^{2}$$ by taking multiples of the solution $3,4$ and $5$.   Can i use this as a fact to prove, that $k^{2} + (k+1)^{2}$ is a perfect square for infinitely many $k \in \mathbb{N}$? Any hints, suggestions would be helpful. If not, then how do i prove this fact!


Ubuntu 13.04.  Recently zombies have started appearing.  My processes are:  PROCESS       CPU         INFORMATION            chrome            65%     Surf the web calculator        10%     Calculate operations <zombieunknown>    0%     <unknown> <deadprocess>      0%     <defunct>   So how are they coming up? This was recorded on boot, when just Chrome and calculator were running.  Thanks in advance.

With commands like top and the gui based System Monitor I can see that at the moment I have several zombie processes.  What are zombie processes?  Do they affect the performance of the system or the application they are zombie to. Do they use too much memory or any memory at all?


I am making a Sell Shop, but I need to replace some things using /setblock.  For one of the replacements, I am using the command:  /setblock 579 62 1053 minecraft:command_block 0 replace {Command:"testfor @p {Inventory:[{id:"minecraft:log",Count:32b}]}",TrackOutput:0}  But it won't work! When I try it using a Command Block, I get this message:     [19:14:38]   Data tag parsing failed: Unexpected token 'm' at: minecraft:log",Count:32b}]}",TrackOutput:0   Is there any way I can fix this?

I need help with a specific command that I am using in a new game that I am creating inside of Minecraft. The command is:  /give @p sign 1 0 {BlockEntityTag:{Text1:"{"text":" [MF2]","color":"gold","clickEvent": {"action":"run_command","value":"tellraw @a [""{"text":"[MF2]  ","color":"gold"},{"selector":"@p","color":"dark_aqua"},{"text":" is now an admin of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"},display: {Name:"Custom Sign"}}   If I take out the /tellraw command then the command works fine, but I need the command in there to announce to the game that a new admin has joined.  With the tellraw command, the error message is the following:  Data tag parsing failed: Unexpected token 't' at: text":" [MF2]","color":"gold","clickEvent":{"action":"run_command","value":"tellraw @a [""{"text":"[MF2] ","color":"gold"}, {"selector":"@p","color":"dark_aqua"},{"text":" is now an admin  of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"   If anyone knows how to fix this, please let me know.


I know that in x-com stunning and interrogating an enemy would give you a boost to research.    Currently while playing x-com 2, my weapon research is slow, but I'm yet to find a way to speed it up.  Do the same ideas apply that I need to find the right alien type to skulljack to gain a research bonus?

In XCOM 2, the storyline requires the player to      Skulljack an Advent officer. This triggers what is (at that   stage in the game) a difficult fight.   The option remains to do this to other enemies, and indeed there's an achievement for doing it to every type of enemy. What is the benefit of doing this?


I'm working on a project where we have SQL Server Reporting Services automatically saving a PDF report to a network folder.  We then want to password protect this file and email it to specified recipients.  Is it possible to create an app with Visual Studio (C#) that can password protect a PDF?

I am creating a pdf document using C# code in my process. I need to protect the docuemnt  with some standard password like "123456" or some account number. I need to do this without  any reference dlls like pdf writer.  I am generating the PDF file using SQL Reporting services reports.  Is there are easiest way.


Is it possible to use natbib's citation commands (citep and citet) and an author-year citation call-out style while building each \bibitem manually inside the main tex file?  The template I using for a journal submission does not allow external reference files  Edit: Following the sugestion os @Mico I managed to make the citep work but citet are not right:  As explained in (author?) (Keele et al. 2007), these set of guidelines (...)

I am using a Journal's format, however, receiving the following error:      Package natbib Error: Bibliography not compatible with author-year   citations. ...mand\NAT@force@numbers{}\NAT@force@numbers.   How to get rid of this? The header of the LaTeX file is copied below for ready reference.  \documentclass[graybox, natbib, nosecnum]{svmult} \bibpunct{(}{)}{;}{a}{}{,} % suppress commas between author-names and year %\pdfoutput=1   %forces use of pdflatex. Disable if you prefer to use .eps  or .ps figures. % choose options for [] as required from the list % in the Reference Guide  \usepackage{mathptmx}       % selects Times Roman as basic font \usepackage{helvet}         % selects Helvetica as sans-serif font \usepackage{courier}        % selects Courier as typewriter font \usepackage{type1cm}        % activate if the above 3 fonts are                             % not available on your system  \usepackage{makeidx}         % allows index generation \usepackage{graphicx}        % standard LaTeX graphics tool                          % when including figure files \usepackage{multicol}        % used for the two-column index \usepackage[bottom]{footmisc}% places footnotes at page bottom \usepackage[normalem]{ulem} % for strike-through of text with \sout{}   \usepackage{hyperref}  %for hyperlinks \usepackage{soul}   % for high-lighting of text  \begin{document} \begin{thebibliography}{99.} % Book Chapter  \bibitem{science-contrib} Broy, M.: Software engineering  from auxiliary to  key technologies. In: Broy, M., Denert, E. (eds.) Software Pioneers, pp. 10-13. Springer, New York (2002) % % Online Document \bibitem{science-online} Cartwright, J.: Big stars have weather too. IOP  Publishing PhysicsWeb. \url{http://physicsweb.org/articles/news/11/6/16/1} (2007). Accessed 26 June  2007 % % Journal article \bibitem{science-journal} Hamburger, C.: Quasimonotonicity, regularity and  duality for nonlinear systems of partial differential equations. Ann. Mat. Pura. Appl. 169, 321-354 (1995) % % Journal article by DOI \bibitem{science-DOI} Slifka, M.K., Whitton, J.L.: Clinical implications of  dysregulated cytokine production. J. Mol. Med. (2000) doi:  10.1007/s001090000086  % % Monograph \bibitem{science-mono} Geddes, K.O., Czapor, S.R., Labahn, G.: Algorithms  for Computer Algebra. Kluwer, Boston (1992)  % \end{thebibliography} \end{document}


what i want to achieve is add Generic  in my exception class which is looked like this before : @ResponseStatus(HttpStatus.NOT_MODIFIED) public class ResourceGeneralErrorTest extends RuntimeException {          public ResourceGeneralErrorTest(String message){         super(message);     }  }  and i use it like this : throw new ResourceGeneralError("Some error string " + errorTransDoMsg.toString());  but i only can pass string value inside this class. I want to pass Object class in this, so i try to add this : @ResponseStatus(HttpStatus.NOT_MODIFIED) public class ResourceGeneralErrorTest<T> extends RuntimeException {      private T data;          public ResourceGeneralErrorTest(String message){         super(message);     }  }  which is give me error when i extends the RuntimeException class, here is the error message Generic class may not extend 'java.lang.Throwable' how can i keep extends RuntimeException and i can pass some object into it with my String message?

According to the , 3rd edition:        I wish to understand why this decision has been made. What's wrong with generic exceptions?  (As far as I know, generics are simply compile-time syntactic sugar, and they will be translated to Object anyway in the .class files, so effectively declaring a generic class is as if everything in it was an Object. Please correct me if I'm wrong.)


In my electromagnetic theory class, I learned that magnetic forces do no work. This is easy to see when observing a cyclotron; the speed never changes, so the kinetic energy never changes and therefore no work is done.  I then tried extending this logic to junkyard magnets, and now I am skeptical. The induced magnetic field appears to lift chunks of metal off the ground, directly opposing gravity and therefore changing the gravitational potential energy of said chunks.  So my question is, does the principle "magnetic forces do no work" fall apart in this case? Or is there something about the design of junkyard electromagnets that permits the principle to hold true?  Thank you in advance for your answers. :)

I learned that the force from a magnetic field does no work. However I was wondering how magnets can be used to pick up pieces of metal like small paperclips and stuff. I also was wondering how magnets can stick to pieces of metal like a refrigerator?


What is the name of an 80s TV movie where a man acquires endurance powers and quick self-healing ability after a crash with a vehicle containing radioactive material?

The details of this movie are specially fuzzy on my mind.  I saw it at some point in the 80s I think and I can only remember very vague facts.   Main character has immunity to harm. I “think” is more like super fast healing, à la Wolverine. At one point in the movie he has to go from one place to another and there’s a remark in the sense since he doesn’t fatigue, he’ll be able to run at peak human velocity all the way and hence make it in time. I seem to recall he runs through a forest and it is elated to save his son. There’s a girl, some kind of scientist that’s helping him but I don’t think it was the mother. The main character has a son. In his early teens. At the end of the movie, this is the scene I remember more vividly, the son wants to know if he’s inherited the healing powers of his dad, so he purposely cuts himself on the hand washing on the kitchen sink. The main character comes running to find him holding the hand under water and he confesses what he has done and why. When he shows the hand, the injury is gone, implying he does, indeed, share his dad’s ability.


I have an example here.     Payment of $45 from 20 Aug 16 to 20 Sep 16 has been made successfully.   Is is right to frame a date this way for the user to read it easily or is there any other way to format a date in sentences like above?

In general, there is a difference between the common spoken ordering of dates between US and UK usage. So in the UK, we would tend to say:     "the 14th of December, 2005"   while in the US, people would tend to say:     "December 14th, 2005"   The US ordering is possible in spoken usage (usually with "the", so "December the 14th, 2005"), but probably not the most common in spoken usage, and definitely not in written usage. In written UK usage-- at least in a modern written style-- one would tend to write: "14 December 2005".  Now my question: how jarring does it look to a native US speaker to write dates using the UK format, i.e. "14 December 2005"? Visually, I quite like the UK style because it keeps the two numbers separated, but the document I'm writing is for a US audience.


In the movie Furious 7, Dom lift a Lykan HyperSport with bare hands.  Given that in reality, how strong it has to be to lift a Lykan HyperSport(1,380 kg), says to 40 cm in one rear end, and hold it for 10 seconds?  How much is one-rep max of this guy's deadlifting?

I don't know the EXACT measurements, but I can closely guess that the bumper is about 18 inches from the ground, and the engine is in the front, yes(the engine is about 20 inches from the front bumper inside the hood, and about 23 inches centered between the hood on both sides). I don't know what the engine weighs, but the car's overall curb weight (whatever that means) is 2,480 lbs. Convert to any other weight measurements if you wish, but I'm most used to pounds.  I can assume you can easily find the specs of the size ... it's a Toyota Corolla 2002 blue SE limited-edition model.   Specs:  It is about fourteen feet and six inches long.  It is five feet and size inches wide from both doors on the front left to right seats.  The wheelbase is around eight feet.  The car is in total four feet and five inches from the floor to the roof in height.  I don't know if this question is relevant or meets the standards here, but I would really appreciate someone decent at physics and maths to help me find the weight here that is lifted from the back bumper's height, and the total force necessary to raise both wheels in the air about one inch.  Some have said that since there's shocks, the weight is favorable to the lifter somewhat, but to what degree I'm uncertain.  Any help would be greatly appreciated in your findings on this issue.


A mind flayer can cast a few spells, requiring no components. There seems to be two parts to this:   If a spell being cast has no components, would others be even aware that it is being cast at all? Does counterspell work against a psionic spell?

On p.85 of Xanathar’s Guide to Everything, there’s a section clarifying that you need to perceive a spell being cast (by either a verbal, somatic or material component) in order to counterspell it.  It then goes on saying this :     If the need for a spell’s components has been removed by a special ability, such as the sorcerer’s Subtle Spell feature or the Innate Spellcasting trait possessed by many creatures, the casting of the spell is imperceptible.   The thing is that many monsters’ Innate spellcasting specify that only material components are discarded (not verbal or somatic). So I am not sure whether you can actually counterspell innate spellcasting when the stat block only mentions removing material components.  There seems to be  supporting that such spells could be counterspelled (although it is confusing a bit).  It basically comes down to whether the above quote’s “many creatures” refers to all creatures with innate spellcasting, or only those that forgo all spell components to innanely cast. So, which is it ?


Let $a_n$ and $b_n$ are strictly increasing to $+\infty$ sequences such that the series $\sum \frac{1}{a_n}$ and $\sum \frac{1}{b_n}$ are divergent. Is it true that the series $\sum \frac{1}{a_n+b_n}$ is also divergent?   At first sight it looks true, so I tried to prove that, but after some failed attempts I start to believe now that there might exist a counterexample. Any thoughts?

Let $f(x)$ and $g(x)$ be positive nondecreasing functions such that $ \sum_{n>1} \frac1{f(n)} \text{ and } \sum_{n>1} \frac1{g(n)} $  diverges.    (Why) must the series $$\sum_{n>1} \frac1{g(n)+f(n)}$$ diverge?


I have installed Ubuntu with Win 8 but at first step it blocked my Win8! Unfortunately I had to reinstall my Win8 & all of my program.  I've search your site so it seems the problem is because of GRUB! So I've used these codes which I found in your site:   sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update  and after that these sudo apt-get install -y boot-repair && (sudo boot-repair &)   and then boot & repair which unfortunately I've lost my Win 8 again!!!! So I've reinstall my Win but there is no boot menu at starting my PC to choose Ubuntu or Win 8 and my PC runs with Win 8!!!  So please help me to use lovely Ubuntu with my Win 8 together without loosing anything!   Additionally I am Beginner with Ubuntu.  Thank you.

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?


Although I have in excess of 30Gb free on the Internal Hard Drive, I have been unable to install XCode 12.4. The App Store displays the message "We could not complete the purchase. There is not enough disk space available to install the product." A similar message appears when I try to install XCode 10.0. Although, in respect to the question "How can this issue be resolved?", helpful answers have been provided (such as the amount of available space on the Hard Drive), is the answer also dependent on Memory?

I am trying to update Xcode to 8.0. My OS is 10.11.6 El Capitan. However I am getting:     We could not complete your update   There is not enough disk space available to install the product.   I have got 14.22 GB free space. How much do I need?  UPDATE: I do not know the exact figure, though I did manage to update with 17.21 GB free space later on.


If I typeset a simple algorithm using the algorithmicx package, say  \documentclass{article} \usepackage{algpseudocode} \usepackage{algorithm}  \begin{document}  \begin{algorithm}[H]   \caption{Bisection}   \label{alg:1} \begin{algorithmic}   \Repeat     \State $t\gets \frac{a+b}{2}$     \State and so on...   \Until{$f(t)>\epsilon$} \end{algorithmic} \end{algorithm}  \end{document}   the result looks similar to:    How do I add a colon behind the number of the algorithm, i.e. i would like to get  Algorithm A.1: Bisection  My first idea was to redefine thealgorithm as  %\renewcommand{\thealgorithm}{\thechapter.\arabic{algorithm}:}   However, in this case every time I reference an algorithm I also gain the colon. Bad idea. Of course I could redefine the command before and after the algorithm environment or create my own environment that encapsulates algorithm and makes the corresponding definitions. But is there a better way?

I have simple code:  \documentclass{article}  \usepackage{algorithm}  \usepackage{algpseudocode}  \begin{document}  \begin{algorithm}   \caption{Examples}\label{alg:Examples}   \begin{algorithmic}[1]   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$    \end{algorithmic} \end{algorithm}          \end{document}     How to put a point after the number of the algorithm? I use chapters in report:  \documentclass[a4paper,12pt]{report}  \usepackage{algorithm}  \usepackage{algpseudocode}  \begin{document}  \chapter{Chapter 1}  \begin{equation} X_2=4 \end{equation}  \begin{algorithm}   \caption{Examples}\label{alg:Examples}   \begin{algorithmic}[1]   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$   \State $X=45$    \end{algorithmic} \end{algorithm}  \end{document}     How to change the numbering to take into account the chapters?


What do I call a person who always seeks for the best price on particular item/product/service ?   Person who spends hours digging internet to find deals/discount codes/coupons in order to pay a minimum price ?   Same person may also bargain for hours with any service provider, like a car dealer, barber or street hot-dog seller, etc.  It can be in a form of addiction but also can be considered as good quality of person (he is smart enough never to overpay)

My colleague and I were discussing about certain types of customers in the IT industry. You have to work extremely hard to convince them so that they think about opening their wallets .  However, they should not be mistaken to be stingy (carries a negative connotation). Cost-conscious is a closely related term but is a bit wordy. Another word that I considered is shrewd but I don't know if it fits my context well.  Usage Sentence:     Nowadays, IT customers are becoming increasingly ________. They demand more for less and probably think a zillion times before reaching for their pockets. If they are not convinced 100%, they simply won't open their wallets.    Is there is a noun or an adjective to describe such people? I am also open to using idioms, if there is one that conveys the intentions well.  N.B:  I am looking for words with neutral to positive connotations.


I am pretty new to JSON in minecraft and I wonder how I can teleport my dog named Jack S. Eye to me? I was thinking something like /tp @e[name=Jack S. Eye] @p, but it doesn't work (I understand that I probably need some kind of quotation around the name). And please answer in detail, because I don't know anything about this kind of hardcore in-game programming.  I have tried /tp @e[name=Jack_S._Eye] @p, /tp @e[name=Jack S. Eye] @p, and /tp @e[name="Jack S. Eye"] @p. I don't know what I am doing wrong?

How can I test for mob who has a name with two words? For example villager named Grumpy Bill. For example I want to kill this villager.  This command   /kill @e[name=Bill]   would work just fine but when I try  /kill @e[name=Grumpy Bill]   it says "The entity UUID provided is in an invalid format"  What is the proper command for this action?


I am wanting to check if a file exists, if it does do nothing if it does not copy over a file.  This is the code I have, but I get compile errors such as   Only assignment, call increment, decrement and new object expressions can be used as a statement Invalid expression return Invalid expression term ':' ; Expected   This is the syntax I have  string template = "C:\\Test\\database12.mdb"; string dest = "R:\\Production\\database12.mdb"; if (File.Exists(dest) ? return : File.Copy(template, dest));

I would like to test a string containing a path to a file for existence of that file (something like the -e test in Perl or the os.path.exists() in Python) in C#.


i want to install aptitude  i type   sudo apt-get install aptitude   bash show this :  Reading package lists... Done Building dependency tree        Reading state information... Done Package aptitude is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'aptitude' has no installation candidate

When I try to install any package through the command line, I get an error.   $ sudo apt-get install <package> Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package <package>   Can anyone help me on this?