Null pointer exception when attempting to parse string into java.util.date

Image of step into for saveEmployee method:  I am learning Spring+JDBC, and trying to get SQL date-datatype into Java as java.util.Date or java.sql.Date object, and running into null pointer exception.  Code in the main method for inserting data into Employeetabke that causes exception:  //the following parses date string into java.util.date     ApplicationContext ctx = new ClassPathXmlApplicationContext("spring.xml");     EmployeeDAO empDao = (EmployeeDAO)ctx.getBean("employeeDao");     Employee employee = new Employee();     employee.setName("Robert");     //the following parses date string into java.util.date     employee.setJoining_Date((new SimpleDateFormat("MM/dd/yyyy")).parse("12/30/2016"));     employee.setSalary(200);     employee.setsSN("837463");   Definition of the setters in Employee.java model class:  import java.sql.Date  public void setJoining_Date(java.util.Date joining_Date) {         this.joining_Date = new java.sql.Date(joining_Date.getTime()); } public void setJoining_Date(Date joining_Date){         this.joining_Date = joining_Date; }   Method:  public void saveEmployee(Employee e){     this.jdbcTemplate.update(this.employee_insert, new Object[]{e.getName(), e.getJoining_Date(), e.getSalary(), e.getsSN()});     }   Exception:  Exception in thread "main" java.lang.NullPointerException     at com.springdao.EmployeeDaoImpl.saveEmployee(EmployeeDaoImpl.java:49)     at com.springclient.EmployeeExec.main(EmployeeExec.java:28)   Please also advise about best practices regarding implementing such code.  Spring.xml:  <beans xmlns="http://www.springframework.org/schema/beans"             xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"             xsi:schemaLocation ="http://www.springframework.org/schema/beans             http://www.springframework.org/schema/beans/spring-beans-                2.0.xsd">      <bean id ="dataSource" class               ="org.springframework.jdbc.datasource.DriverManagerDataSource">       <property name ="driverClassName" value ="com.mysql.jdbc.Driver"/>       <property name ="url" value ="jdbc:mysql://localhost:3306/branch_db"/>       <property name ="username" value ="root"/>       <property name ="password" value ="root"/>     </bean>      <bean id ="jdbcTemplate" class                      ="org.springframework.jdbc.core.JdbcTemplate">       <property name ="dataSource" ref ="dataSource"/>     </bean>      <bean id ="employeeDao" class  ="com.springdao.EmployeeDaoImpl">       <property name ="jdbcTemplate" ref ="jdbcTemplate"/>     </bean>  </beans>


CMD Command to Shutdown PC AND do updates

We have some Win7 Machines that don't use the shutdown Button but a custom Tool that checks for online PCs and shuts down the NAS if it is the last one online. Everything works fine but I use the command Process.Start("shutdown", "/s /t 0"); to shutdown the pc and it seems that this ignores pending updates. This results in the PC automatically shutting down some day while doing important stuff without saving.  Question how can the command be modified to do updates and shutdown instead of just shutting down. The cmd command would be enough, I can translate that into C# with no problem.  Sorry if this was asked multiple times but I need to be absolutely sure that my changes work...


Importing coordinates from Google Maps as CSV into QGIS, but points are displaying in wrong location

I'm using QGIS and am trying to import coordinates pulled from Google Maps as CSV but they are displaying in the wrong location. They should be showing up in CA, however they are only displaying in the ocean off the west coast of Africa. I have tried changing projections and CRS but nothing so far has worked.


Running cmd commands and getting results to a string variable

How to run a cmd command, and getting the output to a string variable? Example:   string result = ExecuteFunction("ipconfig");   Now "result" contains:  Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix  . : ......   This shuld be happening without showing any cmd screen, all from the program. Windows platform of course.


It is true that an irrational number to the power of an irrational number could be rational. I am curious about the following:  Are there conditions that imply irrational to the power of irrational will be rational ?


Call shell script using objective-c - NsTask

I have been working on a command line tool in swift but due to excessive size of the executable(around 10 mb) I need to re-write it in objective-c.  Now I am not a fan of objective-c, thanks to it's lengthy syntax. So I have this function which I use to call my shell script and return the output. Can some please convert this into objective-c, I am having a hard time.  func shell(_ args: String) -> String {     var outstr = ""     let task = Process()     task.launchPath = "/bin/sh"     task.arguments = ["-c", args]     let pipe = Pipe()     task.standardOutput = pipe     task.launch()     let data = pipe.fileHandleForReading.readDataToEndOfFile()     if let output = NSString(data: data, encoding: String.Encoding.utf8.rawValue) {         outstr = output as String     }     task.waitUntilExit()     return outstr }   then I call this method in swift something like   let shellOutput = shell("sh \(scriptPath) \(arg1) \(arg2)")   before you mark it duplicate or post answers, I really need the shell script output in some variable.


I have only Ubuntu operating system in my DOS system.  I have only one partition which is around 475 GB. I want to make three partitions of 150 GB, 100 GB, and the rest. How can I do that?


How do I remove the Cmd+Shift+I shortcut?

Command+Shift+I launches the Mail app (which can't be removed), but I can't find that shortcut in System Preferences -> Keyboard -> Shortcuts.  Where does that shortcut come from, and how can I remove it?


What's the best GR book for recreational study?

I currently have four books.   Hartle Schutz Cheng Carroll (lecture notes)   Which one is best for me to read easily? (especially, for foreigners)  Or Do you guys can give good recommendations that are written with easy english?


Does rel='alternate' have to show protocol

I'm using rel='alternate' like this:     http://example.com/_spanish/index.htm'   hreflang='es'   Is it acceptable to leave out the HTTP protocol and use  link rel='alternate' href='//example.com/_spanish/index.htm' hreflang='es'  Thank you


how to? pivot editor camera around object

How do you rotate around an object with the editor camera instead of orbiting around the center of the scene (middle mouse button).


Ubuntu touchpad issues - mouse pointer jumps around

I am having major issues with Ubuntu touchpad on a Dell Latitude 3570 Laptop.  If I use a USB mouse, everything works fine, but if I use a touchpad it is very hard to control.  For example, if I want to click on something that is in the middle of the screen, I click, but for some reason Ubuntu THINKS I have clicked at the bottom Left-Hand corner of the screen, and thus opens the rubbish bin.  It is REALLY making me angry.  I read somewhere that the following changes to synclient would fix it:  synclient FingerLow=9 synclient FingerHigh=10   These don't work.  And in any case as soon as I reboot the machine, synclient resets back to defaults (FingerLow=25, FingerHigh=30), so even if they did work I would have to set them every time I rebooted the machine!  Is there anything else I can try?  This is driving me insane.  For the sake of my sanity, please help me before I smash up my laptop.  As requested, xinput list gives me the following:  ⎡ Virtual core pointer                           id=2   [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ⎜   ↳ DLL06F3:00 06CB:75DA Touchpad             id=12   [slave  pointer  (2)] ⎜   ↳ SynPS/2 Synaptics TouchPad                id=14   [slave  pointer  (2)] ⎜   ↳ USB Optical Mouse                         id=17   [slave  pointer  (2)] ⎣ Virtual core keyboard                         id=3    [master keyboard (2)]    ↳ Virtual core XTEST keyboard                id=5    [slave  keyboard (3)]     ↳ Power Button                              id=6    [slave  keyboard (3)]     ↳ Video Bus                                 id=7    [slave  keyboard (3)]     ↳ Video Bus                                 id=8    [slave  keyboard (3)]     ↳ Power Button                              id=9    [slave  keyboard (3)]     ↳ Sleep Button                              id=10   [slave  keyboard (3)]     ↳ Integrated_Webcam_HD                      id=11   [slave  keyboard (3)]     ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]     ↳ Dell WMI hotkeys                          id=15   [slave  keyboard (3)]     ↳ DELL Wireless hotkeys                     id=16   [slave  keyboard (3)]


Proving with epsilon for a continuous function

Let f be a continous function in the section $[0,1]$. $f(x)>x \ \ \forall x\in[0,1]$. Prove that $\exists\epsilon>0 \ s.t \ f(x)>x+\epsilon :\ \forall x\in[0,1]$  From $f(x)>x$ I know that f is monotone increasing. So $\forall \delta>0 \ |x-y|<\delta$ and $\forall \epsilon>0 \ |f(x)-f(y)|<\epsilon$. Though I have a feeling that this doesn't involve delta. How should I continue from here ? Maybe this have something to do with intermediate value theorem ?


Is there a difference between the terms statistical learning and machine learning?

Quick question I guess, but is there a perceivable difference between the terms Statistical Learning and Machine Learning, or is it simply area jargon? I gather the computer scientists like to refer to machine learning while statisticians might refer to statistical learning (no less influenced by the ).    This motif repeats across other questions in the site as well, with many questions like "what's the difference between machine learning and something else", but I'd like to have this one specifically answered (with some references if possible) to solve the possible merge of the terms.  This question is rooted in a recent question on meta regarding , where SL and ML were agreed to be made synonyms ().    Quoting my answer:     Perphaps the difference is simply cultural, like many discussions in   the main site pointed. Consider Stanford, where two courses are   taught: / - Statistical Learning and  - Machine Learning. Apart from being named different and being   in different concentrations areas, they also attract different   students.       comparing both   courses and then both terms:           Machine learning research focusses more  on low noise situations, eg      engineering applications like robotics and physical sciences          Statistical learning focusses  more on high noise, observational data     like medicine and genomics, and problems where interpretation of the     fitted model is important          But more and more overlap in application areas!


Should I use "these" or "those" to refer to previously mentioned arguments? I can give some context:  Paragraph 2: Argument A  Paragraph 3: Argument B  Paragraph 4: Argument C  Paragraph 5: For th_se reasons I would like to apply to this scholarship, since.......


Ever since I started using Linux in dualboot with Windows I noticed that when I rebooted the machine, the time on the other OS was wrong, e.g. it was 12:00 on Linux, then I rebooted and on Windows it was 18:00, and when I checked the BIOS, the RTC was set to 18:00. Since my timezone is -06:00 CST I assume Linux just sets the RTC’s time to UTC and re-calculates the time based on the timezone, whereas Windows just sets the RTC to the local time. Both use the same NTP server to sync the time.  The question is, which one is doing the right thing? On which one should I set the timezone setting to UTC in order to have the right time on both?


Conditions for $e^X$ to be an orthogonal matrix

If $X$ is a skew-symmetric matrix, its exponential $e^X$ is orthogonal. Does the converse implication hold?


Is it ok to use a 1500mAh battery when it calls for a 1100mAh

The book for the Ge x600 says 3.7v 1100mAh but all I can find is 3.7v 1500mAh.  Can I use that in my GE x600 camera


"CREATE INDEX" Background process in SQL Server

While analyzing our environment, I've noticed a recurrent blocking that usually happens around the same time, our monitoring tool says the blocked process is a "CREATE INDEX", however, the index maintenance is not in-progress when the issue arises. Looking at the details, the command seems to be running in the background.    Has anyone seen this background task before? I'd like to understand how/why this happens. I've looked it up and could not find much information.  I don't have automatic tuning enabled, also this is a small data mart, the ETL process doesn't include any index create statement. When I look at the blocking history, I can't really see what was the complete statement, it doesn't show plan handle or anything. I'm guessing it's an internal process as the SPID is below 50.   There is a similar thread here:


I am writing a text where the editor suggested to close all the definitions with a diamond.  So I was wondering, is there a easy way to automatically add a command to all the \end{definition} ? I looked the documentation of \theoremstyle, but it does not really seem to help.  Here is a working example where I did it manually...  \documentclass{article}  \usepackage{amssymb} \usepackage{amsthm} \theoremstyle{definition} \newtheorem{definition}{Definition}[section]  \newcommand{\xqed}[1]{%    \leavevmode\unskip\penalty9999 \hbox{}\nobreak\hfill    \quad\hbox{\ensuremath{#1}}} \newcommand{\Endofdef}{\xqed{\lozenge}}  \begin{document}  \begin{definition} (Stack Overflow) Stack Overflow is a privately held website, the flagship site of the Stack Exchange Network, created in 2008 by Jeff Atwood and Joel Spolsky, as a more open alternative to earlier Q\&A sites such as Experts Exchange.\Endofdef \end{definition}  \end{document}


Hide footer Url while printing page from chrome

I have a site which will print the whole page in chrome browser.  function do_print(){       window.print();   }


Prove that $\{X \in P(Z)| X \text{ is finite}\}$ is enumerable.

I am not sure how to approach this problem. if you could help it would be great.


How to set the default font in LibreOffice Calc?

How do you set the default font used in new documents of LibreOffice Calc? I am using LibreOffice 3.3.2.  Some answers below have been updated for LibreOffice 4 as well.


The average value of a list, in chunks of 100 items

I have a text file in which I have, for example, 1084 elements. I list them.  import csv a = [] with open('example.txt', 'r') as csvfile:     file_name = csv.reader(csvfile, delimiter='\t')     for row in file_name:         a.append(int(row[1])) print(a)  [144, 67, 5, 23, 64...456, 78, 124]   Next, I need to take the average of every one hundred elements of the list, average the last 84 elements and bring it to a new list. How exactly can I do this? Maybe with numpy?


I find that I have unpleasant spacing between the equals sign and (e.g.) the exponential function in this particular case, while using the align environment. I have a long expression which has to be split up in multiple rows. The alignment character & appears to gobble up all space when it comes after the equals sign. How could I remedy this while still preserving the plus sign alignment below?   Ideally, I would like to have the second row from the first equation, and the first row from the second equation.    \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} % bad spacing at first row, but correctly placed second row     2 \cosh t =& e^t \\             &+ e^{-t}  \end{align} \begin{align} % good spacing at first row, but incorrectly placed second row     2\cosh t &= e^t \\             &+ e^{-t}  \end{align} \end{document}


Script - Write stdout and stderr to a file AND to the terminal without pipe

I don't know if it's possible,   I would like start a bash script without pipe which write everything to a file and at the same time see the output on the terminal.  So I know how to do that with this command :   ls -l |& tee test.log   How can I create this file directly from a line in my script and not using a pipe ?


Expectation value of $\frac{1}{r^2}$ of hydrogen atom

I'm studying on the derivation of $\left\langle \frac{1}{r^2} \right\rangle$ by using the book . The derivation in the book is as follow:  I can understand the rest of the derivation but I'm stuck at equation (6.223) as I don't understand how the integrals is equal to zero, I tried to evaluate the partial derivative of the equation but the problem becomes more complex. Is there any way to prove the integral is equal to zero? Edit: I know there is  to evaluate the value of $\left\langle \frac{1}{r^2} \right\rangle$ without involving complex integral. I just don't understand the calculation part of this method.


I don't know what this error means:  Exception in thread "main" java.lang.NullPointerException     at Untitled.main(Untitled.java:16)  class Untitled {  public static void main(String[] args) {      int x=3;      int y=5;      double d=0;      int[][] route = new int[][]{       { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 },       { 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 },       { 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 },       { 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 },       { 41, 42, 43, 44, 45, 46, 47, 48, 49, 50 }     };      int[][] distance = new int[10][];      for (int i=0;i<route.length;i++) {         for (int j=0;j<route[0].length;j++) {             distance[i][j]=route[i][j]-x;         }      }   } }


Can we express any positive real number with arbitrary precision using a ratio of two prime numbers?

Although the question might look trivial at first because there are infinitely many prime numbers and for example the ratio of two near prime numbers tends to $1$ at infinity, there is still a point that is missing.  If we define the set $S=\{\, \frac{p_{i}}{p_{j}}\mid i,j\in\Bbb N\,\}$ where $p_i$ is prime number $i$, is it dense in the set of non-negative reals?  If it is, as much as it looks (prevalently) obvious, I am not sure about which precise property is ensuring this, as neither the infinitude of primes nor the limit of ratio of two successive primes reaching $1$ (which is a theorem on its own) looks sufficient individually.  I could imagine something like: the rational set has this property and we can replace each rational number with a ratio of two primes to any desired precision. But, can we?  Maybe I am missing something, but it is not obvious whichever way I look at it.  Theorem that is expected is like:  If $\frac{r_{1}}{s_{1}}>\frac{r_{2}}{s_{2}} > 0$ then there are always two prime numbers $p_{m}$ and $p_{n}$ so that $\frac{r_{1}}{s_{1}}>\frac{p_{m}}{p_{n}}>\frac{r_{2}}{s_{2}}$  if that is to work.


Proof involving homomorphism between Z^n and an abelian group

Let $(e_1, ..., e_n)$ be the standard $\Bbb Z$-basis of $\Bbb Z^n$. Let $x_1,..., x_n$ be elements of an abelian group $G$.   I want to prove that there exists a homomorphism $f$ $:$ $\Bbb Z^n$ $\rightarrow$ $G$ such that $f$$(e_i)$ $=$ $x_i$ for all $i$ $\in$ $\Bbb N$.   Please help me..


What is the difference between bandwidth and download speed

I have an internet connection that provides a bandwidth of  256 kbps. However, when I download a file, the downloading software displays numbers like 30 kbps, 40 kbp etc. and keeps changing. I have never seen it showing 256 kbps.  What I want to know is that even though I have a connection which has 256 kbps bandwidth, when somthing is being download it doesn't use the full 256 kbps bandwidth.  I want to know what do the numbers 30 kbps, 40 kbps indicate ? Do they indicate speed. Please help me to understand this.


Moving email from Thunderbird to Outlook

IS there a quick and easy way to move 3 years worth of emails from Thunderbird to Outlook 2016?  The email is setup as POP3.   So far my only idea has been to create or some how setup the same account as IMAP let the emails sync back up and then let them sync back down in Outlook.  Sounds painful but I am trying to avoid spending money on an application that may or may not work.


Find $\lim_{n\to\infty}{\sqrt{n+1}-\sqrt{n}}$ with basic methods

I need to find simple limit: $$\lim_{n\to\infty}{\sqrt{n+1}-\sqrt{n}}$$  I can't use L'Hôpital's rule, which I think is natural for such problems. How to calculate such limit using only basic methods (definition and simple transformations etc.)?  It's one problem (from 50 problems) I don't know how to solve from my homework.  Thanks for help.


Boost microphone volume on windows vista over max

I quite literally made an account on here to post this question. I've already tried the standard settings such as the slider that boosts your volume by 30% and I've maxed ALL the mic controls on both Steam and windows so is there a way to get more out of it because my friend can never seem to hear me well despite my having turned my settings TO THE MAX! Is it possible without purchasing new hardware or is there some software I could use? Thanks very much,       Clarinetking


Referencing references that reference references? How deep do you need to check for "accuracy"?

This is a problem that I figured lately. Say that you reference a text that references other texts. How far must a new reference check that the earlier references are "accurate in information"? Is it possible that "lousy referencing" leads to "webs" of referencing that "blurs" some of the more original results there due to ambiguous referencing? When does one know that one can rely on a reference?


Incorrect site icons on Hot Network Questions

The questions listed under Hot Network Questions each have a little icon representing their exchange (a "P" for "Parenting", a speech bubble for "Meta", etc.) -- but recently these icons are all mixed up! For instance, a question from "Outdoors" might have the piggy-bank icon from "Money" on it. This is only for some exchanges, though (I haven't compiled a list of affected sites).  Who do I tell, if not you guys?  In Meta and Parenting, it seems to be working:    In UX, Workplace, and stackoverflow.com, it's broken:


Please add an option to search posts I have voted on

When I vote up questions or answers, I'm not only increase poster's reputation but also saving a link to the post in my profile — the "Votes" tab shows all posts I have voted on, so it's possible to view the posts again without searching.  But finding the needed answer is uncomfortable when the number of posts voted on is too large.  Please add an option to search in my voted posts.  Adding a new  would be easier. But I think that a filter in the "Votes" tab will be more comfortable (at least for me). Also this filter could be used in other tabs in the profile, e.g. the "Answers" and "Questions" tabs.


Paraphrase "Dusk closed across the house, sweeping its long shadows over the plain"

Dusk closed across the house, sweeping its long shadows over   the plain, the horizon merging into the sky.   I cannot conceive what it looks like.  Are close and sweep used figuratively here? And are across and over used interchangeably here?


CMake Linker: Undefined reference even though library is linked

I am using CMake (CLion) for a class project. I have tried the following solutions but they did not work: , , . I made a HeapSort class for a class project and I need to use it to sort a vector of strings (a dictionary). I create an instance of my HeapSort class in this dictionary as so: void Dictionary::heapSort() {     Heap<std::string> h;     stringDict = h.heapSort(stringDict); }  I keep getting an undefined reference to the constructor and the heapSort() function, where the class is defined as follows (heapSort() is similar): Heap.cpp #include "Heap.h" template <typename T> Heap<T>::Heap() {}  template <typename T> void Heap<T>::initializeMaxHeap(std::vector<T> v) {     heap = v;     heapSize = heap.size(); }  template <typename T> void Heap<T>::maxHeapify(int i) {     int l = left(i);     int r = right(i);     int large;     if (l <= heapSize && heap.at(l) > heap.at(i))         large = l;     else         large = i;     if (r <= heapSize && heap.at(r) > heap.at(i))         large = r;     if (large != i)     {         std::swap(heap.at(i), heap.at(large));         maxHeapify(large);     } }  template <typename T> void Heap<T>::buildMaxHeap() {     for (int i = std::floor(heap.size()/2); i > 1; i++)         maxHeapify(i); }  template <typename T> std::vector<T> Heap<T>::heapSort(std::vector<T> v) {     initializeMaxHeap(v);     buildMaxHeap();     for (int i = heap.size(); i > 2; i++)     {         std::swap(heap.at(1), heap.at(i));         heapSize--;         maxHeapify(1);     }     return heap; }  Heap.h #ifndef PROJ3_HEAP_H #define PROJ3_HEAP_H  #include <cmath> #include <vector>  #include "Dictionary.h"  template <typename T> class Heap { private:     std::vector<T> heap;     int heapSize;  public:     Heap();     int parent(int index) { return index/2; };     int left(int index) { return index * 2; };     int right(int index) { return index * 2 + 1; };     int getItem(int index) { return heap.at(index); };     void initializeMaxHeap(std::vector<T> v);     void maxHeapify(int i);     void buildMaxHeap();     std::vector<T> heapSort(std::vector<T> v);  };   #endif //PROJ3_HEAP_H  CMakeLists.txt cmake_minimum_required(VERSION 3.6) project(proj3)  set(CMAKE_CXX_STANDARD 11)  set(SOURCE_FILES main.cpp Dictionary.cpp Dictionary.h Grid.cpp Grid.h Heap.cpp Heap.h) add_executable(proj3 ${SOURCE_FILES})  Right now, I have all my files in one folder. What should I add to the CMakeLists.txt at this time? I have tried add_library/target_link_library (with different orders), adding include_directories, and I tried building each class in my directory separately the linking them to the main executable. Do I need to reorganize my directory as well? Edits: Added Heap.cpp & Heap.h


Today I installed Windows 8.1 and it broke my GRUB. I tried to run the boot-repair GUI on a live session of Ubuntu but after the restart of the PC GRUB displays ONLY Ubuntu.   Before the installation I had on the first HD Ubuntu installed alongside with Windows 7 and the grub displayed both of them without problem.  After I installed Windows 8.1 on the second HD the boot loader(?) was replaced with the Windows one and I could select only between Windows 7 and 8 to boot, but not Ubuntu.  How can I fix GRUB now? I wish GRUB could displays all the three OSs (even if different HDs). If not possible I wish I could just choose which HD to boot and then the grub to displays correctly the OS of that HD.  This is the  (broken link).


i need a bus to run so it gives me a 1/2 chance of getting to point B faster than walking. The distance from point A to B is 1.5 miles. the speed of the bus is 25mph and the walking speed is 4mph   Distance = speed x time  Speed by walking 4 miles per hour Speed by bus 25 miles per hour Total distance= 1.5 miles Time it takes to go by walking (distance divided by speed) or 2 miles / 4 mph = 1/2 an hour or 30 mins. Time it takes to go by bus 2 miles / 25 miles per hour or 1/12.5th of an hour or 60/12.5= 4.8 mins.  The answer is 1.59busperhour but I am not sure how to get to this answer.....any help is appreciated!


$n$-th prime is less than a polynomial of $n$

Let $p_n$ be the $n$-th prime. Is there an elementary way to prove the statement that there exists a polynomial function $P$ such that $$p_n \leq P(n),$$ for all $n \in \mathbb{N}$? (Or, alternatively, for all $n$ from some $N \in \mathbb{N}$ onward?) I know the statement is true, and that $p_n$ "behaves asymptotically like" $n \log n,$ but I'm specifically looking for an elementary proof. (I'd like to show $\sqrt[n]{p_n} \to 1,$ and since trivially $n \leq p_n,$ the result would follow from the squeeze theorem.) Thanks in advance!!!!!!


Does this proof require the axiom of choice?

I've been studying some lecture notes on abstract algebra, and they claim at one point that a proof that a function $f: A \to B$ is injective if and only if it has a left inverse requires choice. The proof of surjectivity if only if there exists a right inverse, surely does (there may exist $b \in B$ with more than one, in fact infinitely many, preimages in $A$), but I don't believe the left-inverse proof requires it. This is what I have in mind. I'm going to skip the left inverse implies injective proof, as it surely doesn't require choice.  Let $f: A \to B$ be injective. Given $b \in B$, we have iether $b \in f(A)$ or $b \not \in f(A)$. If $b \in f(A)$, there exists a unique, since $f$ is injective, $a \in A$ such that $f(a) = b$. Fix $a_0 \in A$. Then define the map $g: B \to A$ sending $b \to a$ if $b = f(a)$ for some $a$ and $b \to a_0$ otherwise. Then for any $a \in A$, we have $(g \circ f)(a) = g(f(a)) = a$, so $g$ is a left inverse.  I don't believe I used the axiom of choice anywhere in this proof. Is that correct?


Condition on sides of triangle to proof it is isoceles

Let $$ a\geq b \geq c > 0 $$ be real numbers such that for all $$n $$ element of natural number , there exists triangles of side length $$ a^n , b^n , c^n.  $$ Prove that the triangles are isosceles .   I tried taking derivatives and proving that there will exist some $n$ at which inequality would stop holding. But it is not working out.  Also I tried substituting triangle inequalities for $n=1$ ; but it is of no use I guess.  I think binomial maybe of some use. I tried completing the binomial of $a^n + b^n$. But I am not able to use it too.


Where does the extra kinetic energy come from in a gravitational slingshot?

I read in  in this site that the KE a free-falling ball acquires is not originated by the attracting body but that energy was actually stored in the ball when it had been lifted to the height it dropped from.  In this way, it was said, gravity is subject to the conservation of energy principle and cannot change the total energy of an object.  Consider now the maneuver known as a  (also gravity assist) used by space probes such as the . A space probe approaches a planet with velocity $v$, slingshots around, and ends up with velocity $v+2U$, where $U$ is the velocity of the planet.  Consider the energy of the probe. Before, it was $E_i=\frac{1}{2} mv^2$ and after it is $E_f=\frac{1}{2} m(v+2U)^2$. It looks like $E_f$ is much bigger than $E_i$ - but where did the additional energy come from?   Is this not a violation of the conservation of energy principle?


How do I start to debug my own Apex code?

Sometimes questions are posted here that would best be answered by helping the questioner learn how to do their own debugging. (Remember that ?) I'd like to have something to link to on this site for that purpose.  So please provide a step by step recipe for how to output basic debug information from Apex code in triggers or controllers for inexperienced Salesforce developers.  Also see .  PS  If/when this  appears Apex may/should become as easy to debug as other languages.  PPS Looks like Winter '16 has the interactive debugger for Apex though it is something that has to be opted in to and paid for (and has yet to be widely tried). See


Would you please explain the difference between the following?     The average American city requires a prodigious amount of fish daily.     And:     An average American city requires a prodigious amount of fish daily.


Second phd in top rank university but online.

Folks, I have received my phd from a university ranked 60 in usnews and had one year of post doc work after. Right now I am a non tenure track teaching professor at a wellknown university. Eversince I was student I had a dream of being in MIT, Stanford, Caltech or UC berkley. However, since I was neither genius nor rich, I was not able to do this. I even had a phd admission from USC but since it was partially funded I was not able to attend. Anyways, now that I am done with everything, I am still thinking of doing another phd in the above mentioned universities. But, I do not want to leave my current position since I really enjoy teaching and do not want to risk my future for just a dream. A solution I come up is to get a phd while I am working and this is only possible if the above universities are offering online phds. My field is civil engineering and due to my research area I am also interested in applied math. So far I was not able to find any top rank university that offers civil eng. or math completely online. I can get a phd in math from the university that I am teaching with a tuition waver but it is not really what i want. The best university for online math is University of Washington. But university of Washington is not a top rank university and I do not know if it is worth my time and money.   Any suggestions highly appreciated. And please do not call me a loser for trying to get a second phd. :D  Regards,  Jason Ray


If we don't know the root password and don't have root access to the machine, how can we change the root password?


I'd like to know how to display this quick horizontal menu in ubuntu 16.04


In the following schematic the two Vss pins where are supposed to be the grounding pins don't connect to anything. Does this mean that the circuit is self-grounding (if that's even a thing)?  I'm planning on attaching this to a breadboard but I'm not sure how to power it since I don't have a direct connection to the TSL1402 ship and have to go through the accessible pins.  Here is the schematic:


find items only in a list of directories

If I have the following directories  a/ b/ c/d/ c/f/ g/   How can I  find -name "something" -type f in just a/ c/f/ and g/ without having to iterate through the list of directories I want and running find on it individually?  This is partially answered here:   But I have 100s of directories to include and exclude so I was looking for a better solution where I could just specify a list of directories as an argument or a file with the directory names in them.  Thanks.


I am currently backing up (ripping) my dvd collection onto my server harddrive, to allow streaming throughout my house. I am using Acidrip to do the ripping. My problem is that the quality video of the rip is not as good as I would like, and the file size is a little too big. I downloaded an .avi rip of the blu-ray movie "black hawk down" the other day, and the quality was very good. I believe it was a 720p rip. But the file size was only 700mb. When I rip regular dvd's I choose a high bitrate (around.22) but my file sizes are anywhere from 1000mb to 1200mb, and the quality is nowhere near as good. How can i use acid rip to rip a high quality video at a 700mb file size? Is there better software, or is there something I'm missing in Acidrip?


I am using ASP.NET Webforms to get the data of client. till now I figured out the IP address of client and the city & country of the client. I am trying to find a way of how to retrieve the time zone by using its IP Address or country name or city name. I have googled and couldn't find any appropriate answer as everyone talks about injecting javascript to get timezone. My question is: Is there any way to find timezone of the client? If so then how?`


intentional and extensional set definition

so I'm HUGE noob in math so please be patient.  I have a question about set definition. They thought us in class that there are two ways to define a set of elements:   Extensional:  Basically just write the elements of the set. For example:   $$A= \{ 1,\ 2,\ 3,\ 4, \ 5\}$$ Intensional:   Defines a set by stating the unique property which characterizes  the ones and only elements of the collection, without ambiguity, like:   $$A = \{x\ | \ x\in\ \mathbb{N} \quad \land\quad 1\le x \le 5\}$$   Now, this works fine for set of elements where the elements are numbers, but how can I intensionally define a set like this:  $$TV= \{ fox,\ cnn,\ sky,\ msnbc\}$$  The professor gave us this exercise in class and some students gave answers like  $$TV= \{x\ | \ x\in \text {TV_CHANNELS} \quad \land\quad \text{daily_views}\ge100k\}$$  But it looks wrong to me, I mean if one day msnbc daily_views are $\le100k$ then $\ msnbc\  \notin TV$ which means I have a different set...   So my question is how do I intensionally describe a set of things, different from numbers, without ambiguity?


What is the answer to the third squirrel question?

I'm stuck on the 3rd question asking how many candies does the candiest person in the world possess?


<!DOCTYPE html>         <meta charset="utf-8">     <title>I need Help</title>

The event in the console was worked but remove Attribute is not work!!
I just need the advice or if you can told me why is not working?

       Book Now!
               Dear All,  The event in the console was worked but remove Attribute is not work!!  I just need the advice or if you can told me why is not working? Thanks in Advance, Mustafa


About 15 years ago, I read a book about a classical musician whos wife (possible girlfriend) dies and he turns to writing commercial jingles (which he feels is selling his soul, but is well-paid) to pay for cryogenic suspension until the end of the universe. The premise is that the big bang started expansion, but as the universe contracts, time would go backward and he would be reunited with his wife.  He is woken up in the future and agrees to work for a government or corporation. One of these jobs sees him visit a planet where small conical creatures live, similar size to dogs. The technology allows his thoughts to be placed in to new bodies, and he goes to see the planet, but the small creatures keep attacking and killing him. He keeps going through this cycle, because he told the ships computer not to tell him if anything bad happens to him.  Anybody got any idea of this books title?


What about this code introduces an SQL injection vulnerability?

This code was taken from another post at  where it was pointed out that there is an SQL injection vulnerability. What about this code is vulnerable, how could it be exploited, and how can it be made safe?  <?php  include("config.php");   function getAllVotes($id)  {      $votes = array();      $q = "SELECT * FROM entries WHERE id = $id";      $r = mysql_query($q);      if(mysql_num_rows($r)==1)//id found in the table      {          $row = mysql_fetch_assoc($r);          $votes[0] = $row['votes_up'];          $votes[1] = $row['votes_down'];      }      return $votes;  }   function getEffectiveVotes($id)  {          $votes = getAllVotes($id);          $effectiveVote = $votes[0] - $votes[1];    //ERROR THROWN HERE         return $effectiveVote;  }   $id = $_POST['id'];  $action = $_POST['action'];   //get the current votes  $cur_votes = getAllVotes($id);   //ok, now update the votes   if($action=='vote_up') //voting up  {       $votes_up = $cur_votes[0]+1;     //AND ERROR THROWN HERE       $q = "UPDATE threads SET votes_up = $votes_up WHERE id = $id";  }  elseif($action=='vote_down') {      $votes_down = $cur_votes[1]+1;      $q = "UPDATE threads SET votes_down = $votes_down WHERE id = $id";  }   $r = mysql_query($q);  if($r) {      $effectiveVote = getEffectiveVotes($id);      echo $effectiveVote." votes";  }  elseif(!$r) //voting failed  {      echo "Failed!";  }  ?>


800 MHz DDR2 RAM shows half of memory speed on my machine

I have an Acer Veriton l670 mini PM. My machine has:   E8400 3 GHz dual core CPU 2x2, 4 GB DDR2 800 MHz RAM dual channel (Kingston acr256x64d2s800c6) 320 GB hard disk 7200 rpm   While this is not a very bad PC, I can't play Civilization V with the lowest options (it lags in game). I decided to check my PC with CPU-Z software. I am confused that it shows my memory running at half speed. Is there any jumper to change the speed?


$f(x)=x^3$ is convex nor concave without to derivate

Drawing the graph of a function is not intuitive. For example, the function $f(x)=x^2$ is special, we can say that given two points of the function the straight line that join those points is above the function. So we write  $$ x_2<(x_1+x_0)(x-x_0)+x^2  $$ How did I obtain the part of the right?  $$ (Y-x_0^2)/   (x-x_0)  =     (x_1^2 -  x_0^2)   /      (x_1 -   x_0) $$ Now I just isolate Y in the equation above.  My question is, can I do the same with $f(x)=x^3$?  And how do I prove it? Can I say that $x^3$ is below the straight line that join two points of the function $x^3$? If and only if $x$ is positive.


I read nearly all topics about collinearity but still have some questions...  I know: multicollinearity is a problem because if two predictors measure approximately the same it is nearly impossible to distinguish them. They overlap each other. But WHY (??) is centering helpful for this(in interaction)? How can center to the mean reduces this effect?


How to manually set a stable fan speed like SpeedFan on Windows?

I've been using windows my whole life and recently my Windows 10 installation got corrupted and I needed to get a new one so I chose the free Ubuntu. It's very different from windows and frustrating to try to learn how to do things when everything was so much simpler on Windows.   As for my fan--On windows I was able to use SpeedFan to easily change what fan speeds I wanted my computer to have at whatever time I needed it to change by just clicking on some arrows. It was important because of FPS in the games I play changed based on my CPUs temperature.  I've read many threads that mention lm-sensors and fancontrol including  and I've tried following along to install these but using the terminal is very weird and I don't think I did it correctly because the fan seemed to get stuck at maximum speed and I didn't know how to change it. So I completely reinstalled Ubuntu and I'm trying again. Is there any way to do this without using lm-sensors or fancontrol? Also, the linked thread I don't believe adequately explains how to manually change the current fan speed, only to set a range of speeds for automatic change.  Please help my newbie self.


How to sum each column and print column name and column sum using awk?

I have a file with a table of numbers; the first line is a header line. I want to sum each column and print out sum and column name for each column using awk.  How can I do it?


What is the shortest distance from the ellipse $x^2+\frac{y^2}{4} =1$ and the point (2,2).  I know that this is the projection of (2,2) onto the ellipse. How do I go about finding the shortest distance between this point and the curve?


Cluster kmeans comparison between two data sets

I have a situation when I try to see if my data set ("sample") is a good representation of a larger data set ("population") that I have. In Stata, I use the cluster command on the both data sets trying to detect patterns that can be later compared for similarity in order to decide if the sample is indeed representative of the population. 1) In Stata, how can I comrade the slitters of the two data sets statistically? 2) In Stata, what else can I do to compare the two data sets for similarity?


Condition when any union of subgroups is subgroup

Let $G$ be a group  and $\{H_i\}_{i\in \mathcal{I}}$ for some (not necessarily countable) indexing set $\mathcal{I}$ be a family of subgroups of $G$ none of which contain all the others. State and prove a general condition that will imply $\bigcup \limits_{i\in\mathcal{I}}H_i$ is a subgroup of $G$.   After thinking for a day two I ran into the following idea: What if I put the following condition: For any pairs $i,j\in \mathcal{I}$ there is $k\in \mathcal{I}$ such that $H_i\subset H_k$ and $H_j\subset H_k$. And it's quite easy to show that in this case the union of $\{H_i\}_{i\in \mathcal{I}}$ is a subgroup!  But I don't know what to do with the condition "none of which contain all the others"?


I use LaTeX for typesetting daily document. These include correspondence with patients, certificates etc. Is there any way I can tags (or keywords) for running subsequent searching from inside LaTeX markup? For example, if I have a patient with Hepatitis C, I can just tag it from within, so that when I search Hepatitis C next time, all PDF files can be detected easily.


When I try yo use wubi, to install Ubuntu 12.04, side by side with Windows 7, I get an incorrect password error.


How can I increase the size of a .jpeg without losing quality?

Is it possible to make a .jpeg photo larger without losing "quality"?  I have a photo that is 450px x 750px and would like to make it 3 times bigger for web not print?  I've been told that Illustrator is the tool to make it happen and I have Illustrator CS6.


How to resolve ORA-011033: ORACLE initialization or shutdown in progress

When trying to connect to an ORACLE user via TOAD (Quest Software) or any other means (Oracle Enterprise Manager) I get this error:     ORA-011033: ORACLE initialization or shutdown in progress


If $\{a_1,\dots,a_{\phi(n)}\}$ is a reduced residue system, what is $a_1\cdots a_{\phi(n)}$ congruent to?

I'm trying work on problem 11 of Chapter 3 in Ireland and Rosen's Number Theory.   Suppose $\{a_1,\dots,a_{\phi(n)}\}$ is a reduced residue system modulo $n$. Let $N$ be the number of solutions to $x^2\equiv 1\pmod{n}$, then $$ a_1\cdots a_{\phi(n)}\equiv (-1)^{N/2}\pmod{n}. $$  How can this be shown? I know that if $n=p_1^{\alpha_1}\cdots p_m^{\alpha_m}$, then $N=\prod N(p_i^{\alpha_i})$ where $N(p_i^{\alpha_i})$ denotes the number of solutions to $x^2\equiv 1\pmod{p_i^{\alpha_i}}$.   Also, if $x_0$ is a solution, then it is also a solution to $x^2\equiv 1\pmod{p_i}$ for any prime in the factorization of $n$. This implies that $x_0\equiv \pm 1\pmod{p_i}$, so that $x_0$ is coprime to all prime factors of $n$, and thus coprime to $n$.  But I'm not seeing a connection between the left and right hand side products of the congruence in question. Thanks.


Lot of articles recommend deactivating ssh for root user with PermitRootLogin no in /etc/ssh/sshd_config. There is also a lot of questions on serverfault about implementing root ssh deactivation.   But what is motivation for that?  It makes the attacker to guess the user name in addition. But shouldn't the cryptographic strength of public-private keys and RSA encryption be enough?  I am asking not just out of curiosity, but because using non-root user : pipelining (compatibility) or allow_world_readable_tmpfiles(security).


Install software with its dependencies from a local repo over LAN

I have a couple of Ubuntu 14.04 64 bit boxes. One of them can talk to internet (say Machine1) and the other can not due to network restrictions (say Machine2).  Machine 2 needs some specific software to be installed, for example I may need to install google-chrome (just as an example) on this machine.  What I tried is to create a /localrepo/amd64 diretory on Machine 1. Downloaded the stable .deb package and put it in this /localrepo/amd64 directory.  This directory has a link symbolic link at /var/www/html, so the machine at least over local network can access this directory.  I ran dpkg-scanpackages amd64 | gzip -9c > amd64/Packages.gz that generated a Packages.gz file.  On the Machine1 I edit the sources.list file to add   http://Machine2FQDN/localrepo amd64/   I comment out all other lines that were trying to point to various ubuntu repos.  I do an apt-get update and then try to install the package, I got a dependency issue.  Now, my question is if I want all the dependencies for the .deb file to be downloaded at Machine1 localrepo diractory what is the way for it.  I have seen answers like run the apt-get install -f, which does not work in my case, I can not allow Machine 2 to talk to ubuntu repos directly and resolve dependencies via apt-get. I do not need every single package in cache to be copied to this local repo, I need only the specific associated dependency packages to get downloaded (not installed) when I download a package through a single command.  Do we have a solution for that?  Please let me know if you need any further information.  Note: I know running apt-cache depends google-chrome-stable lists the dependencies, but I need those dependencies to be downloaded to my own custom folder /localrepo/


Significance of the second focus in elliptical orbits

1.In classical mechanics, using Newton's laws, the ellipticity of orbits is derived. It is also said that the center of mass is at one of the foci.   2.Each body will orbit the center of the mass of the system.  My question is : Are the assumptions in 1 and 2 correct?   Follow up question : Assuming the distance from the centre of the mass to each body remains the same, do we have two bodies orbiting the centre of the mass of the system in an elliptical or circular orbit?   Finally : With elliptical orbits, if the heavier mass is supposed to be in one of the foci, if there is any significance to second focus, what is it? Is it a Lagrange point by any chance or does it have some other mathematical property?


Ubuntu desktop not working after adjusting effects on compiz config manager

I unable to disable the desktop or anything, but when I reboot, all I can see is the mouse and a dialog appear saying that compiz has crashed. The terminal (Ctrl+Alt+t) doesn't work, and neither control alternative delete to log out works. What can I do to restore everything?


I am taking a financial assessment. It asks me:     What is your total monthly debt payment (e.g. student loans, vehicles, credit cards, personal loans, etc.)?   Then the next questions are about household essentials and non-household essentials.  But should I include rent in any of this?


Height of enumerate items in multicols environment for proper alignment

For some problem sheets I have been using the shortenumerate package with hardcoded widths for the columns so far and I wanted to use multicols instead which is a lot easier to use. However the enumerate items on the left are not aligned with the ones on the right - in my example below there is a fraction on the right which takes more height than the left (a) equation and the interval in (e) takes a lot more space than the equation (f) simliarly to the second line with (c) and (d). As such I was wondering whether there is a possibility to use the same height throughout the enumeration to align everything properly.  \begin{multicols}{2}     \begin{enumerate}         \item[(a)] $\displaystyle f(x)=2x^7-x^5+6x+1$, $D=\mathbb{R}$                    \item[(c)] $\displaystyle f(x)=\sqrt{x}$, $D=[0,\infty)$                     \item[(e)] $\displaystyle f(x)=\tan(x)$, $\displaystyle D=\left(-\frac{\pi}{2},\frac{\pi}{2}\right)$                     \item[(b)] $\displaystyle f(x)=\frac{x+1}{x^2+x+7}$, $D=\mathbb{R}$         \item[(d)] $f(x)=\sin(x)\exp\left(\left (x+1\right )^2\right)$, $D=\mathbb{R}$         \item[(f)] $\displaystyle f(x)=2^x$, $D=\mathbb{R}$     \end{enumerate} \end{multicols}


Show that there exist a continuous function $f:X\to [0,1]$ such that $f^{-1}(\{0\})=A$ and $f(B)=\{1\}$.

Let $A,B$ disjoint closed subsets of a normal topological space $(X,\Gamma)$. Show that there exist a continuous function $f:X\to [0,1]$ such that $f^{-1}(\{0\})=A$ and $f(B)=\{1\}$ if and only if $A$ is a $G_{\delta}$ on $(X,\Gamma)$.  Recall that $A$ is a $G_{\delta}$ set in  $X$, if $A$ is the intersection of a countable collection of open sets of $X$.  Let $A,B$ disjoint closed subsets of a normal topological space $(X,\Gamma)$, and suppose there exist a continuous function $f:X\to [0,1]$ such that $f^{-1}(\{0\})=A$ and $f(B)=\{1\}$, but note that $$\{0\}=\bigcap_{n=1}^{\infty}{\left[0,\dfrac{1}{n}\right)}$$  $$A=f^{-1}(\{0\})=f^{-1}\left(\bigcap_{n=1}^{\infty}{\left[0,\dfrac{1}{n}\right)}\right)=\bigcap_{n=1}^{\infty}{f^{-1}\left[0,\dfrac{1}{n}\right)}$$  Thus, $f^{-1}\left[0,\dfrac{1}{n}\right)$ is in $\Gamma$ for all $n\in\mathbb{N}^{+}$, so $A$ is a $G_{\delta}$ in $(X,\Gamma)$.  But, I really need help with the other part of the proof. Thanks!!


How to know if GBM or XGBOOST are overfitting?

Unlike in random forest, I can check the oob_score_ to verify how much my model is overfitting. How can I verify this for boosted trees algorithms?  Currently, Using GBM I'm getting a accuracy of 95% on training set and 87% on test set. These numbers are after tuning on my validation set. How do I judge if this model is good enough or not?  Also, I ran 10 K-fold cv and my variance is around 1% for test set.  UPDATE: I'm using SMOTE to balance my classes


Traveling to U.S on an Irish passport as a U.S citizen penalty

I traveled into the U.S on my Irish passport, even though i have an U.S passport because it was out of date and i didn't have time to renew it. I had to get a visa waiver and lie that i had not been to America or hold any other passport. What is the penalty for this is all I want to know, please. I have three days before the deadline to renew my U.S. passport. Really appreciate some helpful information. I am aware it is illegal i simply want to know if anyone knows the penalty. Thanks


Allow user accounts to be a local administrator on a specific computer

Is there a way to give domain based accounts local admin access on specific machines and not others?  I can control access and rights to which machines a user can log in to and what their privileges are on a global scale but is there a way to control them on individual machines?  What we have now is an Active Directory group called Sec.LocalAdmin, we deployed this group 'Restricted Groups'. So every user that is a member of this group is local admin on every machine where this group is added to the Local Admin group. What we want is that every user is local admin on their own machine, is it possible to do this by a GPO?


Why is the code within empty braces getting executed first even before the constructor of the class?

Though this is a small question to ask, wanted to understand this strange behavior! Following is the code and the behavior of the code that's in discussion (through the console output).  public class EmptyBracesWithinClass {     public static void main(String[] args) {         EmptyBraces eb = new EmptyBraces();         System.out.println("SYSO within main() method");     } }  class EmptyBraces {     {         System.out.println("SYSO within empty braces");     }      public EmptyBraces() {         System.out.println("SYSO within constructor() method");     } }   Console output:  SYSO within empty braces SYSO within constructor() method SYSO within main() method   The question here is, why would the piece of code within the empty braces get executed first during the object instance creation of EmptyBraces class (though it is never declared as STATIC explicitly)?


I have an application that we're trying to migrate to 64bit from 32bit.  It's .NET, compiled using the x64 flags.  However, we have a large number of DLLs written in FORTRAN 90 compiled for 32bit.  The functions in the FORTRAN DLLs are fairly simple:  you put data in, you pull data out; no state of any sort.  We also don't spend a lot of time there, a total of maybe 3%, but the calculation logic it performs is invaluable.  Can I somehow call the 32bit DLLs from 64bit code?  MSDN suggests that I can't, period.  I've done some simple hacking and verified this.  Everything throws an invalid entry point exception.  The only possible solution i've found so far is to create COM+ wrappers for all of the 32bit DLL functions and invoke COM from the 64bit process.  This seems like quite a headache.  We can also run the process in WoW emulation, but then the memory ceiling wouldn't be increased, capping at around 1.6gb.  Is there any other way to call the 32bit DLLs from a 64bit CLR process?


Why did Palpatine care about Anakin Skywalker in the Prequels given Palpatine's pretty good Force Vision?

Why did Palpatine care about Anakin (Vader), especially when considering his powerful "future Force visions"? Palpatine organizes the framework-setting Order 66 to kill the Jedi.  It is Palpatine who defeats Yoda.  It is Palpatine who pretty much organizes the whole thing. He organizes the Death Star, his ascension, the destruction of all opposition.  It is Vader who tells Mace about Palpatine being a Sith. It is Vader who gets sushi'd by Obi-Wan.  Vader is the only survivor of the Death Star Mk1, but he was never the commander, the engineer or the saviour of the darn thing. Vader also throws Palpatine off a balcony.  While Vader does manage to murder a bunch of kids... that doesn't really seem that difficult a skillset for Palpatine to find to warrant any of the effort in winning Vader over.  Palpatine seems pretty cognizant of the whole "Sith kill each other", he doesn't appear to even need another Sith, so what? Was Vader just a really really good conversationalist?   To be clear, I'm referring to the prequels - as in, why does Palpatine have interest in Anakin "back then" - not just saving him, but, well, trying to turn him at all?  With all of Palpatine's "future Force vision" powers, Vader doesn't seem to be useful in the future or at the present, although he does throw Palpatine off a ledge... I'm just assuming Palpatine didn't see that, and wasn't, like, really into extreme sports   suggested deals with the Sith code of ethics, and the strong ignoring the weak, and effectively asks "why would one Sith help another, junior Sith". It is an interesting question, check it out.  This question asks why Palpatine bothered with Vader, given both Vader's uselessness to the overall story arc (aside from killing Palpatine) and Palpatine's ability to see the future. It also (implicitly) inquires why Palpatine, who is solely responsible for everything that happens in the prequels, even bothered with an apprentice at all.


How to manage users access to shared folders from the command line?

Using the sharing or dscl commands I can not figure out how to add users associated to shares. The current local-admin account has access to all shares, but I'd like to add a different user account the ability to access some of the AFP shares.   Strangely, I can't even figure out how to list who currently has access to each of the AFP SharePoints.   So, looking for command line solution to the following two questions:  1) how to list current users associated to a particular sharepoint? 2) how to add a user to a sharepoint?


How can I prove $\left(a+ \frac{1}{a}\right)^2+\left(b+ \frac{1}{b}\right)^2\ge \frac{25}{2}$, if $a+b = 1$

For $a,b \in \mathbb R^+$ such that $a+b=1$, then:  $$\left(a+ \frac{1}{a}\right)^2+\left(b+ \frac{1}{b}\right)^2\ge \frac{25}{2}$$


How are the deathrattles of two Sylvanas dying at the same time resolved?

I just played a Tavern Brawl and encountered the following board situation:   Sylvanas Windrunner is the only minion on my side. My opponent has Sylvanas, Kel'Thuzad, and another minion.   I attack with my Sylvanas into the enemy Sylvanas, killing them both. The deathrattle of my Sylvanas steals Kel'Thuzad, but then the deathrattle of the enemy Sylvanas is resolved, stealing Kel'Thuzad back.  How do I predict the outcome of the deathrattles if two Sylvanas are involved?


Axiom of Choice: Where does my argument for proving the axiom of choice fail? Help me understand why this is an axiom, and not a theorem.

In terms of purely set theory, the axiom of choice says that for any set $A$, its power set (with empty set removed) has a choice function, i.e. there exists a function $f\colon \mathcal{P}^*(A)\rightarrow A$ such that for any subset $S$ of $A$, $f(S)\in S.$ Is this correct?  My question then is about proving this fact, so that we do not need to put it as an axiom. Now as per the research done on this single object- Axiom of Choice, I believe here that there should be some falsity in my argument. I do not find the mistake.  For any $S\in \mathcal{P}^*(A)$, since $S\neq \emptyset$, $\exists s\in S$. Define $f(S)=s$. Then $f$ is a choice function.  This was showing me that the axiom of choice is proved, but then why it had been put as an axiom? For example, in  book, the author asserts that      It is a metatheorem of mathematical logic that it is impossible to specify the function that assigns to each non-empty subset of $\mathbb{R}$, an element of itself.     There are several notes and books on axiom of choice, but here I am trying to understand through doing some argument for some problem, where problem actually arises.


Can you create more Polyjuice Potion using hair/clippings from your own transformed self?

If you were to take Polyjuice, then clip hair from yourself (so it would essentially be the hair of the person you transformed into), could you create more Polyjuice to transform into that person using that hair?


I have an input json like the following. It has contact fields and a nested object for another contact. I'm using Postman to send requests. {   "Id": "0036D00000H24bHQAR",   "Preferred_Name__c": "Preferred Name",   "HomePhone": "$profile_home_phone",   "MobilePhone": "$profile_mobile",   "MailingCountry": "$profile_address_country",   "MailingCity": "$profile_address_locality",   "MailingState": "$profile_address_administrative_area_level_1",   "MailingPostalCode": "$profile_address_postal_code",   "MailingStreet": "$profile_address_route",   "Preferred_contact_method__c": "Email",   "primaryGuardian": {     "firstName": "$profile_guardian_first_name",     "lastName": "$profile_guardian_last_name",     "MailingCountry": "$profile_guardianaddress_country",     "MailingCity": "$profile_guardianaddress_locality",     "MailingState": "$profile_guardianaddress_administrative_area_level_1",     "MailingPostalCode": "$profile_guardianaddress_postal_code",     "MailingStreet": "$profile_guardianaddress_route",     "MobilePhone": "$profile_guardian_mobile",     "Email": "some@cse.com",     "relationship": "Mother"   } }  I'm using the following code: Contact goScholar = (Contact)JSON.deserialize(request, Contact.class);  //get primaryGuardian Map<String, Object> body = (Map<String, Object>)JSON.deserializeUntyped(request); String primaryGuardianJson = body.get('primaryGuardian').toString();  // Getting the error at the below line Map<String, Object> data = (Map<String, Object>)JSON.deserializeUntyped(primaryGuardianJson); //get relationship for a junction record field String relationship = data.get('Relationship').toString();  Contact primaryGuardian = (Contact)JSON.deserialize(primaryGuardianJson, Contact.class);  I'm getting the following error:  System.JSONException: Unexpected character ('E' (code 69)): was expecting double-quote to start field name at [line:1, column:3]  Class.System.JSON.deserializeUntyped: line 11, column 1 Class.ContactService.createPrimaryGuardian: line 78, column 1 Class.ContactService.updateContact: line 38, column 1 Class.ContactAPI.replace: line 35, column 1   I'm guessing that when using deserializeUntyped for the first time, it removes the " which is causing the error. Is there a solution for this?


Anyone dealt with "KEI Journals"? What about the journal "Quarterly Physics Review"?

I received an email from Dr. Naonori Ko wondering if I'd be interested in writing up a review article for a journal called "Quarterly Physics Review". I'm skeptical of new journals, but I also want to support a competitive journal publication market.  Has anyone had any dealing with "KEI Journals" or "Knowledge Enterprises Incorporated" or published in any of their journals ()?


Applying for a UK Tourist Visa from outside country of origin

I am an Indian citizen, studying in the USA on an F1 visa that expires in 2019.   I was hoping to visit England for a couple of weeks on my way back home to India in June, but I do not have a valid UK Tourist visa. I was wondering if I could apply for the visa from the USA itself.


Subscribe/unsubscribe to an event in a list

I have a list of objects and I would like to subscribe/unsubscribe each of them to an event (via a delegate because I need to pass extra params to the methods). So I have something like this:  public void MonitoringCtrl(bool monitoringOn)     {         foreach (var mh in monHandlers)         {             evHandler = (sender, e) => OnNotification(sender, e, mh);              if (monitoringOn)             {                 //subscribe to event                 mh.monitoredItem.Notification += evHandler;             }             else             {                 //unsubscribe                 mh.monitoredItem.Notification -= evHandler;             }         }          //do other stuff     }  This works when subscribing, but doesn't work when unsubscribing, presumably because I re-declare the evHandler inside the foreach. How can I save the reference to the evHandler?


Why does non-inverting input of non-inverting amplifier need a path for DC to ground

Wikipedia says that, but doesn't give any explanations.     The non-inverting input of the operational amplifier needs a path for DC to ground; if the signal source does not supply a DC path, or if that source requires a given load impedance, then the circuit will require another resistor from the non-inverting input to ground. When the operational amplifier's input bias currents are significant, then the DC source resistances driving the inputs should be balanced. The ideal value for the feedback resistors (to give minimum offset voltage) will be such that the two resistances in parallel roughly equal the resistance to ground at the non-inverting input pin. That ideal value assumes the bias currents are well-matched, which may not be true for all op-amps.   As far as I've concerned, it says just like it really must have this path in case the signal source does not supply a DC path. Then, it says about a consequence of making this path such as bias current which produce extra input offset voltage and so on.  Some people say the input does need to have DC path to ground. They say in case there is no path to ground and the non-inverting pin "hang in the air" for some unwanted unexpected reasons, the op-amp may go into saturation or something like this.  Other people say it doesn't need for the input to have this path. Opinions divided.  What do you think?  UPD: Added the schematic to avoid misunderstood. The schematics a little bit differs from the schematic in the question  So then maybe my question is not duplicated...?          – Schematic created using   The values of R2 and R4 (as well as value R1, though) are default cause they don't matter in this scope. We discuss the role of R1.  UPD:  I've found out one more opinion that seemed for me to be suitable.  They say, that this resistor (R1) can help to attenuate some noise which source has large internal impedance. Source of noise and this resistor forms some kind of voltage divider and this divider attenuates the noise significantly.   It seemed to be possible explanation.


Given a GeoPandas's GeoDataFrame containing a series of polygons, I would like to get the area in km sq of each feature in my list. This is a pretty common problem, and the usual suggested solution in the past has been to use shapely and pyproj directly (e.g.  and ). Is there a way to do this in pure GeoPandas?


How do I convert date/time from 24-hour format to 12-hour AM/PM?

From a data feed I'm getting date and time in this format:  19:24:15 06/13/2013   I need to have it converted to be in 12-hour AM/PM without the seconds. So the above time would be 7:24 PM. The date should remain in mm/dd/yyyy format. Is there an elegant way to do this in PHP (not MySQL)? Thanks!


I'm writing a report with two parts using the article class.  \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc}  \usepackage[english]{babel} \usepackage{amsmath,amsfonts,amsthm} \usepackage[pdftex]{graphicx}    \usepackage[top=1in,bottom=1in,left=1in,right=1in]{geometry} \usepackage{sectsty} \allsectionsfont{\centering \normalfont\scshape} \usepackage{fancyhdr}  \title{\huge Title1 \\} \author{\normalfont                 \normalsize     Author\\                        \normalsize     Supervisors: Prof. X} \date{}  \begin{document}  \part{Heisenberg Picture}  \maketitle  \section{Section 1}   \clearpage  \part{Schroedinger Picture}  %\maketitle2  \section{Section 1}  \end{document}   I need two parts titled say, \part{Heisenberg Picture} and \part{Schroedinger Picture}. These parts correspond to Title 1,Supervisor X and Title 2,Supervisor Y respectively. How can I redefine the \maketitle command to do this? (If it's too complicated, is there an easier method?)


Mathematical relation between aperture and DOF

I know that aperture and DOF are inversely proportional. But, can anybody explain to me the Physics/Optics behind that? What's the mathematical relation that relates aperture with DOF?


I have a question on how to have the following in an equation.   Here is some working code to start with:  \documentclass[12pt]{article}  \begin{document}  \begin{equation} P(X)=\sum_{X\in A}\cdots \sum \end{equation}  \end{document}


tmux: shared session, one user in a pane, another in another pane, two different cursors

I've decided to try tmux: have been reading the docs and googling around, trying to find a way to have two users sharing a session, each with a different cursor.  However, giving 777 permissions to the socket, or creating a group, chgrping the socket and adding both users to it, seems to let that same socket be used to share a session with only one cursor: both users can write, but always in the same cursor position.  Right now both users are in the same home server over ssh, and the idea is to be able to have:   A terminal in a, let's say, left pane, where I can type commands Another terminal in a right pane, where I can see another user typing commands  in his own terminal The same thing for the other user   What I'm doing at the moment is using two sessions (not shared) and a script -f and tail -f combination that kinda works for reading each other's key strokes, but I reckon there is probably some way of doing this using tmux sharing capabilities.  Is there a way to get this idea working with write support in each other's terminal?  What is the better way to do this?


How do I include the column BY in a query? I first tried =unique(query(data_table,"SELECT D, BY"))  Then, I tried to surround it with single quotes =unique(query(data_table,"SELECT D, 'BY'"))


How to determine if Linux OS is on virtual hardware or physical hardware?

From a Linux OS, is there a way to determine if the OS is running as a guest OS on a virtualized VMware environment as opposed to running directly on non-virtualized/bare metal/physical host?  In my case it is either VMware or not, but I am also interested the more general question of whether the OS is on physical hardware or virtualized hardware of any sort.


Cannot remove file on NTFS partition, event as root

I have a dual boot system, and use a NTFS partition as universal storage between Windows 7 and Ubuntu.  Lately, that partition has been throwing CHKDSK prompts on Windows boot, so I thought it was a symptom of a failing drive.  As a result, I cloned the drive to a larger 1TB drive and resized the partitions in Linux.  Still, the CHKDSK prompt is showing up, but this time there were a few filenames printed out in the scan, which later froze at 50% completion.  These files are a set of Perl scripts that I used to create an automated panorama generation script a few years back.  Now, when I try to rm -r * in the folder where the files are held, I get   jason@asus:/media/Storage/Programming/Libraries/Linux$ rm -r * rm: cannot remove `Image-Size-3.232/blib/man3/Image::Size.3pm': No such file or directory rm: cannot remove `Panotools-Script-0.26/blib/man3/Panotools::Makefile.3pm': No such file or directory rm: cannot remove `Panotools-Script-0.26/blib/man3/Panotools::Makefile::Comment.3pm': No such file or directory rm: cannot remove `Panotools-Script-0.26/blib/man3/Panotools::Makefile::Rule.3pm': No such file or directory rm: cannot remove `Panotools-Script-0.26/blib/man3/Panotools::Makefile::Utils.3pm': No such file or directory ... ...   Now, inside Image-Size-3.232/blib/man3/, I executed ls -il which printed out  3723 -rwxrwxrwx 0 root root 25473 Jun 19  2012 Image::Size.3pm   Now, stat 3723 prints out  jason@asus:/media/Storage/Programming/Libraries/Linux/Image-Size-3.232/blib/man3$ stat 3723 stat: cannot stat `3723': No such file or directory   How can I remove these files that have so far proven fireproof to any convential removal function?


A friend of mine just presented me with the following reasoning. Obviously, it's faulty since the result is absurd. Apparently, there's an assumption that's being made or broken against but I fail to see where.  S = 1–1+1–1+1–1+... 1 - S = 1 - (1–1+1–1+1–1+...) 1 - S = 1–1+1–1+1–1+1-... 1 - S = S 1 = 2S   Conclusion: S is 1/2. It means that the sum of (-1)^n would be a half. But that can't be true, can it? I would expect it to be either zero (each negative value cancels out precisely one positive one). Alternatively, I'd say that the result doesn't exist due to some black magic based on infinities and other voodoo stuff.  How can I point out the formal mistake made above?


I have a utility class:  public class ArrayUtils {     public static <T> T[] concat(T[]... arrays) {         if(arrays == null) {             return null;         }         int size = 0;         for(T[] array : arrays) {             size += array.length;         }          T[] concatenatedArray = (T[]) new Object[size];          int i = 0;         for(T[] array : arrays) {             for(T item : array) {                 concatenatedArray[i++] = item;             }         }          return concatenatedArray;     } }   When I test concat, it crushes:  public class ArrayUtilsTest extends TestCase {      public void testConcat() throws Exception {         Integer[] first = new Integer[]{1,2,3};         Integer[] second = new Integer[]{4,5,6};         Integer[] concat = ArrayUtils.concat(first, second);         assertEquals(6, concat.length);     } }   with message     java.lang.ClassCastException: java.lang.Object[] cannot be cast to   java.lang.Integer[]   I guess it has to do with generics. Could you provide suggestions on making it work? Also, background on the issue would be great.   Thanks!


I follow the tutorial video from  in the video, teacher use uv to draw color on surface of object how can I bake the result of the whole scene into a image and how to create another uv map to use it


How to get back my remaining capacity of my 8GB pendrive?

A few weeks ago, I inserted my pendrive into my college's PC to transfer my assignments, but it was not working. It was corrupted and was asking to format. I couldn't even copy files, and was forced to format.  After formatting, my pendrive's size was reduced from 8GB to 3.96MB.  Since then, I've been trying restore it. From diskpart to third-party software, Windows to Linux, watching several youtube videos, but nothing has worked.  I already have looked at , but nothing worked.  PS: I'm using 64-bit system to achieve restoration.


Setting an undefined key of an object to undefined in JavaScript

If I open my JavaScript console (F12 on Chrome) and define a variable var x = {}; and then type x in the console it shows me an empty object like this: {}. So far so good.  If try to see x.a the console will give me undefined, and if I explicitly test x.a === undefined it gives true. So far so good.  Everything is telling me that the value of x.a is undefined.  So, since its value is undefined, I now execute a command that I was expecting to do absolutely nothing: x.a = undefined;. I thought this shouldn't change anything.  But now if I put x in the console, it shows {a: undefined} instead of {}. This is an evidence that something changed...  1. What is happening here?  2. Is there any situation in which this would make a difference?  3. If yes, how can I make that object go back to its initial state?  Note: of course, for question 3, re-assigning to a new {} is obviously not an option, since it would no longer === to the previous value.


Can we create graviton particle or gravitational wave?

Can we create  particle or ?  I want to know if we able to generate graviton particle out of some energy. Is it theoretically possible? And could we generate gravitational waves, attract some rock by gravity force?  If it possible, suggest we want to lift some 10 kg rock up from ground, how many watt of energy needed for this graviton generator?


I fitted the following model in r using the lme4 function. The following output is obtained. Is it possible to obtain a graph showing the four different parallel lines? Also, what inferential statistics should I use?     summary(mixedmodel)       Linear mixed model fit by REML ['lmerMod']       Formula: (FMI) ~ MVPAper + Age + (1 | Child_ID)   REML criterion at convergence: 34444.6  Scaled residuals:   Min     1Q Median     3Q    Max  -1.216 -0.123 -0.093  0.061 51.872   Random effects: Groups   Name        Variance Std.Dev. Child_ID (Intercept)   6.459   2.541    Residual             283.758  16.845   Number of obs: 4048, groups:  Child_ID, 1023   Fixed effects:       Estimate Std. Error t value (Intercept)  2.1850969  0.5697864   3.835 MVPAper      0.0028865  0.0007984   3.615 Age9         0.0908241  0.7482005   0.121  Age12       -0.3519625  0.7478261  -0.471  Age15       -0.4881878  0.7499429  -0.651   Correlation of Fixed Effects: (Intr) MVPApr Age9   Age12  MVPAper -0.350                      Age9    -0.639 -0.040               Age12   -0.652 -0.004  0.498        Age15   -0.671  0.056  0.494  0.496


Color coding Tasks list by due date in SharePoint Designer 2010?

Using Sharepoint 2010, how do I color code the Task due dates so the row can turn red when the due date is in 5 days? ....green color for when task due date is in 10 days?  My requirements are a bit different than the questions that have already been answered. Let me explain:   For Tasks list--The condition criteria (using SP Designer 2010) has to be based on due dates so the row automatically changes color(green or red) based on how long is left before they are due (5 days vs. 10 days)


When I am try to install Internet Explorer using the command sudo apt-get install wine cabextract) my VLC player gets unpacked/uninstalled/removed.   Please provide me with a suitable command to install Internet Explorer.


SMESERVER: Mail not receiving, 550 v=spf1 a -all

SMESERVER install has been working find for an age then this morning "The error that the other server returned was: 550 v=spf1 a -all", can anyone 'point' me in the right direction to resolving this issue.  There is an obvious element of urgency.  From my own mind 550 is access denied and SPF would indicate a DNS problem, am I right?  Still have no idea on how to resolve it though.  also getting a "bash: 22: command not found", when trying to SSH in.  Any guidance GREATLY appreciated  Stu


How do I delete attachments, in bulk, from messages in Gmail?

I'd like to free up some storage space and delete attachments from most/all the messages in my Gmail. I've long since downloaded and used any attachments I need or care to keep. How can I delete attachments from Gmail, but keep the messages?  I've read  and , but the first is a little old, and the second is too manual. (I have thousands of messages archived. Forwarding each one to myself would take forever.) I'm looking for a less manual/tedious solution.  How can I purge old attachments that do nothing now but take up space, and still keep the original, valuable messages?


What original Dr Who episodes are left when not watching unfinished stories?

I'm finally getting around to watching Doctor Who. I'm the kind of guy who wants to start at the beginning and work my way to the present day from there. I know that's not what many people would recommend, but I've watched more series from around that time, so I think I sort of know what I am getting into. (I've seen the original Star Trek, Blake's 7, the original Battlestar Galactica and even Galactica 1980).  Now, the original Doctor Who-series has this strange history where a number of tapes have been lost. Of course, when something is lost, it can be found again and a number of the lost episodes have been found. I took a look at wikipedia where it talks about serials, some of which are complete again, while others still miss one or more episodes. I'm not too interested in watching incomplete stories, so my plan is to watch the serials that are complete and any non-serial episodes (if there are such episodes).  Now, since those are what I plan to watch: what is the list of episodes when taking out any incomplete stories?


How do I  prevent .xsession-errors from eating disk space?

Is there any way to completely disable the .xsession-errors file?  I have it as a symlink to /tmp so that my laptop hard disk can (hopefully) go to sleep for once, but at least 95% of the stuff in the file (it fills up at about 500k an hour) is...  (nautilus:1618): GLib-GObject-CRITICAL **: g_value_get_object: assertion `G_VALUE_HOLDS_OBJECT (value)' failed  which is total garbage to me.  I have tried doing a symlink to /dev/null but that does not work (the resulting link is overwritten), and I also do not want the activity so that hopefully my laptop can go to sleep for once.  I am using Ubuntu 11.04, with no special add-ons to Nautilus.


Ignoring the moons gravity, if an object sitting still (relative to the Earth, i.e. not in orbit) was dropped from the moon. How long would it take to hit the Earth?


Changing DOM element order with CSS (Crocodoc)

Is it possible to change DOM element order with CSS? I have an iframe where I'd like to change the toolbar from above to below the iframe's main content.  So from this:

        To this:

        If this is not possible using CSS, can someone advise on how to do this in Javascript? Manipulating iframe contents always confuse the *^%$ out of me. As a practical application, i'm actually referring to the  so my intent is to make this question and answer valuable to those using this service too.


It is not good for you and (I/me) to be seen together.  What is proper grammar: I or me?


Cant get multi-line look ahead regex to work in grep / pcregrep

Trying to parse a CHANGELOG.md with the following pattern (?<=##\s\[\d\.\d\.\d\]\s-\s\d{4}-\d{2}-\d{2}\n)(.+?)(?=##\s?\[\d\.\d\.\d\]) Which seems to work fine in  But, when trying to run the same regex in grep / pcregrep pcregrep -M "(?<=##\s\[\d\.\d\.\d\]\s-\s\d{4}-\d{2}-\d{2}\n)(.+?)(?=##\s?\[\d\.\d\.\d\])" CHANGELOG.md  yields no results. What's wrong with my command?


Blender VSE - background color of video from imported image sequence

I'm looking into the Blender Video Sequence Editor to create animations out of existing sequences of images. The image sequences are generated with POV-ray. I've downloaded Blender 2.79, I run W7 64-bit.  I did a test and I noticed that in the rendered video the background color was quite different from the source. For the source images the background color is White: RGB(255,255,255). In the rendered video the background color is a bluish grey. I took a screenshot, copypasted it in GIMP, and according to GIMP the color is RGB(234,234,245).  What can be the cause of that change of color, and is there a way to prevent that from happening?  Original:    Rendered:   For rendering settings I followed as much as possible the recommendations in the VSE tutorial series by Mikeycal Meyers.  Mikeycal Meyers recommends for the 'encoding': Xvid, and the dropdown menu does show that option:      Note that after clicking on the option 'Xvid' the text displayed in the 'encoding' field remains 'presets', so it is unknown whether or not Blender has accepted the 'Xvid' selection.      I have zero knowledge of which 'container' setting and which 'codec' setting will suit my purposes. I chose 'mpeg-4' pretty much at random.  The video that I have in mind will be a combination of some 2D scenes (white background), some 3D scenes (white background), and a couple of shots filmed with some form of video camera.  I assume that all the shots that are to be combined into a video must be rendered with the same codec. Since some of the shots will be camera shots I assume the codec that is to be used needs to be a general purpose codec rather than some special purpose codec.  What can be the cause of the change of the background color? Is it perhaps something that the Blender VSE has done, or is it perhaps an artifact of the codec that was used (or perhaps a combination of both)?  Is it perhaps the case that the codec that was used is not designed to preserve color? I did expect the type of barely noticible color blurring that you get with jpeg compression, but the sweeping change of background color comes as a total surprise to me.   Since multiple difference image sequences will be incorporated in the final video it is essential that the background color is absolutely consistent, otherwise there will be a jarring change of background color going from scene to scene.   [LATER EDIT] Let me try and upload a screenshot of the full window. (I have a dual display setup, with both displays in portrait orientation) For this first test this is the current screen layout.     [LATER EDIT] I gave Blender a good night's sleep, and after restarting the computer and restarting Blender I noticed something had returned that was gone the previous session: a video editor preview. (See the screenshot of the full Blender window: only a checkerboard pattern, but no preview.)     When I drag the vertical green line in the video sequence editor the preview displays the corresponding frame from the source image sequence.


I would like to ask for a feature if it is possible to add Flowchart facility in the question and answer block. this would be very useful because flowchart can help explain the algorithm better. most of the code samples are not compile able but are given for the demonstration purpose. a flowchart will do a better job at that I believe. Of course a diagram can be copy pasted but editing it will be difficult. moreover if there is flowchart facility and if there is an error in the flowchart not only the author can edit it but also others can edit it in-place. editing this flowchart also will be as quick as the code edit.  thanks.


Simpler approach to JavaScript sort() method

I have an array of objects, modeling some videogames: let games = [     {title: 'Desperados 3', score: 74, genre: ['Tactics', 'Real Time']},     {title: 'Streets of Rage', score: 71, genre: ['Fighting', 'Side Scroller']},     {title: 'Gears Tactics', score: 71, genre: ['Tactics', 'Real Time']},     {title: 'XCOM: Chimera Squad', score: 59, genre: ['Tactics', 'Turn Based']},     {title: 'Iratus Lord of The Dead', score: 67, genre: ['Tactics', 'Side Scroller']},     {title: 'DooM Eternal', score: 63, genre: ['Shooter', 'First Person']},     {title: 'Ghost Of Tsushima', score: 83, genre: ['Action', '3rd Person']},     {title: 'The Last Of Us Part 2', score: 52, genre: ['Shooter', '3rd Person']} ]  If I want to sort it by games' scores it's very easy: const gamesSortedByRating = games.sort((a, b) => b.score - a.score);  But I've found out, that in order to sort it by games titles, it cannot be (or, at least I wasn't able to) do it this way: const gamesSortedByTitle = games.sort((a, b) => a.title - b.title);  I had to write a compare function to do that: function compare(a, b) {     const titleA = a.title.toLowerCase();     const titleB = b.title.toLowerCase();        let comparison = 0;      if (titleA > titleB) {       comparison = 1;     } else if (titleA < titleB) {       comparison = -1;     }      return comparison; }  The question is is there any way to do that in a more simple way? Like the score one liner I've shown above.


Make Windows Task Scheduler alert me on fail

I have an automated script that pulls backups from my website to my local computer. This script could fail; once my server was down, another time I accidentally moved my script.  How do I make Windows Task Scheduler tell me with the script fails (or doesn't run/not found)?  I don't care if a prompt comes up, an email or something that appears on my desktop. I want to be notified if something goes wrong. On my server, crontab emails me about errors - which is great. I want something like that on my windows 7 local computer.


siunitx: Problems with xparse after update on 2016-03-31

Dear community members,  after today's (2016-03-31) update of packages via TexLive Utility severe problems with siunitx showed up on Mac OS 10.10.5 + TexShop.  siunitx calls xparse, which then outputs the following LaTeX Warning:  You have requested, on input line 53, version            `2016/03/28' of package expl3,            but only version            `2016/03/26 v6466 L3 programming layer (loader) '            is available.   and thereafter the Package xparse Error:  Support package l3kernel too old   If you switch off \usepackage{siunitx} in the following MWE everything works well.  \documentclass{scrartcl} \usepackage{siunitx} \begin{document} A formula: $a^2 + b^2 = c^2$. \end{document}   How to handle that issue? Thanks in advance for your support. Frank


Is there any condition where finally might not run in java? Thanks.


What is a homogeneous Differential Equation?

In first-order ODEs, we say that a differential equation in the form $$\frac{\mathrm d y}{\mathrm d x}=f(x,y)$$ is said to be homogeneous if the function $f(x,y)$ can be expressed in the form $f\left(\displaystyle\frac{y}{x}\right)$, and then solved by the substitution $z=\displaystyle\frac{y}{x}$.  In second-order ODEs, we say that a differential equation in the form  $$a\frac{\mathrm d^2 y}{\mathrm d x^2}+b\frac{\mathrm d y}{\mathrm d x}+cy=f(x)$$ is said to be homogeneous if $f(x)=0$.   Is there a relation between these two? What does homogeneous mean? I thought it's when something $=0$, because in linear algebra, a system of $n$ equations is homogeneous if it is in the form $\boldsymbol{\mathrm{Ax}}=\boldsymbol 0_{n\times 1}$; but this doesn't seem to be the case for first-order ODEs.


Why do Magnetic North and South Poles never exist by themselves?

As the title suggest, whilst I was reading I saw written that a 'Magnetic North or South Pole has never been found by itself'. And I was wondering why this was?


I'm trying to use a for-loop to print out numbers with a step of 0.1 and my output is coming out weird.  My code:       int main() {     float i;     for(i=1.0;(int) i<=9;i=i+0.1)     {         printf("%f ",i);     }     return 0; }   It outputs everything just fine up until 2.700000 and then goes 2.799999,2.899999,2.999999 etc. What's going on?


VirtualBox Toolbar is hidden! How to show it?

I accidentally hide the main Toolbar from my VirtualBox Manager UI? In my ubuntu 12.04 .   Can anyone let me know the detail steps to display the Toolbar again? I search the whole blogs but can't figure it out!


How do I log in to Pokemon Go on a new phone (old phone broke - didn't sign out and it is impossible) with my Google account?

So my Samsung Galaxy S3 broke, the screen won't display anything, it turns on but there's no vision, I tried fixing it but it didn't work. Now I have a new phone, downloaded Pokemon Go and I can't log in due to neverending loading screen when I click Google account. I can't sign out of my account on the old phone, is that the matter? Will resetting the phone completely help or it's just the matter of server overload?


AuraEnabled Apex Method - Too Many DML Statements: 1

I am calling this JS method from a button inside of a flow, which in turn calls the Apex method deleteContentDocument. Upon button click I get the Too Many DML Statements:1 error. What I have tried so far -  I tried running the Apex method through Execute Anonymous Window inside developer console, it runs fine. Upon research I have read removing AuraEnabled would fix the issue, that didn't fix. Also removing AuraEnabled doesn't even call the Apex method because I see not system.debug statement called.  Javascript: deleteContentDocument(event) {     let contenttoRemove = event.target.dataset.name;     deleteContentDocument({         documentId: contenttoRemove     }).then(result => {         console.log(result);     }) }  Apex Method public with sharing class HelperController {     @AuraEnabled(cacheable=true)     public static void deleteContentDocument(String documentId) {         System.debug(documentId);         List<ContentDocument> file = [SELECT Id FROM ContentDocument WHERE Id = :documentId];         delete file;     } }  Why do I get this error? How do I fix it?


ConcurrentModificationError Java, else if statement and for each loops (I don't know and can't use iterators)

This else if statement works as intended, except after it is finished running it comes to this ConcurrentModificationException error. Im thinking it might be from the for each loop but I am not too sure.   else if(input == 2){             System.out.println("Enter a period");             int periodInput = sc.nextInt();             System.out.println("Enter the students name (Dont include a space between the first and last name)" );             String nameInput = sc.next();             if(periodInput == 3){                 for(Student a: period3){                     if(a.getName().equals(nameInput)){                         period3.remove(a);                         System.out.println(period3);                     }else{                         System.out.println("No student was found with this name");                     }                 }             }


Why does Linux allow users to remove the root directory?

When I installed Linux for the first time in my computer, I always liked to use root, because I didn't need to add sudo and type the password every time I executed a command that needed root permissions.  So one day, I just wanted to remove a directory, and I ran rm -rf  /, so my system just broke down. I wonder why the Linux designers didn't forbid such a dangerous command.


Eeebuntu inexperienced user, forgot my username but I know my password how can I find it without logging in?

I had lost this computer around the house and now that I'm trying to get back onto it I have completely forgotten my login name


Can't connect to minecraft servers after 1.7.2 update

Both server and client are 1.7.2, that's for sure. I can connect to the same server with 1.7.2 client from another PC. But on my main PC I get this in console (using linux, oracle jdk 6, no luck with jdk 7):  [14:50:30 INFO]: Client> [14:50:30] [Client thread/INFO]: Connecting to ***.org, 25565 [14:50:30 INFO]: Client> Exception in thread "Server Connector #1" java.lang.ExceptionInInitializerError [14:50:30 INFO]: Client>        at bbf.run(SourceFile:55) [14:50:30 INFO]: Client> Caused by: java.lang.IllegalStateException: failed to create a child event loop [14:50:30 INFO]: Client>        at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:61) [14:50:30 INFO]: Client>        at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:49) [14:50:30 INFO]: Client>        at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:61) [14:50:30 INFO]: Client>        at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:52) [14:50:30 INFO]: Client>        at ef.<clinit>(SourceFile:41) [14:50:30 INFO]: Client>        ... 1 more


How to remove Windows 10 from Windows Boot Manager after uninstalling it?

I installed Windows 7 on one partition and formatted the other where I had Windows 10 installed leaving only that one Windows 7 OS on my drive, but I still have two OSs offered in Windows Boot Manager. What is even weirder is that their names are reversed, when I choose Windows 10, it's Windows 7 that gets loaded.


1/z on an annulus has no anti-derivative

An old exam question states     Let $0 \leq R_1 < R_2$ and consider the set $ A:=$ {$z \in \mathbb{C}: R_1 < |z| < R_2$}, along with the function $g: A \rightarrow \mathbb{C}$ given as $g(z) = {1 \over z}$, $\forall z \in A$.  Show that, even though $g$ is analytic in $A$, there is no analytic function $h$ in $A$ such that $h' = g$.   By contradiction, suppose such an $h$ exists.  Naively, I'd assume it's a branch of log($z$).  Is the only issue, then, that $h$ may not be well defined, since part of the real axis is included in $A$?


$\mathbb{Z} \times \mathbb{Z} $ is a PID or not?

we know Z is a PID but there exists no ring isomorphism between ZxZ and Z. So based on this observation can we conclude that ZxZ is not a PID ? I dont think we can because if A and B are isomorphic rings then we can say with certainty that both A & B have the same algebraic properties but if they are not isomorphic then it dose not necessarily mean that there can not exist some common property between A and B where some other property/properties are bound to differ. Am I wrong here?


Is there any published research on Stack Overflow in the last 18 months?

A bit over a year ago, there was . This was also referenced in  Are there any more recent publications involving Stack Overflow or Stack Exchange?  Also, what is the best way to keep informed of such work? By keeping in contact with the Stack Exchange folks directly?


Difficulty being admitted to good PhD programs in the UK

Since last September I have been working hard on my applications, applied to multiple good CS departments yet none of them even wait-listed me, all rejected me, I have also got rejected informally by supervisors I approached.  Now I know I am not an established researcher in this field, I did not publish anything yet nor I have a concise experience with a certain topic but I know that I am not far off and I can pull my weight to reach the desired level by a number of the departments I applied to. The issue is that I almost all the time get unfriendly, cold treatment from professors, none of them is willing to take 5 minutes to discuss anything.  I am told that professors will always accept me even if I had average or below average marks because I am bringing my own fund for this degree yet this whole notion seems false.  My master's transcript does not look good, I have failed 2 courses and recovered but that 'F' will always look like a stain on my transcript. My bachelor's transcript is average (upper-second in UK scale).  How can I improve my chances to get into a PhD field that is not far off what I did in my master's?