Quick Explosion: How to give shrapnels hitboxes

I don't know how to describe my problem, so I'll post a gif of my problem first:    As you can see, the shrapnels don't seem to have a hitbox. They collide with the plane, but instead of flipping around on the ground like tiny metal plates, they just rotate in place at their center point.  How do I fix this problem? (I created this animation using Quick Explosion) Thanks in advance!


lognormal distribution, standard-deviation and (physical) units

I have a distribution of microparticles that follows a lognormal distribution. The cumulative distribution function thus is given by:  $$ F_X(x;\mu,\sigma) = \frac12 \operatorname{erfc}\!\left(-\frac{\ln x - \mu}{\sigma\sqrt{2}}\right) $$ $$ \mu = ln(M) + \sigma^2 $$  Now, the plot of the distribution function should be exactly the same no matter if the particle diameter $x$ is given in micrometers or meters (as long as I adapt the x-axis accordingly of course). However, this only works if I only convert $x$ and $M$, while not touching the numerical value of $\sigma$, and I don't understand why. $F_X$ has to be unitless, so $x$, $\mu$ and $\sigma$ should all have the same unit, right?


how to compare the entire user input in android taken through edit text with a hard coded string

this is what I tried doing:   EditText text_ans1 = (EditText)findViewById(R.id.ans_one);  String ans1 = text_ans1.getText().toString();  if(ans1=="abc")


How to I can Array of strings into object

Can anyone help me in this.   [  "{proId: 845,particularProduct: 1153,parQuantity: 2,rPrice: 899,numItems: 100}",  "{proId: 848,particularProduct: 1157,parQuantity: 2,rPrice: 1009,numItems: 3}" ]   How Can I get the value of proId, particularProduct, etc


What is the probability that a person is the second person to roll a 6 for the first time?

Suppose $A$, $B$, and $C$ roll a die in turns. What is the probability that $A$ is the second person to roll a $6$ for the first time?


I would like to create a border with 2 two colors inside. The first color will be in blue and the next in white.   In my code, there is the colors which are inverted... The white before the blue... I don't understand why ?    .border-color-blue{   height: 182px;   width: 260px;   background-color: blue;  } .border-white{   border: 1px solid #e0e0e0;   background: white;   width: 260px;  }

Lorem ipsum dolor sit amet, ei cum option deserunt, sed cu dicta albucius dissentias.


Why I can't change permission of any files which are located on other partitions like sda2,sda3,sda4 and so on.. When I change it from properties it's immediately change again to it's previous setting.. When I tried with nautilus... it shows


sqlite> DELETE FROM mails WHERE (`id` = 71); SQL error: database is locked   How do I unlock the database so this will work?


For UK/USA bound flights, are details entered during online check-in, such as date of birth or passport number ever checked by airlines/immigration?

When checking-in for a flight online, you are usually asked for details such as date of birth, passport number, passport expiration dates, etc. However despite making minor mistakes a few times (usually in the expiration date field), I was never once questioned by the airline. I also don't remember them checking anything except my name or my visa status.  So the questions are:   Is passenger information (as entered during online check-in) other than name and visa ever validated by airlines? Is that information ever validated by immigration? Will you be denied boarding because you've made a mistake during online check-in?   The question is restricted to UK and USA flights because both are generally strict about requiring APIS data for all inbound flights.


There are many posts, votes and answers indicating using lock (this) is not a recommends pattern (not to mention a bad one).  Have a look at , for example.  As I'm trying to investigate this pattern a little bit, and wanted to ask whether anyone someone can think of a scenario in which using lock (this) is actually recommended, or even a must?


Can a wizard cast a prepared spell more than once?

For the purposes of this question, I'll be comparing Wizards and Sorcerers, ignoring Warlocks and Divine spellcasters.  So the main differences are that Sorcerers can cast anything they know so long as they have spell slots, whereas Wizards can only cast what they have prepared, even though they know more spells, again providing they have spell slots to prepare.   For example, Arcane Recovery says that you regain some spell slots, but it doesn't mention about spell preparation. So if you burn through all your spell slots, do you have to re-prepare you spells, or can you cast prepared spells repeatedly, like a Sorcerer can, only limited by spell slots? To reword that, can you cast a prepared spell as many times as you like so long as you have spell slots, or can you only cast a prepared spell once?  Note that prior to getting into 5e, my only other knowledge of D&D came from NWN2, based on 3.5e, so it might be that things worked differently then, or NWN2 works differently. In that game, you had to prepare the same spell multiple times if you wanted to cast it multiple times...


Is there a way to visualize what "Minimal sufficiency" and "Completeness" of a statistic means?

As defined (for example, in Wikipedia):  Completeness is a property of a statistic in relation to a model for a set of observed data. In essence, it is a condition which ensures that the parameters of the probability distribution representing the model can all be estimated on the basis of the statistic: it ensures that the distributions corresponding to different values of the parameters are distinct.  A sufficient statistic is minimal sufficient if it can be represented as a function of any other sufficient statistic. Intuitively, a minimal sufficient statistic most efficiently captures all possible information about the parameter θ.  What I am looking for is a way to visualize either of these two explanations (intuitions?) in some way.  Any suggestions on how that might be done?


Name of next tag badge and progress for it are jammed together if name is too long

When I was looking at my profile, I discovered that the name of my next tag badge was jammed with the bar showing my progress for me. It looks like this happens when the tag name is too long.    This happens even if I am logged out. The display issue is not as severe only because the icon next to it isn't there.


Gerund or infinitive which is more common at the start of a sentence?

Swimming helps us stay healthy.   To swim helps us stay healthy.    What's difference in meaning, if any? If verbs are action verbs, shall I use infinitives or gerunds as subjects?


For some reason I have created my Stack Overflow account linked from my Google account. Can I create a Stack Exchange account and connect my existing Stack Overflow account to the new one and unlink it from Google?


How to interpret packaging information in Datasheet

I'm trying to create a part for Fritzing and I am struggling to interpret the packaging size in the datasheet.   In the notes it is said that the sizes are in mm, ok with that, but how should these numbers be interpreted? A division or max/min does not make sense.


How do I safely move a Windows 7 software RAID 1 volume to a new PC?

I have 2 identical drives in an old PC running as a mirror RAID (RAID1) using the Windows 7 software RAID. These drives are data-only drives and are not being used to boot an operating system.  How do I safely move these drives to a new PC?  The new PC is also running Windows 7.  There is a Windows Computer Management help article titled "Move Disks to Another Computer", which talks about dynamic disks, but I find it a bit confusing. It's not clear if all of the steps given are necessary for dynamic disks (of which mirrored disks are a type), and the step that is clearly for dynamic disks mentions menu items that don't exist for mirrored drives.  Basically, I'd appreciate any knowledge or experience in this area.


Want my code to print only 2 decimal places

public class Exercise05_08 {   public static void main(String[] args) {     System.out.println("Celsius\t\tFahrenheit\t|\tFahrenheit\tCelsius");     System.out.println("---------------------------------------------");      double celsius = 40; double farenheit = 120;     for (int i = 1; i <= 10; celsius--, farenheit -= 10, i++) {       System.out.println(celsius + "\t\t" + celsiusToFahrenheit(celsius) + "\t|\t" +     farenheit + "\t\t" + fahrenheitToCelsius(farenheit));     }   }    public static double celsiusToFahrenheit(double celsius) {     return (9.0 / 5.0) * celsius + 32;   }    public static double fahrenheitToCelsius(double fahrenheit) {     return (5.0 / 9) * (fahrenheit - 32);   } }   Some of the values print out with several decimal places and i want all of the values to print with just 2 decimal places.


Hey everyone! So im a little confused here and im extremely new to the world of video editing. My brain is hurting but it feels really rewarding. Anyways, my first problem that I am having is in video editing mode (obviously) with the video playback. I believe it is called video sequence editor. For the first three or so seconds, it runs at 55 - 60 fps (even though the video is at 30) and then it almost starts playing in slow motion at 2.50 - 5 fps!! What the real kicker for me is, the video is at 30 frames per second, but it actually looks fully up to speed when it reads 60 fps. Anything below that, it plays almost in slow motion. Actually, very slowly.  I have manually set the fps to 30, tried again without manually setting it and still no luck.  Thanks all!


trying to copy array of objects by value not reference

Hi im aware this subject has been covered in previous posts, but im still not getting the result i need. Im trying to do a copy of an array of objects that that will be its own version of its original, and not affect each others data when changes are made. So far copying an array of ints works fine when i use   slice() but not for vector of objects. It was mentioned in another post that slice() on vector of objects will still reference the objects, so is there a way to do it by value only??? Thanks.  property var array: new Array   Rectangle{id: ob1; width:50; height:50; color: "red"; property int num: 1} Rectangle{id: ob2; width:50; height:50; x: 50; color: "blue"; property int  num: 2} Rectangle{id: ob3; width:50; height:50; x: 100; color: "green"; property int num: 3}  Component.onCompleted: {      array.push(ob1)     array.push(ob2)     array.push(ob3)      var array2 = array //slice() will not work here      array[1].num = 1111  //change made to first array NOT intended for second       for(var i = 0; i < array.length; i++){         console.log(array2[i].num)  //print out from second array still shows changes to first...     } }


Was helium hydride really the first molecule?

This press release by NASA:      When the universe was still very young, only a few kinds of atoms existed. Scientists believe that around 100,000 years after the big bang, helium and hydrogen combined to make a molecule called helium hydride for the first time. Helium hydride should be present in some parts of the modern universe, but it has never been detected in space — until now.   Naively I would expect that the first molecule to form would be the H$_2$. A claim that HeH$^+$ was before that should mean that it has larger binding energy that allowed the molecules to withstand more radiation. However, if I check Wikipedia for dissociation energies of these molecules, I see $436\,\rm kJ/mol$ for H$_2$ and $360 \,\rm kJ/mol$ for HeH$^+$.  Additionally, helium hydride is charged and should interact with lower energy photons that will destabilize the bond due to sheer quantity.   And finally, the temperature mentioned in the article is $4000\rm\, K \sim 0.34 \, eV$ — which is quite below the dissociation energy of molecular Hydrogen ($4.52 \,\rm eV$). Why was the formation of molecules delayed so much? Is this one of those situations where baryon-to-photon ratio is important and photons overwhelm the baryons?  Could someone please explain this situation?


Some of titles are too long, and when I make the table of contents, one line is not enough for them. How can this problem be solved? Can I split the title by a certain line break command? Or can I use a short version of the title instead? What commands should be used in the both cases?


How do I search events between two set dates inside WP?

I am building a WP site with an events feature. The events page was made with custom post types.  I want to make it possible for people to search/ filter events by dates. For example, they can search for all events happening between 2nd December, 2011 and 1st March, 2012 and get results from events that have their dates between the months of December and March (ie. december, january, february and march).  I want to know the best way to go about this. Any ideas?  You can see an example of what I want to achieve by looking at the "Search events by date" feature on this page   If that won't be possible, is there any way I can get them to search for events happening between certain months, say December and February(excluding the days)?  Thanks in advance.


If in the future, Skynet achieved its aim of wiping out all of mankind, what would it do then? Would it just return a "Program complete" code and just stop?


Just on the first page of , I saw a strange right-tilted "line":  Is it a kind of bug?


Guys as u can see I want to install Ubuntu,not dual boot.  My question is when I select Replace windows with Ubuntu,will it delete all my data (complete hard disk format) or just windows 7 data (my C: drive) ??????????????


How to predict the motion of a cylinder on top of inclined plane in scenario with different coefficients of friction?

Consider an inclined plane with angle $x$. Now put a cylinder on top of it and consider three different cases.   A the limiting frictional force $f$ is greater than $mg\sin(x)$ where $m$ is the mass of cylinder. B the limiting friction $f$ is exactly equal to $mg\sin(x)$ C it is less than $mg\sin(x)$.   What will happen in each case?  In A and B I suppose $f$ will provide torque and then friction will change direction to oppose the angular velocity maybe.  In C it will start moving and then provide torque but the friction should vanish although it stays there and apparently it may or may not cause slipping. What is meaning of slipping?  I am not sure about these cases. Can someone explain. I just need physical intuitive explanation.


How to control the mouse in Mac using Python?

What would be the easiest way to move the mouse around (and possibly click) using Python on OS X?    This is just for rapid prototyping, it doesn't have to be elegant.


How prove this nice limit $\lim\limits_{n\to\infty}\frac{a_{n}}{n}=\frac{12}{\log{432}}$

Nice problem:  Let $a_{0}=1$ and $$a_{n}=a_{\left\lfloor n/2\right\rfloor}+a_{\left\lfloor n/3 \right\rfloor}+a_{\left\lfloor n/6\right\rfloor}.$$  Show that  $$\lim_{n\to\infty}\dfrac{a_{n}}{n}=\dfrac{12}{\log{432}},$$  where $\lfloor x \rfloor$ is the largest integer not greater than $x$.  It is said this problem was created by Paul Erdős, and I can't find this problem's solution, does anyone have any nice methods? Thank you.


Let $A:V\to V$ be an endomorphism of a vector space $V$ such that $A^2=id$.   Then the only possible eigenvalues of $A$ are $\pm 1$ and of course $1$ is an eigenvalue of $A$. Are those in fact eigenvalues of $A$?


I have been looking to buy a Canon 760D because of its amazing features that it offers in comparison to the currently available list of DSLR's out there. I have previously owned a 550D and had a great experience with that. However the city where I am trying to buy it from is Dammam and they do not have the 760D model available. The only model they have is either Canon 750D (which seems like a bit of a downgrade to me) or Canon 70D. I don't intend to buy the 750D because I feel 760D would be a better choice but because of its non-availability, I was considering going for the 70D. I know the fact that its the lens that counts when it comes to DSLR's:)  I have checked out the reviews and differences  between 760D and 70D however because its a bit more pricier than the 760D, I would like to know if there are that many significant differences worth paying the extra money for. Could the users of these two models comment on what their experience has been with these two models?  Cheers.  Update:  Apart from the weight, battery life and megapixel differences, I see that the NFC feature is not included in the 70D model. Would that mean that I cannot use the 70D to touch and send my pictures to another device? WiFi is included in both but how would not having NFC work out?  Usage:  I usually use my DSLR for food photography, portraits and landscapes at times. I already have a 50 mm f/1.8 lens with me.


I can't remember my email address for my xbox live account but I know my password for a fact. What should I do? Please help me if you can. /:


How to make a sentences to become 2 line using \thead

I had try include \thead but not working.  I want to make Class AA and Class BB go into second line.     \documentclass[12pt,oneside]{book}  \usepackage[showframe]{geometry} \usepackage{amsmath} \usepackage{ragged2e} \usepackage{makecell, multirow, tabularx} \renewcommand\theadfont{\small\bfseries} % for bold in table using \small \renewcommand\theadgape{} \usepackage[svgnames, table]{xcolor} \usepackage{hhline, boldline} \usepackage{seqsplit, caption} %for table spacing to second row \usepackage{booktabs, ragged2e} % Use booktabs rules and get rid of vertical rules, ragged2e to ragged text \usepackage{siunitx} %for table spacing to second row \usepackage{threeparttable} %to add footnote below table \usepackage{tabulary} \usepackage{graphicx}  \usepackage[font=small,labelfont={bf,sf}, textfont={sf}, justification=centering]{caption}   % \hypersetup{pdfborder = {0 0 0}}  \begin{document}   \begin{table}[h!] \centering \sisetup{table-format=6.0, table-number-alignment=center, table-column-width=6.0cm}  \begin{tabular}{lSS}      \toprule      \multirow{2}{*}{} & \multicolumn{2}{c}{\thead{\makebox[0pt]{Sample Number}}}\\       \cmidrule{2-3}     &{\textbf{\thead{Testing1 species} \thead{(Class AA)}}}      & {\textbf{Testing2 species (Class BB)}} \\      \midrule     High Wavenlength & {18, 17, 15, 18} & {19, 18, 1, 11} \\     Medium Wavenlength & {18, 17, 18} & {19, 18, 11} \\     Low Wavenlength & {18, 17, 15, 18} & {19, 18, 1, 11} \\      \bottomrule     \end{tabular} \end{table}   \end{document}


apt-get install with '-' (minus / hyphen) removes packages

I was looking for some package (nautilus-terminal), and accidentally did this:  $ sudo apt-get install nautilus- Reading package lists... Done                                                                                Building dependency tree                                                                                Reading state information... Done                                                                                The following packages were automatically installed and are no longer required:                                                                                apturl apturl-common libgail-3-0 linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic linux-image-4.4.0-57-generic linux-image-extra-4.4.0-57-generic                                                                       Use 'sudo apt autoremove' to remove them.                                                                                The following packages will be REMOVED:                                                                                gnome-session-flashback nautilus nautilus-sendto nautilus-share ubuntu-desktop                                                                                0 upgraded, 0 newly installed, 5 to remove and 69 not upgraded.                                                                                After this operation, 2 031 kB disk space will be freed.                                                                                Do you want to continue? [Y/n] ^[[^C                                                                                That's quite dangerous because remove is much harder to mistype than a simple dash from a failed autocompletion.     Is that an equivalent of apt-get remove? I couldn't find any documentation for that. Edit: except for overlooking the man page...


Galilean invariance of the free schroedinger equation

My question follows this question:   Essentially, I'm not sure how to proceed mathematically.  We have the transformations:  $$\begin{cases}x'=x-vt\\t'=t\end{cases}.\tag{1}$$  Then, the TDSE for a free particle is  $$i\hbar\frac{\partial\psi}{\partial t} = -\frac{\hbar^2}{2m}\frac{\partial^2\psi}{\partial x^2}\tag{2}$$  which after transforming the coordinates becomes  $$i\hbar\left(\frac{\partial\psi}{\partial t'}-v\frac{\partial\psi}{\partial x'}\right)=-\frac{\hbar^2}{2m}\frac{\partial^2\psi}{\partial x'^2}\tag{3}$$  For simplification, we look at the plane wave  $$\psi\left(x,t\right)=e^{i(px-Et)/\hbar}$$  using   $$x'=x-vt$$  we get  $$p'=p-mv$$ so that  $$p'x'-E't' = p'x' - \frac{p'^2}{2m}t' =(p-mv)(x-vt) - \frac{(p-mv)^2}{2m}t=px-Et-mvx+\frac{mv^2}{2}t$$  then the wavefunction in the new frame is  $$\psi'(x',t')=e^{i(p'x'-E't')/\hbar}=e^{i(px-Et)/\hbar}e^{-i(mvx-\frac{mv^2}{2}t)/\hbar}$$  My question is how do I show that the new wavefunction satisfies schroedinger's equation. I tried plugging it into both of (2) or (3), it doesn't satisfy either, so what am I doing wrong?


Why do balloons get cold when they deflate?

When I deflate balloons by cutting one end and letting the air out, why does the surface of the balloon feel cooler?


Choosing between additive or multiplicative group for Diffie-Hellman

I am trying to construct a theoretical Diffie-Hellman key exchange protocol. However, i cannot understand the difference between choosing an additive group or a multiplicative group. I believe an additive would make it much more simple, but would a multiplicative group make it more difficult to break? What would be the difference between the use of those 2 kinds of number groups?


The shaders included in "Super Secret Settings" won't turn off!

My super secret setting shader won't turn off! I've tried restarting it, spam clicking the "super secret settings button" and pressing f4. All of the blocks still have a red shadow to it!


Getting NullPointerException when button is clicked (JavaFX and FXML)

After finally getting the gui to run without problems whenever i click on a designated button the IDE (Eclipse) putting out a long massage with this error in its end.  Caused by: java.lang.NullPointerException     at ui.IOTabController.handleSourceFolderPathSubmit(IOTabController.java:32)     ... 62 more   Here is the IOTab.fxml (relevent part):  <AnchorPane fx:id="IOTab" minHeight="0.0" minWidth="0.0"     prefHeight="282.0" prefWidth="676.0" xmlns="http://javafx.com/javafx/9"     xmlns:fx="http://javafx.com/fxml/1" fx:controller="ui.IOTabController">     <children>         <Pane layoutX="12.0" layoutY="50.0" prefHeight="37.0" prefWidth="625.0">             <children>                 <TextField id="sourceFolderFullPath" layoutX="167.0" layoutY="1.0" prefHeight="26.0"                     prefWidth="391.0"/>                 <Button id="sourceFolderPathSubmit" layoutX="567.0" mnemonicParsing="false" text="Enter"                  onAction="#handleSourceFolderPathSubmit"/>                 <Text layoutY="18.0" strokeType="OUTSIDE" strokeWidth="0.0"                     text="Source folder's full path:" />             </children>         </Pane>         ... </AnchorPane>   Its controller IOTabController.java:  public class IOTabController implements Initializable{  // IOTab.fxml controller      @FXML private MainController Main;     // variables from fxml file to inject.     @FXML private AnchorPane IOTab;     @FXML private TextField sourceFolderFullPath;     @FXML private Button sourceFolderPathSubmit;     @FXML private TextField csvFileName;     @FXML private Button csvFileNameSubmit;     @FXML private Button deleteExistingData;     @FXML private Button convertCsvToKml;      @FXML     protected void handleSourceFolderPathSubmit(ActionEvent event) { // handles path submit.         if (sourceFolderFullPath.getText().isEmpty()) { // if empty field             AlertHelper.showAlert(Alert.AlertType.ERROR, "Form Error!", "Please enter path.");             return;         }         AlertHelper.showAlert(Alert.AlertType.CONFIRMATION, "SUCCESS","Path inserted.");     }      // class for creating alerts.     public static class AlertHelper {         public static void showAlert(Alert.AlertType alertType, String title, String message) {             Alert alert = new Alert(alertType);             alert.setTitle(title);             alert.setHeaderText(null);             alert.setContentText(message);             alert.showAndWait();         }     }      @Override     public void initialize(URL arg0, ResourceBundle arg1) {         // TODO Auto-generated method stub      }  }   The main controller:  public class MainController { // main.fxml controller.      @FXML private IOTabController IOTabController;      @FXML public void initialize() {         System.out.println("Application started");         IOTabController.initialize(null, null);     } }   The gui is running fine until I click on "sourceFolderPathSubmit" button which pops the warning above every click (no matter if i put text in the TextField or not). I cant seem to find what to add or remove to make the button work.


Do I need Intel Smart Response when installing Ubuntu?

With lots of guides and setup variations all over the internet, I find it confusing which is which to really follow. Normally, in Windows 8 my setup would be install everything in the HDD and use Intel Smart Response for a speedy setup. However as I am new to Linux I really don't know what to do.  My ideal setup would be something similar to this, but I know for a fact that IRST is not available in Linux so what I intend to do is keep the OS files in the SSD instead and keep my media on the larger HDD. A step by step procedure would be extremely helpful.     Edit: I want a system running solely on Ubuntu, with the SSD to speed things up but setting it in such a way that it does not hasten its lifespan.    # /etc/fstab: static file system information.  # # Use 'blkid' to print the universally unique identifier for a  # device; this may be used with UUID= as a more robust way to name devices  # that works even if disks are added and removed. See fstab(5).  #  # <file system> <mount point> <type> <options> <dump> <pass>  # / was on /dev/sda1 during installation  UUID=80289460-5983-4349-8afc-6f3119938ee9 / ext4 errors=remount-ro 0 1   # /files was on /dev/sdb5 during installation  UUID=c1678c88-5100-41bc-8090-7887f1622c7f /files ext4 defaults 0 2   # swap was on /dev/sdb6 during installation  UUID=608e3ec2-c76e-4657-af6d-80793b5f50f6 none swap sw 0 0


All programs I've tried seem to be listing Hz from cpu's specifications not actually checking what the current Hz really is.  for example a processor is marketed with 4GHz.But this is the max (unless you over/under/clock) and if the cpu isn't doing anything or is getting too hot it will throttle down.  The program always will say 4Ghz even when the CPU is at 2Ghz.I want to avoid this and know the real Hz.  What programs actually check current cpu hz and not just read cpu specifications?


How can I retain / transfer my Windows 7 license files back to the same computer after a reformat?

So I have an old Windows laptop that I used in college that has over time gotten increasingly bogged down with bloat / fragmentation that I would like to reformat. I can get an install disk easily, but my problem is the licensing. My laptop was pre-installed with a licensed copy of Windows 7. I don't have the serial number (it might be sitting in a box in a basement, but for my purposes isn't accessible). There are two stickers on the bottom of the computer, one of which has the company serial number and a "Microsoft certificate of authenticity" one which is illegibly faded.  Is there a way such that I can either:   Retrieve my windows activation key either from the computer serial number (maybe registered with Microsoft somehow?)  Transfer the actual locally stored license files to an external drive and then copy them back after I've reformatted my C: drive?   ...or secret option 3., do they just authenticate the operating system license based on some internal ID and I'll still be able to install Windows after I reformat?


How can magnetic fields have energy and yet be unable to do work with that energy?

Magnetic fields can't do work. However, we use the following equation to describe the energy density of a magnetic field.  $u = \frac{B^2}{2\mu_0}$  The term energy density suggests that the magnetic field has the ability to do work. Is this a contradiction?  As an example, the energy stored in an inductor is   $U = \frac{1}{2}LI^2$  This energy is stored in the magnetic field of the inductor. In an RL circuit with a charged inductor, the current in the circuit continues to flow for a finite time after the battery is removed. It seems that the energy of the magnetic field in the inductor is doing work to drive the current.  I realize that as the magnetic field in the inductor drops, an electric field is created that drives the current. However, the electric field's ability to do work was derived from the energy in the magnetic field.  I also realize that the energy in the magnetic field originally came from the battery, making the battery the original source of the work done.  I am left to make the following conclusions, but I don't know if they are correct.   A magnetic field never directly does work. A magnetic field can store the ability to do work. In order for magnetic energy to be used as work, the magnetic field must transfer the energy to an entity (such as an electric field) that is able to do work directly.


Kinetic energy is different in different frames of reference?

If velocity is a relative term then a body would possess different Kinetic Energy in different frames of reference. How can a body have different energies simultaneously for different observers ?


How can I reject an Edit which I have just Approved?

I have just approved a  but realized I should have in fact reject it. I am able to click back to the aprroval page but am not sure how I can amend my approval of the edit. Does anyone have experience in this?  (excluding tests)


16GB of committed memory on a 8GB RAM system

My system is currently very slow, and I'm fishing for reasons why this might be..  System is : W10x64 Pro, i5-4460 CPU @3.2GHz, 8GB PC3-12800 @ 1600MHz, 500GB SATA HDD.  Disk C: has less than 10% free space, and from what I see in Task Manager, disk usage is my main problem. From time to time the computer freezes, and I have to wait 10-15 minutes for it to release.  Just now I noticed I have 16GB of committed memory, I have no idea why. Might it be that the system is forced to write data on the HDD all the time and this is why it is so slow ?  Image from Task Manager :    EDIT. My Paging file is 8GB which explains the committed memory size.    Should I disable it and see if the RAM is enough for my usage .. I need a solution on how to get the system to work normally.


Is expired instant dry yeast dangerous to eat in breads,cakes etc.? Is it safe to eat? I have 2-1 lb. pkgs. unopened has 10/30/2010 on it,doesn't say best if or sell by, just has date. Does anyone know if it is harmful to eat? Thanks!


How to put a period after a matrix (and not have it float in the air). For example, consider the following matrix:  \begin{bmatrix} 2 & 1 & 1 & 2 \end{bmatrix}.   You find the period floats in the middle of the line rather than sinking to the bottom. How to make it appear properly at the bottom.


\nocite{*} for single bibdatasources with biblatex/biber

Several bibliography resources are used in one single tex-document. They resources have been added using: \addbibresource{}. Now I'd like to use the \nocite{*} command to print all references of one of the bibresources. However \nocite{*} does consider all resources instead of just a single source (in the case of the example it should be resource2). Is there a way to specify that with \nocite{*}?  \RequirePackage{filecontents} \begin{filecontents*}{\jobname-resource1.bib} @article{A2014, author={First Author}, journal={Journal A}, title={First Paper}, year={2014} } \end{filecontents*} \RequirePackage{filecontents} \begin{filecontents*}{\jobname-resource2.bib} @article{B2014, author={Another Author}, journal={Journal B}, title={Second Paper}, year={2014} } @article{C2014, author={Next Author}, journal={Journal C}, title={Third Paper}, year={2014} } \end{filecontents*}  \documentclass{article}            %bib \usepackage[backend=biber,style=authoryear]{biblatex} % load the package \addbibresource{\jobname-resource1.bib} \addbibresource{\jobname-resource2.bib}  %%%%%%%%%%%%%%% \begin{document}  This is a citation \cite{C2014} \nocite{*}  \printbibliography   \end{document}


It's well known that, in relativity, if you can go faster than light, you can go backwards in time and create a paradox. Also, attempts to create "warp-drive" space-times in which something moves faster than light (the best known is the Alcubierre drive) usually require lots of "negative energy", something which in reality may only be available under rather special quantum-mechanical conditions (e.g. Casimir effect). So one might suppose that the universe obeys an "energy condition" which provides a physical (and not just logical) barrier to paradox. But lately there's a news story about an American physicist (Erik Lentz) who claims to have constructed a superluminal soliton using only positive-energy sources.  was released last year and has now been published. I have yet to find a technical analysis of the paper. The closest thing so far is  by relativist Ken Olum, who proved one version of , and who thinks his theorem must apply to Lentz's soliton too. , Lentz also mentions  that talks about slower-than-light positive-energy warp-drives, and faster-than-light warp-drives that violate energy conditions, but says they didn't analyze his own construction (which, to repeat, is meant to be a faster-than-light warp-drive that doesn't violate energy conditions). So what's the story? What exactly is Lentz's new idea? Is there a reason why a sufficiently advanced civilization can't build a Lentz drive and change the past? (Thanks to T.L. for bringing these works to my attention.)


$\lim_{n\rightarrow\infty}\frac{1+\frac{n}{1!}+\cdot+\frac{n^n}{n!}}{e^n}=\frac12$  Taking the first $n$ terms of the Taylor series of $e^n$ as the numerator, the limit is true or false? How to prove?


I am looking for good books on manifolds, Riemannian geometry. Can you help me? I am a undergraduate level student.


I have an  Dell Inspiron N7010. The G, H, ', 1, 0 and Esc keys no longer work.  I plugged in a external keyboard and it works. I have tried removing the battery and holding the power button for a few seconds. I tried cleaning and resetting the ribbon cable. I tried cleaning the keyboard with air. I tried uninstalling the keyboard from the device manager. I tried disabling the Bluetooth.  Nothing has worked so far. Any suggestions? Should I order a new keyboard?


I want to be able to create the circuit depicted below, but running the code below results in an empty circuit when viewing the job afterwards.  backend = provider.backends.ibmq_armonk   qreg_q = QuantumRegister(1, 'q') creg_c = ClassicalRegister(1, 'c') circuit = QuantumCircuit(qreg_q, creg_c)  circuit.u(pi/2, pi/2, pi/2, qreg_q[0]) circuit.x(qreg_q[0]) circuit.y(qreg_q[0]) circuit.x(qreg_q[0]) circuit.y(qreg_q[0]) circuit.u(pi/2, pi/2, pi/2, qreg_q[0]).inverse()  circuit.measure(qreg_q[0], creg_c[0])   qobj = assemble(transpile(circuit, backend=backend), backend=backend) job = backend.run(qobj) retrieved_job = backend.retrieve_job(job.job_id())


How to implement Meshlab's rotation manipulator?

I want to implement a rotation handle/manipulator mechanism that would enable user to rotate a 3D model exactly like  does.  Unfortunately I don't fully understand how does the rotation gizmo work. In particular I don't understand how to make the model rotate only around the Z axis. Open Meshlab and try rotating only the blue circle to see what I mean. Rotations around the X and Y axis are easy to understand for me though.  How does one recreate the rotation mechanism of Meshlab, i.e. how exactly does horizontal and vertical panning translate to changes in angles?


Trying to run Sheet.getData() and getting a NPE

I'm trying to run the method Sheet.getData(), and am getting a NPE. From what I can get from the Javadocs, I needed to have requested a data range in order to not get a null value, but I cannot get any information on how to request a data range. Sheets service = new Sheets.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))         .setApplicationName(APPLICATION_NAME)         .build(); ValueRange response = service.spreadsheets().values().get(spreadsheetId, range).execute();  Spreadsheet spreadsheet = service.spreadsheets().get(spreadsheetId).execute(); List<Sheet> sheets = spreadsheet.getSheets(); Sheet sheet = null; for(Sheet s : sheets)     if(s.getProperties().getTitle().equalsIgnoreCase("GSheets API Sheet"))         sheet = s;  List<GridData> data = sheet.getData(); //System.out.println(data.size());  I'm doing it this way because I need to get a cell's background color, so if anyone can help me do this in a different way, I'd be open to other methods.


Selecting multiple rows by given amount of volume


Why were no more Hocruxes created when Voldemort killed people when he came back?

If killing break one's soul to create a Hocrux, then why didn’t Voldemort create more Hocruxes when he killed people after he came back?


How to stop the tail when sed finds the string?

I want to terminate the tail command after having the match found and until then all the lines are written to another file. tail -f logfile | sed '/special string/q'  | tee output.txt  Output.txt will have the lines until special string is found. But the problem is, after that I want to end the tail command.


When staying in a US hotel, should I tip the housekeeping?

I grew up outside the US, and in our culture, tipping almost never ever happens.  I am aware that when eating at a restaurant in the US, you are expected to tip between 15-20%.  When I stay in a hotel in the US, am I expected to tip the housekeeping? Why or why not?


=query(importrange("12HAbnTv4g_6m1UeCOs9ZO0gAYvy8tlaXr-cc2ecPEic","Master!A:ba"),  "select col1,col2,col3,col4,col5,col6,col7,col8,col9,col10,col11,col12,col13,col14,col15,col53    where col53<> 'Deal Cancelled'",0)   is resulting in error message:     Unable to parse query string for Function Query parameter 2:NO_COLUMN:col1


wm.open_mainfile is causing issues with context.screen.area in 2.79

This is my first post so pardon any errors in formatting.  I'm trying to create a script that opens a file and links objects to it however when I attempt to link the objects it gives me a polling error. I looked up how to fix it and I found this code.  for area in bpy.context.screen.area:     if area.type == 'VIEW_3D':         override = bpy.context.copy()         override['area'] = area         bpy.ops.view3d.background_image_add(override, name="BG", filepath=r"image.png")                 break   it only works when the following code isn't present  bpy.ops.wm.open_mainfile()   When it is present I get  AttributeError: 'NoneType' object has no attribute 'area'   I have looked all over and could not find anyone else having this issue so I'm under the impression it is a very niche case so any help would be greatly appreciated. Below is similar code without all the extra filler I've written. The code in question is on lines 44-58.  import bpy  bl_info = {     "name": "Link & Append",     "author": "Exotic",     "version": (0, 0, 1),     "blender": (2, 7, 9),     "location": "Render > sample",     "description": "",     "warning": "",     "wiki_url": "",     "tracker_url": "",     "category": "System"}   class SampleMessage(bpy.types.Operator):     """SampleMessage"""     bl_idname = "button.message"     bl_label = "Message"      def execute(self, context):         bpy.ops.wm.save_load_operator()         return {'FINISHED'}      def invoke(self, context, event):         wm = context.window_manager         return wm.invoke_props_dialog(self, width=400, height=400)      def draw(self, context):         layout = self.layout         layout.label("WARNING", icon='ERROR')         row = layout.row()         row.label("Are you Sure?.")         row = layout.row()         row.label("Press OK")   class SaveNLoad(bpy.types.Operator):     """save_load Operator"""     bl_idname = "wm.save_load_operator"     bl_label = "Save N' Load Operator"      def execute(self, context):         yourpath = "C:\\Your path here\\mother.blend"         bpy.ops.wm.open_mainfile(filepath=yourpath)          for area in bpy.context.screen.area:             if area.type == 'VIEW_3D':                 override = bpy.context.copy()                 override['area'] = area                 bpy.ops.view3d.background_image_add(override, name="BG", filepath=r"image.png")                 break          directory = "C:\\Your path here\\Cone.blend\\Object\\Cone.001"         filename = "Cone.001"         filepath = "C:\\Your file path\\Cone.blend\\Object\\Cone"          bpy.ops.wm.link(filepath=filepath, directory=directory, filename=filename)         return {'FINISHED'}   def add_object_button(self, context):     self.layout.operator(         SampleMessage.bl_idname,         text=SampleMessage.__doc__,         icon='BLENDER'     )   def register():     bpy.utils.register_class(SaveNLoad)     bpy.utils.register_class(SampleMessage)     bpy.types.VIEW3D_MT_object.append(add_object_button)   if __name__ == "__main__":     register()   Any help would be greatly appreciated.


My home desktop computer runs Ubuntu 20.04 LTS with German as the interface language. This morning, for maybe the first time, I've seen an unidentified modal window three times that demands a password. Because it's modal, I have not been able to take a screenshot with Ubuntu's screenshot app. Roughly translated from memory, the message says something like, "Verification required. Your digital keyring was not automatically unlocked. Please enter the password." Because the window does not say "Ubuntu" or any application name, I don't know who's asking or what password it's asking for. I can hit cancel and keep working, but the window keeps coming back. Does this ring any bells with you? Any ideas what this window might be?


How do ObjectOutput/ObjectInput Streams work?

I'm trying to make a Client/Server chat application using java. I'm pretty new to using sockets to communicate between applications. I've decided to use ObjectInput/ObjectOutput streams to send objects between the client and server. I'm trying to send user data to the server when the client connects to the socket. Here is the code. Server: private void startServer() {         try {             this.server = new ServerSocket(port);             this.socket = server.accept();             ChatUtils.log("Accepted a new connection!");             this.output = new ObjectOutputStream(socket.getOutputStream());             this.input = new ObjectInputStream(socket.getInputStream());                          try {                 User user = (User) input.readObject();                 ChatUtils.log(user.getDisplayName() + " (" + user.getUsername() + ") has connected!");             } catch (ClassNotFoundException e) {             }                      } catch (IOException e) {             e.printStackTrace();         }     }   Client: public void connectToServer(int port) {         try {             server = new Socket("127.0.0.1", port);             this.port = port;                          this.objectOutput = new ObjectOutputStream(server.getOutputStream());             System.out.println("Connected to a server on port " + port + "!");             objectOutput.writeObject(user);         } catch (UnknownHostException e) {             e.printStackTrace();         } catch (IOException e) {             e.printStackTrace();         }     }  Everything works fine, but I'm looking for some clarification as to how the methods ObjectOutputStream#writeObject() and ObjectInputStream#readObject() work.  When I write the line User user = (User) input.readObject();, it reads the object as a User object. Would this only attempt to convert "User" objects that are send from the client's ObjectOutputStream?  As this method is only called once, can I cast the input stream to other objects if I send those objects to the server from the output stream? Ex: String message = (String) input.readObject();.  What would happen if I sent multiple objects to the server from the output stream at once?   4)In example one, I try to read the "user" object. What happens if there are two or more objects waiting to be read? How do I determine which object is which? Ex:  // Client  public void connectToServer() {     String message = "Hello server!"     User user = new User("John Doe", "jdoe123");     output.writeObject(user);     output.writeObject(message); }  If someone could answer these questions, that'd be great. Thanks so much!


Question: Tangents drawn from the point $P(1, 8)$ to the circle $x^2 + y^2 -6x -4y -11=0$ touch the circle at the points $A$ and $B$. What is the equation of the circumcircle of the triangle $PAB$?  I tried drawing a diagram, and found the length of the tangent. However, I lost as to where to proceed from there. Please help me!


Damage Cleanup and Toughness Boosting Effects

Suppose my opponent is playing Slivers, and has a  and a  on the field. On my side, I have a 1/1 Goblin token. My opponent declares both Slivers as attacking, and I block the Muscle Sliver with my Goblin. After combat, I Overload an , killing the Muscle Sliver. Since it took 1 damage and the +1/+1 from the  is removed, would the Metallic Sliver die?


Use worksheet name as a variable in a lookup

I have 2 workbooks with 60 plus worksheets. I need to copy data from one workbook to the other but would like to capture and use the worksheet name within the cell. This is because when I create the workbook I make a master worksheet and then copy it 60 plus times. The above would make the cell ref for each worksheet the corresponding worksheet cell in the other file.


$(n+1)$th prime $p_{n+1}$ less than or equal to $p_1p_2\dots p_n+1$

I'm trying to understand some particulars of the following proposition: First, let me write down the theorem on which the subsequent proposition relies.  Theorem. (Euclid). There are infinitely many primes.   Proof: Suppose that there are finitely many primes, say, $p_1, p_2, \ldots, p_n$. Consider $$m=p_1 p_2 \cdots p_n$$ Consider $$m=p_1 p_2 \cdots p_n+1\ge 2$$   By the Fundamental Theorem of Arithmetics, $m$ is a product of primes. Thus $p_k \mid m$ for some $1\le k \le n$. Since $p_k\mid m$ and $p_k\mid p_1 p_2 \cdots p_n$, we have that $p_k \mid (m-p_1 p_2 \cdots p_n)$, i.e. $p_k\mid 1$, which leads to a contradiction. Thus there are infinitely many primes.  $$$$  Proposition: For $n\in\mathbb{N}$, we have $p_n\le 2^{2^n}$, where $p_n$ is the $n$-th prime number. The proof by induction goes as follows. For $k=1$, we have $p_1 = 2\le 2^2=4$. Suppose that the result holds for $1\le k \le n$ . We have seen in the proof of the Theorem above that   $$p_{n+1}\le p_1p_2\cdots p_n+1$$   Thus, by our induction hypothesis,   $$p_{n+1}\le 2^{2^1} 2^{2^2}\cdots 2^{2^n}+1=2^{2^{n+1}-2}+1\le 2^{2^{n+1}}$$   By induction, proposition holds.  What I don't seem to get is how it follows from the Theorem above that $$p_{n+1}\le p_1p_2\cdots p_n+1$$ Moreover, how can one immediately see (other than by proof by induction) that $2^1 + 2^2 + \cdots + 2^n = 2^{n+1}-2$? Would appreciate some clarifications.


I want to have 3 lamps in a group that are supposed to rotate around in a circle. However, I want the light rays to remain shining onto a fixed spot as it rotates.   Do I constrain it to an empty or what is the best way to go about this? Will it still work if the lights follow a path?  Thanks for your help.


I am not really ready to get married.   Did I put "really" in the right place? I just want my sentence to sound stronger than "I am not ready to get married."


I was wondering whether it classes as lying if you tell something that you believe is a lie but is actually true.  Here is an example. Let's say that you have to be 6ft to ride a roller-coaster. You think you are under 6ft and say that you are tall enough but, in fact, you are tall enough. In this example, you haven't given a false statement but you have given what you thought was a false statement as your intention was to lie about your height. Is there a certain word or phrase for this?


lib32asound : Dependency is not satisfiable

I'm using Ubuntu 13.10 and I'm getting this error when I try to install teamviewer , the error is   Dependency is not satisfiable lib32asound2   I already tired sudo apt-get install libasound2:i386 but no good.


How to get all subclass from base class in JAVA

I have a base class such as :   public abstract class BaseClass {  }   and I also have sub classes :   public class SubClassA extends BaseClass{} public class SubClassB extends BaseClass{} public class SubClassC extends BaseClass{}   I want to get all sub classes by Base class like below:  List<Class> getSubClassesByBaseClass(BaseClass.class);   How can I do that ?


Is there any way to read the Feynman Lectures for free?

The Feynman Lectures on Physics probably constitute the most famous introductory physics textbook ever written.  The level of intuition it provides is hard to beat; I first started reading it in middle school, and a decade later I'm still finding new insights in it.  Yet when I recommend it to others, they often have sticker-shock.  It is a three-volume book, after all.    So is there any legal way to read the Feynman Lectures for free, on the Internet?


How to retrieve the id using the label as reference?

I have the following HTML, how can I retrieve the ID of the input from the tag's name in JavaScript?
                <input type="radio" name="Name[labeled_tags][]" value="01" id="radio_button_01">         Fblabel


What is the Difference bw the Maximum CPU time on the Salesforce servers(10 second) and maximum execution time for each apex transaction (10 minute)

What is the Difference between the Maximum CPU time on the Salesforce servers(10 second) and maximum execution time for each apex transaction (10 minute) ?


I'm confused about two aspects of quantum mechanics: 1.probabilistic nature of quantum 2.time evolution operator

first >> we know that quantum mechanics works with a probabilistic nature so that we can't say " what will happen? " but " what might happen? " second >> we can ask how quantum mechanical systems evolve in time and indeed we obtain a time evolution operator for state ket so now we can simply answer this question "at time $t$ what is the ket state of the physical system? " and if we measure the probability of existence at that ket the answer would be 1 which means the system is absolutely at that state! I can't gather these two things in my mind. the first says that we only can talk about probability but the second one says we know exactly what configuration our physical system at. where is my mistake? what am I doing wrong?


My log file was too big, and I made it unrestricted in growth. Should I shrink it with SQL Server Management Studio?  What are the downsides, if any, of doing this?


What happens if Krosan Verge does not have a land of the specific type to pull?

If I crack a  to search for a basic plains and a basic forest, and there is not a basic forest in the deck, what happens?


Show that if $0<b<1$ it follows that $\lim_{n\to\infty}b^n=0$

Show that if $0<b<1$ it follows that $$\lim_{n\to\infty}b^n=0$$ I have no idea how to express $N$ in terms of $\varepsilon$. I tried using logarithms but I don't see how to find $N$ from this.


Can I use google fonts to create art which can be customised on buyers request?

Can I use google fonts on prints where buyers could ask for some changes e.g add their names on.


TeXStudio : Disable auto-completion of parentheses

I cannot stand the auto-completion of TeXStudio (formerly TexMakerX) regarding parentheses, braces, etc. I agree auto-completion is useful sometimes, but here it does just not work as I would like. How can I remove it completely?  Under configuration -> completion nothing is checked. From where do I remove the auto-completion of these?


How will someone be able to log in if they removed their Facebook account and ...?

How will someone be able to log in if they removed their Facebook account and he originally created an Stack Exchange account using it?    This is just a scenario that I conceived and was curious to know the answer.


How to print date in format «long» on node.html.twig template?

Try this code (at node.html.twig, Drupal 8.0.0-rc3):  {% set date = node.created|format_date('long') %}   And next:  {{ dump(date) }}   Return error:  Exception: The timestamp must be numeric. in Drupal\Component\Datetime\DateTimePlus::createFromTimestamp() (line 165 of core/lib/Drupal/Component/Datetime/DateTimePlus.php).  Drupal\Core\Datetime\DateFormatter->format(Object, 'long')


French and English text in one document with a single style of footnote

I have a book containing essays variously in English and French and wish hyphenization and other aesthetic issues to match whatever language is in use at the moment, but I want footnotes to follow a single style throughout. I've defined that style (hanging) using footmisc and have loaded babel with options [english,french].  My problem is that when babel is fed the option french, footnotes appear in French style, indented rather than hanging; if I omit the option french, the footnotes come out hanging, but there are periodic hyphenization errors. Below I show my code without option french (I've included geometry and \familydefault options in order to reproduce a particular error):  \documentclass[12pt]{book} \usepackage[tmargin=1.25in, bmargin=1.25in, lmargin=1.25in, rmargin=1.25in]{geometry} \geometry{letterpaper}  \usepackage[english]{babel} \usepackage[hang]{footmisc}  \renewcommand{\familydefault}{qtm}  \begin{document}  Il est possible de tirer quelques conclusions de ces r\'esultats. Il para\^itrait que l'\'eglise du milieu du XIIe si\`ecle comportait vraisemblablement un chevet plat, construit sur l'emplacement du mur Gallo-Romain qui a \'et\'e arrach\'e sur une longueur correspondant \`a la largeur de l'\'eglise actuelle.\footnote{Apr\`es tamisage, les ossements et les deux planches ont \'et\'e remis en place sous l'escalier. Ces deux cercueils en ch\^ene \`a clous forg\'es semblaient assez r\'ecents.}  \end{document}   Output (observe the herniated right margin of the text and the footnote's hanging style):      Here is the code with french included in babel's input:  \documentclass[12pt]{book} \usepackage[tmargin=1.25in, bmargin=1.25in, lmargin=1.25in, rmargin=1.25in]{geometry} \geometry{letterpaper}  \usepackage[english,french]{babel} \usepackage[hang]{footmisc}  \renewcommand{\familydefault}{qtm}  \begin{document}  Il est possible de tirer quelques conclusions de ces r\'esultats. Il para\^itrait que l'\'eglise du milieu du XIIe si\`ecle comportait vraisemblablement un chevet plat, construit sur l'emplacement du mur Gallo-Romain qui a \'et\'e arrach\'e sur une longueur correspondant \`a la largeur de l'\'eglise actuelle.\footnote{Apr\`es tamisage, les ossements et les deux planches ont \'et\'e remis en place sous l'escalier. Ces deux cercueils en ch\^ene \`a clous forg\'es semblaient assez r\'ecents.}  \end{document}   Output (observe the correctly justified right margin of the text and the footnote's indented style):      In addition, with babel set for English alone, I've tried setting the hyphenrules environment to french around the French essays, hoping to see only hyphenization follow French style and the footnotes be left alone, but no joy.


I am new to Spring boot and getting ClassNotFoundException while running simple Spring Boot Web application. I have verified maven local repository but issue is still arising. Here is my pom.xml:  <groupId>com.tb</groupId> <artifactId>igweb</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>igweb</name>  <parent>     <groupId>org.springframework.boot</groupId>     <artifactId>spring-boot-starter-parent</artifactId>     <version>1.5.8.RELEASE</version>     <relativePath/> </parent>  <properties>     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>     <java.version>1.8</java.version>     <tomcat.version>8.5.0</tomcat.version> </properties>  <dependencies> <dependency>     <groupId>org.springframework.boot</groupId>     <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- JSTL tag lib -->     <dependency>       <groupId>javax.servlet.jsp.jstl</groupId>       <artifactId>javax.servlet.jsp.jstl-api</artifactId>       <version>1.2.1</version>     </dependency>      <dependency>       <groupId>taglibs</groupId>       <artifactId>standard</artifactId>       <version>1.1.2</version>     </dependency>      <!-- Tomcat for JSP rendering -->     <dependency>       <groupId>org.apache.tomcat.embed</groupId>       <artifactId>tomcat-embed-jasper</artifactId>       <scope>provided</scope>     </dependency>  </dependencies>  <build>     <plugins>         <plugin>             <groupId>org.springframework.boot</groupId>             <artifactId>spring-boot-maven-plugin</artifactId>         </plugin>     </plugins> </build>   </project>   And my main class is:     package com.tb.igweb;  import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class IgwebApplication {  public static void main(String[] args) {     SpringApplication.run(IgwebApplication.class, args); } }   While running same on eclipse, I am getting following exception:  Exception in thread "main" java.lang.NoClassDefFoundError:      org/springframework/util/ClassUtils     at   org.springframework.boot.SpringApplication.deduceWebEnvironment(SpringApplication.java:257)     at org.springframework.boot.SpringApplication.initialize(SpringApplication.java:248)     at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:225)     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)     at com.tb.igweb.IgwebApplication.main(IgwebApplication.java:10) Caused by: java.lang.ClassNotFoundException: org.springframework.util.ClassUtils     at java.net.URLClassLoader.findClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)     at java.lang.ClassLoader.loadClass(Unknown Source)     ... 6 more


A problem involving complex numbers and polynomials to prove that $f(z) + f(−z) = 0$ for all $z ∈ C$.

Let $f : C → C$ be a function such that $f(z)f(iz) = z^2$ for all $z ∈ C$. Prove that $f(z) + f(−z) = 0$ for all $z ∈ C$. Also, find such a function. What I did was take a $f(x)$ of the form or as a polynomial as $a_n x^n +  a_{n-1} x^{n-1} +\ldots+a_0$ and substituted $z$ and $iz$ and then some manipulations to do... But failed. I need help.


Any reason to have a strong user password?

I recently decided to change my (very) strong user password to something trivial.  This was mostly to eliminate frustration with typing a long password each time I sudo or whatever.  My question is, is there any reason to have a strong user password? considering that most services which I run on my box do not use PAM for auth:   apache2 - uses .htpasswd for access   sshd - only private keys allowed   transmissiond - uses its own http auth   mpd - uses its own auth   samba - limited to LAN   Physical access to the box is out of the question.


Allow suspended users to request account deletion

Currently, it seems that suspended accounts are unable to request account deletion.  This should be changed to make it possible.  If someone wants to leave, there's no point prolonging the drama by making them wait.  If necessary, increase the  period for account deletion from 24 hours to 48 hours, because people may be in an especially bad mood if they're being suspended.   is a similar proposal, but it seemed to be a , and was downvoted.


How to get the remote name from a local branch?  Note that I do not want the remote tracking branch name but just the remote name.   Consider this contrived example. How do I get prefix/github?  $ git status -b ## dev...prefix/github/rm/dev  $ git remote github prefix prefix/github   So prefix/github is the remote and local branch dev is tracking remote branch rm/dev.  So far I know this way but it is not fullproof.  $ git rev-parse --abbrev-ref @{u} 2>/dev/null | cut -d'/' -f1 prefix   The prefix/github remote name is intentional. I can live with keeping my remote without forward slash (in which case the above would work) but wanted to know if I'm missing something.   fyi: I have a bash script where this eventually would be used.  Update:  See this comment for why this question is not a dupe:


I see a few sites use the hamburger menu in a web experience as a constant navigation element. I can understand using it when the browser window is reduced in width/height in a responsive manner but not so sure hiding your main navigation constantly is a great experience i.e.    Is this a design preference, a work around for non-responsive design sites or just plain wrong?


without def main() = O, with def main() = X

I made following functions but it generates errors when I use main functions despite no error without usage of main function  def setup_name():     print("Before we start...","\n"           "What is your name?")     char_name = input("Name : ").strip().capitalize()     return char_name  def intro():     print(cname," is building great walls now")     print()  cname = setup_name() intro()   But below gives me error  def setup_name():     print("Before we start...","\n"           "What is your name?")     char_name = input("Name : ").strip().capitalize()     return char_name  def intro():     print(cname," is building great walls now")     print()  def main():     cname = setup_name()     intro() main()   To me, it seems no difference exist here so I think i need some sharp eyes.  Thanks!


Why the bob leaves the circular path when tension in the string becomes zero

In vertical circular motion of a bob attached with a string, we say that the bob leaves the circular path when tension in the string becomes zero.    But even when tension becomes zero there's always a component of the bob's weight along the centre, then why does it leave the circular trajectory?


Way processing is too slow in osm2pgsql?

I'm importing the planet data file. After see the Node processing taking about a hour at 2800.0 k/s to finish I think all job will be fast but now Way is still working after 28 hours at 0.5 k/s and done just 31.583k of 402.887k ! ().  The top command shows it taking 15% of RAM and 5% of CPU.  My import command was  $osm2pgsql --number-processes 6 --flat-nodes ./osm_flat_nodes.db --disable-parallel-indexing --latlong --verbose --create --hstore --slim --cache 4000 --database osm --username postgres --host 127.0.0.1 --style ./default.style ./planet-latest.osm.pbf  My machine: CentOS / 32GB RAM / 600GB HDD / 8 Cores  Is this normal?


Let $A=\{\sum_{i=1}^{\infty} \frac{a_i}{5^{i}}:a_i=0,1,2,3$ or $4 \} \subset \mathbb{R}$. Then which of the following are true??

Let $$A=\bigg\{\sum_{i=1}^{\infty} \frac{a_i}{5^{i}}\ :\  a_i\in\{0,1,2,3,4\} \bigg\} \subset \mathbb{R}.$$ Then which of the following are true:   a. $A$ is a finite set.  b. $A$ is countably infinite.  c. $A$ is uncountable but does not contain an open interval.  d. $A$ contains an open interval.  Each such series is convergent. I could also prove that $A$ is uncountable. I am not able to prove or disprove d.   Thanks for the help!!


"Invalid filename extension" and "Type is not known" when I run `sudo apt-get ...` commands

brownguy@brownguy:~$ sudo apt-get -f install Reading package lists... Error! N: Ignoring file 'some-ppa.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: Type 'brownguy@brownguy:~$' is not known on line 1 in source list /etc/apt/sources.list.d/libdvdcss.list E: The list of sources could not be read. N: Ignoring file 'some-ppa.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension N: Ignoring file 'some-ppa.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension E: The package lists or status file could not be parsed or opened.


Prove that if $\gcd(a,b)=1$ then $\gcd(a^m, b)=1$

I am using the Euclidean Algorithm (EA) for proof. Let $a>b$ and by EA we have  $$ \begin{align} a=q_0 b+r_1 & & &  \text{where }0\leq r_{1}<b \\ b=q_1 r_1+r_2 & & & \text{where }0\leq r_2<r_1 \\ \vdots & & & \vdots \\ r_{n}=q_{n+1}r_{n+1}+r_{n+2} & & & \text{where } 0\leq r_{n+1}<r_{n+2} \\ r_{n+1}=q_{n+2}r_{n+2} \end{align} $$  where $ r_{n+2}=1$ beacuse the $\gcd(a,b)=1$. Now for $a^2$ we have  $$\hspace{30pt} a^2=q_{0}^\prime b + r_{1}^\prime\hspace{70pt}\text{where }0\leq r_{1}^\prime<b$$  Here I stuck and don't know to continue the prove because the value of $r_{1}$ is not necessarily to be equal to $r_{1}^\prime$


How was time mapped before they used "BBY" in the Star Wars universe?

In the Star Wars universe, time is measured by using "BBY": before battle of Yavin... however, seeings as there was a lot of history before that, including but not limited to:   The Old Republic The New Republic (prequels) The First Galactic Empire- & the events of a New Hope incl. battle of  Yavin.   How was time measured in that (thousands of years) time period before the battle of Yavin?


Is it true that $\left(\frac{a^2+b^2+c^2}{a+b+c}\right)^{a+b+c}≥a^ab^bc^c$?

Let $a,b,c\in\mathbb{R}_{>0}$. Is it true that: $$ \left(\frac{a^2+b^2+c^2}{a+b+c}\right)^{a+b+c}≥a^ab^bc^c $$ I remarked that the inequality is (a bit weirdly) homogeneous, but couldn't use it. Also directly taking the logarithm doesn't seem to help; how to decide wether it's true?


Read document cookies in Lightning Component

I want to read the cookies out of the DOM document object.  I tried the following:  Controller:  init : function(component, event, helper) {      console.log(document.cookie); // returns nothing }   Renderer:  afterRender : function(component, helper) {     console.log(document.cookie); // returns nothing }   I want to read the Salesforce session id out of the cookies.  I also tried to get the session id via apex:  @AuraEnabled public static string requestSession() {     return UserInfo.getSessionId(); }   But I can not use the returned id for REST API calls. But the sid in the cookies works for REST API.  Thanks!


What is code coverage and how do YOU measure it?  I was asked this question regarding our automating testing code coverage. It seems to be that, outside of automated tools, it is more art than science. Are there any real-world examples of how to use code coverage?


Custom combining mobile data and wifi on windows 7

I have 2 internet sources    3G based Huawei E3533 Dongle (usb) with unlimited bandwidth and speed (Remote NDIS based Internet Sharing Device )  4G Huawei router (Wi-Fi) with limited bandwith and speed but faster in browsing and better ping (online games and streaming)    I want to use first one with IDM and steam downloads and some specific applications , and the second one with steam games , firefox etc   i have tried speedify but the solution is not good for me it combines the 2 sources in one output using vpn .   there is a hardware solution using load balancer in some routers but i can't afford it .  any software solution ?


I have a job test.sh schedule to run every 5 mins, and another job test1.sh scheduled to run 12.30pm , @12.30 both jobs will run and is making a deadlock. So I need to check the job test.sh is running for that I am using :  ps -ef | grep test1.sh   but this seems to be true always as it produces a line for the same command.    # ps -ef | grep test1.sh team 24896   607  0 11:55 pts/11   00:00:00 test1.sh team 24925   523  0 11:55 pts/4    00:00:00 grep test1.sh   how to avoid printing grep test1.sh?  I am very new to unix.  Thanks, Ann


Why 3 power to n will always get a sum of digit equal to 9?

Why the sum of digits of $3^n$ or $(x·3)^n$ for $n \geq 2 \subset Z$, $x \geq 1 \subset Z$ always equal to 9?  For some sample cases:  $3^2 = 9$  $3^3 = 27 = 2 + 7 = 9$  $3^4 = 81 = 8 + 1 = 9$  $3^5 = 243 = 2 + 4 + 3 = 9$  $(33·3)^5 = 99^5 = 9509900499 = 9 + 5 + 0 + 9 + 9 + 0 + 0 + 4 + 9 + 9 = 54 = 5 + 4 = 9$  last9 <- c() for(y in 1:100){   for(i in 2:5){     x <- y^i     x.char <- as.character(x)     if(grepl("^[0-9]e", x.char)){       x.char <- paste0(gsub("e.*", "", x.char), paste0(rep(0, as.numeric(gsub(".*e", "", x.char))), collapse = ""))     }else if(grepl(".[0-9]e", x.char)){       x.char <- paste0(gsub("[.]|e.*", "", x.char), paste0(rep(0, as.numeric(gsub(".*e", "", x.char)) - 1), collapse = ""))     }     x.last <- c()     while(nchar(x.char) > 1){       vec <- as.numeric(unlist(strsplit(x.char, "")))       x.char <- as.character(sum(vec))       print(x.char)     }     print(x.char)     x.last <- append(x.last, x.char)   }   if(all(x.last == "9")){     last9 <- append(last9, y)   } }   Has run the iteration from 1 to 100 by using R, and get the results as below  last9  [1]  3  6  9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 75 78 81 84 87 90 93 96 99   Just wonder is there any proof on this? Thanks much!


Bind 'hover and delete' event after ajax call

I've made a image gallary with sortabele options, hover and a delete button on every image.

    <button class="deleteMedia">Delete</button>
  <li ....
             With AJAX I add an image to the gallery. This works fine, but the hover and the delete button doesn't work for the new added images. My jquery script for the hover and delete event (what works well for the existing images) is:     $("#media-list .deleteMedia").click(function() {        $(this).parent().remove();     });      // Hover images     var offsetX = 20;     var offsetY = -400;     $('a.hover').hover(function(e){          var href = $(this).attr('href');         $('')         .css({'top':e.pageY + offsetY,'left':e.pageX + offsetX})         .appendTo('body');     }, function(){         $('#largeImage').remove();     });     $('a.hover').mousemove(function(e){         $('#largeImage').css({'top':e.pageY + offsetY,'left':e.pageX + offsetX});     });     $('a.hover').click(function(e){         e.preventDefault();     });  I push the image with this AJAX-code: $("#media-list").append("<li id ... </button>
");  What could I do to bind the 'hover and deletebutton' events to the new image, and not double to the existing images?


What is the output for the following Java program where null is passed as argument for the overloaded methods?

public class Overloading {     public static void main(String[] args) {         Overloading o = new Overloading();         o.display(null);     }     void display(String s) {         System.out.println("String method called");     }     void display(Object obj) {         System.out.println("Object method called");     } }   It is giving the output as "String method called". I need the explanation why?


Using the Fibonacci sequence and deduction to prove...


How to solve: $\int\limits_{-\pi \cdot 0.5}^{\pi \cdot 0.5} \sin(x) \int\limits_{0}^{\cos(x)} e^{\sin(t)} \, dt \, dx$

Let $ f(t) = e^{\sin(t)} $ and $ F(x) = \int\limits_0^x f(t) \, dt $ and then one has to find: $\int\limits_{-0.5  \pi}^{0.5 \pi} \sin(x) F(\cos(x)) \, dx  $  Thus far I got: $$ I :=\int_{-0.5  \pi}^{0.5 \pi} \sin(x) F(\cos(x)) \, dx = -\int\limits_{-1}^{1} F(u) \, du \tag{$*$} $$  And:  \begin{align} & \int_{-0.5  \pi}^{0.5 \pi} \sin(x) F(\cos(x)) \,dx \\[10pt] = {} & -\cos(x) F(\cos(x)) - \int_{-0.5  \pi}^{0.5 \pi} \sin(x) F'(\cos(x)) \cos(x) \, dx = 0 + \int_{-1}^1 F'(u)u \, du \\[10pt] = {} & \left[F(u)u \vphantom{\frac 1 1} \right]_{-1}^1 - \int_{-1}^1 F(u) \, du \end{align}  Remebering $(*)$, it is indicated that: $\left[ F(u)u \vphantom{\frac \int \int} \right]_{-1}^1 = 0 $, however this does not seem right. Does anyone have an idea, how to approach this problem best?


Am I unsecure after adding untrusted PPA and installing software from it?

I needed to install Gemalto PKCS11 Library. As a result of my searching, I added following PPA to my software sources:  Then I installed software package from it: sudo apt-get install libgtop11dotnet*  However after reading following question I realized that I should probably not do that, because I don't know the author and the number of PPA users is quite limited:     According to the note on Launchpad, mentioned repository could be considered as untrusted:     You can update your system with unsupported packages from this untrusted PPA   Thus I am afraid that I open some vulnerability on my system. Is it enough to just remove the untrusted PPA and sudo apt-get purge installed package? Will I be safe again or should I completely reinstall my system to be 100% sure that I am safe, that nobody will access my data?


what is the difference between RSA and DHM mathematically? And why RSA is hard to break

This is my assignment question and I m looking for immaculate answers from crypto experts. The aim of the assignment includes the critical analysis of both algos and answers to the given questions in the assignment must reflect the critical analysis has been done. Kindly, provide me a clue about the main differences and I'll search for the rest of the material. I ll be thankful for your time and really appreciate your efforts


How to access and copy files from an old/other Ubuntu system's partition?

I'm getting permission denied when I try to access my old 10.04 partition. I'm trying to get into the home folder so that I can back up the data before I do a fresh install of 12.04.  I know the password but not how to get the proper permissions so that I can move stuff via the GUI.  How can I do this?


The amount of members of each network {} not comparable

I would say the amount of members of each network are not comparable. But MicrosoftWord says it is "is not comparable"  What is right?


If the quality of the camera (i.e. the megapixels) (assume to be $x$) of the camera is known and an object is kept a known distance from the camera (assume to be $d$), can the actual width and length of the object be determined?


Evaluating $\int_0^\infty \frac{\tan^{-1}(t)}{e^{2\pi t}-1}\,\mathrm{d}t$

As stated in the title, I want to evaluate the integral $$\int_0^\infty \frac{\tan^{-1}(t)}{e^{2\pi t}-1}\,\mathrm{d}t$$ Because of the $e^{2\pi t}$, it seems that complex analysis techniques are required for this one, which I am not so familiar with. I have tried some substitutions and integration by parts. Besides, I tried using the property $$\int_0^\infty f(t)\,g(t) \,\mathrm{d}t =\int_0^\infty \mathscr{L}[f](s)\cdot \mathscr{L}^{-1}[g](s)\,\mathrm{d}s$$ But no luck here. I would like a solution without complex analysis techniques, if that's possible. Thank you!


I have been looking for 16-bit ICs for a project i`m working on. The project is to build a 16-bit computer from scratch, therefor i decided i nedded cgips that could handle high clock-frequensies. Durring my serch for an optimal IC type i decided that the FAST Advanced Schottky TTL. The problem is that the size of the connectors are to small to fit on a normal breadboard (1 in or 2.54mm).  Are there bigger versions of the same chip sets? If not, are there other IC that fit while still fulfilling the requirements i need for high frequencies?  eks:


I have this MBP that I bought on early 2018. And as of now (March 2020) I just noticed the battery appears to be swollen. Basically, the lid will not close all the way, and if I lay the laptop on my desk there's a little bit of wobbling when I type.  I'm under lockdown right now and can't get it fixed / buy another one. So my question is basically how long can I use it until it won't work anymore and is there anything I can do on my own to mitigate this problem?


Variable declaration in loop doesn't get reset to default

Consider following code:  for (int i = 0; i < 10; i++) {     bool b;          /* #1 */     if (i == 0)     {         b = true;    /* #2 */     } }   I have set breakpoints at #1 and #2.  The first time (i = 0), b is set to false at #1 and set to true at #2.  The second time (i = 1), b is true at #1.  This doesn't make sense to me, because I assumed that when starting in the second loop (i = 1), b should be false at declaration again.  I assumed that b = false at #1 in the second loop.  Anyone care to explain?


Buying plane tickets "from the other end"

I've been told because of taxes etc in Australia its cheaper to buy round trip flights from outside the country. For example, in the case of going from Perth to Bergen, purchase the ticket in Bergen. How do you do that and is that a fact or fiction?


Color of site icons on Stack Exchange Data Explorer is (not technically incorrect but) confusing

In the , the icon color for the various sites seems* incorrect: Whenever I select a main site, the icon is greyed out, and when ever I select the corresponding meta site, the icon is colored. My initial instinct was to think that the colors of the main/meta sites following the "Switch sites:" prompt should be switched. (Actually, it seems like it's just a UI thing. See the edit below.)  *Edit: Actually, the colors are technically not incorrect, since (as Jeremy Banks has pointed out) the icon shows "the other" site of the main/meta pair, and clicking on it is for switching to the respective other site. See the comment thread for some UI improvement ideas.


Show that the Sorgenfrey line does not have a countable basis.

I am trying to understand this proof from Munkres' book which shows that the Sorgenfrey line does not have a countable basis. His proof is:  Let $\beta$ be a basis for $\mathbb{R}_l$. Choose for each $x$ an element $B_x \in \beta$ such that $x \in B_x \subset [x, x+1)$. If $y$ is not equal to $x$ then $B_y \neq B_x$ since inf($B_x$) = $x$ and $y$ = inf($B_y$). Therefore $\beta$ must be uncountable.   I am new to topology so I am probably just missing a simple point but I do not see why $\beta$ must be uncountable according to this argument. I agree that $B_y \neq B_x$ but isn't it possible that $y \in B_x$ (and thus the set $B_y$ is not needed as part of the basis)? Thanks in advance for your help.


Can you stop a chkdsk operation on a usb drive?

This is an external WD 1TB drive. It is attached to a Dell Optiplex 745 running windows xp, sp 3 with only 4 GB of RAM. is there anyway to stop chkdsk on this drive without hurting the file structure or the drive itself? I really did not even mean to run chkdsk within windows on this drive!  It is in phase 4 of chkdsk and after 2 hrs. only shows one green bar of completion. This drive is for storage only.....it runs no operating system.


How to configure an email server so that outgoing emails are not classified as spam? I've spent the entire day on this and I'm puzzled by the results I'm getting.  Among other things, I have:   Added DNS record for SPF: v=spf1 mx a ptr ip4:35.666.24.123/32 ?all Added DNS record for SenderID: v=spf2.0/pra,mfrom a mx ip4:35.666.24.123 ~all Corrected reverse DNS records (so that when receiving servers want to verify that the IP address sending them mail actually belongs to the domain the mails are coming from) Set up my server to sign every message with a DKIM key and added respective DNS records: _domainkey       TXT   o=~; r=postmaster@thedevil.fi dkim._domainkey   TXT   v=DKIM1; p=MIG...QIDAQAB Changed the HELO of my server to match the DNS records.   Here is my SpamAssassin score from :  SpamAssassin Score: 2.973 Message is NOT marked as spam Points breakdown:   0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily valid  0.0 T_DKIM_INVALID         DKIM-Signature header exists but is not valid  0.0 TVD_SPACE_RATIO        No description available.  0.4 RDNS_DYNAMIC           Delivered to internal network by host with                             dynamic-looking rDNS  2.5 TVD_SPACE_RATIO_MINFP  Space ratio   The default threshold for marking as spam is score 5, so I'm barely below it. Throw one "viagra" in there and that's it! ;)  For comparison, here are the results using my ISP's email:  SpamAssassin Score: -0.719 Message is NOT marked as spam Points breakdown:  -0.7 RCVD_IN_DNSWL_LOW      RBL: Sender listed at http://www.dnswl.org/, low                             trust                             [83.145.220.78 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)                             [83.145.220.78 listed in wl.mailspike.net]  0.0 TVD_SPACE_RATIO        No description available. -0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders   I sent the exact same email from both my own server and my ISP's email. Somehow the TVD_SPACE_RATIO_MINFP was flagged with a 2.5 penalty for only the message sent from my own server. According to their wiki, it's "the ratio of spaces to non-spaces in each paragraph". Is this a bug? Or is it counting spaces from metadata as well or something?  According to the validator, my ISP doesn't have SPF or DKIM records. Yet somehow SpamAssassin is giving them -0.7 while giving me 3.0? Also, I'm somehow flagged for invalid DKIM, yet it's not affecting the score? Why am I flagged when the validator also says (in a different section of the results) that the validation of my DKIM resulted in "pass"?  Edit: this is not a duplicate. This question is not about "how to write an email", it's about how to configure an email server. The parts regarding SPF, DKIM and HELO I already covered in my original post and explained the problems I had with them. Such problems are not described in the "duplicate" posts.


PIxelated lines in illustrator... images are for print, should I worry?

I am working on a big project and have done a few drawings but I am noticing some weird stuff with my strokes and I just wanted to check if it is normal and just something that I am seeing on my screen but want show when printed.  You can see as I zoom in and out the irregularities in the lines change.  If I may ask and second question also, about saving these images for print (using inDesign), should I import the .ai files directly or save as PDF as import those. Are there any pros and cons.  Thank you,  Daniel


Passing a dictionary to a function as keyword parameters

I'd like to call a function in python using a dictionary.  Here is some code:  d = dict(param='test')  def f(param):     print(param)  f(d)   This prints {'param': 'test'} but I'd like it to just print test.  I'd like it to work similarly for more parameters:  d = dict(p1=1, p2=2) def f2(p1, p2):     print(p1, p2) f2(d)   Is this possible?


Try to store prime numbers and output them but the console is empty and nothing happens  int main() {     vector <int> v;     int n = 1000;          int order; // Nth order     //cin >> order;     primes(n, v);     for (auto i = v.begin(); i != v.end(); ++i)         cout << *i << ' ';     return 0; }


PDF unable to load..when using oncomplete or rerender..Any Help..?

I have created a VF page and used "render as pdf"  <apex:commandButton value="Save to Opportunity" action="{!savePdf}"  />   Its working fine when i am using above line without rerender and oncomplete but when i am adding rerender or oncomplete it is not working.I am able to save the PDF in attachment folder but when i am trying to open its showing  "Unable to load document"  Even if i remove oncomplete and use Rerender then also its saving the attachment in Attachment object and when i view ,it is not loading and says "Unable to load document"      <apex:commandButton value="Save to Opportunity" action="{!savePdf}"  oncomplete="myClose();"/>   Javascript Code  function myClose(){      self.close();     window.opener.location.href="/{!$CurrentPage.parameters.Id}";  }   Class Code  public void savePdf() {      PageReference pdf = Page.GenerateQuotePDF;     pdf.getParameters().put('id',parentId);      Attachment attach = new Attachment();      Blob body;     body = pdf.getContent();     attach.Body = body;     attach.Name = 'Opportunity'+ '.pdf';       attach.IsPrivate = false;     attach.ParentId = parentId;     attach.ContentType = 'application/pdf';     insert attach;     }     Please help..


Just got a new netbook running Ubuntu.  When I turn it on it auto-logs-in to the desktop automatically, but when I try to connect to the wireless network it wants my Keyring password to store the password.  Problem is it isn't in the documentation (yes, I read the documentation.)  I see a lot of people asking about "Enter password to unlock your login keyring" and the cause usually centers around either they forgot the password, or the keyring password is different than the login password. So the advice is either how to change the keyring password to match the login, or deleting the keyring and creating a new one with a password they remember.  While I could delete and recreate the keyring, I still wouldn't know the login password. Without the login password I cannot run sudo either.   I tried blank for the keyring password and that didn't work either.  Also, I know that the root password is blank, and the account is disabled.  So I am not asking about that.  Question comes down to this: Is there a way to discover the password for the account that was auto-logged in? If not can I change it?  I'm up for reinstalling if I have to, but would rather not.  Besides, it is a netbook and does not have a optical drive.


Sophomore's dream: $\int_0^{1} x^{-x} \; dx = \sum_{n=1}^\infty n^{-n}$

In the solution of the so-called , one of the key steps is to compute $$\int_0^1 x^n (\log x)^n~\mathrm dx$$ using the change of variables $x = \exp\left(-\frac{u}{n+1}\right)$ to obtain the Gamma function.  This substitution to me, looks like it was pulled out of thin air. Can someone help me motivate it? How would I have thought of this substitution?


I am bit of a batch file noob, so I'd really appreciate your help. I have a ton of files stored in a single directory which I wish to sort into subfolders based on the first word in their filenames. So, I have files like these:  C:\Folder\ABC-001 C:\Folder\ABC-002 C:\Folder\EFG-001 C:\Folder\HIJ-002   And I wish to move all files to subfolders based on the first word, ending up like this:  C:\Folder\ABC\ABC-001 C:\Folder\ABC\ABC-002 C:\Folder\EFG\EFG-001 C:\Folder\HIJ\HIJ-002   Please help me get out here. Thank a lot !


OS X Yosemite - cannot remember Keychain access password

Is there any way to recover this?  Can I change it without knowing my current password?


I'd like to have command built around a switch-case environment in LaTeX, much like the example below:  \documentclass{article}  \usepackage{xstring}  \newcommand{\dothis}[1]{% \IfStrEqCase{#1}{{a}{so you typed a}     {b}{now this is b}     {c}{you want me to do c?}}     [nada] }  \begin{document}  \dothis{a}  \dothis{b}  \dothis{c}  \dothis{e}  \end{document}   My problem with it is that it requires the xstring package. Is there any other way to do this? Preferably without loading additional packages and avoiding disgraceful thickets of \if-\else-\fi statements?


Is there a tool to encrypt a file or directory?

What's the most popular way to encrypt individual files or folders?


Function $F$ is surjective if and only if $F$ is $1-1$

While I was working on proofs of functions, the following claim occurred to me that I think it is correct but I could not prove it. Please note that the claim may not be correct since it is just my hypothesis. So my hypothesis is:     Let $A$ be a finite set and $F$, a function $F:A\rightarrow A$.   $F$ is surjective if and only if $F$ is injective.    Here is how I tried to prove it:   $\rightarrow$ Let $X$, $Y$, $Z$ and assume $F(X)=F(Y)$. We need to show that $X=Y$ to prove that $F$ is $1-1$. $F(X)$ and $F(Y)\in A$ and $F$ is surjective then $\text{Img}(F)=A$. $A$ is a finite set then $\text{Img}(F)$ is a finite set.   how can I continue the proof?    $\leftarrow$ We need to show that $A=\text{Img}(F)$ to show that $F$ is surjective but we know that $\text{Img}(F)\subseteq A$ so we need to show $A\subseteq \text{Img}(F)$. Let $x\in A$. We need to show $x\in\text{Img}(F)$. $A=\text{Dom}(F)$ and $x\in\text{Dom}(F)$ and $F$ is function so there exists $y$ such that $F(x)=y$.   And here also I got stuck. Any ideas how to continue the proof if it is right.. I know that I did not use that $A$ is a finite set and $F$ is injective in one way because I do not see where I can use in my proof.


What is precisely the energy scale of a process?

Coupling constants run with the energy scale $\mu$. But what is exactly this energy scale. My question is, if I have a physical process, how do I compute $\mu$?


Compute the fresnel integral $\int_0^x\cos(\frac{\pi u^2}{2})$du

Background: This is from Arfken et al, Mathematica methods. Probelm 12.6.1 part a)  The question asks to give the asymptotic expansion by integrating by parts of $$C(x)=\int_0^x\cos\left (\frac{\pi u^2}{2}\right )\text{du}$$ Naïvely integrating du and differentiating $\cos(\pi u^2/2)$ I got: $$u\cos\left(\frac{\pi u^2}{2}\right)+\frac{\pi u^3}{3}\cos\left(\frac{\pi u^2}{2}\right)-\frac{\pi^2 u^5}{3\cdot5}\cos\left(\frac{\pi u^2}{2}\right)-\frac{\pi^3 u^7}{3\cdot5\cdot7}\cos\left(\frac{\pi u^2}{2}\right)+\frac{\pi^4 u^9}{3\cdot5\cdot7\cdot9}\cos\left(\frac{\pi u^2}{2}\right)\dots$$ $$=\sum_{n=0}^{\infty}\frac{u^{4n+1}\pi^{2n}}{(4n+1)!!}(-1)^n\cos\left(\frac{\pi u^2}{2}\right)+\sum_{n=0}^{\infty}\frac{u^{4n+3}\pi^{2n+1}}{(4n+3)!!}(-1)^n\sin\left(\frac{\pi u^2}{2}\right)$$  Could someone explain how to transform the integral into an asymptotic integral with 1/u in the integrand. The correct answer:     I found the answer , see Daniel Fischer's answer.


Parameter evaluation order before a function calling in C

Can it be assumed a evaluation order of the function parameters when calling it in C ? According to the following program, it seems that there is not a particular order when I executed it.   #include <stdio.h>  int main() {    int a[] = {1, 2, 3};    int * pa;      pa = &a[0];    printf("a[0] = %d\ta[1] = %d\ta[2] = %d\n",*(pa), *(pa++),*(++pa));    /* Result: a[0] = 3  a[1] = 2    a[2] = 2 */     pa = &a[0];    printf("a[0] = %d\ta[1] = %d\ta[2] = %d\n",*(pa++),*(pa),*(++pa));    /* Result: a[0] = 2  a[1] = 2     a[2] = 2 */     pa = &a[0];    printf("a[0] = %d\ta[1] = %d\ta[2] = %d\n",*(pa++),*(++pa), *(pa));    /* a[0] = 2  a[1] = 2 a[2] = 1 */  }


How can I auto-hide the launcher via a script, when I maximize the browser?

I was trying to control Ubuntu 14.4.1 Launcher's behavior. I want it to auto-hide every time I have browser window like firefox maxmaized. I found this solution:  #!/bin/bash  ## Change value of "hide" to the command which worked for you to hide the panel hide='gsettings set com.canonical.Unity2d.Launcher hide-mode 1;'  ## Change value of "show" to the command which worked for you to show the panel when it was hidden show='gsettings set com.canonical.Unity2d.Launcher hide-mode 0;'  ## Look for the grep value, add a new browser or application name followed by "\|" eg: 'firefox\|google\|chromium' while [ 1 ]  do z=$(wmctrl -l -p | grep -i 'firefox\|google');     if [ -n "$z" ]; then          eval $hide     else         eval $show     fi;     sleep 2; done;   but is seems too old to work then I found   I tried to combine the two scripts together so here is what I did:  #!/bin/bash  AUTOHIDE=$(dconf read /org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode) if [[ $AUTOHIDE -eq 1 ]] then      dconf write /org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode 0 else      dconf write /org/compiz/profiles/unity/plugins/unityshell/launcher-hide-mode 1 fi  ## Look for the grep value, add a new browser or application name followed by "\|" eg: 'firefox\|google\|chromium' while [ 1 ]  do z=$(wmctrl -l -p | grep -i 'firefox\|google');     if [ -n "$z" ]; then          eval $hide     else         eval $show     fi;     sleep 2; done;   But script doesn't work. can anybody refine this script to me and get it to work?


it does not work the creation of environment variable permanent using a script.sh in linux

I am using this script:  #!/bin/bash   case "$1" in    start)     echo "Iniciando servicio"        export http_proxy=socks5://192.168.1.2:9090     export https_proxy     <----I don't want it exported        ;;   stop)     echo "Deteniendo servicio"      ;;   *)    echo "Usage: $0 {start|stop}"     exit 1     ;; esac   but when executing it and by env I don't get the variable that I created :(  root@:~# /etc/init.d/a start Iniciando servicio root@:~# env SHELL=/bin/bash NO_AT_BRIDGE=1 PWD=/root LOGNAME=root LS_OPTIONS=--color=auto HOME=/root TERM=xterm USER=root SHLVL=1 SSH_CLIENT= PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin MAIL=/var/mail/root SSH_TTY=/dev/pts/0 TEXTDOMAIN=Linux-PAM _=/usr/bin/env   I tried running the script with source but it doesn't work because I want to export a single variable not all


Applying to grad school for mathematics with low GPA, but reluctant to bring up the health issues that caused it

I'm currently a 3rd year undergrad majoring in math/physics. I was admitted to my university through an honors program due to outstanding high school achievement (my university is a large public one, moderately well known in the US) with several scholarships.   But after my first semester, I fell back into a recurring bout of severe depression, and did not get help. My grades ended up tanking that next semester (C average). I thought I had overcome it by my second year, but soon developed psychosis and could no longer focus on studying; I neglected my health and hygiene, and I couldn't even get up some mornings to get to class. None of my professors are aware of my situation.   I finally sought help last spring and I've been doing better (keeping up with work, getting better grades, etc), but I feel like nothing will ever make up for those two years of mediocre grades. My overall GPA right now is sitting around a 2.5. I feel like while this is possible to explain away, I'm reluctant to divulge information about my severe mental illness to admissions because there is still a lot of stigma associated with it. I've seen mixed answers as to whether or not it's a good idea to do.  My question is, is there still a way for me to pursue applied mathematics in graduate school? Is graduate school aiming too high? And if so, do I talk about my limitations as far as my health is concerned?   I love math, and love learning. I've done a few practice Math Subject GRE exams, and they were fairly easy (as long as I study for the parts I'm not 100% on, of course). I've also done a few small math projects with grad students and I've worked in a lab since I was a freshman; I feel like I'm passionate enough about the subject to succeed but I'm afraid admission committees will not look past my GPA to see that and wouldn't risk having someone like me in their program.


Biasing circuit - Voltage follower circuit

I am using , which is and Bias controller/sequencer. I am using this for Providing gate voltage and drain voltage to the . In the datasheet, it is mentioned that the module with combination of EVM can be used in two applications. Application Option 1: Fixed negative gate biasing with pulsed drain biasing. Application Option 2: Pulsed negative gate biasing with pulsed drain biasing. I am trying to design both applications on a single board. The second option for future use. For the 1st application option, he has mentioned a few pins as No connection and he has used those NC pins on the 2nd application.  The issue I am facing:- They have used voltage followers for providing a low impedance output path for pin number 3(GCO). I have reverse-engineered the Ckt from the below-attached image, but I am unable to identify the voltage follower they have used. Pin number 2 of the voltage follower has been connected to pin number 2 (NC/GCP) of the Module. There has been no description of this pin number. I am guessing these:-  Pin numbers 1 and 4 are connected together and output is provided through them. Pin number 5 is +Ve supply hence connected to GND(Highest +Ve supply)? Pin number 3 is connected to -8V Pin number 2 is connected to pin number 2 of MABC-001000-DP000L, which I am unable to understand.  I have mailed component manufacturer regarding full schematic, till now I haven't heard from them. Can anybody help me with this? Thanks in Advance. Low-resolution pic of EVM. I don't think it helps in any way.   Layout Image


How did an Alien egg get aboard the Sulaco in Aliens movie?

How did an alien egg (or facehugger) get aboard the Sulaco at the end of the movie, ?  We know there was one aboard because of the movie, .  The  stowed aboard the dropship, but she could not have laid any eggs because her ovipositor was destroyed in a fire. And she would not have had much time to lay eggs during the battle with Ripley aboard the Sulaco.  Did a facehugger sneak aboard the dropship too?


Does non-zero correlation imply dependence?

We know of the fact that zero correlation does not imply independence. I am interested in whether a non-zero correlation implies dependence - i.e. if $\text{Corr}(X,Y)\ne0$ for some random variables $X$ and $Y$, can we say in general that $f_{X,Y}(x,y) \ne f_X(x) f_Y(y)$?


I thought of induction but that was unwieldy. Then considered using $(1+x)^n$. Didn't succeed.   Any hint? Thanks