How to verify that money transferred to you is really and irreversibly yours

of the overpayment scam on this StackExchange. Whereby the victim believes that they've been sent money and is asked to send some of it elsewhere, and then the original payment is cancelled, or reversed, or found to be fraudulent.  So, supposing you've received a cheque or a bank transfer that you suspect might try to be reclaimed in some manner.  What process do you go through, with the bank, in order to verify that the money is "real" and is "really yours".  Presumably an individual can't just randomly decide to reverse an old payment after any arbitrary period. (Otherwise I could reverse a payment made to Amazon 4 years ago!) Likewise, it can't be the case that fraud anywhere in the history of a payment causes a reversal of every movement of that money thereafter (otherwise victim's outbound transaction would also be reversed and they wouldn't lose out).  Clearly, if a scammer sent me money and then forgot to reverse the transfer, then 10 years later, that transaction can't possibly be reversed!  So ... what process would I go through to verify and finalise a transfer. If I wanted to do so.   Note. This is NOT a question about the advisability of keeping or using such money if I confirmed it was now really mine. Just about how to establish whether its now finally mine in the first place.


Why is there no comma before "and" before this independent clause?

This was at a moment when the magistrate, overcome with tiredness, had   gone down into the garden of his house and, dark, bent beneath   some implacable thought, like Tarquin cutting the heads off the   tallest poppies with his cane, M. de Villefort was knocking down   the long, dying  stems of the hollyhocks that rose on either side of   the path like ghosts of those flowers that had been so brilliant in   the seasons that had passed away.   Why is there no comma before the bolded and? My understanding is that there is an independent clause on each side of the bolded and.   By the way, the subject of the two independent clauses is the same.


Should I be worried about a possible threat?

I recently installed Ubuntu 12.10. I use Clamav and have scanned my system regularly for infections. Today it picked up a potential threat  /usr/lib/ruby/1.9.1/rdoc/generator/template/darkfish/js/thickbox-compressed.js. Ubuntu is my only operating system installed. Clamav was not able to delete or quarantine the file. Should i be concerned or is this a false positive? I have scanned the same file multiple times and it picks it up as a threat each time. Also i tried googling the issue before posting and found no information.  A point I forgot to mention, clamav picks it up as PUA.script.packed-1


I've doing some researches since few days and I haven't really got an answer to my question.  I am in the process of building a huge file server for the company I work for. We bought a server case  with 24 bays and drives. Now I am stuck at the point where I have to choose the RAID card. I saw a RAID card from LSI that offer 6 internals mini-SAS 8087 ports (6x4) and would work perfectly with my build. However, it's not cheap.  I have been reading about the subject and I found something called SAS Expander. They are cheap.  with 6 mini SAS 8087 for 225$ (instead of 1150$ of the other one).  Now my question, how would I link an SAS Expander with a RAID card ? Do I need to a buy a RAID card with only 1 external 8088 port and link it with the other card ? Could someone clarify this for me because I haven't found any good documentation on it.  Thanks you.


How to prevent PDO prepared statement adding the quotes?

I have a PDO query like this.  $query=$this->con->prepare('SELECT ? FROM ? '); $query->execute(array($rows,$table)); /*$rows="*"; $table="category";*/   Everything is OK in the coding. But when PDO executing my query it parse it as,  SELECT '*' FROM 'category'   So it's a wrong SQL statement.   You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''category'' at line 1   Please help me. How to prevent PDO from inserting the 's.


I confess, I didn't jump on the Stackoverflow bandwagon when everyone else did. I've recently signed up and I have a reputation of 176 on stackoverflow.com. To my surprise, I now find that I need 20 to be able to participate in Chat. Is this 20 regarding meta.stackoverflow.com? I find it odd that when signing up it detects my Stackoverflow account and associated me yet ignores reputation.   What happens if I have absolutely zero interest in meta? I understood the chat is irrelevant of meta itself or was I wrong?


Can the preposition 'in' be omitted here?

Here are two sentences. 1. What are you doing in here? 2. What are you doing here?  What is the difference between the two sentences? (between No,1 and No,2 sentences)  Is there any grammar to omit preposition like above?


Can we flag questions with content/trigger warnings?

Part of my daily routine is to go to stackexchange.com and see the hot questions. Today this hot question was up:    The question itself seemed like it might be a problem but my curiosity got the better of me, and I was not expecting to see quite so much graphic detail about the nature of the abuse -- to the extent that it ended up giving me a panic attack.  I feel like this question (especially in detail) is likely to cause a lot of emotional grief for a lot of people, and it would be beneficial if it could be flagged with a content warning and, ideally, if questions like those would not show up on the "hot questions" list.  The question itself is legitimate and I am glad the user asked the question -- and the answers they received are, also, quite beneficial. But it certainly isn't the sort of thing I was hoping to be confronted with, especially as a "hot question."  Thus, what I am proposing:   Have the ability for the community to flag such comments with a content warning Prevent such posts from appearing on the "hot network questions" display and sidebars.   Edit: It appears that the question has since been deleted. I have mixed feelings about this (the answers which were given would have been very educational for the person asking). Regardless, I still feel like a content-warning mechanism would be helpful; sometimes there are questions that are important and valid but which are also troublesome for some people to see.  The use of CW-based partial-hiding is well-established in communities such as Mastodon, where people can put things behind a structured spoiler/CW tag that indicates what lies behind it.


Conversion from Minutes To Hours:Minutes:Seconds

I want to convert Minutes as "Hours:Minutes:Seconds".  How can this achieved using c#.  I have tried this  driveHours = (totalHours.balanceDriveMinutes / 60).ToString("00") + " Hrs. "  + (totalHours.balanceDriveMinutes % 60 ).ToString("00") + " Min." +  (totalHours.balanceDriveMinutes /3600).ToString("00") + " Sec.";    But it doesn't seem to be correct.


The presence of a person who has left a place

Q: What word should we use, if we were to describe the PRESENCE left behind, by a person after he/she leaves a place? [I have faced this exact situation a couple of times in the past few days,believe me!] (or) Can sillage be used in this situation? i.e in an abstract sense?   provide the following definition:     (noun) The degree to which a perfume's fragrance lingers in the air when worn   ‘neither scent has a very strong sillage’   (mass noun) ‘a summer fragrance with good sillage’   The term  is generally used to describe the fragrance that continues to linger after a person has walked by, but can it also be used figuratively?  If you guys think 'sillage' can be used in an abstract sense, can you please provide a few examples?  Q: Is there a word that fits the description I described above?


Does being refused entry to Singapore mean I am now blacklisted?

My friend who is an Indonesian citizen tried to enter Singapore this week and was refused entry at the Singapore Harbour Front Ferry Terminal by immigration.  This was his first trip overseas and is not used to international travel, so due to his inexperience and that he was excited to go to Singapore, he possibly made some mistakes on trying to be granted access into Singapore.   He was told he was to enter a Singapore address for his stay or a friend or relative he will stay with. He was only staying for one day and was going to catch the ferry back at night, so he had no plan to stay in Singapore and as such had no address to put. They then asked why he was traveling alone and that he should travel with somebody for his first trip. He told them he always travels alone in Indonesia and finds it easier to see and do things alone. He was then asked why he was entering Singapore and the reason he gave was to purchase some electronics which he cannot buy in Indonesia. They asked for how much money he had and they then advised that he did not have enough money to purchase the items he was after. They refused his entry and he was then escorted to a ferry and returned to Indonesia. His passport was not stamped and he was not fingerprinted.   He was given a Notice of Refusal of Entry which had the reason as "Being ineligible for the issue of a pass under current immigration policies" form on his departure. Also included on this form is his passport number etc. He was not advised of him being banned or a time frame that he cannot enter Singapore.  My questions are: Has he been banned or restricted to enter Singapore for a period of time? When entering countries including Singapore, does he need to tick the box stating he has been refused entry into another country? I am hoping to get my friend to Australia at the end of the year for a 10 day holiday and will this hinder his chance of getting a visa and entering Australia?


So simple:  Will this sail-based moving system work? Why?


Hello All I'm writing some code and keep getting a Null Pointer Exception and for some reason I'm just hitting a mental wall.   Now I do know that null pointer is when the value its trying to use is null, but I can't seem to figure out how to fix the problem. (Errored Line is *'d out.)     public static void getMenuChoice(Dog s) {       int LCV = 0;      Scanner in = null; // create a scanner object   do {      System.out.println("Welcome to the Input Menu");      System.out.println("1: Assign the name");      System.out.println("2: Assign the owner");      System.out.println("3: Assign the age");      System.out.println("4: Assign the weight");      System.out.println("5: Assign the breed");      System.out.println("6: Assign the time");      System.out.println("7: Display Dog Information");      System.out.println("8: Quit");      System.out.print("Choose a Menu Option => ");        ****************int input = in.nextInt();*********************       switch (input) {         case 1:            System.out.println("Please Enter the Dogs name");            s.setDogName(in.next());            break;         case 2:            System.out.println("Please Enter the Owners name");            s.setOwnerName(in.next());            break;         case 3:            System.out.println("Please Enter the Dogs age");            s.setDogAge(in.nextDouble());            break;         case 4:            System.out.println("Please Enter the Dogs weight");            s.setWeight(in.nextDouble());            break;         case 5:            System.out.println("Please Enter the Dogs breed");            s.setDogName(in.next());            break;         case 6:            System.out.println("Please Enter the Time");            s.setTime(in.nextDouble());            break;         case 7:            System.out.println(s);            break;         case 8:            LCV = 8;            break;      }   } while (LCV != 8);   }


Converting multipart polygon to singlepart in ArcObjects with C#?

I have a multipart feature and I need to convert it to a singlepart feature.  Couldn't find any code sample.  I wonder if i could get some help from you?  I'm working with ArcGIS 10 and c#.


Enable password asterisks when run command sudo?

when I run sudo command ,  so when I mess up my password, I have to start over from scratch, is there a trick to enable password  asterisks so I know how letter I have typed?


Can't start ubuntu-desktop after upgrade to 18.04

After the restart step of upgrading Ubuntu to 18.04, tty is opening instead ubuntu-desktop. And when I enter my login name and password, I am still in the tty. This is happening again in every restart. How can I start the graphical desktop as normal?


I am running Ubuntu 12.04 on a 64 bit Dell Machine. My speakers are working fine, but my headphone jack just isn't making any sound. I am dual-booting with Windows 7 using Grub as the boot-loader. The sound is working fine in Windows 7 for both headset and speakers.   I have a 7.1 Surround Sound Headset and 2 output jacks. Neither of these 2 jacks seem to work in Ubuntu. The speakers mute like they are supposed to, but there is no sound trough the headset.


Value won't change after going through if-statements

The program is supposed to calculate your TDEE after taking in your gender, BMR, and activity level but it can't calculate it if the activity level won't go through and I feel like it's something to do with my if-statements but I really don't know how.   The value types of gender and level used to be char but my teacher told me to change it to String but it still didn't work.  import java.util.Scanner; public class TDEE_2 {     public static void main(String [ ] args)     {         Scanner in = new Scanner(System.in);         double activityFactor = 0.0;          System.out.println("Please enter your name: ");         String firstName = in.next();         String lastName = in.nextLine();         String name = firstName + lastName;          System.out.println("Please enter your BMR: ");         double bmr = in.nextDouble();          System.out.println("Please enter your gender (M/F): ");         String gender = in.next();          System.out.println("Select Your Activity Level");         System.out.println("[A] Resting (Sleeping, Reclining)");         System.out.println("[B] Sedentary (Minimal Movement)");         System.out.println("[C] Light (Sitting, Stading)");         System.out.println("[D] Moderate (Light Manual Labor, Dacing, Riding Bike)");         System.out.println("[E] Very Active (Team Sports, Hard Manual Labor)\n");          System.out.println("Enter the letter corresponding to your activity level: ");         String level = in.next();          if(gender == "M" && level == "A")             activityFactor = 1.0;         else if(gender == "M" && level == "B")             activityFactor = 1.3;         else if(gender == "M" && level == "C")             activityFactor = 1.6;         else if(gender == "M" && level == "D")             activityFactor = 1.7;         else if(gender == "M" && level == "E")             activityFactor = 2.1;         else if(gender == "M" && level == "F")             activityFactor = 2.4;         else if(gender == "F" && level == "A")             activityFactor = 1.0;         else if(gender == "F" && level == "B")             activityFactor = 1.3;         else if(gender == "F" && level == "C")             activityFactor = 1.5;         else if(gender == "F" && level == "D")             activityFactor = 1.6;         else if(gender == "F" && level == "E")             activityFactor = 1.9;         else if(gender == "F" && level == "F")             activityFactor = 2.2;         else             System.out.println("Sorry, you entered an invalid letter.");           double tdee = bmr * activityFactor;         System.out.println("Your results:");         System.out.println("Name: " + name + "\t\t Gender: " + gender);         System.out.println("BMR: " + bmr + " calories \t\t Activity Factor: " + activityFactor);         System.out.print("TDEE: " + tdee + " calories");     }        }   When I run it, Activity level and TDEE appear empty but they're supposed to have values.  I am new to java and don't know what to do sorry


Saving Arduino sensor data to a text file

How can I save data retrieved from a sensor to a text file on the computer?


How to show that $\mathbb{Z}$ with the operation $m*n=m+(-1)^m n$ is associative?

I'm reading Beardon's Algebra and Geometry:     Show that $\mathbb{Z}$ with the operation $m*n=m+(-1)^m n$, is a group.   I've been thinking on how I should show associativity, I thought about doing this:  $$(m*n)*p$$  Then assuming:  $$m*n=m+(-1)^m n$$  I have:  $$(m+(-1)^m n)*p$$  Which results in:  $$[m+(-1)^m n]+(-1)^{[m+(-1)^m n]}p$$  Then:  $$m*(n*p)$$  Again, assuming that:  $$n*p=n+(-1)^n p$$  I have:  $$m*(n+(-1)^n p)$$  Then:  $$m+(-1)^m [n+(-1)^n p]$$  And show that:  $$[m+(-1)^m n]+(-1)^{[m+(-1)^m n]}p=m+(-1)^m [n+(-1)^n p]\tag{A} $$  But I've tested it with some values on Mathematica and found that when:  $$m = 1; n = 0; p = -1;$$  The equality does not hold. I'm stuck again. Can you please provide me some hints on how to do it? I'm not looking for a full answer.    When I was testing the equality on Mathematica, I felt that permutations of $m,n,p$ on the set $\{-1,0,1\}$ could be enough to prove it, for example:  $$\begin {array} { c | c | c } m,n,p & m,n,p & m,n,p \\ \hline   -1, -1, -1 & - 1, -1, 0 & - 1, -1, 1  \\   -1, 0, -1 & - 1, 0, 0 & - 1, 0, 1  \\   -1, 1, -1 & - 1, 1, 0 & - 1, 1, 1  \\   0, -1, -1 & 0, -1, 0 & 0, -1, 1  \\   0, 0, -1 & 0, 0, 0 & 0, 0, 1  \\   0, 1, -1 & 0, 1, 0 & 0, 1, 1  \\   1, -1, -1 & 1, -1, 0 & 1, -1, 1  \\   1, 0, -1 & 1, 0, 0 & 1, 0, 1  \\   1, 1, -1 & 1, 1, 0 & 1, 1, 1  \\ \end {array} $$  But I'm not sure if this is true. What do you think?


How do I get rid of old linux-headers-3.xx.x-xx files?

I frequently run into the problem that I don't have enough space on /boot left. When that happens, I use  to free space.  The output of the command shown there gives me not only a bunch of old (and current) images, but also a lot more headers files. It does not list the current kernel.  foo:~/Desktop $ dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' linux-headers-3.16.0-38 linux-headers-3.16.0-39 linux-headers-3.16.0-39-generic linux-headers-3.19.0-21 linux-headers-3.19.0-21-generic linux-headers-3.19.0-22 linux-headers-3.19.0-22-generic linux-headers-3.19.0-23 linux-headers-3.19.0-23-generic linux-headers-3.19.0-25 linux-headers-3.19.0-25-generic linux-headers-3.19.0-26 linux-headers-3.19.0-26-generic linux-image-3.19.0-23-generic linux-image-3.19.0-25-generic linux-image-3.19.0-26-generic   I usually remove all but the current kernel and the previous one. However, those headers are way older. Some are 3.16 while I am now on 3.19.  Do I need those, or can I get rid of them?  How do I remove them?


I'm trying to hide inline datepicker when click somewhere else than datepicker, but it also disappears when click on nextMontButton and previousMonthButton      Any idea?

 //here is datpicker
 //here is submit in datepicker style      <input type="submit" name="day" value="Done" id="datePickerSubmit">       <input type="hidden" id="date" name="date" value="">

  jQuery(document).ready(function(){ jQuery('#datepicker').datepicker({       firstDay: 1,       minDate: +2,       maxDate: "+1m",       dateFormat: "yy-mm-dd",       inline: true,       altField: '#date'     }); })   // HIDES DATETIME PICKER WHEN CKICK SOMEWHERE ELSE $(document).click(function(e) {     var target = e.target;      if (!$(target).is('#all') && !$(target).parents().is('#all'))) {        document.querySelector("#datepicker").style.display = "none";        document.querySelector("#submitDiv").style.display = "none";     } });


Travelling by Greyhound for the first time

We will be travelling in September 2017 by Greyhound from New York City to Buffalo with no transfers. The tickets are already booked online. Our departure time is 8.00 am from the Port Authority. We will have 2 checked baggages. How do we find the gate number when we reach the Port Authority terminal?


How to get the current User Profile in Apex Class?

What is the right way to get the current users profile in an apex class?  When I tried to print the following in visualforce page,  i am able to get the profile name  <apex:outputText value="{!$Profile.Name}"/>    But when i tried to print in the Apex class using System.debug(Profile.Name), I couldn't.


Is there a way to grab a list of attributes that exist on instances of a class?  class new_class():     def __init__(self, number):         self.multi = int(number) * 2         self.str = str(number)  a = new_class(2) print(', '.join(a.SOMETHING))   The desired result is that "multi, str" will be output.  I want this to see the current attributes from various parts of a script.


Don't require 50 reputation for commenting on questions

Before down voting: If you down vote, leave a comment; the least you could do is prove that you care by leaving a comment of why you down voted. Down voting with no comment really only hurts the community more.. There hasn't been any good explination as to why no one is looking into this. Spam and "its a pain" just don't quite cut it. There are many ways to avoid spam, and laziness is no excuse.   The situation: This seems like a big conflict. New users are forced to gain more info on the sitautions through answers, which is something that is frowned upon. This seems good for commenting on answers, but requiring it for commenting on questions force new users to use an answer to gain more info from the OP. Now that I have enough rep to do reviews, it seems like a very common problem.  I understand that this leads to the possibility of spam, but there are ways to get around this. I think the combination of moderation of comments by people with under 50 rep and filtering comments to check for repetition, links, and any other things you feel would be good to look for (maybe relevance to tags/title; get creative). Of course it wouldnt be the easiest thing to do, but its definitely progress.


What is the default value of    hibernate.hbm2ddl.auto   in hibernate cfg file mapping   is it possible to remove   <property name="hibernate.hbm2ddl.auto">update</property>   this mapping from config file   if i remove this property whether it affect my DB  ???


Recurring decimal rounding to second place

I have a division 4/3 which produces 1.33333333... I am storing the result in java double and I want to round this result to 1.34. How can this be done in Java ?  import java.text.*; import java.math.RoundingMode; public class HelloWorld{       public static void main(String []args){        DecimalFormat decimalFormat = new DecimalFormat("#.##");      decimalFormat.setRoundingMode(RoundingMode.HALF_UP);       String dd =decimalFormat.format(1.33333333);       System.out.println(dd);      } }   Works with (Math.ceil(1.333333 * 100) / 100.0) but not with DecimalFormat


Expected value of a non-negative random variable

How do I prove that $\int_0^\infty Pr(Y\geq y) dy = E[Y]$ if $Y$ is a non-negative random variable?


I recently bought House of Wolves DLC and now I can't access the Vestain Outpost aka the Reef Social Area. Do I have to be a certain level? I'm level 17. I've looked everywhere on the internet. I also cant use the Dark Below or House of Wolves strikes.


After updating my TeXLive 2020 distribution today, biblatex-chicago has stopped working for me. The following MWE: \documentclass{article} \usepackage[authordate]{biblatex-chicago}  \usepackage{filecontents} \begin{filecontents}{\jobname.bib} @book{test2020,   title = {Test title},   author = {Author},   date = {2020},   publisher = {test},   location = {test}, } \end{filecontents} \addbibresource{\jobname.bib}  \begin{document}   \cite{test2020}   \printbibliography \end{document}  produces this error: Runaway argument? { ! Paragraph ended before \blx@defformat@i was complete. <to be read again>                     \par  l.2523 \DeclareFieldFormat{annotation}{\par                                            \nobreak \vskip \bibitemsep #1}  The culprit must be in one of these packages, I think, but I'm unable to detect which one: [ 5/24, 00:31/15:37] update: biber.x86_64-darwin [27659k] (53064 -> 56144) ... done [ 6/24, 02:37/05:09] update: biber [1165k] (53064 -> 56144) ... done [ 7/24, 02:42/05:07] update: biblatex [7408k] (53063 -> 56143) ... done [ 8/24, 02:54/04:26] update: biblatex-ext [617k] (56081 -> 56150) ... done [ 9/24, 02:57/04:26] update: biblatex-jura2 [367k] (53243 -> 56133) ... done  I have this problem (since today's update) on a Mac and a Linux machine. (I haven't updated another Linux machine which still compiles alright this MWE.) Any ideas?


Prove that if both $x$ and $y$ are odd, then $\gcd(x, y)=\gcd\left(\frac{x-y}{2}, y\right)$

Wasn't able to include this in the title, but it is given that if $x$ is odd and $y$ is even then $\gcd(x, y)= \gcd\left(x, \frac{y}{2}\right)$. I am struggling to get started with this problem. I would appreciate any help. What I have so far: Let $z = \gcd(x, y)$. We know $z\mid x$ and $z\mid y$. Truly not sure where to go from here.


I saw this format in a paper. This is obviously not a picture. These numbers can be copied and pasted like other text. How is this done? Thanks.


Why does a light switch that is switched off show 50 volts between hot and neutral?

It's a two-wire light fixture without ground. When the switch is on I measure 120 volts between the hot and neutral in the ceiling fixture. If I switch it off I measure 50 volts. Why?


Identify names with no match on another sheet

I have two sheets that contain mostly identical names but a few names with no match on the other sheet. For example:  Sheet 1    1. Kumar 2. Rajiv 3. Ranjith 4. Supriya 5. Sanjay   Sheet 2    1. Kumar 2. Rajiv 3. Ranjith 4. Hari 5. Sanjay 6. Supriya   I need to identify Hari as not having a match on Sheet 1.  How can I identify such names that appear on Sheet 2 but not on Sheet 1?


I followed  tutorial awhile back and successfully ended up with this image rendered in cycles.    Here's what my node setup looks like.    Recently, I came back to the scene to render it at a higher resolution. I rendered it and got this image out:    Why did the rock and sand textures turn pink?


For any $r$, $s$, $t>1$, then there's a group such that $x$ has order $r$, $y$ has order $s$ while $xy$ has order $t$?

Let $r$, $s$, and $t$ be positive integers greater than $1$. How to prove that  there exists a finite group $G$ having elements $x$ and $y$ such that $x$ has order $r$, $y$ has order $s$, and $xy$ has order $t$?  Thanks in advance.


When using each combined with or , which is correct:  Each individual or group is happy. Each individual or group are happy. Each individual or group is filled with laughter. Each individual or group are filled with laughter.


Find and copy text from one file to another

My goal is to extract text from a specific line with a hotword (don't know how to call it else) in it. The line number can vary because its an weekly updated file. When hotword is detected it should copy this line and all following text to another file.  Could this be done by sed, awk or something else?


Can I fly from NY to Las Vegas if I’m out of status?

I'm an Italian citizen. I came to the USA on a tourist visa 2 years ago but overstayed. I only have my Italian passport with me. Should I be fine flying within the US with no worries? Is anybody going to ask me for my immigration status? I'm very scared.


Evaluate $\int_{0}^{1} (x^x)^{(x^x)^{(x^x)^{^{{\cdot}^{\cdot}}}}} \text{d}x$  This doesn't seem elementary. But since MSE would otherwise want me to show what I have tried, I decided to write it in a more closed form. Write it as $y$, then it becomes $x^{xy} = y \implies x\ln(x) = \frac{\ln(y)}{y}$. Now that $\int \frac{\ln(y)}{y} \text{d}y = \frac{1}{2} \ln^2(y) + c,$ I feel like there's something we can do with this.


e2fsck on large filesystem fails with Error : Memory Allocation Failed

I'm trying to use e2fsck on a large raid array that is 2TB large and uses GPT for partitioning (because of size).  There is only 1GB of ram installed on the system and I do not have the ability to add more at this time.  The problem is, shortly after starting the fsck on the device, I get an error that says:  Error storing directory block information (inode=115343515, block=0, num=108120142): Memory allocation failed e2fsck: aborted   After a little bit of online searching and research I ran across this posting below:    I followed the advice after looking up the MAN page for e2fsck.conf and basically created a /etc/e2fsck.conf file that looks like:  [scratch_files] directory = /var/cache/e2fsck   and tried the fsck again after making sure to create the /var/cache/e2fsck directry. After starting the fsck again and watching the available memory, cpu usage, and teh directory size of /var/cashe/e2fsck... i can say it definetely helped a lot... but it still eventually failed giving the same error. Basically it helped slow down the memory consumption but did not negate it all together.   So i tried playing with the addition flags for the e2fsck.conf file using:  dirinfo = false    or  dirinfo = true   and   icount = false   or  icount = true   neither of which seemed to have much of an effect as the same error happens after a short while.  Am i missing something? I'm ok with the fsck taking a long time... But i need it to actually complete instead of erroring out.


Below is a two droplet merging together,in 2d. I want to simulate the behavior when I exert combination force(through mouse or fling force on touch screen) on one of them to  make them to be a larger droplet. I suppose there exists some kind of function by the distance of these two droplet's center,when the distance is closer,one becomes smaller,the other one becomes larger. What kind of model should I build? Particles or geometry circles or sth else?


Is there a wood elf wife that you can marry?

I am a wood elf so I would like to be married to a wood elf so is there any wood elf wives out there?


Assuming a pregnant lady who is in a comatose state is in the hospital and hooked to IV's and such (and under the watchful eye of the doctor), would her body instinctively contract to the degree where she would be fully dilated and be able to deliver a vaginal birth?   I know that in most cases, it would be c-section, no doubt, but this is just a hypothetical question on whether or not it is even possible.     Can a pregnant woman in a coma still be able to give a vaginal birth? Will her body instinctively contract?


Prove that a product of two complex numbers has zero imaginary part

This is my homework, which reads as follows: Let $z_1, z_2$ be complex numbers.  Prove that when $z_1z_2 \neq -1$ and $|z_1| = |z_2| = 1$, then the imaginary part of $$ \frac{z_1 + z_2}{1 + z_1z_2} $$ is zero.  I've tried to approach this in several ways, but whichever one I try, at some point the expression gets too large and doesn't simplify (at least I cannot find a way to simplify it).  The way I tried to approach this problem is to:   Set $z_1 = a+bi$, $z_2 = c+di$, then $z_1+z_2=(a+c)+(b+d)i$, and in polar form, $\sqrt{(a + c)^2 + (b + d)^2}\times (\cos\theta + i\sin\theta)$, $\tan \theta = \frac{b+d}{a+c}$. Find $\tan \phi$, where $\phi$ is the angle of $\frac{1}{1 + z_1z_2}$. Substitute into $\tan(\theta + \phi) = \frac{\tan(\theta)+\tan(\phi)}{1-\tan(\theta)\tan(\phi)} = 0$.   The problem is $\tan(\phi)$ is a huge expression, and I cannot get it to simplify, so I cannot also show that the last formula is actually true.  Since this is a homework, and we are expected to do this with pan and paper (not even a calculator...), I don't believe we are to do this many calculations by hand.  Hence, there must be some "trick" to get this to simplify, or a completely different approach.  Would you care to give me a hint?


$ \frac{1}{2^1}+\frac{3}{2^2}+\frac{5}{2^3}+\frac{7}{2^4}+\cdots $  This is a pretty unorthodox problem, and I'm not quite sure how to simplify it.  Could I get a solution?  Thanks.


Why does this proof of the chain rule not work?

Why is this proof not valid?  Here is my "rigorized" version: We write $$\frac{d}{dx}f\big(g(x)\big)=\lim_{b\to a}\frac{f\big(g(b)\big)-f\big(g(a)\big)}{b-a}=\lim_{b\to a}\left[\frac{f\big(g(b)\big)-f\big(g(a)\big)}{g(b)-g(a)}\cdot\frac{g(b)-g(a)}{b-a}\right]$$ Now we split the limit up to get $$\lim_{b\to a}\left[\frac{f\big(g(b)\big)-f\big(g(a)\big)}{g(b)-g(a)}\right]\cdot\lim_{b\to a}\left[\frac{g(b)-g(a)}{b-a}\right]$$ In the first limit, we can set $y=g(x)$. Then by differentiability, and hence continuity, of $g$, we have $y\to g(a)$ as $x\to a$. Therefore the first limit can be expressed as $$\lim_{y\to g(a)}\left[\frac{f\big(y\big)-f\big(g(a)\big)}{y-g(a)}\right]$$ So we get, by definition of the derivative, $$\frac{d}{dx}f\big(g(x)\big)=f'\big(g(x)\big)\,g'(x)$$  There are two objections given to this proof. The first is that one cannot multiply by the quantity $\big(g(b)-g(a)\big)/\big(g(b)-g(a)\big)$ as $g$ may be constant around $x=a$ and the expression would then be undefined. However, it seems obvious that we can simply consider the case of $g$ constant separately (and the case of $g'$ not defined due to 'infinite oscillations', the difficulty cited in the wiki article), where it is easily seen that the formula is valid. (Indeed, this exact point is made in the comments under the answer to .)  The second is that the limit substitution is not justified. I don't understand this either. That limit rule (in which such substitutions are allowed for continuous functions) could easily be proven, but that has nothing to do with the chain rule. This is the objection given in an answer to   I found three other relevant sources.   The first proof in the  explicitly avoids the proof above on the basis that the expression noted may be undefined. In the last page of  the author offers students $3$ points if they can explain why the argument I gave above is a flawed proof. In  the author similarly showcases the flawed proof, and then moves on to the 'real' proof.   The 'real' proofs are, shall we say, 'not pretty'. I am wondering if this salvaged version of the intuitive proof really does not work, and why?    EDIT: THEORETICAL ADDENDUM FOR THE CASE OF INFINITE OSCILLATIONS  Suppose that $g(a)=g(b)$ for infinitely many $b$ in all neighborhoods of $a$. Then I claim: if $g'(a)$ is defined, it must equal $0$.  Proof. The quantity $$\frac{g(x)-g(a)}{x-a}$$ can be made equal to $0$ by picking an appropriate $b$ in the interval $(a-\delta,a)\cup (a,a+\delta)$ regardless of how small $\delta>0$ is. Therefore there does not exist, for every $\epsilon>0$, a $\delta>0$ such that the difference quotient is always within $\epsilon$ of any limiting value not equal to $0$. For the limit $L\ne 0$, take $\epsilon=|L|/2$. As the limit must exist by hypothesis, it exists and equals $0$.  Next I claim: the chain rule is valid in this case.  Proof. The chain rule formula returns $f'(g(a))g'(a)=f'(g(a))\cdot 0=0$ in this case. We prove that, in fact, the derivative is equal to zero.   Because $g'(a)=0$, we can make $$|g(x)-g(a)|<\epsilon |x-a|$$ true for any $\epsilon>0$ by picking an appropriate $\delta>0$. Then suppose that $f'(g(a))=c$. We have $$|f(x)-f(g(a))|<\max\{|c+\epsilon|,|c-\epsilon|\}|x-g(a)|$$ for any $\epsilon>0$ when $x$ is sufficiently close to $g(a)$. So make $|x-a|$ sufficiently small for all conditions. Then we have $$|f(g(x))-f(g(a))|<\max\{|c+\epsilon|,|c-\epsilon|\}|g(x)-g(a)|$$ $$\frac{|f(g(x))-f(g(a))|}{|x-a|}<\max\{|c+\epsilon|,|c-\epsilon|\}\frac{|g(x)-g(a)|}{|x-a|}$$ But $$\frac{|g(x)-g(a)|}{|x-a|}<\epsilon^*$$ ($\epsilon^*$ the first epsilon) so we have $$\left|\frac{f(g(x))-f(g(a))}{x-a}\right|<\epsilon^*\max\{|c+\epsilon|,|c-\epsilon|\}$$ Therefore the difference quotient can be made arbitrarily small, and hence $$\frac{d}{dx}\left(f\big(g(x)\big)\right)=0$$ as was to be shown.


PyQt window created within a class __init__ does not display

This code from a tutorial works fine in PyQt5 if I call it from __main__     window = QWidget()     layout = QVBoxLayout()     layout.addWidget(QPushButton('Top'))     layout.addWidget(QPushButton('Bottom'))     window.setLayout(layout)     window.show()  If I put the code class in the __init__ of a class: class MainWindow (QMainWindow):      def __init__ (self):          print ("HERE 1")         window = QWidget()         layout = QVBoxLayout()         layout.addWidget(QPushButton('Top'))         layout.addWidget(QPushButton('Bottom'))         window.setLayout(layout)         window.show()         print ("HERE 2")         return  then in __main__: app = QApplication (args)  mw = MainWindow.MainWindow ()  return app.exec_ ()  Then the print statemets happen but no widgets display. Why would window not display in the second case? (The corresponding C++ code would display it.)


I would like to run the simple shell command echo 1 > /proc/sys/kernel/sysrq at each boot, to enable the sysrq keys. When in boot should this be done, and where should I put a script to do it?


Probability that $X \ge Y$ given N rolls on a d20

Probability that $X \ge Y$ given N rolls on a $d20$  Example:  Originally, we wanted to roll a $13$ or higher $7$ times in a row. In and attempt to improve the odds and make it easier to understand we changed it to be $7(N)$ $d20s$ where one must be greater than or equal to $91(Y)$. So, what is the probability that $X$(sum of rolls) is greater than or equal to $Y(91)$ given $N(7 rolls)?$   We think the answer is $0.16%$ or $1/625$ because in order to achieve the minimum of $91$, one must roll at least a $13$ on every roll. What we're wondering is does the fact that it's now cumulative change the probability?  Thanks for your time.


Wordpress 3.5 Media Manager - Reorder Selectbox items on Media Library Tab

The new media library is awesome but its a bit inefficient. When the page loads, it puts ALL MEDIA ITEMS as the default view. Which causes the page to load a LOT of images. I'd like it to default to "Uploaded to this post".  I've tried other solutions, such as changing the default selection   But this is done via JS and when there's a lot of images on the page, it first starts loading the "ALL MEDIA ITEMS" tab and then switches tabs to "Uploaded to this post" so I think the better way to do this would be to reorder the select box so that "Uploaded to this post" is first and the default.  I'm not sure how to go about doing that. Or if its even possible with filters. Would love some feedback from the experts. Thanks!


Integer vs Double multiplication gives very strange output

When I am trying to multiply 3 (Integer type) with 112.1 (Double) then the result I get contains many decimal points.  Integer a=3; Double b=112.1;  Double result=a*b = 336.29999999999995    But when we multiply 2 (Integer) with 112.1 (Double) then decimal point is so minimal.  Integer a=2; Double b=112.1; Double result=a*b = 224.2   Can anybody give me the reason why this strange behavior comes?


I want to draw a Cayley graph of a group using GAP after I get a list. Is there a way to visualize that Cayley graph ? Or  is there any other software to do it?


For a non-diagonalizable $n \times n$ matrix, how to prove that $\exists (A_m)$ is diagonalizable matrix such that $A_m$ converges to $A$. Here we define norm on $M(n, \Bbb C)$ s.t $||X||=(\sum _{i=1}^\infty\sum_{j=1}^\infty|x_{ij}|^2)^{1/2}$ and $A_m$ converges to $A$ iff $||A_m - A|| \to 0$ as $m\to \infty$  I was thinking to use Jordon Canonical form but can't get it as the calculation are getting twisted. If someone has some detailed proof please help.


Proof of Strong principle of Induction (T. Tao Analysis I)

I have no idea how to prove it by using only what the book has talked about so far. Can anyone help? The proof shouldn't be using set theory as set theory is only mentioned in the following chapter. The proof should only make use of the addition of natural numbers, order properties of natural numbers, the trichotomy of order for natural numbers and principle of induction.  Proposition 2.2.14 (Strong principle of induction). Let $m_0$ be a natural number, and let $P(m)$ be a property pertaining to an arbitrary natural number $m$. Suppose that for each $m ≥ m_0$, we have the following implication: if $P(m')$ is true for all natural numbers $m_0 ≤ m' < m$, then $P(m)$ is also true. (In particular, this means that $P(m_0)$ is true, since in this case the hypothesis is vacuous.) Then we can conclude that $P(m)$ is true for all natural numbers $m ≥ m_0$. Exercise 2.2.5. Prove Proposition 2.2.14. (Hint: define $Q(n)$ to be the property that $P(m)$ is true for all $m_0 ≤ m < n$; note that $Q(n)$ is vacuously true when $n < m_0$.)  Thanks!


Losing Control of Bestowed Enchantment Creatures

I've been playing Magic for about six months and thought I had a decent handle on how things work until I ran into the following problem:  Set-up:  I was playing mono black devotion against blue-green control. I bestowed  onto . At the end of my turn, my opponent (in control of ) flashed in a . I chose not to pay the tribute, so my opponent took my  with  attached.  Question:  If I kill  while my opponent controls it, when  becomes a creature again do I regain control of Herald of Torment, or does my opponent retain possession of it?


I have a pageBlockTable that loops through a list of objects.  I'm trying add an onRowClick event so I can use the clicked row as data for a javascript function. However when saving in the developer console, I'm getting the error :-     (Unknown property 'ContactStandardController.c')   What am I doing wrong, why is it looking at the controller and not the pageBlockTable var?  <apex:page standardController="Contact" >     <apex:pageBlock>         <apex:pageBlockTable value="{!Contact}" var="c" onRowClick="alert('{!c.Name}');">         </apex:pageBlockTable>     </apex:pageBlock> </apex:page>


I am new in hibernate. When sending the static parameter in HQL query its working fine. When sending in setParameter Method it's giving null pointer exception. Please help what I am doing wrong in it.          /** HQL Query **/          String hql = "FROM MUser mUser where mUser.uEmail = :email AND mUser.uPassword = :password";            Query query = getCurrentSession().createQuery(hql);            query.setParameter("email", "xyz@fsndk.com");            query.setParameter("password", "12345678");              MUser muser = (MUser) query.uniqueResult();   Model class  /** Mapping Class **/  @Entity @Table(name="tbl_users") public class MUser implements Serializable {       @Id     @GeneratedValue(strategy=GenerationType.AUTO)     int uId;      String uName;      String uMobile;     String uAddress;     String uEmail;     String uPassword;  ...  }   Error coming  org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException     org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:973)     org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)     javax.servlet.http.HttpServlet.service(HttpServlet.java:648)     org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)     org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)


Separating two huge images into two pages

How can I seperate two huge images into two pages? I tried \newline but no success.  \documentclass[12pt]{book}  \usepackage{subfig} \usepackage{caption} \usepackage{graphicx}  \begin{document}  \begin{figure} %\ContinuedFloat \centering \subfloat{     \centering     \includegraphics[width=435pt]{img-molmicros2.png} } \newline \subfloat{     \centering     \includegraphics[width=451pt]{img-molmicros3.png} } \caption{sdfsdfsdf} \label{fgdfg} \end{figure}  \end{document}


The PostGIS documentation states that ST_PointOnSurface returns "a POINT guaranteed to lie on the surface". It seems like this function could be trivially implemented to give results that satisfy the documentation but provide little real-world utility, though I'm certain that PostGIS provides a non-trivial implementation.   provides a nice comparison and contrast of ST_Centroid with ST_PointOnSurface and says that "[ST_PointOnSurface] is substantially more computationally expensive than the centroid operation".  Is there a more thorough explanation of how ST_PointOnSurface is calculated? I've been using ST_Centroid, but have encountered some edge cases in my data where the centroid is outside the geometry. I believe that ST_PointOnSurface is the correct substitute, but the function name and documentation leave room for uncertainty.  Further, is the computational expense of ST_PointOnSurface incurred even if the centroid does lie within the geometry already?


I would like to create a VF page and call a custom component inside it.    <apex:page controller="MyController"> <apex:form> <c:mycomponent id="myId" attributeName="{attributevalue}"/> </apexform> <apex:page>   But this returns me: 'c:mycomponent' component cannot be nested within form tags'  I have tried to without the  and call this page from another one using the  tag, but it doesn't work either.  I read somewhere that is not possible to do what I need, but in the past I was allowed because I have some examples in my old code.  Is there a workaround now?  Thanks in advance


Plotting an illustration of the learning rate in neural network learning using TikZ package

I know how to plot an arbitrary curve using the smooth interpolation, but what I want is to add annotations similar to the ones in the image below in order to illustrate how the learning rate works.


Recently all my attempts at sauces are splitting and I'm not sure what's going wrong. Tonight I tried a balsamic vinegar reduction / chicken stock / pan juices recipe to go with my lamb chops, but once again the dreaded split occurred. My wife is patient and forgiving, but I feel like I must be missing something fundamental to get this wrong so often.  Two questions.   What could I be doing wrong to cause these sauces to split? What can I do to recover when it happens again?   UPDATE: The Pan juices contained a tbsp or two of olive oil, and some of the fresh herb rub I'd coated the lamb chops in (thyme, rosemary, and mint). I did not drain the pan before starting the sauce. It has crossed my mind that perhaps there was too much oil / fats in the pan at that point?  For completeness, I should point out that I also sauteed some chopped shallots in the pan juices immediately before adding the vinegar.


How to know if a disk is an SSD or an HDD

I want to know whether a disk is a solid-state drive or hard disk.  lshw is not installed. I do yum install lshw and it says there is no package named lshw. I do not know which version of  is suitable for my CentOS.  I search the net and there is nothing that explain how to know whether a drive is SSD or HDD. Should I just format them first?  Result of fdisk -l:  Disk /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00074f7d     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *           1          14      103424   83  Linux Partition 1 does not end on cylinder boundary. /dev/sda2              14         536     4194304   82  Linux swap / Solaris Partition 2 does not end on cylinder boundary. /dev/sda3             536       14594   112921600   83  Linux  Disk /dev/sdc: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000   Disk /dev/sdb: 128.0 GB, 128035676160 bytes 255 heads, 63 sectors/track, 15566 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000   Disk /dev/sdd: 480.1 GB, 480103981056 bytes 255 heads, 63 sectors/track, 58369 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000


Recently, I came across the verb to bathe written as bath in two English coursebooks used by Italian students. The first time I saw it, I dismissed it as a typographical error and told my private student that the verb was bathe, but when it appeared a second time, in a different  textbook, I checked with an online dictionary and read the following definition with which I am most familiar.              bath verb: to wash (someone) in a container filled with water   "to give a bath to (someone)"   "to have a bath" : to wash yourself in a bath      But in a different dictionary I read this        [WITH OBJECT] British   1. Wash (someone) while immersing them in a bath:    how to bath a baby      1.1 [NO OBJECT] Wash oneself while immersed in a bath:   a)there was no hot water to bath in   b)These are the people that quite happily let me shower and bath with no hot water for 10 days, because they couldn't be bothered to fix a tap.   I told my student that it appeared that to bath was a BrEng variation and that Americans probably didn't say or use it.   However, upon doing some research I found many websites that use bath and bathe indiscriminately, with the same meaning   How do I bath my baby?  (UK) Read about how to bath your baby  (UK) In California it is illegal to bath two babies in the same bath at the same time.  (US) [this might be a typo] But try not to bath more than once a day  (Aus) You can bath the baby daily, but make sure… .  (Arab Emirates)          It’s not necessary to bathe your newborn every day  (Aus) If it's easier for you to bathe the twins during the day...  (US)   The first time you bathe your baby, you may feel a bit nervous.  (India)   You don't need to bathe your baby every day...  (UK) What’s the best way to bathe my baby?  (UK)   The above shows the transitive use of the verb bath/bathe. I presume the age of the child or adult being bathed is not a key factor, it was just easier for me to search "bath/e your baby".   The phrase in one of my student's coursebook was using the intransitive form instead.     You'll visit onsen or thermal springs where we recommend you bath   communally like the Japanese.   Questions: Apparently, both forms are acceptable but is to bath AmEng or BrEng? Is it grammatical? (I just find it so odd.)    Finally, if the pronunciation of the verb to bath is /bɑːθ/ (UK) and /baTH/ (US) does this effect the pronunciation of the past form bathed? i.e. /bɑːθt/ (I don't think it does, but I'd just like a confirmation)


Ratio of coefficients for Laurent series expansions

Let $f$ be analytic in the disk $D(0,2)$ except for a pole of order $1$ at $z=1$, and let $$f(z)=\sum_{k=0}^\infty a_k z^k$$ be the series expansion for $f$ in the disk $D(0,1)$. Prove that $$\lim_{k \to \infty}\frac{a_{k+1}}{a_k}=1.$$   Intuitively, I want to say that the information given yields a Laurent series representation on $D(0,2)-\{1\}$:$$f(z)=\sum_{k=-1}^\infty b_k (z-1)^k$$ Expanding instead around $z=0$, we have an issue of a non-removable singularity at $z=1$ with analyticity everywhere else. Thus,  the distance from $z=0$ to $z=1$ (the nearest singularity from the point of analyticity) is 1, so the result must follow by the Ratio Test as applied to the radius of convergence.   My solution has a feel of lack of rigor, however, and I don't know how to improve on its statement (or whether my approach is even valid).


What are the meaning and possible origin of "word!" and "word up"?

Several times, I have had conversations, all over instant messenger, finish with "word" or "Word up G".  As it ends a conversation, I am guessing it is like "goodbye".  My question is what is the meaning of "word" and "word up g"? Also, what is the origin?  I am more interested in the meaning as that will help with understanding its usage.


Cannot install Ubuntu (14/16/17) on i7-7820x and Gigabyte x299-UD4

I have been trying to install Ubuntu on my new machine. The specs are:  -Gigabyte x299-UD4 (rev. F2)  -i7-7820x  -32gb 2400mhz-DDR4 kingston CL15  -960 M2 ssd samsung  These errors appear while i try to boot up the installer:      I should return this motherboard right? Windows setup runs fine. It is really strange i cannot even boot the ubuntu setup. I have searched everywhere and i can't find a reference for this. I'm really disappointed with Gigabyte. I bought this machine exclusively for linux usage and i find it hard that nobody on the MB development team boot up linux once.


What privileges should a MySQL user have?

When I am creating a user for my Drupal in cPanel, it asks me to check all privileges. What privileges should be enabled, to make Drupal work correctly?  Currently, my user has all privileges except Drop permission.


Why do kit lenses, some zooms, and primes have their aperture controlled by the camera?

I'm curious why do those kit lenses and 50mm primes, plus some zooms including all telephoto glasses have their aperture controlled electronically by the camera and some of them lack the aperture control ring? Is it for the automatic exposure controls?  I want to shoot in manual mode.


Is it possible for more than two particles to be entangled in a quantum way?

So I know that two particles can be entangled in a quantum way, but is it possible that more than two particles be entangled in a quantum way? Most descriptions provide with two-particles cases, so I wonder. (It's hard to think of three particles entangled in spin, or so.)


Long names cut off in questions and answers

The Unhandled Exception's name is cut off in this  and in the answer too. The last 'n' looks like an 'r'.  Using Firefox 3.6.6.  Examples:


Updating null geometries from attribute using ArcGIS Field Calculator?

I have a large point feature class and have realised that there are several hundred features with null geometry. Fortunately the coordinates are stored as an attribute. What I need to do is update the geometry of the points with the x and y stores in the attribute table.  After a little search I found an Esri Support Services Blog post on  which includes a python function that will do this for me in the field calculator.  However, it seems that this will only work on features with a geometry. When I run it on the null geometry features it returns a syntax error. presumably this is because there is no shape or there is no shape.getpart(0).  Is there something I could add to this script to allow it to update null geometries, or does anyone have another method?


If $f,g\in H(\mathbb{D})$, and there are no zeroes in $\mathbb{D}$. If $\frac{f'}{f}\left(\frac{1}{n}\right)=\frac{g'}{g}\left(\frac{1}{n}\right)$ $\forall n$, then $f=kg$ for some $k\in \mathbb{C}$.  I don't see what theorem should I use to prove it. Any hints to solve this problem?


I've following VirtualHost configured:  <VirtualHost *:80>     ServerAdmin     mymail@mymail.com     DocumentRoot    /var/www/mysite.com/public_html/     ServerName      www.mysite.com     ServerAlias     mysite.com      <Directory "/var/www/mysite.com/public_html">         #Options FollowSymLinks         #AllowOverride All         #Order allow,deny         #Allow from all       Options Indexes FollowSymLinks       AllowOverride All       Order allow,deny       Allow from all       Require all granted     </Directory>     I'd like:   to enforce a https-only connection  and allow a connection when the user uses mysite.com without www   How to do that?   Thanks


Import class from parent package in Java

I suspect I misunderstood some basic concept of packages in Java. Here is my hierarchy of the project:   Application (class with main) Option (class) Algorithm (Package)   PreProcessOptions (class) GenerateImage (class)    Now, I would like that PreProcessOptions class will use Option class, to get all necessary data, but my IDE cannot find the class.  Any explanations?  Thanks.


Embed (or remove) T3 fonts when creating PDF

My printing company is complaining about some T3 fonts in a PDF I created (using "PDFTextify" in WinEDT). The image below shows how Acrobat DC reports these fonts:    Running the "pdffonts" command on my PDF prints many entries for these fonts (apparently they are embedded):  name    type encoding emb sub uni [none]  T3   Custom   yes no  no  [none]  T3   Custom   yes no  no  ...  [none]  T3   Custom   yes no  no    If the fonts ARE EMBEDDED but are bitmats (as described ), how can I detect which package / instances are the offending ones, so that I can try change them to use other fonts?     Thanks, Jorge.  FINAL UPDATE: I found the culprits! I have stand-alone-generated tables that use the siunitx package, and (by default?) it was using bitmap fonts for some greek letters! Adding \usepackage{lmodern} as advised  replaced these fonts and solved the issue. Cased closed, thanks so much everyone for your help!  MWE:  \documentclass{standalone} \usepackage{siunitx} %\usepackage{lmodern} \begin{document} \begin{tabular}{l} \SI{8.8}{\micro\meter}\\ \end{tabular} \end{document}   Outputs without \usepackage{lmodern}:    name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- PEJPSC+CMR10                         Type 1            Builtin          yes yes no       4  0 CUJHND+CMMI10                        Type 1            Builtin          yes yes no       5  0 [none]                               Type 3            Custom           yes no  no       6  0   Outputs with \usepackage{lmodern}:    name                                 type              encoding         emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- JQGWLD+LMRoman10-Regular             Type 1            Custom           yes yes no       4  0 DGEJQT+LMMathItalic10-Regular        Type 1            Custom           yes yes no       5  0 JQGWLD+LMRoman10-Regular             Type 1            Custom           yes yes no       6  0


Minimum requirements of self-answered question

Are there any rules (or guidelines) for a Asking and Answering your own question? What are the minimum requirements a self-answered question needs to meet, or do you treat it just like a normal question (like this one)?


Identifying which singlepart non-overlapping polygons are islands using ArcGIS for Desktop?

Is there a simple method to select singlepart non-overlapping polygons in a single feature-class which are not contiguous with other polygons ie they are island polygons?


Inequality concerning nonnegative numbers (related to Hanner's inequalities)

I've been having a look at how Lieb and Loss (in their textbook on Analysis) prove Hanner's inequalities and have been trying to get a handle of the geometric intuition involved. In doing so I've been trying to prove that:  $(a+b)^p + (a-b)^p \geq 2a^p +p(p-1)a^{p-2}b^2$  For any $1\leq p\leq 2$ and $0<b<a$.  This is exercise 4 in chapter two of the aforementioned book. Can anyone give me any tips (or some geometric intuition)?  Also can anyone give me any explanation of why uniform convexity is important, and what it might mean geometrically?  Edit: for the latter question the following is useful but I would appreciate any more comments.


How to remove checked attr on a checkbox when I click it again

How can I do this : $(".continuar").removeClass("ver"); when I click one checkbox but I click it again to remove the checked?  I mean when I click one checkbox the button next appears and if I click the second checkbox it changes to checked but I want this : when I click the first or second checkbox again to uncheck I want the button to disappear.  This is exactly what I want: check box 1 unchecked = $(".continuar").addClass("ver"); and the same on check box 2 unchecked = $(".continuar").addClass("ver");  I'm talking about this button  <div class='continuar'>     <input type="button" onclick="siguiente()" value="Continuar" class="boton" /> </div> <input class="opc1" type="checkbox" value="1" onClick="Califica(1)" /> <input class="opc2" type="checkbox" value="2" onClick="Califica(2)" />   function Califica(opc) {     $(".continuar").addClass("ver");     respuestas[pMin]=opc;      if (opc==1) {         $("#p"+pMin+" .respuesta .opciones .opc1").attr('checked', true);         $("#p"+pMin+" .respuesta .opciones .opc2").attr('checked', false);     } else if (opc==2) {         $("#p"+pMin+" .respuesta .opciones .opc1").attr('checked', false);         $("#p"+pMin+" .respuesta .opciones .opc2").attr('checked', true );     } else if(opc == 1 || opc == 2) {         $("#p"+pMin+" .respuesta .opciones .opc1").removeAttr('checked');         $("#p"+pMin+" .respuesta .opciones .opc2").removeAttr('checked');      } }   I tried to do this with Netzach comment but it didn't work   function Califica(opc){      $(".continuar").addClass("ver");     respuestas[pMin]=opc;     if (opc==1){         $("#p"+pMin+" .respuesta .opciones .opc1").attr('checked', true);          $("#p"+pMin+" .respuesta .opciones .opc2").attr('checked', false);         $('.opc1').on("click",function(){    if($(this).attr('checked')) {  $('.button').show();  }else{    $('.button').hide();   } });      }else if (opc==2){         $("#p"+pMin+" .respuesta .opciones .opc1").attr('checked', false);         $("#p"+pMin+" .respuesta .opciones .opc2").attr('checked', true );           $('.opc2').on("click",function(){    if($(this).attr('checked')) {     $('#button').hide();   } });              }         }


"Images with street signs" CAPTCHA impossible to solve

I just got challenged (over on ) by the new "Mark all images with street signs" CAPTCHA.  I must have tried a dozen times to solve it by checking all images that had street signs, but I never succeeded.  Of note is a text input field without instructions of what to enter there. I suspect that is the problem: It is expecting input, but doesn't tell me what to input.  It's either broken or I am missing something.  I am using Chrome on an iPhone in "full site" mode.


How to represent bibliography using bib file

I have a bib file in txt format in the same directory of all the rest of Latex files. Here is an example of my file named: Bibliographyforpaper.txt content:   @article{kargupta2004fourier,       title={A fourier spectrum-based approach to represent decision trees for mining data streams in mobile environments},       author={Kargupta, Hillol and Park, Byung-Hoon},       journal={Knowledge and Data Engineering, IEEE Transactions on},       volume={16},       number={2},       pages={216--229},       year={2004},       publisher={IEEE}     }  @article{mukherjee2006privacy,   title={A privacy-preserving technique for Euclidean distance-based mining algorithms using Fourier-related transforms},   author={Mukherjee, Shibnath and Chen, Zhiyuan and Gangopadhyay, Aryya},   journal={The VLDB Journal—The International Journal on Very Large Data Bases},   volume={15},   number={4},   pages={293--315},   year={2006},   publisher={Springer-Verlag New York, Inc.} }    In the LATEX file I use:    \usepackage{filecontents}  \begin{document} \begin{abstract} \end{abstract} \section{Introduction} \newpage     \bibliography{Bibliographyforpaper}{}     \bibliographystyle{plain} \nocite*  \end{document}   And there is only headline of References and no list of the bibliography. If I add \printbibliography and I get an error.


How do I create an 8 sided die from one object?

Simply put, is there a way to make a cube balance solely on one point/vertex?  I'm struggling. I do not want to have to join two objects, nor have to extrude an object. I just want to have a simple eight-sided die created with one mesh.


Why is it that many packages in apt-get are outdated? For example, I would like to get the latest implementation of the clojure programming language onto my machine. However, running the command apt-cache search clojure I get the following:  clojure - a Lisp dialect for the JVM clojure-contrib - user contributed set of libraries for clojure clojure1.2 - Lisp dialect for the JVM clojure1.3 - Lisp dialect for the JVM leiningen - simple build system for Clojure libclojure-maven-plugin-java - Clojure plugin for Maven libclucy-clojure - Clojure interface to the Lucene search engine libjava-jdbc-clojure - Clojure interface to sql databases via jdbc librobert-hooke-clojure - Function wrapper library for Clojure libtools-logging-clojure - Logging macros for Clojure   All the clojure implementations are old (clojure is version 1.1). The newest release of the clojure programming language is 1.5.  Why is it that packages are not up to date? Do I need to reconfigure my apt-get program?


How can I prevent my device from automatically converting SMS to MMS?

The Galaxy S I9000 messaging app automatically converts long SMS messages to MMS. How can I disable this?


Asking for someone to accept your answer

Is it improper etiquette to, as long as you're certain, add a comment merely suggesting that they accept the answer? Do I sound like a reputation whore?


Cannot repair a corrupted usb flash drive

I have an 8GB USB 2.0 flash drive (no-name), on which I tried a few days ago to copy a film of about 6GB. The flash drive had NTFS file system so I thought there will be no problems. But at some point an error had occurred that I didn't noticed and after some time I removed the flash drive without seeing the error. Now the flash drive is unusable. In Windows I get a Drive is write protected error, so I tried with Ubuntu.  I have run GParted as superuser, with the partition not mounted. This is how GParted recognizes the drive:     And in the Information tab it is said  Unable to detect file system! Possible reasons are  - The file system is damaged  - The file system is unknown to GParted  - There is no file system available (un-formatted)  - The device entry /dev/sdd1 is missing   Ultimately, when I try to format (simply format, or delete partition then make a new partition), I get the following errors:  Input/output error during write on /dev/sdd Error fsyncing/closing /dev/sdd: Input/output error   I tried using dd if=/dev/zero of=/dev/sdd bs=512 count=1 to clear all data, then mkfs -t vfat /dev/sdd1 to format to FAT32, but this has no effect. Also, I searched for bad sectors with badblocks -sv -b 512 /dev/sdd, and it returned 0 bad blocks.  Any ideas of how can I make this flash drive usable?  Update: I have managed to wipe the data (fill with zero) using Minitool Partition Wizard under windows, but now under Windows/Ubuntu the drive is recognized as "read-only"... can't do anything to it...


I have to find in mytextmap the closest value to keymap, for all keymap's elements and attach it to each other in a new map <char, char> called key(key of key is key of keymap, value is key of mytextmap).    Here my attempt:   for (auto i = keymap.begin(); i != keymap.end();){     int j = ((i->second) / sumkey)*sum;     auto tmp = find_value(mytextmap.begin(), mytextmap.end(), j);     while (tmp->second != j)     {         j--;         tmp = find_value(mytextmap.begin(), mytextmap.end(), j);     }     key[(*tmp).second] = i->second;     i=keymap.erase(i);     mytextmap.erase(tmp); }   find_value - returns an itterator for element in (map.begin(), map.end()) with value(like j in my code).   There is an error, somewhere. Crash error: "expression map/set iterator not dereferencable. Problem is not in erase(already fixed).  On while-line it crahes. Sting before works, string after - no.


Consider the initial value problem   $$xu''+\sin(x)u=0 \ \ \ \ u(0)=0, u'(0)=2$$   Derive the first $4$ non-zero terms of a power series solution to this problem about the point $x=0$.    I know the solution will have the from $$u(x)=\sum_{k=0}^{\infty}A_kx^k$$ But upon differentiating, I get that $$\sum_{k=0}^{\infty}k(k-1)A_kx^{k-2}+\sin(x)\sum_{k=0}^{\infty}A_kx^{k-1}=0$$ and do not know how to proceed. Would an initial substitution help?


WiFi ICON is gray on my kitkat ONLY at home and ONLY with a specific device

I have noticed that when I'm at home, the WiFi icon is always gray, so I cab still have access to the internet but notifications from apps like whatsapp, Facebook, etc doesn't, work. When I connect to another WiFi network like the one on my job, the icon turns to blue and notifications work as expected.  I think the problem may be on my internet at home, but how can I fix this?  UPDATE There are some strange things i noticed: It's only this specific phone that does not receive push notifications. I tested with my brother's phone and with one of mi friend and they both receive push notifications... so the problem happens ONLY at home and ONLY with this specific device.


I need to make a copy of /etc/default/grub file and put it in ~/backup/config/ directory In Gnome files.


How do I find what the Other Storage is being used by?

A similar question was asked here, and closed as a duplicate, but none of the referenced questions answered the actual question posed, I'm asking it again.  I have a similar situation with a Macbook Air 2013 running Cataline 10.15.5. Having read and applied the suggestions in those referenced questions, I'm left with the same issue here.  Note the 33gb of "Other" in the last line. It appears that the "Other" doesn't appear in the file-browser under documents. Effectively, a quarter of my disk is "dark matter" which I can't identify, and thus either use or remove. I've run First Aid on the disk in recovery mode, and that didn't find any issues.


Choice of power supply block for RPI4 PCB and sensors

My project consists of making analog to digital conversion from 10 sensors ( and ) with a Raspberry Pi4. The analog to digital conversion chips are . I need to power them with the bipolar mode +2.5V/-2.5V. I have 2 choices: two 9V batteris or a power bank 5V 3A. How can I know if the two 9V batteries can support powering all the system (sensors,RPI4,ADS1299?) What must I calculate to choose the optimal power supply system?


If $\prod X_{\alpha}$ is normal then is $X_{\alpha}$ normal too? I would guess it's not? But I have no idea of how to prove it. Is there any proof to prove the claim or a counterexample otherwise?


PHP htmlentities() can't handle åäö characters

I'm writing a simple webpage with PHP and for security reasons I pass certain form values through the PHP htmlentities() function. However, even though I specify a UTF-8 format it doesn't seem to be able to handle the characters "åäö". This is my code:  echo htmlentities("Hello", ENT_QUOTES, "UTF-8"); echo htmlentities("Hello åäö", ENT_QUOTES, "UTF-8");   The first line outputs "Hello" and the second one outputs "". Why is this? Have I missed anything?  EDIT:  There seems to be a problem with my encoding settings. This is the full code. Propably a silly error but I'm new to HTML/PHP.  <?php header('Content-Type: text/html; charset=utf-8'); ?>  <html>     <head>         <title>Testing</title>     </head>     <body>         <?php echo htmlentities("Hello", ENT_QUOTES, "UTF-8") . htmlentities("Hello åäö", ENT_QUOTES, "UTF-8");?>     </body> </html>


Like other animals, why humans don't have species & breeds?

Like other animals, why don't humans have species & breeds ?  Even my pet dog is one type of breed, but we (humans) lack breeds & species?  What is the main reason?


Please tell me a good reference book of complex analysis. I am a postgraduate student. I really need this. I want to strong my basic concepts from starting. So please  help me .....  Now I am reading complex analysis by 'kasana'


QUESTION:  Is there a way to tell the compiler to look the headers files in a specific directory ? I would like to use  #include "my_file.h"   Instead of  #include "/path/to/mylib/include/my_file.h"   (I'm trying to see how I could organize a custom library where headers files would not be in the same folder as the programs).  Sorry for the previous answerers, I had to completely recreate my question as it was not clear.  ANSWER:  Finally I found the answer. I could not add an answer since my post has been marked as duplicate (I believe), but anyway, I could use any of the following:   #include <my_file.h> #include "my_file.h"   The "trick" was to use the -I option, which adds a header directory.  gcc -I/path/to/mylib/include myprogram.c ~/path/to/mylib/src/file/my_file.c -o myprogram && ./myprogram   In this case, the structure is:   /path/to/mylib/include/my_file.h   /path/to/mylib/src/my_file.c   /path/to/myprogs/myprogram.c    And the current dir was /path/to/myprogs


How does stackoverflow detect whether i'm a logged in user?

So when I enter , I don't see anything on XHR. How on earth does the server know who I am? :)


How many generators do we need to generate the Rubik's Cube group?


How to start a GUI application from the terminal and return immediately?

For example, if I type gimp in my terminal, Gimp will launch, but it will wait for gimp to be closed before returning control to the terminal. If I press CtrlC it will close Gimp. How do I prevent this?


Need help setting up a search form for wordpress

I want to set up a search function as a widget in wordpress. This is the situation that I have.  1- I have 3 custom post types 1.a: Each post type has custom fields and taxonomies.   I have regular wordpress section with categories and tags.   So this is what I want the search to do:  There will be a selection option in the search form, and when the user is going to search they will select from the following:  a. entire site b. post type a c. post type B d. Post type D  Thank you for your help. Please avoid suggesting a plugin. I am looking for custom functions that will search custom fields, custom taxonomies, and the post types.  Thank you for taking the time to read this.


Flag history shows different formatting for answers and questions

Here is an excerpt of the four most recent entries in my flag history on :    It seems like questions have a larger font size than answers (for no apparent reason) and removed posts are shaded (why is that?).  Here's a similar view on :    ...and on  where the alignment is off:    Since , something is still amiss here. Can this be fixed to be consistent? As an example, match how questions and answers are listed during  with a Q: or A: prefix (for a Question or Answer). The current visuals are not intuitive.  OS: Windows Browser 1: Google Chrome, Version 69.0.3497.100 (Official Build) (64-bit) Browser 2: Firefox Quantum 62.0.2 (64-bit)


After updating to Android 5.0, I can no longer find the 'My Files' application. Has this feature been disabled? If not, where is this now located?


Python clear screen problem cross-platform

I am a python beginner, and I am working on an interactive shell/terminal. I want to clear screen interactively with input. Would someone help me please, figure out a cross-platform solution.


If $f$ is Lebesgue integrable, does $\int_{\mathbb R}|f|=\lim_{t\to \infty }=\int_{-t}^t |f|$?

If $f$ is Lebesgue integrable, does $$\int_{\mathbb R}|f|=\lim_{t\to \infty }=\int_{-t}^t |f|\ \ ?$$  This question may be obvious and stupid, but in an exercise, I have to prove that $$\int_{\mathbb R}|f(x-h)|dx=\int_{\mathbb R}|f(x)|dx,$$ and in the solution, they prove the statement for caracteristic function, then simple function, then positive measurable function then for measurable function. But why don't we simply do :  $$\int_{-t}^t |f(x-h)|dx=\int_{-t-h}^{t-h}|f(x)|dx,$$and taking $t\to \infty $, we get $$\int_{\mathbb R}|f(x-h)|dx=\int_{\mathbb R}|f(x)|dx.$$  Does this work or not really ?


Calling virtual method from derived class in vector of base class c++

Inside a class BaseClass I have a public function:  virtual void Call(){};   Inside of a derived class Archer I have the function:  void Call(){ cout << "whatever" << endl; };   I also have a vector set up:  vector<BaseClass> classes;   wherein I push 3 classes derived from BaseClass. The problem seems (to me, I'm probably wrong) to be that I am calling Call() from a reference to BaseClass even though I push them into the vector through a method like:  BaseClass Player::CharChoice(string character) {     if(character == "Archer") return *new Archer();     else if(character == "Knight") return *new Knight();     else if(character == "Sorcerer") return *new Sorcerer();     else cerr << "CHARACTER NOT DEFINED" << endl; };  for(int c = 0; c < chars.size(); c++) {     classes.push_back(CharChoice(chars[c])); }   If I instead set up a variable such as:  Archer *archer = new Archer();   and call Call(), it works how I would intend. I'm fairly new to C++ and cannot think up a solution to this.


Will there be another iteration of The Matrix?

At the end of The Matrix Revolutions it appears Neo died (or maybe not, ) and created peace between humans and machines. There are arguments for both sides on whether Neo lived or died. My question though, relates more to the conversation between the Architect and the Oracle at the end of The Matrix Revolutions.  Oracle: Well, now, ain’t this a surprise. Architect: You’ve played a very dangerous game. Oracle: Change always is. Architect: Just how long do you think this peace is going to last? Oracle: As long as it can. {Architect starts walking away} Oracle: What about the others? Architect: What others? Oracle: The ones that want out. Architect: Obviously, they will be freed. Oracle: I have your word? Architect: What do you think I am? Human? ... Sati: Look, look! points at sunrise Oracle: Just look at that! Beautiful! Did you do that? Sati: nods For Neo. Oracle: That’s nice. I know he’d love it. Sati: Will we ever see him again? Oracle: I suspect so. Someday. The Matrix Revolutions  I interpret this to mean the peace wont last forever, a new Matrix iteration will one day ensue and there will be a need for a new One. Will there be another iteration of the Matrix, with a Zion, humans unknowingly living in a simulation, and humans fighting machines?


Is there any sensitive equation solver which will not show the result as approximately $0$ for this equation:  $$\cos x=e^{-\Large\frac{3}{10^{45}}}$$  or how can I calculate it?


Is there any heat/energy 'lost' to computing power?

I have a Kill-A-Watt Power meter on my computer that has a GPU mining bitcoins. It draws 500W from the wall outlet.  My question is, is my computer outputting any less heat than an equivalent 500W heater? Or is 100% of the power drawn from the wall converted into heat?  I'm not sure where the energy would go, so my gut reaction seems to say yes. However, the computer is performing other operations with the power, flipping transistors and spinning fans and such. Would it have some less-than-100%-percentage of the power input that is converted to heat then?  If the fans and hard drives and other kinetic components were excluded (say 500W with nothing spinning, all solid state), would it then have the equivalent heat output of the 500W heater or a perfect 500W heat source?


Does "When enter on the battlefield" trigger heroic?

When a  enters on the battlefield and I choose a creature with heroic to recieve the a +1/+1 counter, does it trigger the heroic? I don't think so because the heroic says explicitly that when a spell targets that creature but I would like to check.


Ubuntu Windows Dual boot on the same drive problem

Here's what I did   I have an SSD and regular hard drive I installed Ubuntu 13.10 on SSD and Windows on the regular hard drive everything is in harmony Then created another partition on the SSD and installed Windows on that partition (because Windows on the regular hard drive is giving me horrible performance) Now my Thinkpad T430 will boot directly into Windows   My questions are    How can I still boot into my Ubuntu? because I need to retrieve important files. If the above is not doable, then Can I still boot into the Windows on the regular hard drive? I made a backup of ubuntu there. I should still retrieve files from that backup.    Any help, feedback and suggestions are greatly appreciated  thanks so much Shawn


Php preg_match_all does not behave as expected

Trying to capture all text between tags.  Code:  $test = '<test>foo<tests> asdlkfjklas lkflsdakj <test>sdfsd<tests> asdlkaskl <test>235234<tests>';  $match = '/<test>(.*)<tests>/';  preg_match_all($match, $test, $nextLink);   Result of print_r:  Array ( [0] => Array ( [0] => foo asdlkfjklas lkflsdakj sdfsd asdlkaskl 235234 ) [1] => Array ( [0] => foo asdlkfjklas lkflsdakj sdfsd asdlkaskl 235234 ) )


Searching for a negative idiom. Where a person sacrifices long term for small relief

What's a negative idiom for a situation where a person sacrifices long term benefit for small, short term relief. Example:  I am cold so I cut off pieces of my jacket to start a fire.  Basically inconveniencing, sacrificing something large for a small moment or purpose without hindsight.


One question asking if $\mathbb{Z}^*_{21}$ is cyclic.  I know that the cyclic group must have a generator which can generate all of the elements within the group.  But does this kind of question requires me to exhaustively find out a generator? Or is there any more efficient method to quickly determine if a group is a cyclic group?


Suppose that I have the following integral:  $$ \int_L \frac {dz}{z^2+1} $$  I need to show that this is equal to $0$ if $L$ is any closed rectifiable simple curve in the outside of the closed unit disc. Simply put, this is where $|z| > 1$.  Initially, I thought that because "closed rectifiable simple curve" is a crucial part of the Cauchy Integral Theorem, the best way to go about this is to show that the rest of theorem must hold. That is, the domain, $|z|>1$, is a simply connected domain, and that $f(z)$ is analytic in this domain.   However, the domain does not appear to be a simply connected domain, as everything on the inside of the unit disc would prevent it from being so. By definition, a simply connected domain is one where any simple curve in that domain can be shrunk to a point that's also in the domain, so therefore, it may be possible to shrink a curve in this domain to the inside of the circle!  I must be missing a key part to this proof, because as of now, this contradicting statement has me stumped. Any thoughts/ideas?


Substitutes for provolone and cacciacavallo cheese in the UK

What can I use as an alternative to provolone and cacciacavallo cheese in the UK? Both have been difficult for me to find here.


Why do I get 'UnknownHostException: session.minecraft.net' when attempting to log in to Minecraft servers?

I can't play online. I can only play solo. I have bought Minecraft so it should work fine, but, when I try to connect to a server, it says:  Internal client error: java.net.UnknownHostException: session.minecraft.net   I have tried over 20 different servers and it says the same thing for every single one.   Note: These are not Hamachi servers. I'm attempting a direct connection.


Change date and time format from csv file without using date -d

I have a .csv file contains   Data1|Data2|10/24/2017 8:10:00 AM   I want to change date and time format of column 3 as following:  From 10/24/2017 8:10:00 AM (12-Hour) to 20171024 08:10:00(24-hour).  Not using -d


I am sick and tired of getting photos that turn out just slightly blurry. I can't seem to figure out why this is or how to fix it. I like to shoot at events, indoors and outdoors, action shots and candid portraits. Mostly "in the moment" stuff.  My biggest guess at the problem would be because I use the 50mm f/1.8 STM. I love the low aperture bokeh, but I'm afraid that my photos might just be a touch out of focus. With such a shallow dof, it gets blurry with even a small focus error. When shooting in the moment, it's can be a hit or miss.   Another guess might be the glass. The lens is nothing special so I wouldn't expect an incredible image, but a sharp image should be possible with most lenses.  I don't think it is motion blur cause I shoot about 1/250 or faster. Back to my hunch about the AF, I sometimes shoot with auto focus point, instead of center focus point. I just talked to another photographer who told me that's a sin. I can switch to center focus point, but that would require all my photos have the subject in the center of the viewfinder. I'd bet there's a way around this but I am not currently aware of it. And would that even fix my problem?   I'd attach two photos as an example, but I think SE compresses the photos so it defeats the purpose, so I'll add link to the original. At a glance, they look fine, but a closer look shows that the subject is not as sharp as possible. I'd love to hear any advice you have.


Prove logarithmic inequality with greatest integer function.

$\left \lfloor n\log_2 n^2 \right \rfloor + \left \lfloor \log_2(\left \lfloor n\log_2n^2 \right \rfloor) \right \rfloor \leq \left \lfloor (n+1)\log_2 (n+1)^2 \right \rfloor + 1$  How to show this? I tried using $\left \lfloor k \right \rfloor \leq k$, but I'm not sure that that does anything...  LHS $\leq \left \lfloor (n+1)\log_2 (n+1)^2 \right \rfloor  +  \left \lfloor \log_2(\left \lfloor n\log_2n^2 \right \rfloor) \right \rfloor $ < $\left \lfloor (n+1)\log_2 (n+1)^2 \right \rfloor + 1$ because...ugh...  $\left \lfloor \log_2(\left \lfloor n\log_2n^2 \right \rfloor) \right \rfloor \leq \log_2(\left \lfloor n\log_2n^2 \right \rfloor) < 1$?  I don't think the last inequality is true.  Help please?  I think it's supposed to hold for all natural numbers or at least all natural numbers after a certain index.


I am trying to save a sequence of images in visual studio 2008,all with the prefix of "Image". the only differentiating factor should be their number. for example if I am gonna save 10 images then the situation should be    i=1; while(i<10) { cvSaveImage("G:/OpenCV/Results/Imagei.jpg",img2); i++ //"i" is gonna be different every time }   so I need to concatenete the integer with the string...  looking forward to the answer...


How do I help my 4 month old nap longer?

My daughter is 4 1/2 months old and she only naps for 30-45 minutes at a time. She wakes up happy, but she is tired again after a little over an hour.   I know some babies are naturally short nappers. But there have been times where she will sleep two hours or longer if I'm holding her (which I have stopped doing altogether for her naps).   I have a short nap routine and I use a sound machine during her naps.   Any advice? Thanks in advance!   -- She takes 4 or 5 naps per day. She is only awake 1.5 hours before she begins showing sleep signs.


How to change Leaflet Map panes layering order (z-index)?

Leaflet maintains that the Map panes elements contain all layers added to the map. The difference between many of the Map panes is strictly the z-index order of layering.  I would like to use a combination of lvector.CartoDB layers, which are essentially overlayPane layers, with TileLayer, such as GeoIQ Acetate-bg and labels.  This is the ordering of the elements as they are added the map:  tileLayer1 = new L.TileLayer(); map.add(tileLayer1);  // add first layer to map  cartoDBLayer1 = new lvector.CartoDB(); cartoDBLayer.setMap(map); // add second layer to map  tileLayer2 = new L.TileLayer(); map.add(tileLayer2);  // add third layer to map   What returns is a map with layers in this order:  tileLayer1,tileLayer2,cartoDBLayer1   tileLayer1 and tileLayer2 are situated in the HTMLElement: TilePane and cartoDBLayer1 is in HTMLElement: overlayPane.  Is there any way to force cartoDBLayer1 to render in the TilePane, such that it falls in order of the z-index that it is added to the map in...   i.e.   z-index[0]:tileLayer1 z-index[1]:cartoDBLayer1 z-index[2]:tileLayer2


Can't delete the filter called My Filter

I'm unable to get rid of a filter that goes by the name of "My Filter".  This is the default name you get when you click on New Filter.  There's a clickable "Delete this filter", which leads to a confirmation question on whether you really want to delete it.  Clicking "Yes" leads you back to the "New Filter" Screen,  with a new filter named "My Filter".    I don't know whether this is the same filter I was just trying to get rid of,  or whether it got rid of the old one, and now is making a new one with the same old name.  Either way, I'm stuck.


Is Force a fundamental concept just like position and time?

The doubt arises from my understanding of Newton's second law. First I though it was just the definition of force but it actually states the relation between force, acceleration and mass (which can be verified empirically).  So, the next question was what exactly is the definition of force? I am not satisfied to just call it a push or pull. Further, could we have developed our physics without having developed the concept of force and instead representing it in terms of other fundamental quantities?  Like, I believe conservation of energy principle can be use to arrive at the same result of newton's second law without having to go through the concept of force. So, in that sense, is Newton's second law redundant?


Technically, would the contraction "I'm" be a sentence?

Way back in high school, I asked my English teacher a question while we were on the topic of sentence fragments.   If the words "I am." make a complete sentence, then would the contraction "I'm" be a full sentence too?  She was not able to answer me. Hopefully someone here can change that.  Note: Before someone marks this as duplicate to this:   I want to say that this question asks if a contraction by itself can be a full sentence or not.


I've googled this but some of the questions seem a bit of of date. I'll ask a fresh one!  We would like to translate some of our webpages into Japanese. We want to have a MySQL table with 2 columns, English and Japanese.  I want to output the Japanese rows if a certain condition is met (such as a querystring value).  To test this quickly I have pasted some Japanese words into an HTML file and tried to preview in the browser but all I get is question marks.  町/市* - seems to be working on StackOverflow!  In my header is:  <meta charset="utf-8">   I was under the impression this was what I was meant to use for them to display correctly. Where am I going wrong?


Upgrading from 12.10 WUBI install to 13.04

Ubuntu has discontinued wubi.exe and i know that when you install the ubuntu 13.04 developer version with wubi you can only login as a guest. I have previously installed ubuntu 12.10 with wubi.exe if i upgrade to 13.04 will everything work normally?


Ok, so here is the question: Suppose $X$ has density $f$ and $\mathbb E|X|<\infty$. Prove: $m$ is a median of $X$ iff the function $g(a)=\mathbb E(|X-a|)$ is minimized at $a=m$. Recall $m$ is a median of $X$ iff $P(X \leq m)\geq 1/2$ and $P(X \geq m)\geq 1/2$.  For discrete case, I think I can just rearrange the data as order statistics. However, for continuous case, I tried to manipulte the integrals of the expectation but didn't achieve the conclusion.


A question about Normal subgroups of $S_4$.


Is there any software like unetbootin in Ubuntu?  I cant install or run unetbootin-494 even though I already set it to allow executing files as programs.


what if key of aes will be more than 32 bytes?

For example, if I use AES-CTR and use key of 44 bytes. Will it be breakable or not and why? How to use AES-CTR correctly?


Simple Present, Simple Past or Past perfect progressive?

Suppose if there's a web site which was out of service yesterday. And it's still down today. Which sentence below should I tell the web master?   The web site is down/(out of service) since yesterday. The web site has been down/(out of service) since yesterday.


Why does an in-loop print() output after the loop is completed?

In the code below, the diamond characters (\4) are not printed immediately but after the loop is completed. Any ideas why?  from os import system from time import sleep  def load():     system('cls')     i = 0     sleep(1)     print("\n\n\n\n\n\n\n\n\n\n\n\t\t\t Loading ", end=' ')     for i in range(6):         sleep(1)         print("\4", end=' ')         sleep(2)  load()


What is the best code template facility for Emacs?

Particularly, what is the best snippets package out there?  Features:   easy to define new snippets (plain text, custom input with defaults) simple navigation between predefined positions in the snippet multiple insertion of the same custom input accepts currently selected text as a custom input cross-platform (Windows, Linux) dynamically evaluated expressions (embedded code) written in a concise programming language (Perl, Python, Ruby are preferred) nicely coexists with others packages in Emacs   Example of code template, a simple for loop in C:  for (int i = 0; i < %N%; ++i) {   _ }   It is a lot of typing for such common code. I want to invoke a code template or snippet which inserts that boilerplate code for me. Additionally it stops (on TAB or other keystroke) at %N% (my input replaces it) and final position of the cursor is _.


My Nan was originally on Windows XP so I changed it to Ubuntu. She had problems using it so I changed it to Xubuntu (as I could make it look similar to Windows and she woul d find it easier to use. But then she bought a new computer and gave me this one, but I want it back to Ubuntu. How do I do this?


No WiFi Networks detected on my Alienware 17 R3 with Killer Wireless-AC 1535 card

I installed Ubuntu 16.04 LTS on my Alienware 17 R3, which comes with Killer Wireless-AC 1535 WiFi card. The WiFi hardware seems to be detected but no WiFi hotspots are being detected.  I learnt somewhere that updating to the latest kernel would fix the problem. The kernel verison according to uname -r is 4.4.0-22-generic. Is a more recent version of kernel required?  Any help regarding this would greately help me since I will have to start my development asap and Linux is the go-to platform where I work.  Thanks  Edit: Output of lspci -knn | grep Net -A2  3c:00.0 Network controller [0280]: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter [168c:003e] (rev 32)  Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter [1a56:1535]  Kernel driver in use: ath10k_pci  Kernel modules: ath10k_pci


Suppose you randomly generate large primes p and q as in RSA, and then tell me N=pq but not p or q.  Then, you would like to actually let me factor N, except you should tell me as few bits of information as possible. Say p and q are 4096 bits, then how many bits do you need to tell me in order for me to factor N in feasible amount of time?  Note that you can arbitrarily design how these bits are derived, as long as there is a PPT algorithm to compute these bits and there is a PPT algorithm to use these bits to factor N.


The closed form for $\sum_{n\geq1}\frac1{n(n+1)(n+2)\cdots(n+m)}$

Just for fun, I defined the following series. For $m\in\Bbb N$,  $$g_m=\sum_{n\geq1}\prod_{i=0}^{m}\frac1{n+i}$$ I am seeking a closed form for $g_m$. I found $g_1,\ g_2$, and a general expression involving a lot of integrals.  $$ \begin{align} g_1=&\sum_{n\geq1}\frac1{n(n+1)}\\ =&\sum_{n\geq1}\frac1n\int_0^1 t_0^n\mathrm{d}t_0\\ =&\sum_{n\geq1}\int_0^1\int_0^{t_0} t_1^{n-1}\mathrm{d}t_1\mathrm{d}t_0 \\ =&\int_0^1\int_0^{t_0}\sum_{n\geq0}t_1^{n}\mathrm{d}t_1\mathrm{d}t_0 \\ =&\int_0^1\int_0^{t_0}\frac{\mathrm{d}t_1}{1-t_1}\mathrm{d}t_0 \\ =&1 \\ \end{align} $$ Through the same process, it can be shown that $g_2=\frac14$. In fact, through the same process, it can be shown that  $$g_m=\int_0^1\int_0^{t_0}\int_0^{t_1}\cdots\int_0^{t_{m-2}}\frac{\mathrm{d}t_{m-1}}{1-t_{m-1}}\mathrm{d}t_{m-2}\cdots\mathrm{d}t_2\mathrm{d}t_1\mathrm{d}t_0$$ Which I don't even know how to approach. Any ideas? Thanks.  This isn't a duplicate question, because I would like to know how to evaluate those nested integrals, if possible.


Prove that $\sqrt{2} + \sqrt[3]{3}$ is irrational

$\sqrt{2} + \sqrt[3]{3}$ is irrational ?  These are my steps -  $\sqrt{2} + \sqrt[3]{3} = a$  $3 = (a-\sqrt{2})^{3}$  $3 = a^{3} -3a^{2}\sqrt{2} + 6a -2\sqrt{2}$  $3a^{2}\sqrt{2}+2\sqrt{2} = a^{3}+6a-3$  $\sqrt{2}(3a^{2}+2) = a^{3}+6a-3$  Then, $\sqrt{2}$ in the left side is irrational , and mulitply irratinal with rational is irrational. The right side is rational. So,  $irrational \neq rational$.  This is a good proof ?


How to write a rollup summary trigger for a lookup relationship

Is there anyway to update a rollup summary field with lookup relation ship for a custom object. How can we achieve this using triggers ?


Someone please explain why my loop isn't breaking?

public void enterCustomers() {      System.out.println("Enter customer names or press q to quit entering names: ");      while (true) {         String name;         double balance;         System.out.print("Enter a customer name: ");         name = input.next();          System.out.print("Enter the opening balance : ");         balance = input.nextDouble();         accounts.add(new Account(name, balance));         if ( name == "q") {         break;         }        } }   I dont know why my if statement does not work to break the loop. when press q when i run it does not do anything.


How do I make a linux app out of the code using modules installed in a venv?

I have a python code that uses modules installed in a virtual environment. The modules are absent outside the venv. How do I make a Linux app out of the code? Do I have to install all those packages outside too?


Are prior solution attempts required for self-answered questions?

I'm facing a dilemma here: Stack Overflow now requires users to demostrate prior solution attempts whenever they post questions that ask for code. In the case of self-answered questions, this rule seems problematic: are users required to demonstrate prior solution attempts when they already know the answer to a question, or does the rule not apply at all in this case?  In order to comply with this new requirement, will I be required to post a redundant solution attempt for a problem that I've already solved, or will it be acceptable to post the question without showing a prior solution attempt (since the only solution that I have so far is a completely working solution)?