Where do ultrahigh-energy particles come from?

The most energetic particles that strike us from space, which include neutrinos as well as gamma-ray photons and various other bits of subatomic shrapnel, i.e the  are sometimes so energetic, that they must be born in cosmic accelerators fueled by cataclysms of staggering proportions... I have also read that Scientists suspect some sources: the Big Bang itself, shock waves from supernovas collapsing into black holes, and matter accelerated as it is sucked into massive black holes at the centers of galaxies..   Now I actually wanted to know from where these particles originate and how they attain such colossal energies?


Itinerary details for schengen visa - should I mention every individual place for sightseeing?

I am creating an itinerary for a Spanish Schengen visa. I am planning to include the dates of travel, the names of the hostels that have been booked for particular dates(number of days of booking included) and dates of internal travel.   Should I mention every individual place that I will go to for sightseeing every day? Or just the dates of travel, place of stay and information about internal travel is enough ?


Blender 2.75 to 2.76 When adding an object I can't find the tool menu now!? Add (Vertices / Depth etc)

Please see picture.. When I add an object there used to bne a place where i could adjust it before clicking off of it -- now that menu has gone somewhere and I can't find it. Am I missing something, I didn't turn on?


Windows USB cleaning Ubuntu equivalent commands

I like to test out a lot of linux distros, so I have a USB that I load live images onto frequently. Sometimes, though, I need it for something else, and I need to erase all the partitions on it and restore it to normal. To do this, I generally use these commands on a Windows PC:  diskpart list disk select disk <mydisk> clean create partition primary format fs=fat32 quick   That works like a charm most days, but I don't really use Windows anymore, so I was hoping to find an Ubuntu alternative set of commands that I could use. Does anyone know what the Linux terminal equivalent of these commands are?


I just had a quick question about a notation I saw.  I know that a $C^2$  function is a function whose second partial derivative exists. But, what does it mean when one writes $C^2(U)$ where $U$ is a subset of $R^n$? Thanks in advance.


How can energy be useful when it is 'abstract'?

The topic which haunted me for two years until I gave up on it. But now I am doing engineering and this topic suddenly popped out of my textbook from nowhere. I seriously need to understand this topic because I wasn't able to do so in the past. I have read many book on 'energy' and it came to nothing. Maybe just because the many books I have read all said 'energy' is something which doesn't 'exist'! It is 'abstract'! It is just a number which represents the state or orientation of a system. But then I see so many examples that 'uses' energy to do 'work'. But the question here is that if anything doesn't exist in this universe, then how can the same thing be used to do something that exist?  My problem is that I didn't understood the topic 'energy' and all the other topics related to it (work, power etc.)


Network connection error after suspend Ubuntu 14.04

I'm using ubuntu 14.04 and a DSL connection for internet. However, whenever I suspend and resume my session, I'm no longer able to connect to the internet. Could someone help me fix this?


This is the same book that I lost last year. This is the book which/that I lost last year.   What is the difference b/w these sentences. Book says we can't use "which" in case of 1 sentence. why so?


How to use custom html pass through attributes in Lightning Components?

In Visualforce you can use custom html attributes like this   <apex:outputText html-data-myAttr="myValue" ... />   Now in a Lightning-Component trying the same  <ui:outputText html-data-myAttr="myValue" ... />   I got only     The attribute "html-data-myAttr" was not found on the COMPONENT markup://ui:outputText: Source   How to set custom attributes in Lightning?


When 1.14 rolled around, I got a little smarter on commands and stuff like that, though when I looked for an updated command for the title command I only found answers from 2015. Does anybody know the updated form of the title command?


How to completely disable Pop_OS plugin?

I don't remember how I installed the Pop_OS theme on my Ubuntu, but I want to get rid of it as when I restarted my laptop after installing this it's causing malfunctioning. My settings won't open, but somehow I figured typing this command solves it, but... gsettings set org.gnome.ControlCenter last-panel ''  After the Settings menu opens up, whenever I click on the Display settings the settings GUI stops working and I have to run that command again.  UPDATE-: I did what was mentioned in  and now my settings menu is not visible as gnome-control-center is uninstalled and now when I try to install it output this.. As mentioned by @technastic_tc in comments the output of the following command grep -r --include '*.list' '^deb ' /etc/apt/sources.list/etc/apt/sources.list.d/ is this  /etc/apt/sources.list:deb http://in.archive.ubuntu.com/ubuntu/ focal main restricted /etc/apt/sources.list:deb http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted /etc/apt/sources.list:deb http://in.archive.ubuntu.com/ubuntu/ focal universe /etc/apt/sources.list:deb http://in.archive.ubuntu.com/ubuntu/ focal-updates universe /etc/apt/sources.list:deb http://in.archive.ubuntu.com/ubuntu/ focal multiverse /etc/apt/sources.list:deb http://in.archive.ubuntu.com/ubuntu/ focal-updates multiverse /etc/apt/sources.list:deb http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security main restricted /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security universe /etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu focal-security multiverse /etc/apt/sources.list:deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ /etc/apt/sources.list:deb https://dl.winehq.org/wine-builds/ubuntu/ focal main /etc/apt/sources.list.d/micahflee-ubuntu-ppa-focal.list:deb http://ppa.launchpad.net/micahflee/ppa/ubuntu focal main /etc/apt/sources.list.d/dawidd0811-ubuntu-neofetch-focal.list:deb http://ppa.launchpad.net/dawidd0811/neofetch/ubuntu focal main /etc/apt/sources.list.d/git-core-ubuntu-ppa-focal.list:deb http://ppa.launchpad.net/git-core/ppa/ubuntu focal main /etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-focal.list:deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main /etc/apt/sources.list.d/nodesource.list:deb https://deb.nodesource.com/node_14.x focal main /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-ppa-focal.list:deb http://ppa.launchpad.net/ubuntu-desktop/ppa/ubuntu focal main /etc/apt/sources.list.d/lutris-team-ubuntu-lutris-focal.list:deb http://ppa.launchpad.net/lutris-team/lutris/ubuntu focal main /etc/apt/sources.list.d/vscode.list:deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main /etc/apt/sources.list.d/steam.list:deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam /etc/apt/sources.list.d/snwh-ubuntu-ppa-focal.list:deb http://ppa.launchpad.net/snwh/ppa/ubuntu focal main /etc/apt/sources.list.d/gns3-ubuntu-ppa-focal.list:deb http://ppa.launchpad.net/gns3/ppa/ubuntu focal main


On my company's SharePoint site (using SharePoint Online), in the permissions section there is a line stating Anonymous Users with a permission level of Entire Web site.   Can someone explain to me:   What this is, Why is it there, and How do I get rid of it?   This is in the top level site, I have 8 subsites representing the company departments, 7 of which do not show this Anonymous Users permission, 1 does which I would like to remove.  The site should only be viewable by company employees (using 356 Business Essentials subscription).  Employees should still be allowed to share documents from libraries to people outside the company.  I've have tried going through  where it is advised to disable guest links at the site collection, but I cannot see this option.


I want to attach a code file to my question, but I am not able to find a link to do it. Is attaching files possible at all?


how to make my usb storage or sd card the default instal location

My techno g9 device shows internal storage 0.99G Usb storage 12 G and Sd Card 27G. All installed apps go to the .99G which is full. So i cant dowload any new apps. Please how can i change the instal folder to the 12G usb storage or the 27G Sd card.


I recently came across a video by prof Fredrick Schuller on general relativity where he defines the leibniz rule to be,  $\nabla_X (T(\omega,Y))=\nabla_XT(\omega,Y)+T(\nabla_{X} \omega,Y)+T(\omega,\nabla_{X} Y)$  Where $X$ and $Y$ are vector fields, $\omega$ is a covector field and $T$ is a $(1,1)$ tensor. The rule can be generalised for $(p,q)$ tensors similarly.  I cannot find a way to show that it is equivalent to the leibniz rule expressed as $\nabla_X$ acting on tensor product of two tensor fields.  i.e. $\nabla_{X}(T \otimes S) = \nabla_XT\otimes S + T\otimes \nabla_XS$  How do I proceed to show the equivalence between the two?


Why does gravity travel at the speed of light?

In electromagnetism, Maxwell's equations predict that electromagnetic disturbances travel at the speed $$c = \frac{1}{\sqrt{\mu_0 \epsilon_0}}.$$ Does general relativity predict that gravitational waves travel at the same speed or is this "put in by hand", that is, is there a wave equation with constants that presumably include the gravitational constant $G$ and other constants?


I am having trouble trying to merge two shapefiles in R. One of them has 5 polygons and the other one has 1, so I would like to obtain a final shapefile with 6 polygons.    I try to replicate the merge function from ArcGIS, unsuccessfully though. I have tried with several functions (gUnion, unión from raster package, merge), but all of them create more columns instead of adding a new row.   Could anybody help me to solve this issue?  I have tried with the methods proposed in  but they do not work in my case.


Reading files larger than 4GB using c++ stl

A few weeks back I was using std::ifstream to read in some files and it was failing immediately on open because the file was larger than 4GB. At the time I couldnt find a decent answer as to why it was limited to 32 bit files sizes, so I wrote my own using native OS API.  So, my question then: Is there a way to handle files greater than 4GB in size using std::ifstream/std::ostream (IE: standard c++)  EDIT: Using the STL implementation from the VC 9 compiler (Visual Studio 2008).  EDIT2: Surely there has to be standard way to support file sizes larger than 4GB.


I was trying to dual-boot with Windows 8 on my Lenovo y-500 recently, but I gave up because there were so many difficulties. Couple hours ago I decided to try again, but I'm running into some difficulties. I received the error:   Executing 'grub-install/dev/sda' failed. This is a fatal error   when installing Ubuntu alongside Windows 8. I turned my computer off, made sure my secure-boot was off, Legacy support turned on, with priority on UEFI. I retried, but ran into the same error message, so I ran Boot Repair. I came across what appeared to be a concerning error message here:     I'm a little apprehensive at this step because    There were some errors in the terminal and  I have no idea what a kernel is and renaming EFI files seems potentially dangerous.    Any help would be enormously appreciated. Thanks!  EDIT: Hit "No" in the second screenshot, and bootrepair continued. I got this url:   EDIT #2: Ran installation again after boot-repair finished, got the same "Executing 'grub-install/dev/sda' failed. This is a fatal error" error message -.-


How to increase/decrease the size of the buttons inside the panels?

I've downloaded a .blend file recently and all of the interface elements look very small. I remember that there were an easy trick to make everything bigger (or smaller) when I was using Blender 2.49 long time ago. My question is how to do it increase or decrease the size of the buttons within the panels using User Preferences and without using it?


Prove condition number of a invertible matrix is atleast one

Show that the condition number of an invertible matrix must be at least 1. What matrices have  condition number equal to 1.  If someone could help me with this and give an explanation that would be very helpful. I do not know where to start


Why didn't the characters wake up when the van went off the bridge in Inception?

In one of the early scenes it shows Cobb being pushed backwards off a chair to be woken up out of the dream.  Considering the van crashing through a barrier and falling through the air (never mind the chase leading up to this) would produce a similar affect as falling off a chair, why did this not wake any of the characters up?


Why can I instantiate this abstract class?

I'm trying to understand abstract classes in Java so I wrote this code snippet in IntelliJ:  AutoCloseable ac = new BufferedInputStream(new InputStream() {         @Override         public int read() throws IOException {             return 0;         } });   The @Override and read() stub was created automatically by IntelliJ.   Since InputStream is an abstract class, why can I instantiate it with the new keyword?    And another thing. When I delete the method stub like this:  AutoCloseable ac = new BufferedInputStream(new InputStream());   The IDE says that InputStream is abstract and therefore can't be instantiated (as expected).  So, why is the former valid and the latter not?  And where does this read() method come from?


I am often writing quick statements in which I would like the following lines to continue underneath the end of the first.  Is there a quick way to do this (requires arrays?)  this is the first sentence:                            continue here                            and here too


Borel sets and Lebesgue-Stieltjes measures

Let $F : \mathbb R\to\mathbb R$ be a distribution function (increasing right continuous), and $m_F : M_F\to[0,\infty]$ the Lebesgue-Stieltjes measure generated by $F$.   In most cases I've come across there are sets in $M_F$ that are not Borel sets.      Is the general statement "For every choice of $F$, $M_F$ contains a set which isn't a Borel set" a theorem?


When you tun to the dark side is like you have been possesed by a demon? you lost your sanity? That bring me to the mind seeing how ...     Anakin kills all the young padawans   ...something that nobody (not insane) would do for most angry you are.


Spinning a rope when hanging, what is the curve?

Holding a rope from one end and spinning it. As shown in the picture, what will be the curve of it?


Most common method for deciding when to stop training a neural net on a batch

I have created my own neural net which is using batch gradient descent. In other words, it trains on batches of examples all at once.  My issue is trying to figure out when to stop the training of the batch. I'll try to make things as understandable as possible since there are so many options, but please comment if you need clarification.  Each batch allows me to compute a list of output errors that correspond to the error the computer has on each example. Each error is a vector with elements equal to the number of output neurons.  Let each error vector be notated by e1, e2, e3, ... so the list of output errors is [e1, e2, ...]. Let an error vector in general be notated by e.  Now there are 2 things we can do to a vector or a list:   Average: average all of the elements in a vector or list. This will be notated by the function a(). For example to find the average error of an example we would do a(e) Check: make sure that each element in the vector or list is below a certain value. If any of the elements are too high, we continue to train on the entire batch. (This function can also be applied to a single value.) This will be notated by the function c(). For example, if we wanted to make sure the average error in e was low enough, we would do c(a(e)) Sum: add up all of the elements in the vector or list. This will be notated by the function s(). For example, s(e) would be totaling the error found in error vector e.   Here are the methods I have determined for deciding when to stop gradient descent:   Iterative: just run the training a certain number of times Average of averages: Find the average error of each example, then find the average of those and make sure it's below a certain amount. This is given by the formula c(a([a(e1), a(e2), ...])) Specific error: Check to make sure the error in each output neuron is below a certain amount. This is given by the formula c(e1), c(e2), ... Specific averages: Check to make sure the average error in each example is below a certain amount. This is given by the formula c([a(e1), a(e2), ...]) Sum of sums: Total up all the error in the entire batch and then make sure it's low enough. This is given by the formula c(s([s(e1), s(e2), ...]) Sum of averages: Find the average error of each example, then add up all those and make sure it's below a certain amount. This is given by the formula c(s([a(e1), a(e2), ...])) Average of sums: Compute the average total error in each example, and then make sure it's below a certain amount. This is given by the formula c(a([s(e1), s(e2), ...])) Specific sums: Check to make sure the total of the error in each example is below a certain amount. This is given by the formula c([s(e1), s(e2), ...])   So my question is this:  Which one of these options is most commonly used when training neural nets? Why? (Is there another option that I've missed?)  (Edit: I have found a very general version of this question , where the answers seem to say there is no specifically good way. If that is still true, please say so in your answer. Note that this is not a duplicate, as I explain the specific methods I would like to use.)  Edit: as A.D pointed out, summing is pretty useless because it depends on how many values are in each list/array/batch. And if you know how many examples there are, you can just use averaging. So, the methods involving "summing" have been cut.


I am using Sublime to program in C but when the code is compiled it keeps returning [Finished in 1.1s with exit code 10]. What does that mean? What is going on?  #include <stdio.h>  void main()  {     int x;     scanf("%d", &x);     printf("%d", x); }


Following is the output of meta-analysis of five fictitious studies:         OR           95%-CI %W(fixed) %W(random) 1 0.7037 [0.3963; 1.2495]      2.15      10.29 2 0.6047 [0.5166; 0.7079]     29.95      24.79 3 0.9097 [0.8001; 1.0343]     38.59      25.78 4 0.9696 [0.8285; 1.1348]     25.02      24.80 5 0.5872 [0.3831; 0.9000]      4.30      14.34  Number of studies combined: k=5                           OR           95%-CI       z  p.value Fixed effect model   0.8151 [0.7513; 0.8842] -4.9196 < 0.0001 Random effects model 0.7639 [0.6060; 0.9631] -2.2785   0.0227  Quantifying heterogeneity: tau^2 = 0.0499; H = 2.44 [1.62; 3.68]; I^2 = 83.2% [61.8%; 92.6%]  Test of heterogeneity:      Q d.f.  p.value  23.81    4 < 0.0001  Details on meta-analytical method: - Mantel-Haenszel method - DerSimonian-Laird estimator for tau^2   How can you explain in layman terms what is heterogeneity and how above output is interpreted in terms of heterogeneity? What are acceptable values of $I^2$ and $\tau^2$? What is the meaning of p value <0.05 here? Thanks for your help.


In Ubuntu 12.04 LTS, System Settings > Privacy > Files, 'Record Activity' is ON by default.  What does this mean exactly?  Which activities are being recorded?  Where can I find the recorded data?


I have noticed something and i am quite confused about. There were questions that were asked about two years ago and got upvotes but if such type of questions are asked now, they get lots of down votes. For Example, i say a question that was asked two years ago. The question was      What is the syntax for a for-loop in SQL?   This question got 10 upvotes but the day someone recently asked      What is the syntax for SELECT statement in SQL?   The question got about 10 downvotes.  Why is this happening?


The number of odd size subsets is equal to the number of even size subsets

Prove that the number of subsets with odd number of elements is equal to the number of subsets with even number of elements.   I'm not sure how to approach this problem.  Is this even true for me to prove.  For example, the set {null} contain only one subset, itself, which is even.  Thus, prove by contradiction?


Is it possible to open a US bank account without being physically present or having a SSN/EIN?

I want open business bank account in Michigan. I have not SSN. I have EIN. My friend is in Michigan. I don't want to go USA just for open Bank account. Is this possible to open business account online without physical present in USA?


Size of the structure and addition of individual data type sizes mismatching

I have the following structure. When I print the size of the structure using sizeof(ipj_tag_operation_report) I get the value 480. But when I try to add the individual size of each data type included in this structure, I only get 405. Also, if I add the sizes of data types, the "rssi" field value comes in 165th byte. But when I get this structure in JNA, when I iterate through the returned contents it is in 51st position of the array. Why are these mismatches? What am I doing wrong here? Please advice.  Below is my structure and its related structures. I have commented the size of the data types. These are values I found in the internet.              typedef struct              {                 bool has_error; //1                 ipj_error error; //4                 bool has_tag; //1                 ipj_tag tag; //174                 bool has_tag_operation_type; //1                 ipj_tag_operation_type tag_operation_type; //4                 bool has_tag_operation_data; //1                 ipj_tag_operation_data_t tag_operation_data; //72                 bool has_retries; //1                 uint32_t retries; //4                 bool has_diagnostic; //1                 uint32_t diagnostic; //4                 bool has_timestamp; //1                 uint64_t timestamp; //8                 size_t lt_buffer_count; //8                 uint32_t lt_buffer[30]; //120             } ipj_tag_operation_report;   typedef uint32_t ipj_error;              typedef struct              {                 bool has_epc; //1                 ipj_epc_t epc; //72                 bool has_tid; //1                 ipj_tid_t tid; //56                 bool has_pc; //1                 uint32_t pc; //4                 bool has_xpc; //1                 uint32_t xpc; //4                 bool has_crc; //1                 uint32_t crc; //4                 bool has_timestamp; //1                 uint64_t timestamp; //8                 bool has_rssi; //1                 int32_t rssi; //4                 bool has_phase; //1                 int32_t phase; //4                 bool has_channel; //1                 uint32_t channel; //4                 bool has_antenna; //1                 uint32_t antenna; //4             } ipj_tag;  typedef uint32_t ipj_tag_operation_type;              typedef struct              {                 size_t size;                 uint8_t bytes[64];             } ipj_tag_operation_data_t;   typedef unsigned __int64    size_t;


How do I turn Caps Lock into an extra Control key?

There used to be a great set of options under keyboard that allowed me to choose stuff such as how the caps lock key behaves.  How do I do this in 14.04?


How to output comma separated values using IFS="," in shell

I have a small script, which does not give comma separated output when IFS is used, but IFS is mandatory as i need it to read many other value. The output of the below script is odi_server1 odi_server2, but I need it separated by comma. #Script Starts #!/bin/sh  IFS="," odi_cluster=odi_server1,odi_server2; echo $odi_cluster;  #Script Ends  Current Output = odi_server1 odi_server2 Expected Output = odi_server1,odi_server2 Note:- IFS="," is mandatory, hence removing it is not an option.


Would someone please tell me the reason for using will and would?

The goal for these negotiations is to reach a mutually-agreed long-term comprehensive solution that would ensure Iranˈs nuclear program will be exclusively peaceful.  I am wondering the reason why there has been used the different tenses like the following:  Would  Will


Is there a Python Event for swapping between object mode and edit mode?

I have a script that is manipulating the text of a text object. I want this script to work when the user swaps between "edit mode" of the text to "object mode".  Is there some event for that?  For now the script works with a button, but I want to avoid that.


How do I hide a process in Task Manager in C#?

I have a requirement to hide a process in Task Manager. It is for Intranet scenario. So, everything is legitimate. :)   Please feel free to share any code you have (preferably in C#) or any other techniques or any issues in going with this route.  Update1: Most of the users have admin privileges in order to run some legacy apps. So, one of the suggestion was to hide it in task manager. If there are other approaches to prevent users from killing the process, that would be great.  Update2: Removing the reference to rootkit. Somehow made this post look negative.


Where should my beamer theme be located?

I recently downloaded a beamer theme: {metro}  I made a beamer by 1. Create folder 'presentation' 2. Copy beamer theme in 'presentation' 3. Create tex file in 'presentation'  This works fine.  However, I don't want to copy the beamer theme to folders everytime I create new a beamer presentation.  I think there is some folder which contains the default beamer themes.  Where should I place my beamer theme to use it by just typing \usetheme{metro} instead of copying the theme in the same folder?


I have the following Python code: import loader  def encode_files():     loader = loader.Loader('','','',False, False)  loader = loader.Loader('','','',False, False)  In the body of the function encode_files(), the editor reports an error Using variable 'loader' before assignment. However, loader = loader.Loader('','','',False, False) outside the function is fine. What causes the error of loader inner encode_files(). Thanks in advance!


Java-Oracle Project-- java.lang.NullPointerException Error

Hi everyone i am new to Java and started this project to learn java/jsp/servlets. I have a Oracle table (named giris) that contains user's name(kullanici) and password (sifre).  English is not my first or second language so look at my codes you will understand my struggle.  i have girisDTO.java for get set methods and constructor:  package tr.gov.ptt.rehberwebprj.dto;   public class GirisDTO {  private String kullanici; private String sifre;  public GirisDTO() {  }   public String getKullanici() {     return kullanici; }  public void setKullanici(String kullanici) {     this.kullanici = kullanici; }  public String getSifre() {     return sifre; }  public void setSifre(String sifre) {     this.sifre = sifre; }     }   I have VTBaglanti.java for database connection:  package tr.gov.ptt.rehberwebprj.util;  import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException;   public class VTBaglanti {  public static Connection baglantiGetir() throws ClassNotFoundException,      SQLException {   Class.forName("oracle.jdbc.driver.OracleDriver");   Connection conn=   DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "kurs1", "ptt");   return null;  } public static void baglantiKapat(Connection p_conn) throws SQLException {     p_conn.close();  }  }   I have GirisDAO.java  for database operations other than connection:  package tr.gov.ptt.rehberwebprj.dao;  import java.sql.*; import tr.gov.ptt.rehberwebprj.dto.GirisDTO; import tr.gov.ptt.rehberwebprj.util.VTBaglanti;  public class GirisDAO {  public static boolean giriseYetkilimi(GirisDTO p_giris)          throws ClassNotFoundException, SQLException {     String vtSifre=null;     Connection conn= VTBaglanti.baglantiGetir();     PreparedStatement ps = conn.prepareStatement("select sifre from giris where kullanici=?");         ps.setString(1, p_giris.getKullanici());         ResultSet rs = ps.executeQuery();             while(rs.next())             {                 vtSifre=rs.getString("sifre");             }             rs.close();              if (vtSifre != null && vtSifre.equals(p_giris.getSifre()))             {             return true;             }                else             {             return false;             }  } }   I wrote a GirisDAOTest.java class to test if GirisDAO is working or but but it gives me an error.  package tr.gov.ptt.rehberwebprj.test;  import java.sql.*; import java.util.logging.Level; import java.util.logging.Logger; import tr.gov.ptt.rehberwebprj.dao.GirisDAO; import tr.gov.ptt.rehberwebprj.dto.GirisDTO;   public class GirisDAOTest {  public static void girisKontrolTest() {      try {         GirisDTO giris= new GirisDTO();         giris.setKullanici("eda");         giris.setSifre("1234");          boolean sonuc = GirisDAO.giriseYetkilimi(giris);      } catch (ClassNotFoundException ex) {         ex.printStackTrace();     } catch (SQLException ex) {         ex.printStackTrace();     }      if (true)     {         System.out.println("Giriş başarılı.");     } else      {         System.out.println("Kullanıcı adı  ya da şifre yanlıs");     }  }   public static void main(String[] args) {      girisKontrolTest();  } }   My error is:  Exception in thread "main" java.lang.NullPointerException at tr.gov.ptt.rehberwebprj.dao.GirisDAO.giriseYetkilimi(GirisDAO.java:15) at tr.gov.ptt.rehberwebprj.test.GirisDAOTest.girisKontrolTest(GirisDAOTest.java:20) at tr.gov.ptt.rehberwebprj.test.GirisDAOTest.main(GirisDAOTest.java:41) Java Result: 1 BUILD SUCCESSFUL (total time: 1 second)


Multiple instalations of the same software (browser)

It is possible to install the same browser twice, one for personal use and another for testing? I need this because I want to use my plugins in the personal version, but sometimes the plugins may alter the look, or the code of the site, so I need the testing version without the plugins. It is not a solution to use one type of browser let's say firefox for personal, and chromium for testing, because I need to test my sites in all browsers. Thank you.


Is it a bad idea to send an article under review as a writing sample? (faculty job application)

I have a manuscript that is under review in a major journal which is a main result out of a few recent years of my research. When applying for faculty positions, I would like to send the draft as a part of my writing sample. But since the material is not yet published, I am not sure if it is a good idea.  What are the foreseeable disadvantages of sending an article in review to the faculty search committee?  My area is neuroscience / biomedical engineering.  Update: The paper got into a high-profile journal, and I got a job at a different place which did not require a writing sample.


How to NOT show keyboard layout chooser popup when changing language in GNOME 3

Since I installed 17.10, when switching language with the assigned keyboard shortcut I get this switcher "window" that obstructs me from typing for a couple of seconds. And yes, a couple of seconds is a huge amount of time when switching languages a lot.      This happens both in X11 and Wayland but doesn't happen (the obstructive window will not appear) when I switch language by clicking on the lang indicator on top bar. Is there any way to tell this window "please go away"?


Run a function in a Shell Script as a different user

I have a .sh script which contains a set of functions. I have made the script executable (chmod 777).  If I want to run a function as my current user I simply do:  . /path/to/script/functions.sh && fc_number1 "${item1}" "${item2}" &   This works fine. However I have another function, that needs to be run by a different user with different privileges.   I have tried:  sudo -unewuser . /path/to/script/functions.sh && fc_number2 "${item1}" "${item2}" "${item3}" sudo -unewuser -c "bash -c fc_number2 ${item1} ${item2} ${item3}"   Neither of which works. I simply get sudo: .: command not found or bash: export: fc_number2: not a function, or some other error.  Is there something else I need to do to make this work. Everything I read basically comes back to one of the two options I have tried above.


W: Target CNF is configured multiple times in

When I run sudo apt update I see these messages in terminal: W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3 W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3 W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3  There is more but I just wrote the sample of each W: target ** ... ,how I can fix it?


How can a function with a hole (removable discontinuity) equal a function with no hole?

I've done some research, and I'm hoping someone can check me. My question was this:  Assume I have the function $f(x) = \frac{(x-3)(x+2)}{(x-3)}$, so it has removable discontinuity at $x = 3$. We remove that discontinuity with algebra: $f(x) = \frac{(x-3)(x+2)}{(x-3)} = (x+2)$. BUT, the graph of the first function has a hole at $x = 3$, and the graph of the second function is continuous everywhere. How can they be "equal" if one has a hole and the other does not?  I think that this is the answer:   Because the original function is undefined at the point $x = 3$, we have to restrict the domain to $\mathbb{R} \setminus 3$. And when we manipulate that function with algebra, the final result, $f(x) = (x + 2)$ is still using this restricted domain. So even though the function $f(x) = (x+2)$ would not have a hole if the domain were all of $\mathbb{R}$, we are sort of "imposing" a hole at $x = 3$ by continuing to throw that point out of the domain.   And then just to close the loop: Removing the removable discontinuity is useful because it allows us to "pretend" that we're working with a function that is everywhere continuous, which helps us easily find the limit. But the reality is that the function $f(x) = (x +2)$ is actually NOT continuous everywhere when we restrict the domain by throwing out the point 3. Or am I now taking things too far?   Thanks in advance!  EDIT: For anyone coming across this in the future, in addition to the excellent answers below, I also found this other question about the  helpful.


Good Text for Learning about Multivariate Distributions

I have just started learning about multivariate distributions using Mathematical Statistics with Applications by Wackerly, Mendenhall and Scheaffer but I find their explanation a bit confusing, could someone please recommend a good text for learning about multivariate distributions?


How does $y[x] = a x^r$ when $y'[x] = \frac{(r y[x])}{x}$ and $y[1] = a$

When \begin{eqnarray*} y'[x] &=& \frac{r y[x] }{ x } \; \;\text{and} \;\; y[1] = a \\ y[x] &=& a x^r \end{eqnarray*} Use derivative formulas to explain the output.  What I have so far:  We know that  \begin{eqnarray*} y'[x] = r y[x] = k e^{rx} \end{eqnarray*} So we can rewrite as  \begin{eqnarray*} y[x] = \frac{k e^{rx} } { x} \end{eqnarray*} To get the value of k: \begin{eqnarray*} a = \frac{k e^{r} }{ 1} \\ k = \frac{a}{e^r} \end{eqnarray*} So now we have \begin{eqnarray*} \frac{(a/(e^r)) e^{rx} } { x} \end{eqnarray*} But when I plug this into a derivative calculator I get a solution much different than $y[x] = a x^r$. Perhaps I am approaching this wrong. What is the correct way to approach this problem using derivative formulas?


Hooke's law and elastic potential energy

A mass $m$ is attached to a vertical spring of elastic constant $K$ and  length $L$. The spring is supposed to be of negligible mass.  Due to the attached mass $m$  the   spring reaches a new equilibrium configuration at a length $L+x$. According to Hooke's law the spring elongation is given by $x= \frac{mg}{K}$, since the weight has to be equilibrated by the elastic force. On the other hand, by applying the  principle of energy conservation,  the initial gravitational potential energy is transformed in elastic potential energy say $mgh$ is transformed in $\frac{1}{2}Kx^2+mg(h-x)$ which leads to $mgx= \frac{1}{2}Kx^2$. The spring elongation is then $x= \frac{2mg}{K}$. It seems a contradiction. What is wrong in these arguments?


I bought a used MacBook Pro, and I need to update some software.  When I click the 'update all' button to proceed, it asks for the App Store password of the old user's account:    How do I remove the old user's account so that I can update my software?


Produce two pdf of different length from single source file

I am writing a journal paper which is roughly 15 pages long. Out of this journal paper, I would also like to make a conference version which should be 5 pages long.   My question is: Is it possible to only work with one latex file and produce two pdf of different length?   For example, can I select a text and specify that it goes to the long version only?


Camera animate from ortho to perspective

I want to animate a camera from a ortho view to a perspective view.  Is this possible and if so, how.  Seems you can only have one or the other but not both.


Is there some special case where a fermion can mediate a force?

Looking at the comments of this questions  and even considering that the answers here in this other question  do explain why a force carrier needs to be bosonic, I still wonder if there are some particular cases where a fermion similar to a gaugino could mediate a force.  A case in mind, that could avoid the issues on angular momentum conservation, is zero-range interactions ("contact" interactions). Still, I can not see how such beast could be described with a Lorentz invariant Lagrangian.


need to move files to different folder based on the creation date

I have set of files created from Monday to Friday..  a -- > 08/20 a1---> 08/21 a2---> 08/21 a3---> 08/21 a4---> 08/22 a5 --> 08/23   I need to move only 08/21 file to diffrenet folder.  How is this possible ?


I've installed wine with: sudo apt-get install wine  I've downloaded OfficeSetup.exe from the official Microsoft website (student license) and then I typed in the terminal:  sudo su ... wine "OfficeSetup.exe"  I see the Office logo with the loading animation, and after a few seconds it appears to me an error message saying that the installation can't proceed with these possible motivations:  internet connection down, no space available on disk,  but any of these are true in my situation. No other replies in the terminal, no other warnings from wine, anything. What could I do?


is there a patch against "Shell Shock" for my system MacOS 10.6.8 bash version 3.2.48(1)-release (x86_64-apple-darwin10.0)

I already run the following and I get "vulnerable" Mac cysunza$ env x='() { :;}; echo vulnerable' bash -c 'echo hello' vulnerable hello  I read the post about it but appears to me that his is just for newer systems that mine, so my questions are: I should be worried about it? (my guess is yes) Is there a way to solve this problem, without a new system? if there are such a patch, where I can get it?   I upgrade my Mac to the last OS in another hard disk but I felt so slow, that's the reason I prefer work in the system 10.6.8 Thanks


How to stop spam user registration with Honeypot module?

I'm using the  module in order to stop spam but still I'm getting the spam with same first name and last name. How to stop these spam user registration?


Python function inside function access to a global variable

I have a function func1() inside which I want to do a parallel job using multi-threading. I am defining another function inside that function called func_thread() to access some local variables and avoid passing them to the thread function. However, for all those variables that are read-only, I do not have any problem. But, for the output value (x here which all threads are adding some value to x) I have trouble. In this case I receive x referenced before assignment error. def func1():     lc = threading.Lock()     x = np.zeros((100,100))     def func_thread():         lc.acquire()         x = x + np.random.random((100,100))         lc.release()  And in this case, I receive global variable x is not defined error! def func1():     x = np.zeros((100,100))     def func_thread():         global x         x = x + np.random.random((100,100))


Assigning IP address to environment variable

How can I assign the IP address of eth0 to an environment variable, say $ip, as easily as possible?  Update: Distro is Ubuntu Server 12.04 LTS.


Novel about people playing a tabletop RPG getting pulled inside

A novel about people playing a tabletop RPG get pulled into the world. They have gauntlets on their arms with dice that roll for outcomes. One character was a berserker type and he had a small flying dragon with him.


What's the weight of the earth?  That is, what's the weight of the earth in the gravitational field of the sun? I imagine it's either   $0$, because there's no net fall toward the sun, so the downward component of acceleration is $0$ and $F=ma=0$, or $Gm_1m_2/r^2\approx7\cdot10^{-11}\cdot6\cdot10^{24}\cdot2\cdot10^{30}/(1.5\cdot10^{11})^2\approx4\cdot10^{22}$ Newtons,   but which, and why?


A disk 2 inches in diameter is thrown at random on a tiled floor, where each tile is a square with sides 4 inches in length. Let C be the event that the disk will land entirely on one tile. In order to assign a value to P(C), consider the center of the disk. In what region must the center lie to ensure that the disk lies entirely on one tile? If you draw a picture, it should be clear that the center must lie within a square having sides of length 2 and with its center coincident with the center of a tile. Since the area of this square is 4 and the area of a tile is 16, it makes sense to let $P(C) = \frac{4}{16}.$  I don't really understand the statement for the last sentence "Since the area of this square is 4 and the area of a tile is 16, it makes sense to let $P(C) = \frac{4}{16}.$"


Why do we write $t$ as $ct$ in special relativity?

We commonly write 4-vectors as $x=(x^0,x^1,x^2,x^3)$, where $x^0=ct$ rather than $x^0=t$. The only reason I can think of why this was done is to write everything in spatial dimensions. That is dimensional analysis of $ct$ gives $\frac{[m]}{[s]}\cdot[s]$, such that it is easy to define invariants like $(\Delta s)^2$. I'm curious however, is there another reason why it is convenient to use such notation?


Building a full adder with NPN BJT transistors

So I'm trying to wire up a  just with NPN BJT transistors (I know there is a 74XX283 4-bit binary full adder, but I want to do it just with transistors if possible for my own learning).  The full adder I'm trying to build looks like the following with logic gate symbols:      I use a NAND, OR and AND gate to build the XOR gate:      Right now my current circuit looks like this:         – Schematic created using   Schematic notes:      All those 1k resistors you see going to ground are pull down resistors, so I get a more cleaner signal, but I'm not sure if they are required or optional or where and when exactly I need them.   But the circuit does not work as intended:  A B CIn | Sum COut ------------------ 0 0 0   | 0   0   (Both LEDs are clearly off) 0 0 1   | 1   0   (A clear one the LED glows; the other is off) 0 1 0   | 1/2 0   (The LED just glows like half; the other is off) 1 0 0   | 1/2 0   (The LED just glows like half; the other is off) 1 1 0   | 0   1/2 (The LED just glows like half; the other is off) 1 0 1   | 0   1/8 (The LED just barely glows; the other is off) 0 1 1   | 0   1/8 (The LED just barely glows; the other is off) 1 1 1   | 1   1   (Both LEDs only glow half)   The expected behaviour would be:  A B CIn | Sum COut ------------------ 0 0 0   | 0   0 0 0 1   | 1   0 0 1 0   | 1   0 1 0 0   | 1   0 1 1 0   | 0   1 1 0 1   | 0   1 0 1 1   | 0   1 1 1 1   | 1   1   I have tried to remove, change or add some pull down resistors on the gate outputs, but the above circuit is the best attempt I have right now. I have also changed out all components and the breadboard I use, just to make sure it isn't some component that is dead. I already have double/triple checked all resistors and connections, so that I don't just have a misplaced wire or wrong resistor.  I also tried to use a multimeter to find the error, but that just confused me more. But if I have to I can also check stuff with the multimeter if necessary.  So I'm at the end with my knowledge here how to fix my circuit design and get a clear on and off output?  I don't know if I use wrong resistor values, I don't use the transistors correctly or if my design is wrong from the start.


im having trouble understanding why this occurs: with the following code;      #include <stdio.h>      int main()      {         double x=123;          printf("x is %f. Enter a new value for x.\n", x);         scanf("%f", &x);         printf("x is %f\n", x);          return 0;     }   when you enter 45678 as the new value for x, 'x is 123.000017' is printed. I know that this is fixed when you use %lf when scanning, but why does this happen when using %f?


How to manually parse a floating point number from a string

Of course most languages have library functions for this, but suppose I want to do it myself.  Suppose that the float is given like in a C or Java program (except for the 'f' or 'd' suffix), for example "4.2e1", ".42e2" or simply "42". In general, we have the "integer part" before the decimal point, the "fractional part" after the decimal point, and the "exponent". All three are integers.  It is easy to find and process the individual digits, but how do you compose them into a value of type float or double without losing precision?  I'm thinking of multiplying the integer part with 10^n, where n is the number of digits in the fractional part, and then adding the fractional part to the integer part and subtracting n from the exponent. This effectively turns 4.2e1 into 42e0, for example. Then I could use the pow function to compute 10^exponent and multiply the result with the new integer part. The question is, does this method guarantee maximum precision throughout?  Any thoughts on this?


How to feed input to command line interface with Python?

Im working on GUI project(python) and want to control another program with its CLI.exe. So i need to feed some input and receive output from that CLI.exe. How can i do this ?


Can we make ligatures copy-and-pastable?

Is there a straightforward way to make ligatures more copy-and-pastable? I know that by using  \usepackage[t1]{fontenc}   that many glyphs like accented and umlauted characters become copy-and-pastable from a pdf.   But, for example, the word "five" is typeset with an "fi" ligature (a merging of the two letters into one) and I'm unable to copy this word from the pdf and paste into a text editor. The fontenc package doesn't seem to help with this.  Here is my MWE of the issue. I am using Adobe Reader X to read, and Windows with TeXnikCenter.  \documentclass[12pt]{article}  \begin{document} five  \end{document}   I have tested and cannot successfully paste into TeXnicCenter, MS Word, or the Firefox address bar.


Is this sequence convergent? If so, then how to find the limit?

For each natural number $n$, let $$ x_n \colon= \frac{1}{\sqrt{n}} \left( \frac{1}{\sqrt{1}}  + \frac{1}{\sqrt{2}}+ \cdots + \frac{1}{\sqrt{n}} \right). $$  Then is the sequence $\left( x_n \right)_{n \in \mathbb{N} }$ convergent? And if so, then how to find the limit of this sequence?   I'm just not sure how to proceed.


Recover data from lost windows partition when install ubuntu

I was using a Windows 8 laptop. One day I tried to install Ubuntu alongside Windows 8 but accidentally I choose the option "erase disk and install Ubuntu", so I lost my Windows partition and data.  I clicked on "Install now" but when I got prompt that it will delete entire HDD then I click back but I already erase disk first.   Now I haven't write anything on the HDD. Do I have to install win 8 as first 20GB and then recover it or recover using live CD? I have experience of recovering data but it changes the file name and directory structure. I would like to know a good software app that can recover all data as it was before.


Regarding the g++ linker error "undefined reference to"

I am new to C++ and, for practice, have written my own vector class. The header file, Vector.h, is #ifndef VECTOR_H_INCLUDED #define VECTOR_H_INCLUDED  #include <cstddef> #include <memory>  template <class T> class Vector {      public:         Vector();        ~Vector();      // code  };  #endif  The corresponding source file, Vector.cpp, is #include "Vector.h"  template <class T> Vector<T>::Vector()  {      // code  }  template <class T> Vector<T>::~Vector()  {      // code  }  // code  The test file, VectorDemo.cpp, is #include "Vector.h"  int main()  {     Vector<int> v;     return 0; }  In Bash I type g++ -c Vector.cpp VectorDemo.cpp g++ -o VectorDemo Vector.o VectorDemo.o  and get the following error VectorDemo.o: In function `main': VectorDemo.cpp:(.text+0x27): undefined reference to `Vector<int>::Vector()' VectorDemo.cpp:(.text+0x38): undefined reference to `Vector<int>::~Vector()' collect2: error: ld returned 1 exit status  How do I fix this issue and why is this happening?


Is there a proverb in English to convey the meaning "Attempting to catch a flying bird by accidentally releasing the one in hand."?

Attempting to catch a flying bird by accidentally releasing the one in hand.  For example, pursuing other attractive objects for getting more benefit but accidentally losing the benefits from the existing owned objects. Is there such a proverb in English with the above meaning?


Let $G$ be a group and $H$ a subgroup of $G$. For $x \in G$, prove $x^{-1}Hx$ is a subgroup of $G$.


Consider the Limit  $\frac{x+\sin x}{x-\sin x}$  as $x  \rightarrow \infty$. Clearly this limit exists and is equal to $1$. Also notice that the function is of the form  $\frac{\infty}{\infty}$ and thus, L'Hopitals rule can be applied here. But on applying L'Hopitals rule, I am getting  Limit  $\frac{1+\cos x}{1-\cos x}$ as $x  \rightarrow \infty$, which is obviously non-converging. Where did I go wrong?


For each $n=1,2,{\dots}$ and $x\in(0,{\pi})$, prove that the series $$S_n(x)=\sum_{k=1}^{n} \frac{\sin(kx)}{k}>0$$


write unit test for a method which make calls to other private methods of the same class in java. how to mock private method

Let's say I have a class A, which has two methods. I have to test a method, which internally calls the other method.  class A {     private void method1() {         //some steps to be done     }      public void method3() {      //some steps     }      public void method2() {         method1();         if (XUtil.isSupportRequired) {             method3();         }     }  }   So, If I try to test method2, how to mock method1, as it is not public. Any help would be appreciated.  I am using junit and mockito.


Why Can a Skydiver Hit the Ground and Be Killed?

This is a follow on question from .  User .   User Dargscisyhp asks:       What is it exactly that kills you. I've never understood this. Is the maximum amount of force in this kind of impact?   So what is it that injures someone in an impact such as that at the bottom of a fall? Is it maximum force, acceleration, or what?


Problem with paths in my script, relative to local python file

I'm trying to import data stored as a JSON. It works fine in stand-alone python, but I am having problems in Blender python console.  I have a folder Applications/blender.app/Contents/Resources/2.74/scripts/addons/uhoh and in it I have wowtest.py, a blank __init__.py, and test_data.txt which contains the JSON.  This is wowtest.py  def wowtest(fname):      import json      print('hmmm.... will this work?')      with open(fname, 'r') as infile:         xdic = json.load(infile)      return xdic   And this is what happens in Blender's python console:  >> import uhoh.wowtest as wow >>> wow.wowtest('test_data.txt') hmmm.... will this work?  Traceback (most recent call last):   File "<blender_console>", line 1, in <module>   File "/Applications/blender.app/Contents/Resources/2.74/scripts/addons/uhoh/wowtest.py", line 9, in wowtest     with open(fname, 'r') as infile: FileNotFoundError: [Errno 2] No such file or directory: 'test_data.txt'   I have put a second copy of test_data' up one level (in/addons`) just in case, but this doesn't help. What am I missing?  NOTE: I will run this from a script next. If there are differences, please let me know.


Does a spellcaster know when their spell has no effect due to a save or immunity?

Suppose a cleric casts Zone of Truth on a captured enemy. Unbeknownst to them, the enemy is a rakshasa. Zone of Truth says (PHB, p. 289):     You know whether each creature succeeds or fails on its saving throw.   But (MM, p. 257):     The rakshasa is immune to spells of 6th level or lower unless it wishes to be affected.   Assuming the rakshasa doesn't wish to be affected by the Zone of Truth spell, does the caster know this?  More generally, does a caster know when targets are unaffected by a spell they have cast, either because they have made saving throws, or because they are outright immune to the spell or its effects (e.g., casting Ray of Sickness on a shadow demon, which is immune to poison damage and the poisoned condition)?


How do I set the desktop background on Windows from a script?

On X Windows I had a cool 'silent-alarm" reminder script that would change my root window (background) color to solid red, just for a few seconds a few moments before changing it back. Is there a way to do this for Windows XP?  I'm thinking some kind of scheduled task that uses cscript to set registry keys (HKEY_CURRENT_USER\Control Panel\Desktop) . However my attempts don't seem to have any effect. What do I have to signal to read those registry entries and re-draw the desktop?


Why do we treat weight as acting on the object?

When drawing force diagrams I am really struggling to understand why we put the weight of an object as a force acting on it, rather than as a force acting on whatever else there is around it.  For example, if we have a book on a table, and are drawing two separate force diagrams for the forces acting on each object, then surely the weight of the book is a force acting on the table, not the book?  Or if you model a diagram of a person standing, it feels wrong to label the weight as acting on the person, when surely it is acting on the floor? And the force acting on the person is the reaction of the floor to the weight?  It all just feels a bit off! Please can someone offer some help to correct my intuition?  (I should add that I kind of understand that the weight of an object does act on it, insofar as gravity does pull things down...)


"GPG error: Release: The following signatures were invalid: BADSIG"

I ran this command in the Terminal:  sudo apt-get update   Updating ends with the following error report:  W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>  W: GPG error: http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG 4C1CBC1B69B0E2F4 Launchpad PPA for Jonathan French W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release     What does this mean and why is it happening?


I need help to find a word that's too long to describe in a title

Is there a word for a group of people that know they're doing something wrong, but they don't want to stop in fear of embarrassing themselves or letting their peers down? An example sentence would be   It's no use trying to reason with them – they're all just [...]s."


Differences between getter and setter and a regular variable[C#]

I've learned about the getter and setter topic and i couldn't understand the new type of this topic :  Let's say someone is declaring a new get&set method :  public int Id { get; set; };   What i want to know is what is the differences between doing what i wrote below and a regular public variable (public int id).  Comments are welcome.


I have HTML page were customers can enter the date and time in format MM/dd/yyyy HH:mm. The problem I’m having is that depending on the client timezone the time is different (and might be date as well) on server side.  We are using Java and we are parsing the date with a code like this:  SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm"); Date date = sdf.parse(dateStr);   How can I detect the timezone of the user and convert the date time to server-side timezone?


How to change Explorer's default location via the registry?

I'm using Windows 7. I want to set Explorer's default location to "My Computer", whether explorer.exe is launched via the "Run" command, via command-line or via a shortcut. That's why I don't want to use a shortcut with a parameter.  I've done it in the past by tweaking the registry, but the default location was reset to Libraries after an update and I can't find the solution again.  This question isn't a duplicate of . The solution given there doesn't work on Windows 7.


Difference between "my whole life" and "all my life"?

Is there any difference between both expressions? I'd say that my whole life is better suited for use it in the middle or at the end of a sentence, whilst all my life is better for start a sentence.  Is that correct? Or are there any other differences?


This is going to be hard because of him/his needing to be there very early

I recently read the following:     This is going to be hard because of him needing to be there   very early.   I would have written:     This is going to be hard because of his needing to be there   very early.   What is the grammatical difference between these two sentences?  Is there a sense in which one is more correct than the other or do they simply have subtly different meanings?


Did time begin from big bang?  If not then what existed before big bang?  If time had a beginning, then does it have a end, or pause because if time had a pause then we would not have known about it, nor there would be any proof for it so does it happen?


Read in image file sequence in C++ w/o using opencv

Given image files  lights000.rgbe lights001.rgbe lights002.rgbe ... lights899.rgbe   Are all located in a single subfolder. What is the best way to read one file then the next?  Given that my read command for .rgbe is called readHDR(char* filename)  I have seen several questions regrading this problem but they all use OpenCV. I am not using opencv and .rgbe is not even a supported OpenCV file extension so that method wouldn't even work.  I saw the following code from a different question:  char* Dataset_Dir( "C:/Data/" ); // Or take it from argv[1] cv::Mat normal_matrix; std::vector<cv::Mat>* image_stack; for( int i=1; i<=endNumber; ++i ) {     // Gives the entire stack of images for you to go through     image_stack->push_back(cv::imread(std::format("%s/%03d-capture.png", Dataset, i), CV_LOAD_IMAGE_COLOR));       normal_matrix = cv::imread(std::format("%s/%03d-capture.png", Dataset, i), CV_LOAD_IMAGE_COLOR); }   But I cannot find any information on the std::format command or the Dataset_Dir.  Any advice for even how to split the file name string into three parts would be really helpful.  Split into:   char Name = "lights";  int Num  = "000";  char File = ".rgbe;


I have recently encountered  and according to Wikipedia:      Rudolf Haag postulated [1] that the interaction picture does not exist in an interacting, relativistic quantum field theory (QFT), something now commonly known as Haag's Theorem. Haag's original proof was subsequently generalized by a number of authors, notably Hall and Wightman,[2] who reached the conclusion that a single, universal Hilbert space representation does not suffice for describing both free and interacting fields. In 1975, Reed and Simon proved [3] that a Haag-like theorem also applies to free neutral scalar fields of different masses, which implies that the interaction picture cannot exist even under the absence of interactions.   Studying some particle physics, this kinda bothers me. Also the article says:     While some physicists and philosophers of physics have repeatedly emphasized how seriously Haag's theorem is shaking the foundations of QFT, the majority of QFT practitioners simply dismiss the issue.   And not to worry about this is exactly what my particle professor recommended. I understand that evidently physicists are doing pretty well in calculating their scattering amplitudes with the interaction picture, but this as an explanation is just saying that the end justifies the means. It doesn't really comfort me when there is still a mathematical proof saying that the interaction picture just cannot exist. Now, is it okay to worry? (Why not? - Besides the notion that it just works, which sounds a bit like magic to me)


Convert constant of gravitation to days and AUs

I'm working on a problem with celestial bodies and for my purpose days and AUs are more appropriate units than seconds and meters. So I tried to convert the constant of gravitation, $G$, like this:  $$ k= \frac{\frac{\text{AU}^3}{\text{kg}\times \text{D}^2}}{\frac{\text{m}^3}{\text{kg}\times \text{s}^2}}=(\frac{\text{AU}}{\text{m}})^3(\frac{s}{D})^2=\frac{(1.496\times 10^{-11})^3}{(24\times 60\times 60)^2}=4.485\times 10^{-43} $$ $$ G=6.673\times10^{-11}\times k = 6.673\times10^{-11}\times4.485\times 10^{-43}=2.993\times 10^{-53} $$  Now I want to do some calculations with this value. First of all, what is the orbital period of a circular orbit around the sun?  $$ v_0=\sqrt{\frac{G M_\odot}{r}} $$ $$ t = \frac{2\pi r}{v_0} $$  The initial velocity has been adapted so that the centripetal force equals the force of gravitation, so the orbit will be circular.  For $r=1$ I expected that the orbital period would be a couple of hundred days, since it takes about 365 days for the earth to circle the sun and one AU is the distance between the sun and the earth. However, when I do the calculation I get that $t=8.14462\times 10^{11}$. What did I do wrong?


Average performance for long term stock investors?

What's the average performance of long term stock investors in terms of % profit per year?  I want to know how I am doing compared to other people.  Is there such a statistic?


Trouble with unzipping files - Argument list to long

I have to gunzip all the files in folder (say Folder A), which has multiple folder hierarchy with files in each of them. This Folder A is present in thousands of folders in a directory. I need to gunzip all the files in all the folders. I'm trying below command: gunzip -r path/to/Folder/*/Folder_A/  and I get this error: Argument list to long. Please help me with the command to gunzip the files.


Why notify()/notifyAll() is really needed in Java threads

On below code, notifyAll() won't alter anything in the program execution. In my understanding , the wait() condition will wait on the t1 thread to finish (complete the run() method) and then continue.   In this case, with or without the notifyAll() the execution will be the same. Could someone clarify the difference in using it or not?  I'm using Java 8.  public class ThreadsTest {  public static void main(String[] args) throws InterruptedException {     Thread1 thread1 = new Thread1();     Thread t1 = new Thread(thread1, "t1");     t1.start();     synchronized (t1) {         System.out.println("Waiting for t1 to complete");         t1.wait();         System.out.println("Thread t1 finished, result = " + thread1.total);     } } }  class Thread1 implements Runnable {  int total; @Override public void run() {     synchronized (this) {         for (int i=0 ; i<100; i++) {             total++;             // Below line won't alter anything in program execution             //notifyAll();             try {                 Thread.sleep(20);             } catch (InterruptedException e) {                 e.printStackTrace();             }         }     } } }   Output in both cases will be:  waiting for t1 to complete  t1 finished, result = 100


I want to install an SSD in an iMac 2010. The thermal sensor has no place to install, and if I don't install it, fans will spin at maximum speed.  I read that I can disable the HDD thermal sensor by simply shorting the pins. Is that true?  edit: I shorted the pin and the iMac works great


How come this code compile in gcc and what is it actually doing?

In my work somebody did produce a code which is reduced as follow:  int main() {     int a[20];     a[3, 4];     return 0; }   the a[3, 4] compile without error and without warning on default gcc option. With gcc -Wall option it produce the following warning:  test.c: In function ‘main’: test.c:4:8: warning: left-hand operand of comma expression has no effect [-Wunused-value]      a[3, 4];         ^ test.c:4:5: warning: statement with no effect [-Wunused-value]      a[3, 4];      ^   I can also compile on clang.  Basically, i dont understand why this is compiling ? And what it is actually doing (i know a[3,4] return a pointer but that is all i understand). I have tried to look at the assembly code with the -S gcc option but i dont really understand its output (lack of x86 assembly knowledge).  EDIT: it actually does not return a pointer but a integer (mistake on my part)


It is a rather common practice that teachers prepare multiple  versions of a test for the same exam in order to reduce cheating. Can \LaTeX do this? I want to design a math test with a set of parameters that are randomly chosen from a given set to create problems that have same wording but different numbers (something that online homework systems do).   Is such a thing possible with any latex package? Is it possible at all?   A basic example is:  Produce 10 pages, each a with a copy of the following question  What is the sum $p+q$?   Where the program chooses and inserts $p$ randomly from the range 20 to 30 and $q$ from 50 to 60.


$f$ is analytic in the unit circle, except a simple pole. Prove that $\displaystyle \lim_{n\to\infty} |a_{n}|>0$

I'm learning complex analysis and encountered this question:  Denote $\mathbb{D}$ to be the unit circle. $f$ is analytic in ${\mathbb{D}}\subseteq U$ except a simple pole $z_{0}\in \partial\mathbb{D}$. Let $\displaystyle f=\sum_{n=0}^\infty a_{n}z^n$ be the Taylor representation of $f$ around $z=0$. Prove that $\displaystyle \lim_{n\to\infty} |a_{n}|>0$ and compute $\displaystyle \lim_{n\to\infty}\frac{a_{n+1}}{a_{n}}$.  My attempt: Write $\displaystyle f(z)=\frac{g(z)}{z_{0}-z}$ and using Taylor representations of both understand $a_{n}$ better. I got stuck though, so I would love some help. And follow-up questions: Can this be generalized to poles (not just simple ones)?


Looking at my phone charger:     Model LG MCS-02EP       Input 100-240 V, 50-60 Hz, 0.2A      Output: 5.0 V 0.85 A   That means input power from 20W to 48W and output 4.25 W. Thus, an efficiency in transfer of energy around 10% - 20%, losing up to 90% of the energy. It seems an illogical waste of energy.  I can assume 0.2A has a peak, but then same peak should be mapped to the output or must be consumed by the power adapter itself (when and where?)


Simple BODMAS question including bracket expansion

I am trying to understand what is seemingly basic arithmetic that is causing a divide amongst my colleagues  $$ 8÷2(2+2) $$  To me respecting the order of operations it would appear the answer is 16 while others say it is 1. The latter value is coming from a colleague is quoting the distributive property having implicit brackets and thus should be 8÷2×(2+2).  Apologies if this is too simple of a question for this exchange.


$\lvert K(\alpha_1,\dots,\alpha_n) : K \rvert$ is a divisor of $n!$

Let $K$ be a field and $f \in K[x]$ a polynomial of degree $n>0$. Assume that $E$ is an extension of $K$ such that $f$ can be expressed as a product of linear factors over $E$:  $$f(x)=\gamma (x-\alpha_1)(x-\alpha_2)\dots(x-\alpha_n).$$  I want to show that $\lvert K(\alpha_1,\dots,\alpha_2) : K \rvert$ is a divisor of $n!$. I also want to show that if $\lvert K(\alpha_1,\dots,\alpha_n): K \geq (n-1)!$ then $f$ is irreducible over $K$ or $f$ already has a root in $K$.  The problem has a hint. It says: "Use induction on $n=\deg f$. If $f=gh$ in $K[x]$ with $\deg g =r$ and $\deg h=n-r$, then $r!(n-r)!$ is a divisor of $n!$.  Any idea for solving this problem would be appreciated.


A verb for when we actively extract information from others?

Sometimes, others just inform us about things without us asking them, other times they do not do that even if we ask them. I want a verb for when others do not give us information — whether because they do not like to or they just don't give it, but we cannot directly ask them to — but we actively extract the information from them sometimes without them being aware of it.   So the word I am looking for shouldn't be only for cases where we coerce or force others to give us information, and it shouldn't be only for cases where others do not like to give us information.  Example:     I needed that information. But I couldn't ask her for it, or most   probably she would not give to me even if I asked her. So, I ....   the information I wanted.   It could be a phrasal verb and so not just a single word, but I couldn't devise a  blank suitable for all possibilities!   Two verbs I've already had but I think are not suitable:  to give someone the third degree   To prize something from/out of somebody


I need help with possessives: should this be [center + noun] or [center's + noun]?

At the beginning of the school year, students are required to take measures that will include the standard University Center’s assessment battery.   Should it be Center's or Center?


$x^3 +y^2 +z =100z+10y+x$ What is the largest and smallest integer that satisfies this equation.

$x^3 + y^2 +z=\overline{zyx}$, where $\overline{zyx}$ denotes the sequence of the digits.  $x^3 +y^2 +z =100z+10y+x$,where $x,y,z>0$  The maximum value of $x$, $y$, $z$ individually can only be $9$.  $\text{Maximum value}= 9^3 + 9^2 + 9 = 819$  So, $100z+10y+z<819$  Then I'm lost here a bit. What do I do next?


Coordinates heat map results are not the same as the shapefile

I have done with a heat map shapefiles as shown below. But the results of heat map coordinates are not the same as the coordinates of shapefiles. Is there a procedure that is wrong?


I'm a horrible noob at anything past mechanics, so please bear with me.  According to Einstein's theory of relativity (at least as it is known in "popular science" (lowercase)), mass-full objects can't move faster than the speed of light. They become infinitely massive which results in the F required to accelerate them to approach infinity.  Moreover, I heard, that according to his theory (not sure which one), one can choose any frame of reference for any physics calculation. If I decide, for whatever reason, that my nose is stationary and everything else moves relative to it all the physics would still work.  However, point 2 seems to contradict point 1.  I decide that my nose is the "stationary frame of reference". Then I twirl around in a circle at 60RPM. The stars are going to be going at more than $c$ (the sun will be moving at 939 474 627 996 meters/second (2*pi*1 AU/second) is around $3000 c$).  Why does this not work?


How to interpret coefficients from a logistic regression?

I have the following probability function:  $$\text{Prob} = \frac{1}{1 + e^{-z}}$$  where  $$z = B_0 + B_1X_1 + \dots + B_nX_n.$$  My model looks like  $$\Pr(Y=1) = \frac{1}{1 + \exp\left(-[-3.92 + 0.014\times(\text{gender})]\right)}$$  I understand what the intercept (3.92) means, but I'm now sure how to interpret 0.014. Are these still log odds, odd ratios, or can I now assert that for each incremental odds change is gender, females are 0.014 more likely to win than men. Basically, how am I to interpret the 0.014?   Basically, I want to take the probability function and actually implement it in Java for a specific program that I'm writing, but I'm just not sure if I'm understanding the function correctly to implement it in Java.  Java code example:   double p = 1d / (1d + Math.pow(2.718d, -1d * (-3.92d + 0.014d * bid)));


Apex Code Coverage: Test classes are included with 0% in overall code coverage calculation

We are making heavy use of stub and mock objects in our Apex tests. Most of the time we are defining the mocks as inner classes of our test classes. We have noticed, that test classes, which do contain such mock classes do show up at the Overall Code Coverage in the developer console. Such a test class does always have a code coverage of 0% and 0/zz lines covered.  I give a short example. Consider the following class of the business logic:  public virtual class Foo {      public virtual String doSomething() {         return anotherFunction('foo');     }      public virtual String anotherFunction(String value) {         return value;     } }   A typical unit test would look like the following:  @isTest private class FooTest {      private class FooMock extends Foo {         private Boolean anotherFunctionCalled;         private String value;          public override String anotherFunction(String value) {             this.anotherFunctionCalled = true;             this.value = value;              return 'test';         }     }      @isTest     static void testDoSomething() {         FooMock f = new FooMock();          String result = f.doSomething();          System.assertEquals('test', result);         System.assertEquals(true, f.anotherFunctionCalled);         System.assertEquals('foo', f.value);     }      @isTest     static void testAnotherFunction() {         Foo f = new Foo();          String result = f.anotherFunction('blah');          System.assertEquals('blah', result);        } }   The Overall Code Coverage shows the following:    Foo: 100% 4/4 Lines covered FooTest: 0% 0/2 Lines covered   If you click on Apex Classes/Estimate your organization's code coverage you will get the surprising result of 66.67% (4/(2+4)) code coverage, which will not allow you to upload this code as a package.  How can we make sure, that the test classes will not be considered at the coverage estimation?


Special characters in usernames making it hard to reply to comments on mobile?

Sometimes users have special characters in their usernames like this ϟ or this ƞ that make it hard to mension them in comments like to reply. Think there's a user with the username: Ligtningϟ. Is there any way to make this easier? If I'm on mobile I won't always be able to see the autocomplete popup and I won't be able to put in the special character? How can I then input the username?


When should I start charging my Lithium battery?

The comments in  say that I shouldn't wait until low battery charge level before I charge, because that reduces battery life (this is contrary to my understanding before that the faster we charge (without waiting for battery to discharge) the worse it will be for battery life). My question is, when I should generally start charging to avoid this effect? 20%?   Interesting question: If we always limit the usage of the battery only 20% and above, won't we, in effect, reduces our battery capacity to 80%, because we will only use the battery in 20%-100% state?


How to make keyboard work like OSX System Wide?

I switch back and forth between two computers constantly:   OSX Snow Leopard  Ubuntu 10.10    I'd like to be able to make Ubuntu use the same keyboard shortcuts as OSX System Wide, for the following keyboard sequences only (ie I don't want to make Ctrl act like Super)   Super+C -> Copy Super+V -> Paste Super+T -> Open a new tab in whatever browser I'm in.  Super+W -> Close a tab in whatever browser I'm in.    So in short, is there anyway for me to map just these keyboard sequences to the following, system wide ?   Super+C -> Ctrl+C Super+V -> Ctrl+V Super+T -> Ctrl+T  Super+W -> Ctrl+W   I know there are ways for me to do this for vim, and Firefox, and I'm sure specifically for most applications... but I would prefer to have to do this just once and have it work that way system wide!  I'm using a standard PC keyboard, that is "Generic 105 key (intl) PC" on Ubuntu. I'm also using the same keyboard on my Mac mini.


I am just curious to know the time taken by my system to boot. In Arch Linux there is something like systemd-analyze.  What is the alternative in Ubuntu?


Short example of regular expression converted to a state machine?

In the Stack Overflow podcast #36 (), this opinion was expressed: Once you understand how easy it is to set up a state machine, you’ll never try to use a regular expression inappropriately ever again. I've done a bunch of searching.  I've found some academic papers and other complicated examples, but I'd like to find a simple example that would help me understand this process.  I use a lot of regular expressions, and I'd like to make sure I never use one "inappropriately" ever again.


Option and Shift keys not working with some combinations, for example (Shift + Option + Command)

I have a 13' MBP 2012 (non Retina). The problem is that left Option and Shift keys are not working with some combinations.  For example Shift Option Command → would not select any text. I can't do a screenshot as well (Command Shift 3/4).   The problem is with a left side only. The right one works great. Also, if I'm using an external keyboard on it left side is working fine.   The keys work fine with a simple combination (Shift Enter) or Option something. That issue really put me in stuck, because it's so inconstant.  Does anyone face the same issue? As I can remember that behavior appears after I tried to re-assign those keys in Windows Bootcamp (maybe it's just an accident that happened at the same time and it's not actually related). From that time I changed the hard-drive an installed a clean version of latest macOS. The problem still persist.   Any ideas what to do? I don't really want to give it to local services because its price right now is about $400 but they asking $120 for a diagnosis. There are no Apple stores in my or near-by cities.


Is possible to compile a .tex document in .doc or .docx?

I'm with a really huge problem. I wrote all my thesis using LaTeX, but recently my supervisor ask me for the file for read and make some corrections in .doc or .docx  I don't know how to convert the .tex file in .doc without losing the format, the figure and tables quality, the equations.  Anyone has a suggestion?


Burnt 16.04 iso to disk. Won't boot to disk even though bios set to cd/dvd as 1st boot. Install folder on disk does not have installable file. Win7 Pro  system. Help please.


My question is about physical information and whether or not it is something real or merely fancy math. My problem is that physicists seem to talk as if information is real - however when they describe what it is they make it sound like it's merely a mathematical abstraction.  For example, if a bowling ball were to fall into a black hole, the physical bowling ball disappears from our universe completely - however (according to Hawkings) the bowling balls physical information is stored in two dimensions in the event horizon.  This is very similar to how the idea of information is used in the Universe is a hologram theory - in which our universe is a three dimensional representation of two dimensional information.  The question I have is: Is this information real or is it just mathematical BS? I mean, if my cat is merely the 3D representation of 2D information about my cat - then where is this information and what is it? Is it energy? Is it potential? Is it whatever determines whether or not a quark spins to the left or to the right? Or is it merely fancy math?


A problem with \draw, line weight and tikzpagenodes

I'm having a problem understanding the relationship between TikZ line width and its relation to tikzpagenodes.sty. (MacTeX2017, updated in the last week.) When I use tikzpagenodes.sty as shown below, the resulting line is drawn indented by the line width, which in turn causes an overfull \hbox by the amount of the line width. The problem goes away if I use remember picture,overlay but that puts the line immovably where I don't want it.  I'm sure I've missed something basic.  \documentclass{article}  \usepackage{tikzpagenodes}  \begin{document}  \parindent0pt  \noindent \begin{tikzpicture}[remember picture,overlay] \draw[line width=18pt] (current page text area.north west) -- (current page text area.north east); \end{tikzpicture}  \vspace{0.15in}  $\uparrow$ With \verb+\draw[remember picture,overlay]+   \vspace{0.5in}  $\leftarrow$ Left margin. With \verb+\draw[]+ $\downarrow$  \noindent \begin{tikzpicture}[] \draw[line width=18pt] (current page text area.north west) -- (current page text area.north east); \end{tikzpicture}   \end{document}


I just started the Office 2016 Setup/Installation on my Windows 10 PC. The installation worked fine and started automatically showing only this dialog:    But there are no additional settings possible! I need to choose which programs I want to install and also add additional tools that are often missing when doing a default installation.  How can I change the Office Installation Settings?   Choose programs to install Add/Remove Office Tools (Maybe) Office installation directory   When I check after the installation in the the windows settings, the Office can only be uninstalled - no modifications available:


Data set with high imbalance and extremely low frequency of the minority class

I have a binary classification data set with a very high imbalance of 15126 - 8. I've tackled a few data sets with very high imbalance, but the frequency of the minority class is so low here... Can someone give me a hint for a direction?


Problem with composite letters in section labels

Although there are some advices that deal with the warning message:     Composite letter `\textasciicaron+c'not defined in PD1 encoding   See here, for example:  It seems that I cannot get rid of these warnings if letters appear in section (subsection) labels (\section{Example: \v{s}}). Can anyone give me some advice?  My header contains:  \documentclass[12pt]{beamer} \usepackage[english,serbian]{babel} \usepackage[default,osfigures,scale=0.95]{opensans} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{tabularx}   And I also tried:  \documentclass[12pt]{beamer} \usepackage[english,serbian]{babel} \usepackage[default,osfigures,scale=0.95]{opensans} \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage{graphicx} \usepackage{tabularx}   Many thanks! PM  ===========================================================  MINIMAL EXAMPLE:  \documentclass[12pt]{beamer} \usepackage[english,serbian]{babel} \usepackage[default,osfigures,scale=0.95]{opensans} \usepackage[T1]{fontenc} \usepackage[normalem]{ulem} \usepackage{graphicx} \usepackage{tabularx} \usepackage{color} \usepackage{setspace} \usepackage{parskip} % \xdefinecolor{myStructureColor}{RGB}{51,158,51} \xdefinecolor{myAlertedColor}{RGB}{255,51,51} \xdefinecolor{myTextColor}{RGB}{60,60,60} \xdefinecolor{midGrey}{RGB}{180,180,180} \xdefinecolor{lightGrey}{RGB}{225,225,225} % \setbeamercolor{normal text}{fg=myTextColor} \setbeamercolor{structure}{fg=myStructureColor} \setbeamercolor{alerted text}{fg=myAlertedColor} \setbeamercolor{section in toc}{fg=myAlertedColor} % \setbeamerfont{structure}{shape=\scshape} \setbeamerfont{section in toc}{shape=\scshape} % \setbeamertemplate{itemize item}     {\includegraphics[width=0.06in]{backbulls/bulettA}} \setbeamertemplate{itemize subitem}     {\includegraphics[width=0.05in]{backbulls/bulettB}} \setbeamertemplate{itemize subsubitem}     {\includegraphics[width=0.05in]{backbulls/bulettC}} % \AtBeginSection[] {\begin{frame}     \frametitle{Sadr\v zaj}     \tableofcontents[currentsection] \end{frame}} % \setlength{\parskip}{1ex} % \title{Slo\v zeni linearni modeli} \date{\tiny{februar 2014. godine}} %  \begin{document}  \begin{frame} \begin{spacing}{2} \titlepage \end{spacing} \end{frame}  \section{Ve\v zba}  \begin{frame}[fragile] \frametitle{Works} previous section label works fine... \end{frame}  \section{\v Cinjenica}  \begin{frame}[fragile] \frametitle{Does not work} previous section label does not work... \end{frame}  \begin{frame} \vspace*{4\baselineskip} \begin{center}     {\LARGE{K~~~R~~~A~~~J}} \end{center} \end{frame}  \end{document}


Transforming positively skewed data with positive and negative values

My data (see image below) is positively skewed and contains both positive and negative values. I'd like to transform it to achieve normality so I can apply a repeated measures ANOVA, but can't find a technique that works.  I've considered the following options:   Square-rooting: doesn't keep the sign Square-rooting then making the original negative values negative: makes my data bimodal Natural log transform: can't do this with negative values Add a constant then log transform: this arbitrarily leaves my lowest value as an outlier '' transform (Cox, 2005; also Whittaker et al. 2005): makes my data bimodal Outlier removal (2.5 SD): doesn't fix normality, but an ANOVA on this data has similar results to an ANOVA on the raw data (for better or worse). Perform the non-parametric equivalent (Friedman test) and compare the results: will do this today   My supervisor suggests I should stick with the outlier removal though the data is still visibly skewed, and 'see what the reviewers suggest' but I just wanted to check here in case there was anything I was missing.  Original data:    With outliers (2.5 SD) replaced with the value at that criterion. I later decided to just exclude the outliers, so imagine the highlight data points in each condition removed.


The space between the numbering of the subsections and their titles in TOC

I wonder why the space between the numbering and the titles for those sections starting from 10 is less than the space for those sections between 1 and 9. I want it to increase since the numbering seems too close to the titles. How should I achieve it ?. I searched and asked many times about this problem but I got no a useful solution. I just use the command \tableofcontents in my article documentclass. Here is a screenshot of what I meant.     I appreciate any help, and I hope my question not to be marked as duplicate because I did not get any benefit from any other like questions.   This is what I use:   \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{footskip=15pt} \usepackage{amsmath}  \usepackage{tocloft}  \begin{document} \tableofcontents \end{document}


Did I "get" (or "take") my degree "from" (or "in") the University of Somewhere?

I would like to know what is the preferred way to indicate that I took a degree in some subject while also naming the place where I obtained the degree from:   I got my master's degree from the University of Somewhere; I got my master's degree in the University of Somewhere; I took my master's degree in the University of Somewhere.   I would say that "in" is more suitable to mention the particular subject (a degree in maths, for instance) than to indicate the place, but I still have doubts.  By the way, is it a "master's degree" or a "Master's degree"?


Why latest version of packages in Synaptic is different from developers website?

I found that latest version which is determined in Synaptic Package Manager is older than what is on developer web site. It is different from latest stable versions as well, and even after 2 (or sometime 6) months the version in synaptic is not updated. Why this difference occurs? And is there any way that update latest version for all packages in Synaptic?


Malicious site using "stackoverflow.com" as subdomain

I am not sure if this is the right place to post this but I am unaware  of any other stack to get such issue into notice.  I came across this site today from google search  Which mirrors SO site. Thought its better to get this into the SO team's notice.


I would like to import JPG file into my document in LaTeX. The code below works but only for EPS files, but I need JPG. How can I fix it?  \documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics{image} \end{document}


amsbook \ref: how to include chapter number selectively?

I am writing a book using the amsbook style. I would like references to formulas and theorems to appear without chapter numbers when I cite within the chapter, and with them otherwise. For example, I want  ... see (3.2) ... [if that equation is in the same chapter]  and  ... see (II.3.2)... [if this appears in, say, Chapter IV but the equation is in Chapter II]  Is there an easy way to do this? I can do it now by writing (\ref{ChapterII}.\ref{3.2}) in the latter case, and just (\ref{3.2}) in the former but I wonder if there is an automatic way of doing it.   EDIT: I saw the linked answer - but that does not work with amsbook! Any idea?  ======= Here is an example based on the linked one. It works (without eq. numbers) but it does not with amsbook!    ===============    \documentclass{book}  \% does not work with amsbook   \usepackage{ntheorem}   % From your post I assume you have settings like this: \renewcommand*\thechapter{\Roman{chapter}} \newtheorem{mytheo}{MyTheo}[chapter]  % Redefine the format of the theorem number: \renewcommand*\themytheo{% \protect\maybechapter{\arabic{chapter}}\arabic{section}.\arabic{mytheo}% }  % May print the chapter number \newcommand*\maybechapter[1]{% % Tests if current chapter is equal to the chapter number of label) \ifnum\value{chapter}=0#1\relax  % Print nothing if so \else  % Set 'chapter' locally (=> no \setcounter) to the label chapter and  % print it in the usual format followed by a dot  {\value{chapter}=#1\relax\thechapter.}% \fi }  % Test document: \begin{document} \chapter{One} Here \ref{theo:11}  % prints "1.1" and there \ref{theo:21}. % print "II.1.1"   \section{Section1} \begin{mytheo}\label{theo:11} \begin{equation}\label{11} x^n+y^n=z^n \end{equation} \end{mytheo} The eq. number should be (1.1) (section.eq).    \section{Section 2} \begin{mytheo} Theo1-2\label{theo:12} \end{mytheo}   \chapter{Two} There \ref{theo:11}  % prints "I.1.1" and here \ref{theo:21}. % print "1.1"  \section{S1} \begin{mytheo} Theo2-1\label{theo:21} \end{mytheo}  See (\ref{11}) for more details. I expected (I.1.1).   \end{document}


I have recently downloaded Ubuntu 20.04.1 LTS from   instead of .iso file it gave me a zip. Where can I find the .iso file?


Dynamically inserting rows in HTML table with JQuery that cannot be targeted

I am having trouble targeting rows newly created by hitting "Enter" with the code below. If I felt so inclined, I would like to keep hitting "Enter" to create new rows; however, hitting enter twice will only produce a maximum of one new row (from the original HTML rows). In attempt to debug the situation, I used a click event listener to console log the nodes associated with the table and found it odd that there are text nodes in between every row from the native HTML; however, these text nodes are not dynamically generated with every new row. Are these text nodes required for an HTML table to function properly?  <!DOCTYPE html>       <meta http-equiv="content-type" content="text/html; charset=UTF-8;charset=utf-8">               <title>Title</title>

                 <input type="checkbox" name="checklist-list" class="checkbox-box">	                 Item

                 <input type="checkbox" name="checklist-list" class="checkbox-box">	                 <input class="input-item" type="text" value="Artificial">

                 <input type="checkbox" name="checklist-list" class="checkbox-box">	                 <input class="input-item" type="text" value="Broken">

                 <input type="checkbox" name="checklist-list" class="checkbox-box">	                 <input class="input-item" type="text" value="Casual">


Should deleted posts be used for review audits?

I reviewed  in the First Posts queue.  Which said      i changed it to 'localsystem' and done. thanks much   So it obviously was a potential low quality post. But sometimes such answers can be spot on, so I checked it out, better safe than sorry. I turned out the post had been deleted. Great! So I clicked "No action needed". Then I got this:    You can imagine I felt "wrongfully accused".  I think that deleted posts should not be used for review audits, because the meaning of "No action needed" is not clear in this context.


I have an array in this format:  Array (     [0] => Array         (             [28th February, 2009] => 'bla'         )      [1] => Array         (             [19th March, 2009] => 'bla'         )      [2] => Array         (             [5th April, 2009] => 'bla'         )      [3] => Array         (             [19th April, 2009] => 'bla'         )      [4] => Array         (             [2nd May, 2009] => 'bla'         )  )    I want to sort them out in the ascending order of the dates (based on the month, day, and year). What's the best way to do that?  Originally the emails are being fetched in the MySQL date format, so its possible for me to get the array in this state:  Array [     ['2008-02-28']='some text',     ['2008-03-06']='some text' ]   Perhaps when its in this format, I can loop through them, remove all the '-' (hyphen) marks so they are left as integars, sort them using array_sort() and loop through them yet again to sort them? Would prefer if there was another way as I'd be doing 3 loops with this per user.  Thanks.  Edit: I could also do this:  $array[$index]=array('human'=>'28 Feb, 2009',                    'db'=>'20080228',                    'description'=>'Some text here');   But using this, would there be any way to sort the array based on the 'db' element alone?  Edit 2: Updated initial var_dump


What is $\lim_{n\to \infty}\sum_{k=1}^n \left(\frac{k}{n}\right)^n$?

I'm asked to find $\displaystyle\lim_{n\to \infty}\sum_{k=1}^n \left(\frac{k}{n}\right)^n$.  It seems that the sum converges.  I managed to prove that $\forall n,1<\sum_{k=1}^n \left(\frac{k}{n}\right)^n<e$  But I don't know how to prove convergence, nor find the value of the limit.


How to get the Runtime-Type of an Object dynamically (for Primitive Data Types and SObjects)

Is it possible to get the Type of an Object (it's not an SObject)?  String s = 'test'; doSomething(s);  public static void doSomething(o Object) {     // need to find out if o is a string or an integer     type = IsThereAMethodToGetTheTypeOf(o) // ?     if(type='String') {         // do something for strings here ....     } else {         // do something else ....     } }   I think the Type class can't help me, because it has no way to get the type of an existing object instance, right? Any there any other way?  Since there is most likely no perfect solution possible within the current platform limitations, I posted an Idea on IdeaExchange here:   For SObject I have already this  public static string getType(SObject obj) {     if(obj==null) return '';     return obj.getSObjectType().getDescribe().getName()+''; }


I've already checked this out, but it doesn't help, since I already applied the solution suggested.    Here's what I have; there's no fill despite it being constrained to 2d and the fill option being selected. Not sure if this is relevant, but it was originally modeled on the XZ axis, but I rotated it onto the XY one. I made sure the curve was closed as well (toggle cyclic doesn't solve the problem). Help would be appreciated.


Notions of strong and weak convergence for $L^{2}(\mathbb R, \lambda)$ where $f_{n}(x)=1_{[n,n+1]}(x)$

Let $(f_{n})_{n} \subseteq L^{2}(\mathbb R, \lambda)$ where $f_{n}(x)=1_{[n,n+1]}(x)$. Investigate:   $1. \lambda-$a.e. convergence  $2. $ weak convergence  $3.$ strong convergence  My ideas:  $1.$ for any $ x \in \mathbb R$ $\exists N \in \mathbb N$ namely where $N \geq x$ so that $f_{n}(x)=0$ for all $n \geq N$, thus $(f_{n})_{n}$ converges pointwise and further will then converge $\lambda-$a.e. to $0$  $2.$ Let $\epsilon > 0$. Since $L^{2}$ is a Hilbert space, we can identify the dual of $L^{2}$ as $L^{2}$ itself. And rather than taking $\ell \in (L^{2})^{*}$, we will take $g \in L^{2}$. But now do I show convergence according to the $L^{2}-$norm? I assume $f=0$ is a good candidate. $\vert \vert f_{n}g-fg\vert \vert_{2}=\vert \vert (f_{n}-0)g\vert \vert_{2}=\vert \vert f_{n}g\vert \vert_{2}=\int_{[n,n+1]}g^{2}d\lambda$ but since $g \in L^{2}$ we can choose an $ N \in \mathbb N$ so that $\int_{\vert x \vert > N}g^2 d\lambda<\epsilon$. Now $\forall n \geq N$: $\vert \vert f_{n}g\vert \vert_{2}=\int_{[n,n+1]}g^{2}d\lambda \leq \int_{\vert x \vert > N}g^2 d\lambda<\epsilon\Rightarrow f_{n}g\xrightarrow{L^{2}}fg \Rightarrow f_{n} \xrightarrow{w} f$  $3.$ $\lambda-a.e.$ convergence does not imply strong convergence. How do we find an ideal candidate for strong convergence? I'd assume it'd be $0$ but I am not sure how to go about it. I'd say $f_{n} \leq f_{n+1}$ for all $n \in \mathbb N$ and $\lim_{n \to \infty} f_{n}(x)=0$ for any $x \in \mathbb R$.  Thus by monotone convergence theorem: $\lim\limits_{n \to \infty}\int_{\mathbb R}\vert f_{n}-0\vert^{2} d\lambda=\lim\limits_{n \to \infty}\int_{\mathbb R}\vert f_{n}\vert^{2} d\lambda=\int_{\mathbb R}\lim\limits_{n \to \infty}\vert f_{n}\vert^{2} d\lambda=0$  Any corrections?  My questions:  I am interested in the interplay between the above three notions of convergence:   I know that strong convergence (in this case $L^{2}$ convergence) implies weak convergence but has no relationship (in terms of implications) to $\lambda-$a.e.. But in general, is the pointwise limit of a sequence of functions a good choice for convergence of $(f_{n})_{n}$ in $L^{2}$ ? And more importantly, is the pointwise limit the only possible limit in $L^{2}$. In other words, can I have $f_{n}(x) \xrightarrow{n\to \infty} f(x)$ for all $x \in \mathbb R$ but there is a $g \neq f$ so that $f_{n} \xrightarrow{ L^{2}} g$. Does the converse also hold?