ext4 partition size / free space discrepancies

While creating a 250GiB backup partition for my data, I have noticed lots of discrepancies between reported partition size and free space in Nautilus, gParted, df, tune2fs, etc.  At first I thought it was a GiB / GB confusion. It was not.  Then I thought it could be ext4's reserved blocks. It was not.  Im completely puzzled. Here are some images. Here are the steps:   First, NTFS. 524288000 sectors x 512 bytes/sector = 268435456000 bytes = 268.4 GB = 250 GiB.      Nautilus say "Total Capacity: 250.0 GB" (even though its actually GiB, not GB). Apart from that minor mislabeling, so far, so good   Now, same partition, formated as ext4 with gparted:     First, Last and Total sectors are the same. It IS the same 250GiB partition. Used size is 4.11GiB (reserved blocks maybe?)    Nope. Looks like reserved blocks are 12.7 GiB (~5%. ouch!). But... why Total Capacity is now only 246.1 GiB ???. That difference (sort of) matches the 4.11 GiB reported by gparted. But... if its not from reserved blocks, what is it? And why gparted didnt report that 12.7GiB of used space?  $ df -h /dev/sda5 Filesystem            Size  Used Avail Use% Mounted on /dev/sda5             247G  188M  234G   1% /media/BACKUP   df matches Nautilus in reported free space. But.. only 188M used? Shouldnt it be ~12GB? And total capacity is still wrong. So i ran tune2fs to find some clues. (irrelevant output is ommited)  $ sudo tune2fs -l /dev/sda5 tune2fs 1.41.12 (17-May-2010) Filesystem volume name:   BACKUP Filesystem UUID:          613d592e-47f5-4206-96a7-210090d340ef Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags:         signed_directory_hash  Filesystem state:         clean Filesystem OS type:       Linux Block count:              65536000 Reserved block count:     3276800 Free blocks:              64459851 First block:              0 Block size:               4096   65536000 total blocks * 4096 bytes/block = 268435456000 bytes = 268.4 GB = 250 GiB. It matches gparted.  3276800 reserved blocks = 13421772800 bytes = 13.4 GB = 12.5 GiB. It (again, sort of) matches Nautilus.  64459851 free blocks = 264027549696 bytes = 264.0 GB = 245.9 GiB. Why? Shouldnt it be either 250-12.5 = 237.5 (or 250-(12.5+4.11)=~233) ?  Removing reserved blocks:  $ sudo tune2fs -m 0 /dev/sda5 tune2fs 1.41.12 (17-May-2010) Setting reserved blocks percentage to 0% (0 blocks)  $ sudo tune2fs -l /dev/sda5 tune2fs 1.41.12 (17-May-2010) Filesystem volume name:   BACKUP Filesystem UUID:          613d592e-47f5-4206-96a7-210090d340ef Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags:         signed_directory_hash  Filesystem state:         clean Filesystem OS type:       Linux Block count:              65536000 Reserved block count:     0 Free blocks:              64459851 Block size:               4096   As expected, same block count, 0 reserved blocks, but... same free blocks? Didnt I just freed 12.5 GiB ?  $ df -h /dev/sda5 Filesystem            Size  Used Avail Use% Mounted on /dev/sda5             247G  188M  246G   1% /media/BACKUP     Looks like I did. Avaliable space went up from 233 to 245.9 GiB. gparted didnt care at all, showing exactly same info! (useless to post an identical screenshot)  What a huge mess!  I tried to document it as best as I could... So, please can someone give me any clue on what's going on here?   What are those misterious 4.11 GiB missing from NTFS -> ext4 formatting? Why there are so many discrepancies between gparted, Nautilus, tune2fs, df? What is wrong with my math? (questions in bold scattered this post)   Any help is appreciated. While I can not figure what is going on, I am serilously considering giving up on ext4 in favor of NTFS for everything but my / partition.  Thanks!


What's the best mock framework for Java?

What's the best framework for creating mock objects in Java? Why? What are the pros and cons of each framework?


If a set theory allowed the existence of $x\cup y$, would that imply the existence of $\cup S$?

Suppose the set theory we are working with implies that $\forall x \forall y \exists(x \cup y)$.  Would that implication alone further imply the existence of an arbitrary union?:  $$\forall S\exists(\bigcup_{x\in S}S)$$  As such could be defined as:  $$\bigcup_{x\in S}S=x_1\cup x_2\cup x_3\cup \dots \forall x_i\in S$$  This is trivially true for finite sets. However, would infinite sets complicate the matter?  I should also point out that I understand that most set theories (such as ZF) first define the arbitrary union (perhaps even to avoid this question), which would retroactively account for binary unions. For the purpose of this question, assume that the arbitrary union is not directly implied within the axiomatic system we're working with, meanwhile the binary union is.


Lebesgue measurable simple function and its Borel measurable counterpart

Q) Suppose that $f$ is a simple Lebesgue measurable function on $R^n$. Show that there exists a Borel measurable function $g$ such that $f(x) = g(x)$ for almost every $x \in R^n$. I know that a simple Lebesgue measurable function takes finitely many values on Lebesgue measurable sets. But I'm not sure how I can find an appropriate Borel measurable function $g$, i.e. function wherein the pre-image of every open set is Borel measurable, which is the same as $f$ except atmost on a countable set?


One of my phone's last location is in different continent

today, on my Google Account, I saw that one of the last locations of my phone is from the USA when I live in Europe? Is it right?


Arcane Trickster(9)/Wizard(2) Multiclass Unlocked Spell Levels

This is something that came up at my last game, hoping someone can set the record straight. I'm a Lvl 9 AT Rogue who has just dipped 2 lvls in Wizard.   According to the Multiclassing spell slot rules, I am now basically a Lvl 5 caster (9/3) = 3 + 2 = 5 which gives me access to Level 3 spell slots.   It was brought up in my game this week, that this does not mean I can learn level 3 spells as neither of my classes has gotten to the correct level. Now I agree with them from a Wizard perspective as in the PHB it says:     Learning Spells of 1st Level and Higher      Each time you gain a wizard level, you can add two wizard spells of   your choice to your spellbook for free. Each of these spells must be   of a level for which you have spell slots, as shown on the Wizard table.   So on the Wizard table, sure I don't have enough spell slots for level 3 spells.   However, in the Arcane Trickster chapter of the PHB:     The Spells Known column of the Arcane Trickster Spellcasting table   shows when you learn more wizard spells of 1st level or higher. Each   of these spells must be an enchantment or illusion spell of your   choice, and must be of a level for which you have spell slots. For   instance, when you reach 7th level in this class, you can learn one   new spell of 1st or 2nd level.   Might seem similarly worded, but it's just that part where it says must be of a level for which you have spell slots...   Well I do have level 3 spell slots, so the question is, at this level can I learn level 3 spells?  Potential Duplicate  I do not believe this is a duplicate for one reason. All of the other classes, Bard, Paladin, Ranger, Druid have their own spell types and spell lists. The Rogue AT specifically uses Wizard spells. In this case, if I'm multiclassing into Wizard, I feel like there would be some form of stacking mechanism rather than treating them separately as we're pulling from the same spell list. I also feel that in this case, multiclassing into Wizard would be a spell casting disadvantage in a way, which seems counterintuitive.  Normally, an AT will gain 3rd level wizard spells at level 13, in this case, having dipped 2 levels in Wizard, I have access to 3rd level spell slots at level 11, but now continuing my AT level progression will not unlock level 3 spells for 4 more levels.  At the time I assumed taking a few levels in Wizard would hasten my progression to higher level spells, when it has in fact slowed it. Sure I have more cantrips and level 1s, but no additional level 2s or 3s to show for it.  Each level in AT allows you to swap one spell for another spell that you have spell slots for. I would read that as being able to gain a level 3 wizard spell at my current level.


So the thing is I'm trying to install Cmake and cmake-curses-gui.  I have updated the system with apt-get-update.    sudo apt-get install cmake    Reading package lists... Done    Building dependency tree    Reading state information... Done    Package cmake is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'cmake' has no installation candidate  sudo apt-get install cmake-curses-gui    Reading package lists... Done    Building dependency tree         Reading state information... Done    E: Unable to locate package cmake-curses-gui      That's strange. Can anyone give some pointers?  Pastbin sources.list :-


I have built and tested a computer application, which involved two participant groups (Group-A with existing knowledge of databases and Group-B without knowledge of databases). I was required to apply statistical tests to determine if the perception and rating given to the application was same among both groups (based on the data recorded in the form of questionnaires). The participants from both groups filled out questionnaires (with 10 questions to rate based on Likert scales) to rate the system based on their experience during testing it.   Is the use of statistical tests (histograms, means, skewness and kurtosis), used for measuring the differences of data / rating / perception between both groups appropriate? What I am trying to see is that if / how much participants' ratings in group A differ from the ratings given by the participants in group-B, for each question of the questionnaire.


Are $\mathbb{C} \otimes _\mathbb{R} \mathbb{C}$ and $\mathbb{C} \otimes _\mathbb{C} \mathbb{C}$ isomorphic as $\mathbb{R}$-vector spaces?   I am having a very hard time at digesting tensor products and I do not know how to "compare" tensor products over different rings. My hunch is that they are not isomorphic. It is easy to see that $\mathbb{C} \otimes _\mathbb{R} \mathbb{C}$ is an $\mathbb{R}$-vector space of dimension $4$. I suspect that $\mathbb{C} \otimes _\mathbb{C} \mathbb{C}$ is also an $\mathbb{R}$-vector space but of lower dimension, but I have no idea how to show this or if indeed this intuition is correct.  Thank you.


Certain lands, such as , state that they can add two types of land, but when does that happen? When I cast it, it enters the battlefield as just one land, right? So does it add the additional land when tapped?


<?php $str='表/test.zip'; $str = mb_convert_encoding($str,"SJIS−win","UTF−8"); readfile(str); ?>   I got error with character 表. Error message is:  Warning: readfile(•\/test.zip): failed to open stream: No such file or directory in check.php on line 22 •\/test.zip   Of course 表/test.zip had already existed. I tried with other character except for text 表, all were OK, did NOT have any error.  Does anyone have any solution? Thank you very much for your help.  Note: It is not error about name of file, but error about name of path, name of folder is in JP. It is difference with


I have the following function, which should return different values based on the head's text:  function getPage(){   var page;   var headText = $.trim($('h1').text());  if(headText=="Page 1"){     page= 'a'; }else if(headText=="Page 2"){     page= 'b'; }else if(headText=="Page 3"){     page ='c'; }else if(headText=="Page 4"){     page= 'd'; }else{     page= 'ERROR'; }  return page; }   Unfortunately, the function only returns "ERROR". I've tried it without the trim method. I've tried it by writing Page 1 - Page 4 into variables of their own and comparing 2 variables in the if() section. Nothing works. Where is my error? (I am certain that the text of the < h1>- Element is "Page 1", "Page 2", "Page  3" or "Page 4")


Adding to or retrieving from an SQL table of unique keys and values

names is a table that maps every unique name to an id:  CREATE TABLE names (   name       VARCHAR(20)    NOT NULL,   name_id    INT            NOT NULL AUTO_INCREMENT,   PRIMARY KEY (name),   UNIQUE (name_id) ) ENGINE=InnoDB   If 'foobar' is already stored in names, I want to get its name_id. Otherwise I want to store it and get the name_id that was generated for it.   How does one do this, dealing with the possibility of two threads racing to add 'foobar'? (Note: we never delete from this table.)  With myISAM I wrote:  GET_LOCK('foobar'); SELECT name_id FROM names WHERE name = 'foobar'; if name wasn't found     INSERT INTO names SET name='foobar';     SELECT LAST_INSERT_ID(); -- that is, name_id RELEASE_LOCK('foobar');   However, I'm very unclear about how to achieve this using transactions and row-level locking in innoDB.  UPDATE: mySQL requires that AUTO_INCREMENT only be used for the PK. I'm using MariaDB, which only requires that the AUTO_INCREMENT column be defined as key. Updating example accordingly.


Has anyone successfully added more than 8GB Ram to Dell 0K0DNP MB? That is the maximum on the Dell site, but I know people have over-Ramed various computers. Although there are questions regarding "over-ramimg", none are specific. This is asking a specific question about a specific MB.


I try to use wp_editor() in content that was loaded with ajax, but none of the required files and some other configuration script not loaded :  The structure of ajax is something like this:  function get_test_page(){    include( TEMPLATEPATH . '/page.php' );    die( main() ); } add_action( 'wp_ajax_nopriv_get_test_page', 'get_test_page' ); add_action( 'wp_ajax_get_test_page', 'get_test_page' );   page.php :  function main(){     wp_editor('','unique_id'); }   Editor is loaded but needed files is not loaded.   http://.../wp-includes/js/tinymce/wp-tinymce.php http://.../wp-includes/js/tinymce/skins/lightgray/skin.min.css http://.../wp-admin/load-scripts.php?c=1&amp;load%5B%5D=...mce-view,imgareaselect,image-edit,word-count,editor,quicktags,wplink,thick... http://.../wp-includes/js/tinymce/langs/{}.js    Some related post but doesn't help me :


Anything vs. something usage in this sentence

It's not like there's anything else to do.   Shouldn't the speaker say: "There's something else to do." ? so what's the meaning of the sentence and what's the difference between the two of them? Thank you,


How do I transfer a Gmail account to a different Google account?

I am moving to a new ISP and realised that I'm going to have a problem with my email as I use my ISP's provided address. So, being smart, decided to take this opportunity to move to Gmail. I then recalled that I registered an ideal Gmail email address back when it first launched. The account was never used for anything (including Gmail), so it has been dead with no activity. So, I want to use that email address. However, my Google account is all linked up with the ISP email address and uses a different Google account to the account with the nice Gmail email address.   How can I transfer the ownership of myidealemail@gmail.com over to my currently active Google account?  I have the following setup:  Account1 (created eight years ago and forgotten):   Login: myidealemail@gmail.com Gmail: myidealemail@gmail.com Acount activity: none   Account2 (created four years ago and still used):   Login: myoldemail@isp.com Gmail: none Account activity: loads and current   What I want to achieve:   Login: myidealemail@gmail.com Gmail: myidealemail@gmail.com Account activity: loads and current from account2


Why is this command not working?  echo 'foo bar' | xargs -I % -L 1 echo yeah % yeah   It produces the following output:  yeah % yeah foo yeah % yeah bar   While I expected the following output:  yeah foo yeah yeah bar yeah


Intuitive Explanation why the Fundamental Theorem of Algebra fails for infinite sums

We know that for every polynomial of $n$.order Fundamental Theorem of Algebra guarantees $n$ complex roots.  Lets consider the complex exponential function $f(z)=\exp(z)$. As $f(z)$ is holomorphic, we are allowed to evaluate the power sum of $f(z)$.  $$f(z)=1+z+\frac{z^2}{2!}+\frac{z^3}{3!}+\cdots$$   We also know that   $$f(z)=\exp(z)=\exp(x+iy)=\exp(x)\exp(iy)=\exp(x)\cdot(\cos(y)+i\sin(y))$$  A zero of this expression would only be possible if $\exp(x)$ or $\cos(y)+i\sin(y)$ or both would vanish. But $\exp(x)>0$ and $|\cos(y)+i\sin(y)|=1$, hence $\exp(z)$ doesn't vanish. As the exponential is fully defined by the powersum with infinite radius of convergence, we can conclude that the powersum, despite of beeing of "polynomial like type" does not have any zeros.  I would be glad if someone could give me an intuitive explanation why the fundamental theorem of algebra is only true for finite polynomials.


How To Get 360 Panorama Equirectangular In Blender Internal Render?

I wanted to know, how to render 360 panorama equirectangular like in cycles render... to post it on Facebook and get 360 image feature, but I want to render it on internal render this time  360 Panorama Equirectangular:


OK so i am new to Ubuntu, and i need some info. So i have an operating system of windows xp (hence why i am new to all this stuff) and sort of old fashioned i guess, but anyway on to my questions...   So right as of a few minutes ago i started the Ubuntu 14.04.1 desktop download, and i was wondering what am i downloading to my PC? am i downloading the whole operating system or what is going on? Now for my second question will i need a blank CD or usb thumbdrive after the instillation? i have blank cds with a maximum of 702 MB.   Sorry that i am such a newb to all of this but i do need some support. If any one has any info/help that would be much appreciated!! thank you for your time and have a nice day.


Can't invoke *method=* type methods in instance_eval

Consider the following code:  class Student   attr_accessor :age, :gender, :school    def explicit_school_setter     @school = "Some School"   end end  bob = Student.new  bob.age = 16 bob.gender = :male  bob.instance_eval { school = :bvb } # ? Why is this not invoking the setter?  bob.age # => 16 bob.gender # => :male bob.school # => nil  bob.instance_eval { explicit_school_setter }  bob.school # => "Some School"  bob.school = "Another School"  bob.school # => "Another School"   Why is the setter not working in the instance_eval block?


Let $F$ be a field. Could the ring $F[x]$ be a field?

$F$ is a field, so by definition, $F$ is a commutative ring with unity in which every non-zero element is a unit. Then, $F[x]$ is a set of polynomials in which the coefficients come from $F$, so all of the non-zero coefficients have units in $F$.  This means we can have polynomials like $f=a_0+a_1x+a_2x^2+\cdots +a_nx^n$ where $a_k\in F,$ $0\le k\le n$.   If $F[x]$ were a field, every non-zero element would be a unit.  I'm not really sure where to go from here.


Stumbled along the use of the feminine pronoun for "baby". Previously, I've used it and singular they when the sex of the baby is unknown.   Is it correct to use the feminine pronoun (she) for "baby" when you don't know if it is a boy or a girl?  Can somebody please explain that to me? Here's an example: "At about 6 months, when your baby can sit up, she'll probably be too big to be bathed in an infant tub" ()


Moderator actions while reviewing the Low Quality queue

I have read the  and  and I understand when each action should be taken. Yet those do not address moderator only actions that can be taken from within the review queue.  There are lots of cases when reviewing the low quality queue I convert the answer to a comment (that is a mod only action). That unfortunately does not count towards my review history, all it does is remove it from the review queue.  Is it possible to also make any moderator action count as reviewing that specific post?


I have an iPhone 5, iOS 8.4.1. How can I repeat a Playlist? I've found how to repeat a song, but I want to repeat a playlist.


Hello I have been trying to install anaconda to work with the terminal but I can't find how to add the Conda command to the terminal I tried looking it up but didn't find anything I recently started using Ubuntu and I am really unfamiliar with everything, I realize I need to find a $path somewhere but I don't know what exactly I need to do..    Edit: I need to find how to edit the .bashrc file, I can't find it. thanks in advance.


Is it possible to hide the "Show Desktop" icon in application switcher?

Is it possible to hide the "Show Desktop" icon in the application switcher (when you press Alt+Tab)?  It's very annoying when you have a workflow, press Alt+Tab one time too much and every window is minimised.


I was working off of the code provided here:  The test class they provided did not cover the full class. Still being a little new to writing test classes, how could I make sure I get the full coverage? Currently I at 57% with the if statement claiming to not be covered. /* Class provided by Salesforce help document https://help.salesforce.com/articleView?id=entitlements_milestones_trigger.htm&type=5 */ public class MilestoneUtils {     public static void completeMilestone_case(List<Id> caseIds, String milestoneName, DateTime complDate) {                   System.debug('calling MilestoneUtils with these inputs: MilestoneName='                                  +milestoneName+' completeDate='+complDate);         System.debug('Case list with milestones to complete: '+JSON.serializePretty(caseIds));                  List<CaseMilestone> cmsToUpdate = [select Id, completionDate                 from CaseMilestone cm                 where caseId in :caseIds and cm.MilestoneType.Name=:milestoneName                  and completionDate = null limit 1];         if (cmsToUpdate.isEmpty() == false){             for (CaseMilestone cm : cmsToUpdate){                 cm.completionDate = complDate;             }             update cmsToUpdate;         }     } }  Test Class I attempted to write (see link for what salesforce had) /* Test Class provided by Salesforce help document https://help.salesforce.com/articleView?id=entitlements_milestones_trigger.htm&type=5 Modified to meet validation rule requirements */  @isTest private class MilestoneUtils_Test {      static testMethod void TestCompleteMilestone_Case(){         // create data needed to test         // Entitlement is hooked up to account in the background, even when set for case                 List<Account> acts = new List<Account>();         Account myAcc = new Account(Name='TestAct', phone='1001231234');         acts.add(myAcc);          Account busAcc = new Account(Name = 'TestForMS', phone='4567890999');         acts.add(busAcc);         insert acts;         Contact cont = new Contact(FirstName = 'Test', LastName = 'LastName', phone='4567890999', accountid = busAcc.id);         insert(cont);          Id contactId = cont.Id;          Entitlement entl = new Entitlement(Name='TestEntitlement', AccountId=busAcc.Id);         insert entl;          String entlId;         if (entl != null)             entlId = entl.Id;           String milestoneName = 'Test Milestone';                  List<Case> cases = new List<Case>{};         if (entlId != null){             Case c = new Case(Subject = 'Test Case 1 with Entitlement ',                  EntitlementId = entlId, ContactId = contactId, Origin = 'Direct Entry');             cases.add(c);             c = new Case(Subject = 'Test Case 2 with Entitlement ',                  EntitlementId = entlId, ContactId = contactId, Origin = 'Direct Entry');             cases.add(c);         }                   if (cases.isEmpty()==false){             insert cases;             List<Id> caseIds = new List<Id>();             for (Case cL : cases){                 caseIds.add(cL.Id);             }             milestoneUtils.completeMilestone_case(caseIds, milestoneName, System.now());             //check database that completed data has been filled in for this milestone             /*             List<CaseMilestone> milestone_results = [Select Id, CaseId, CompletionDate, MilestoneType.Name                                                       from CaseMilestone cm                                                       where cm.caseId in :caseIds                                                       ];             system.assertEquals(caseIds.size(), milestone_results.size());             */                      }     }      }  Any direction is helpful.


Does a man contain all the genes needed to make a woman?

This question is brought on by a Sci Fi novel I am thinking about writing. The plot device involves a colonist in charge of building a population on a new planet who loses his supply of embryos and so forth in the landing. With the artificial "wombs" intact, he populates the planet with clones of himself.  If he wanted to introduce enough variation (without making up new genes, only rearranging) in the population to allow them to be able to reproduce naturally without inbreeding problems, would he be able to? In particular, could he make a woman?  Alternately, could a woman (without a Y chromosome) do the the inverse?  At the risk of introducing bias into the answers, the plot as it stands assumes he is a male and he CAN'T do any of the above and he is restricted to clones.


Solve for $\theta$: $x = \theta - \sin\theta$

Solve for $\theta$:  $$x = \theta - \sin\theta$$  Is this type of isolation a matter of identities? If so, which one(s)?


What happens if a gTLD fails to pay ICANN in time?

Do I threaten to loose a domain if a new gTLD stops paying ICANN?  I'm no expert but similar to how we have paid yearly renewal, the people providing gTLDs must also pay renewal fees.


The problem I'm trying to solve is:  Let $1\leq p, q\leq\infty$ such that $\frac{1}{q}+\frac{1}{p}=1$. If  $$\sum_{n=1}^{\infty} |x_n||y_n|<\infty$$ for all $(x_n)\in l^p$, then $(y_n)\in l^q$.  $\bullet$ If $p=\infty$, then picking $(x_n)=(1,1,1,...)\in l^\infty$, we have $$\sum_{n=1}^{\infty} |y_n|<\infty$$ i.e. $(y_n)\in l^1$.  but how can I prove for $1\leq p<\infty$?


Is it possible to write "I am knowing" in this case

I know lyrics sometimes do not respect grammar, but is it possible to use to know in the progressive form? For example -      I'm not even knowing if I'm coming or going, if to end or begin.    This is from a song of the Buzzcocks written by Peter Shelley  "I believe"


How is exponentiation defined in Peano arithmetic?

How would exponentiation be defined in Peano arithmetic? Unless $n$ is fixed natural number, $x^n$ seems to be hard to define.   Edit 2: So, what would be the way to define $x^n+y^n = z^n$ using $\Sigma_1^0$ formula?  Edit: OK, I say Peano arithmetic has addition and multiplication stuffs. This allows additions to be expressed without quantifiers but as for exponentiation Peano arithmetic is silent. That's why I asked this question. Just for clarification.


How can I convert PDF files to ePub format?

I have a CD of PDF files, is there a way I can convert them to ePub files? Is there an online/desktop tool that will allow me to do that?


Why massless particles have less number of possible polarisations than massive ones?

It is stated that according to quantum field theory the value $0$ for the projection of the spin of the photon would be impossible because the photon has null mass, thus photon has two polarizations only (unlike $W$ and $Z$ which have 3 polarisations). Could it be explained further what is the relationship/explanation with the argument of null mass for impossibility of projection 0 of spin ? (I do know that photon has null mass). Is there an easy mathematical proof ?


How will going from 75% Credit Utilization to 0% Credit Utilization affect my credit score?

I currently have a 75% credit utilization, which I know is not favorable on about 35,000 revolving credit.  I am getting my year end bonus and plan on using that to completely pay off all of my credit cards leaving me with a 0% credit utilization.  Currently my credit score is 668, mostly due to my utilization, I pay everything on time, but just have too much debt, which is why i'm paying it all off.  My question is how much will paying off all my revolving credit and having a 0% utilization on 35,000 credit availability positively effect my credit score?


I have noticed that if I press  F10 when on a terminal, Ubuntu or the terminal opens the File Menu.  Is there any way to unbind this?   I don't see any entries with F10 on System settings -> Keyboard shortcuts  I want to use function keys in Emacs to debug my code (e.g. F10 triggering gud-step, etc.) when running Emacs within a terminal ( emacs -nw) but at the moment the terminal seems to be capturing my keys.  Update 1:  If I go to Edit -> Keyboard Shortcuts I can disable the option "Enable the menu short key (F10 by default)".  So I disabled it. However , the key F10 is still bound to the menu!!  Is there a way to unbind this key other than through the Edit-> Keyboard shortcuts menu? Perhaps there is a configuration text file under etc where I can activate/deactivate keyboard shortcuts?  Update 2:  I also followed all the tricks  and they didn't work. F10 still behaves as an accelerator in the terminal.   This is all on Ubuntu 11.10  Update 3:  Following the suggestions in  I also tried:  3.1 Adding the following code to  ~/.gtkrc-2.0  binding "NoKeyboardNavigation" {         unbind "<shift>F10" }  class * binding "NoKeyboardNavigation"   3.2 Adding the following code to ~/.config/gtk-3.0/gtk.css  @binding-set NoKeyboardNavigation {     unbind "<shift>F10" }  * {     gtk-key-bindings: NoKeyboardNavigation }   and the problem still persists.


Sketch complex curve $z(t) = e^{-1t+it}$, $0 \le t \le b$ for some $b>0$   I tried plotting this using mathematica, but I get two curves. Also, how do I find its length, is it just the integral?  This equation doesn't converge right?  Edit: I forgot the $t$ in front of the $1$ so it's not a circle of radius $e$


Sed giving error when taking input from command line

I have written a very simple script which takes a string as input and replace the input text in a file via sed. But I get an error always   sed: -e expression #1, char 40: unknown option to `s'   Shell script is as below  sed -i "s/c9/$1/g" Test.java    and to run  ./code.sh "lmc.driver.findElement(By.xpath(\"//*[@id=\\\"login-email\\\"]\")).clear();\n                        lmc.driver.findElement(By.xpath(\"//*[@id=\\\"login-email\\\"]\")).sendKeys(username);\n                        lmc.driver.findElement(By.xpath(\"//*[@id=\\\"login-password\\\"]\")).clear();\n                        lmc.driver.findElement(By.xpath(\"//*[@id=\\\"login-password\\\"]\")).sendKeys(password);\n                        lmc.driver.findElement(By.xpath(\"//*[@id=\\\"loginForm\\\"]/div[3]\")).click();\n                        lmc.driver.findElement(By.xpath(\"//*[@id=\\\"login-identity-domain\\\"]\")).clear();\n                        lmc.driver.findElement(By.xpath(\"//*[@id=\\\"login-identity-domain\\\"]\")).sendKeys(tenantId);\n                         lmc.driver.findElement(By.xpath(\"//*[@id=\\\"loginBtn\\\"]\")).click();"


How can I get the list of available databases on a SQL Server instance? I'm planning to make a list of them in a combo box in VB.NET.


Suppose $f:[a,b]\to\mathbb{R}$ is continuous. Prove that $$2\int_a^b\left[f(x)\int_x^bf(y)\,dy\right]dx=\left[\int_a^bf(x)\,dx\right]^2.$$   I got to $$\left[\int_a^bf(x)\,dx\right]^2=\int_a^bf(x)\left[\int_a^xf(y)\,dy+\int_x^bf(y)\,dy\right]dx$$ and I hoped to show that as $x$ ranges from $[a,b]$, the integrals $\int_a^x$ and $\int_x^b$ might take on the same values, but that's not the case. What should my next step be?


How best to email a professor to set up a meeting after a long time?

My path to get my MA was delayed following a family tragedy, and I'm finally in a position where I can get back on track, so I would like to reach out to a professor I previously did lab work for a couple years ago. I have some general questions for him, but I also would like to see if maybe he has a Research Assistant position available, or maybe knows other professors that might, to try to build up my experience again. I was wondering if anyone might know the best way to approach an email like this? I was thinking maybe starting by formally asking if he remembered me and maybe giving some details about the work I did for him, but then I don't know where to go from there. I'd prefer to meet in person, but is that okay to ask after such a long time?  Thanks in advance.


Can I join a Minecraft Pocket Edition world on my PC through LAN?

This is the exact opposite question of . My kids both have Android tablets and are playing Minecraft PE. They want me to join them on their PE world from my Windows PC over our LAN. Is this possible? If not with the PC version of Minecraft, is there a way to emulate the Android version on the PC?


What is the difference between atan and atan2 in C++?


I am struggling to find a way to handle this need. I have a few views exports set up on our site. The Client can go to the view page and download the csv. Works great.  The client is asking to see if the csv's can download nightly without them having to go to the page and click to download. I have not seen something in Drupal that allows me to handle this. I am a front-end dev so not a module creator. I have gone through rules scheduler with no luck.  Can someone try to share some insight to point me in the right direction. Thanks!!!


How can I change directories in the terminal?

I have been googling how to use the terminal in Ubuntu 14.04. Many years ago, I could find my way around DOS,  albeit I'm a bit rusty. It seems that it's basically similar but when I try to change directory all I get is no such file or directory. This happens on every cd command I tried.  I even followed youtube videos and still no joy. Is there an app I need to install first? I want to install tarz files I have downloaded but I still want to be able to use the terminal for other things.


Ubuntu 18.04 Black Screen after Blanking Screen

When my computer blanks the screen after the timeout (10 minutes) or after I turn off the monitors and turn them back on some time later, I only see a black screen with the mouse pointer. I can move the mouse pointer, but nothing else happens.  I am able to switch to the console with Ctrl + Alt + F3 and then switching back to the display with Ctrl + Alt + F1 gives me the login screen. But after logging in, I get the same problem.  Restarting gdm3 from the console does not seem to help. It gets stuck initializing and then I have to hard shutdown. The only thing that works is to restart the machine from the console, but that is annoying.  Has anyone else experienced this problem or have any ideas on how to fix this?  My machine is Ubuntu 18.04 with the 4.15.0-32-generic kernel.


I have HTML like the following on my website:

     Group 1 priority:     <select>       <option value="1.0">1</option>       <option value="2.0" selected="selected">2</option>       <option value="3.0">3</option>     </select>

     Group 2 priority:     <select>       <option value="1.0">1</option>       <option value="2.0">2</option>       <option value="3.0" selected="selected">3</option>     </select>

     Group 3 priority:     <select>       <option value="1.0" selected="selected">1</option>       <option value="2.0">2</option>       <option value="3.0">3</option>     </select>

   I am looking for a way to sort the order these groups appear in the browser using jQuery, based on the what is selected in the dropdown. It should resort when the user selects a new value in any of the dropdowns, or on page load.  What would be the easiest approach to this problem?  I have jQuery UI available, if the sortable thing can be used in any way. I couldn't not find a way to use that.  Update: There is other data in the
 that should follow the dropdowns wherever they are moved. The number of groups varies from 0 to 20.


Is there a (repeat-last-command) in Emacs?

Frequently, I've dug into apropos and docs looking for something like the following only to give up to get back to the task at hand:  (repeat-last-command)  do the last C- or M- command I just executed (to be rebound to a fn key)  or sometimes the related:   (describe-last-function)  what keystroke did I just mistakenly issue, the effect of which I'd like to add to my bag of tricks. describe-key is close, but requires knowing what I typed.   Am I simply asking too much from my trusty sidekick?


Adding an 'edited' section to the votes tab?

I was wondering if anyone else thought it might be a good idea to add an 'edited' section in the votes tab, containing only the questions/answers which have been edited since the user cast their vote?  I tend to go through my downvotes and un-downvote/upvote if an improvement has been made, but currently the only way I can do this is to go through all the questions/answers in the downvotes tab one by one, which is a very time-consuming process (especially as a lot of the time an edit hasn't been made - but of course I have no way of knowing this beforehand).  It may also be useful for checking upvotes you've made - sometimes you can upvote an answer, come back 10 minutes later and an edit has dramatically changed the answer to the point where it's wrong and you wish to un-upvote.   Of course, in this case you can simply un-upvote (if the edit was made after the grace period that is) but again, this involves the user coming back to check every time, which is time-consuming if you upvote often.   I think a tab (it could maybe have two sub-sections - one for upvotes and one for downvotes) showing all questions/answers edited after you voted on them could be useful.   What do you guys think?


Would like to sample 14.04 before committing to it

Would like to sample Ubuntu 14.04 before committing to it. Presently running Ubuntu 12.04. Have burned a DVD with Ubuntu 14.04. How can I run from this DVD?


Empty flagging history sidebar if you only flagged as spam

On some sites, the only flags I used are spam flags. And in this case, the flagging history sidebar is empty. Example on Drupal Answers:    But on sites where I also have some other flags, the spam flags show up fine in the history.


Number of increasing functions from $\{1,2,\dots, n\}$ to itself.

Let $f$ be a function from $X=\{1,2,3,...,n\}$ to itself. We say $f$ is increasing if $a\le b$ then $f(a)\le f(b)$. How do we find the number of increasing functions?    I think if we can define $f(1)$ then we can count. But it is very difficult.


how to apply the same colour correction settings as showin in embedded preview

I've recently took my first underwater photos with Olympus TG6 and imported those into Lightroom Classic CC v9.1. All photos were shot in a RAW mode.  Every imported photo has an embedded preview, which looks great ()  But if I go into develop mode, or try to export those photos, or click on the "embedded preview" label or do anything else, the embedded preview goes away and the photos start to look like this:   I understand that embedded preview was pre-calculated by either the camera when a photo was taken or Lightroom when the photo was imported. My question is how can I replicate what I see in the embedded preview and permanently apply the same colour correction to my photos? Is there a collection of preset for Olympus TG6


OK I just failed a , here's the question in mention     I have the jar developed using the SNMP4J Agent source code. How can I   test run the Agent ? I would like to include a MIB file and test the   GET and SET methods. How can I write a test class for this? Any link   or tutorial will also be grateful Thanks in advance   I believe the question is not a real question or not constructive (asking for ). Further even if the question is a "border-line" and is left opened, if it had been closed I don't think it should be reopened.  Back when the review audits didn't count I asked if there was a way to ,  I think now that they count there should be some way to at least provide feedback so whatever algorithm is used to supply the review audits can be refined.  I do understand that it takes more then one failed audit to get banned, however I believe the primary purpose of the review audits are to make sure your paying attention, and I think that at least in the Reopen queue it can still use a bit of work.


Is 12V in car same as in computer power supply?

I have bought a car camera with LCD monitor, exactly this one   It is powered by 12V.  Can I try it out at home by connecting it to my PC power supply? There is 12V available in the molex connector.  Thanks


How does  work? I'm wondering why matter and antimatter actually annihilates if they come into contact. What exactly happens? Is that a known process? Is it just because of their different charges? Then what about neutrons and anti-neutrons? I guess that would be about their quarks, but wouldn't it be very unlikely what all of their individual quarks would actually touch the anti-quarks of the other (anti-)neutron at exactly the same time?


How to read files which has a prefix and a timestamp as a file name in c++

Usually when the file name is "example.txt", I can use the following code to read from the file.  string line;   ifstream myfile ("example.txt");   if (myfile.is_open())   {     while ( getline (myfile,line) )     {       cout << line << '\n';     }     myfile.close();   }    else cout << "Unable to open file";    But how can I use the same program to read a file, When the file name is example_201703031140.txt or example_201703031142.txt. (Let's just say this file is the only file in the location with that prefix. In other words, the location can have either example_201703031140.txt OR example_201703031142.txt, not the both )  To clarify the question more, how can I write a program to which can read dynamically changing file names?  For example imagine a scenario that I have to write to file which is named example_timestamp and read that file from a separate module (which do not have access to the full file name, but knows that it has a prefix "example" followed by a timestamp)  Update: You do not know what the timestamp is, you just know that it is a timestamp.


Is there any way to get Windows 8 metro UI on Ubuntu?


I read in G. Strang's Linear Algebra and its Applications that, if $A$ and $B$ are diagonalisable matrices of the form  such that $AB=BA$, then their eigenvector matrices $S_1$ and $S_2$ (such that $A=S_1\Lambda_1S_1^{-1}$ and $B=S_2\Lambda_2 S_2^{-1}$) can be chosen to be equal: $S_1=S_2$.  How can it be proved?  I have found a proof , but it is not clear to me how to see that $C$ is diagonalisable as $DCD^{-1}=Q$. Matrix $C$ obviously is the matrix with the coordinates of $B\mathbf{x}$ with respect to the basis $\{\mathbf{x}_1,...,\mathbf{x}_k\}$ of the eigenspaceof $V_\lambda (A)$, but I do not see how we can know that it is diagonalisable.  Thank you very much for any explanation of the linked proof or other proof!!!  EDIT: Corrected statement of the lemma I am interested in. See comments below by the users whom I thank for what they have noticed.


Proof of no primes such that $x^2 + y^2 = z^2$

I'm in a pretty simple "CS Math" course for year 1 Comp Sci, and I came across this: Disprove, $x^2 + y^2 = z^2$, such that $x, y, z$ are primes I thought of this as, if n is a prime, then prime factorization of n must be: $n = z*1$ $n^2 = (z*1)(z*1) = (z)(z)$  So I tried to derive a contradiction:  Assume $x, y, z$ are primes such that $x^2 + y^2 = z^2$ Then: $x^2 = z^2 - y^2$  Then: $x^2 = (z-y)(z+y)$ #Contradiction, prime factorization of $x^2$ must be uniquely represented. But then I noticed that this statement is true if $z-y = 1$ and $z+y = x^2$, So: Then: $y = -1+z = y = z-1$  Because: $x^2 + y^2 = z^2 $  Then: $(z-1)(z-1) + z+y = z^2$ Then: $z^2 - 2z + 1 + z + y = z^2$ Then: $z^2 - z + y + 1 = z^2$ # subtract $z^2$ from both sides  Then: $-z + y + 1 = 0$ Then: $y = -1 + z$ #Loop??  I remember reducing this to $x + y = z$, which I think is false?  EDIT: Thought of this: z - y = 1 Then: z = y + 1 Then z must be 3, y must be 2  Because: z is greater than y by 1, since z is a prime and y is a prime, z and y must be 3 and 2 respectively since no other prime number is 1 apart because one of them would be even if greater than 2, and any even number has at least 3 divisors (2, the even number, and 1) thus not a prime. Then: $x^2 + 2^2 = 3^2$ ,Because $2^2 = 4, 3^2 = 9$ Then: $x^2 = 9 - 4$ Then: $x = \sqrt5$ Contradiction: x is a prime, but sqrt(5) is not a prime!  Is this a solid evidence proof in that can I say that only prime numbers 1 apart are 2 and 3? I'm pretty sure there is a more simpler and intuitive way to prove this, are there any other ways to prove this via contradiction?


I recently got infected with a ton of viruses, and I was able to clean out most of them, but there's still one that I can't get rid of. Here are the details (the computer is running Windows 10 x64):  -The effect of the virus is rather miniscule; whenever I search using the top bar on Google Chrome, it redirects my searches to Yahoo although I have my settings set to Google.  -The name of the program is msmnlbvsrv.exe. It appears in my Windows/temp folder, which is the temporary files folder specified by my environment variables.  -The exe itself can't be deleted from Windows because of some permissions shenanigans that I haven't been able to get around; basically even if I change the owner, it denies me access to delete it. In fact, you can't actually stop the process from the regular task manager either because it once again denies you access. But I was able to kill it by using Process Explorer as an admin.  But the real problem is this: I booted Gparted Live to delete it from there in an attempt to remove it, but when I restart my computer, it's back in my temp folder. This means that some other application is the actual culprit and is running at boot and creating this program that redirects my searches. How can I figure out what exactly is creating the process and remove it from the source? Neither Windows Defender nor Malwarebytes could get rid of the source itself, and I really, REALLY don't want to have to reinstall my OS. Also, I've seen Process Monitor mentioned here and there, but it doesn't run on my computer no matter what I do. No window opens, and if I look at process explorer, the process appears and disappears within the same second.


I have a modal in the center of the screen that has an header. That header must contain a title and the button to close it.  -------------------------------- |                       (close)| |  Text                        | |                              | --------------------------------   So basically I have two requirements:   Every text inside the header must be centred vertically. Be able to position the "(close)" close to the header in the corner.   Right now I have everything vertically centred but the elements I put inside the header for ma pile:  -------------------------------- |                              | |  Text                        | |  (close)                     | |                              | --------------------------------     .modal-payment__wrapper {          // <- this is the whole box     max-width: 50%;     width: 500px;     height: 200px;     background: white;     font-family: 'Lato', 'sans-serif';  }  .modal__header {                  // <- this is the header     display: flex;     justify-content: center;     flex-direction: column;     width: 100%;     height: 50px;     background-color: black;     color: white;     font-size: 16px;     padding-left: 20px; }  .modal__header__title {          // <- this is "text"     text-transform: uppercase;     letter-spacing: 2px;     font-size: 1.7em;     padding: 10px;     flex-grow: 0;     flex-srhink: 0;     flex-basis: auto;     align-self: auto; }

                 Text

                 x

     What am I missing?


I know that there are loads of similar posts but none of them apparently solved my problem, sorry!  gparted:     df -h:     As you can see my root partition (sda5) is full and I really can't understand of what! I already tried to clean my laptop with ubuntu-tweak, sudo apt-get autoremove --purge, apt-get clean, apt-get autoclean, I think that I removed also the old kernels, the trash and the root trash are empty...I don't know what else I might do! Thank to anyone who will try to help!


Phenomenon of learning a new word that you've never seen before, and then seeing it being used

On Wednesday my wife came across the word atavism in Out of Africa that she did not know the meaning of. I did not recognise the word and did not know what it meant. So we looked it up and found out.  Then on Thursday I was reading an article on the Guardian () and saw the word atavistic. I cannot for the life of me recall seeing this word ever before, and here it pops up shortly after finding out what it meant.   I am sure this phenomenon has happened before - where I learn something new (usually the meaning of a word that I have never seen before, or name of a place or person) and then the very shortly afterwards see it being used. (This also happened to me this year with quinoa.)  Is there a name for this phenomenon? Or is it just me that this happens to?


Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package winehq-stable


$echo red | grep -q red $echo $? 0   'grep -q' turns off writing to standard output. The $? exit status is 0 if a match is found, otherwise not 0. This is pretty much the explanation for the code above. I want to know more about "$?". What is it??


If $\lim_{n\to\infty}x_n=\alpha$, show $\lim_{n\to\infty}(x_1x_2\dots x_n)^{1/n} =\alpha$.

If $\lim_{n\to\infty} x_n = \alpha$ and $x_n \gt 0$ for all $n$, show that $$\lim_{n \to \infty}(x_1x_2\dots x_n)^{1/n} = \alpha.$$


Is object serialization backwards compatible from Java8 to Java7? I.e., does the Java serialization specification () guarantee that the following works: I compile class A into a Java8 application, serialize an object of A (into a file, say) and deserialize that object in a Java7 application (compiled with the same version of class A). Could somebody point me to the exact part of the specification which specifically adresses different major versions? If there is none, from what part can I deduce said compatibility? Note: Section 5.1 of the specification is about class version compatibility, but not about Java version compatibility.


How to remove file in Ubuntu Terminal list?

I have entered command ls -ld .?* and then got output like this (here is just part of it which I wish to remove)  drwxrwxr-x  4 stanislav stanislav  4096 Apr 22 20:29 .PyCharm2018.3 drwxrwxr-x  4 stanislav stanislav  4096 Apr 22 20:16 .PyCharm2019.2 drwxrwxr-x  4 stanislav stanislav  4096 Mar 23 13:59 .PyCharmCE2019.3   So could anybody advice how to make it. Thanks a lot in advance.  P.S. Already for three hours trying to reinstall PyCharm but it is not starting after installation. Seem I need to remove these files.


Prove that AUROC is an improper scoring rule

It has been stated in many places that AUROC is an improper scoring rule.But I haven't seen anyone proving it. Does someone have a working example that shows that maximizing AUROC actually moves away probability estimates from actual probabilities.


How long do black olives last once opened?

I opened a can of sliced black olives for my pizza and only used half. I put the leftovers into a sealed container with the liquid and put it in the fridge. Under those conditions how long will the olives last? Is there a better way to store leftover olives?


apt-get ignores all packages with "Translation-en_US"

Having a problem on an EC2 Ubuntu Lucid instance where if I run (sudo) apt-get update all packages with Translation-en_US are ignored.  Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid Release.gpg Ign http://ap-southeast-2.ec2.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US Ign http://ap-southeast-2.ec2.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates Release.gpg Ign http://ap-southeast-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US Ign http://ap-southeast-2.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid Release Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates Release Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid/main Packages Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid/universe Packages Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid/main Sources Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid/universe Sources Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates/main Packages Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates/universe Packages Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates/main Sources Hit http://ap-southeast-2.ec2.archive.ubuntu.com lucid-updates/universe Sources Hit http://security.ubuntu.com lucid-security Release.gpg Hit http://ppa.launchpad.net lucid Release.gpg Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US Ign http://ppa.launchpad.net/txwikinger/php5.2/ubuntu/ lucid/main Translation-en_US Hit http://security.ubuntu.com lucid-security Release Hit http://ppa.launchpad.net lucid Release Hit http://security.ubuntu.com lucid-security/main Packages Hit http://security.ubuntu.com lucid-security/universe Packages Hit http://ppa.launchpad.net lucid/main Packages Hit http://security.ubuntu.com lucid-security/main Sources Hit http://security.ubuntu.com lucid-security/universe Sources   Just trying to get a little more context around the "ignore", and why it's only ignoring for Translation-en_US


Is this sentence correct (especially the usage of whom)?     In addition, it might jump to a random vertex in the graph, whom the   current vertex is not necessarily connected to, with a certain   probability.


how to move object to same location of another one

I have two of the same objects. Now i moved object 2 lets say...how can i move it back to the same location and size of object 1  ? is there any way to copy this from object one to object 2  ?


Installing Ubuntu as D: drive partition on HDD

I want to use Ubuntu on my external hard drive by shrinking into a partition. I use both SSD and external hard drive on my PC and both are installed Windows 10. My external hard drive has 931 GB available capacity and I shrink its volume as 150 GB unallocated and 781 GB NTFS formatted partitions.  Does that mean this unallocated part also have NTFS format or not?  Also, When I configure boot options from BIOS. I see a Partition 1 when I use my Ubuntu installed USB stick.  If I choose Partition 1, would it also install Ubuntu on my 781 GB NTFS formatted partition? To make it clear I am sharing my disk management page for my PC.    Any help would be appreciated.


How much is VLIW power- and area-efficient then superscalar anyway?

Most of texts say VLIW, which is lack of hardware to detect hazards and schedule the instructions. But I haven't see any evaluation about how much VLIW can save area(h/w complexity) and power compared to performance-matching superscalar.  When VLIW came out, the advancement of technology node size was slowing down, but not anymore. I want to know it's still valid to say VLIW can be considered to be efficient enough in power/area compared to equivalent superscalar when enough ILP is given.


Insert results of a stored procedure into a temporary table

How do I do a SELECT * INTO [temp table] FROM [stored procedure]? Not FROM [Table] and without defining [temp table]?  Select all data from BusinessLine into tmpBusLine works fine.  select * into tmpBusLine from BusinessLine   I am trying the same, but using a stored procedure that returns data, is not quite the same.  select * into tmpBusLine from exec getBusinessLineHistory '16 Mar 2009'   Output message:     Msg 156, Level 15, State 1, Line 2   Incorrect syntax near the keyword   'exec'.   I have read several examples of creating a temporary table with the same structure as the output stored procedure, which works fine, but it would be nice to not supply any columns.


$\forall x,y\in\partial S$, the line connecting $\{x,y\}$, $L\{x,y\}\cap\partial S=\{x,y\}$, then $S$ must be either convex or concave?

$S$ is an open set in $\mathbb R^2$.  If for any two different points on the boundary on $S$, we have the line connecting those two points only intersect with $\partial S$ only at $\{x,y\}$, can we conclude that either $S$ is convex or $S^c$ is convex?  --> We have:  $\forall x,y\in\partial S$, $L\{x,y\}\cap\partial S=\{x,y\}$   I try by contradiction.  If $S$ is convex or concave, then the boundary of $S$ can be divided into a few graphs of convex functions. If $S$ is neither convex nor concave, then the boundary of $S$ must contain a curve $\gamma$ such that $\gamma$ is a graph of a function but not a graph of convex function. In this case, we can always find two points, $x,y$, such that there exists $z\in\gamma$ and $z=\alpha x+(1-\alpha)y$, contradiction?


I'm implementing a simple sum programm, to sum up an array of integers using recursive multi-thread method.(ExecutorService & Callable).  But I got tons of Exceptions   public class ExecutorServiceSum implements Callable<Integer> {  int[] a;  int lo;  int hi;  static ExecutorService ex;   ExecutorServiceSum(ExecutorService ex, int[] a, int lo, int hi) {   this.a = a;   this.lo = lo;   this.hi = hi;  }  @Override  public Integer call() throws Exception {   int size = hi - lo;   if (size == 1) {    return a[hi];   }   //exit of the recursion     int mid = size / 2;   ExecutorServiceSum e1 = new ExecutorServiceSum(ex, a, lo, lo + mid);   ExecutorServiceSum e2 = new ExecutorServiceSum(ex, a, lo + mid, hi);   //branching to subproblems    Future<Integer> f1 = ex.submit(e1);   Future<Integer> f2 = ex.submit(e2);    return f1.get() + f2.get();  }   public static void main(String[] args) throws InterruptedException,  ExecutionException {   int[] a = new int[200000];   for (int i = 0; i < a.length; i++) {    a[i] = 1;   }   //this is the array the programm needs to sum up     ExecutorService exs = Executors.newFixedThreadPool(20);   //creating a ThreadPool using newFixedThreadPool    ExecutorServiceSum ess = new ExecutorServiceSum(ex, a, 0, a.length);   //creating a Callable task obejct     Future < Integer > f3 = exs.submit(ess);   //submitting the Callable task object to the ThreadPool   //store the result in Future object    System.out.println(f3.get());  } }   the following are exceptions:  Exception in thread "main" java.util.concurrent.ExecutionException:  java.lang.NullPointerException     at java.util.concurrent.FutureTask.report(Unknown Source)     at java.util.concurrent.FutureTask.get(Unknown Source)     at ExecutorServiceSum.main(ExecutorServiceSum.java:54) Caused by: java.lang.NullPointerException     at ExecutorServiceSum.call(ExecutorServiceSum.java:31)     at ExecutorServiceSum.call(ExecutorServiceSum.java:1)     at java.util.concurrent.FutureTask.run(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)   Questions:   why the get() method get Unknown Source? Future object contains unfinished return result? how to fix this code?


How to assign the user login block to header region

I created a user and I logged in as the user by visiting xxx.com/user. I just visited xxx.com/user. I see the user name but I do not see any log out button. I am not sure how I logout.   Thanks.  D


"Had you told me earlier" vs "If you had told me earlier."

I've been asked to give a speech tomorrow. Since I'm not prepared I said:  "Had you told me earlier I could've prepared for it."  Q 1) Was the response correct?  Q 2) Is it the third conditional since there a two hypothetical past events? (One is the he didn't tell me earlier and the other one is that I couldn't take preparation.)  Q 3) What's the difference between my original sentence and the following sentence:  "If you had told me earlier I could've prepared for it."


Is it possible to change the precision of a field in the attribute table in ArcMap?   I have a shapefile with X and y coordinates of pointlocations. I would like to change the precision. Is this possible?


I started working with RSA two weeks ago. But I couldn't really understand how exactly I2OSP & OS2IP are working. I am using some open source for signature verification through RSA PSS algorithm.  I am trying to generate "EM" from a signature of length 256 bytes, public modulus $n$ (256 bytes) and exponent $e$ (0x10001). But I am not getting the expected output ("EM"). So I started debugging code.  Can someone clearly explain what OS2IP & I2OSP do?


In general, is it acceptable to capitalize Googled?

I Googled, "What is the meaning of life?" and this is what I learned


Prob. 19, Sec. 2.3, in Herstein's TOPICS IN ALGEBRA, 2nd ed: Bracketing any $n$-tuple of elements in a set with an associative binary operation

Here is Prob. 19, Sec. 2.3, in the book Topics in Algebra by I.N. Herstein, 2nd edition:  If $S$ is a set closed under an associative operation, prove that no matter how you bracket $a_1a_2 \ldots a_n$, retaining the order of the elements, you get the same element in $S$ (e.g., $\left( a_1 \cdot a_2 \right) \codt \left( a_3 \cdot a_4 \right) = a_1 \cdot \left( a_2 \cdot \left( a_3 \cdot a_4 \right) \right)$; use induction on $n$).  My Attempt:  Of course the assertion holds for $n = 1, 2, 3$. Suppose it holds for every $k = 1, 2, 3, \ldots, n$ for some $n \in \mathbb{N}$ such that $n \geq 3$. Let $a_1, a_2, a_3, \ldots, a_n, a_{n+1}$ be any elements of set $S$.  How to proceed from here? How to prove rigorously that, no matter how we bracket $a_1a_2a_3\ldots a_n a_{n+1}$, retaining the order of the elements, we obtain the same element of $S$.


A user is receiving "a potentially dangerous request.form value was detected" error message when trying to log in. I set validateRequest="false" in the logon.aspx page as well as the following in the "location" of web.config:  <location path="~/Account/Logon.aspx">     <system.web>       <pages validateRequest="false" />       <httpRuntime requestValidationMode="2.0" />       <authorization>         <allow users="?" />       </authorization>     </system.web>   </location>   User still getting the error message. I askded what special characters he has in his password and he has "&", "#" and "(", none of which should generate this error (I have # and * in mine). Is there anything else I can try?  Almost all suggestions to fix this issue, including those at this site, recommend the use of "validaterequest=false" which does not seem to help.


Is it possible to append training data to existing SVM models?

I'm using libsvm and I noticed that everytime I call svmtrain(), I create a new model and that there seems to be no option to put data in an existing model. Is this possible to do however? Am I just not seeing this aspect in libsvm?


Expectation of a function of a random variable from CDF

Is it possible to calculate the expectation of a function of a random variable with only the the r.v.'s CDF? Say I have a function $g(x)$ that has the property $\int_{-\infty}^{\infty}g(x)dx \leq \infty $ and the only information I have about the random variable is the CDF.  For example, I have a scenario where there are three timers that can be modeled as exponential random variables $X_1,X_2,X_3$ with rate parameters $\lambda_1,\lambda_2,\lambda_3$ respectively. For each moment in time I earn a reward according to some reward function $g(x)$. That is, my reward for waiting until time $t$ can be written as $\int_0^tg(x)dx$. However, $g(x)$ experiences diminishing returns so the the marginal reward received from waiting one second at $t=0$ is greater than one second at say $t=27$. This 'game' ends when one of two things happens. Either both timers $X_1$ or $X_2$ must ring or timers $X_1$ or $X_3$ must ring. I'm trying to find the expected reward of playing this game.  Currently I can calculate the the CDF of the random variable modeling the time until the game ends, but I dont know how to use this information to when what I really need is reward associated with this time.  So far I have the additional random variables: $$ W_{12}=\max(X_1,X_2) \quad W_{13}=\max(X_1,X_3) \quad Z=\min(W_{12},W_{13})$$ Also let $F_i(x), i\in \{1,2,3\}$ denote the CDF of $X_i$ The CDF of $Z$, can be written as: $$F_Z(t) = F_1(t)F_2(t) + F_1(t)F_3(t) - F_1(t)F_2(t)F_3(t)$$  I know when a random variable takes on non-negative values, you can use a shortcut to calculate the expectation using the CDF. That is, $E[X] = \int_0^\infty F(X\geq x)dx$. Is there something similar I could use for a function of a random variable, or is it necessary to compute the pdf of $Z$ first to compute $\int_0^\infty g(t)f_z(t)dx$


Let $f:\mathbb{R}\to(0,\infty)$ be a differentiable function. For all $x\in\mathbb{R}$ $f'(x)=f(f(x)).$ Then show that such function does not exists

What i have done is very small. $$f'(x)=f(f(x))\implies f(f'(x))=f(f(f(x)))$$Now $$f(f(f(x)))=f'(f(x))$$Hence$$f(f'(x))=f'(f(x))$$Now i am blank. What to do for the proof


When lasers are used to cool atoms or ions, etc where does the heat go?

According to the first law of thermodynamics, sourced from wikipedia "In any process in an isolated system, the total energy remains the same."  So when lasers are used for cooling in traps, similar to the description here:  where is the heat transferred?    From what I gather of a cursory reading on traps, whether laser, magnetic, etc the general idea is to isolate the target, then transfer heat from it, thereby cooling it.  I don't understand how sending photons at a(n) atom(s) can cause that structure to shed energy, and this mechanism seems to be the key to these systems.


Proof of why $\sqrt{2}$ is an irrational number

I am studying the proof by contradiction below. But I am confused on why the proof is valid. It first assumes that $p, q$ have no common factor, and then arrives at a conclusion where $p, q$ are both divisible by $2$, and hence they do have a common factor, contradicting the earlier assumption. But I am confused on how this leads to the conclusion that $\sqrt{2}$ is irrational. To me, it seems all it says is that we can't assume that $p, q$ have no common factors. How does it prove the case where $p, q$ have a common factor, but doesn't result in $\sqrt{2}$?


Is it unethical to cite a paper or book that you have never looked at?

Suppose I see that Book X is cited by several papers with reference to some particular Fact Y. I wish to cite Fact Y. As far as I know, Book X is the only reference for Fact Y.   I have never looked at Book X. Nonetheless, I cite it like this:  'Fact Y' (see Book X)  My question is: Is this ethical, given that I've never looked at Book X?  More context for my question. I am NOT asking whether this is good scientific practice. I am NOT asking how a good scientist should actually go about citing Fact Y. I am NOT asking if this could undermine your credibility as a scientist.  Instead, I am asking this question because it seems to be a somewhat-common practice. And moreover, as far as I know, no scientist has ever been issued even an official rebuke (much less fired) for engaging in such practice. This would suggest to me that this practice is not considered to be unethical.   Of course, it is not binary as to whether a practice is unethical. But I would simply like to know whether the academic community in general considers this to be even a mildly unethical practice. Or if it is perhaps very slightly unethical, but not a big deal. Or if it is not in the least bit unethical.


Code after bullet list isn't rendered correctly

Possible Duplicate:         If there is a list immediately followed by a code block the code block is not recognized as code (Even though there is a newline between the two).  int answer = 42;  Note: This happens both in the WMD preview and in the final (server rendered) post.


is it possible to reverse after make mkfs.ext4 ?  mkfs.ext4  -j -m 0 /dev/sdb -F   for example we create file system on new device - sdb ( no any data on sdb )  mkfs.ext4  -j -m 0 /dev/sdb -F   now we want to reverse back as was before the "mkfs"


a multiple choice question on non-negative definite matrices

A symmetric matrix in $\mathbb{M}_n(\mathbb{R})$ is said to be non-negative definite if $x^TAx≥0$ for all (column) vectors $x \in \mathbb{R}^n$. Which of the following statements are true? a. If a real symmetric $n×n$ matrix is non-negative definite, then all of its eigenvalues are non-negative. b. If a real symmetric $n×n$ matrix has all its eigenvalues non-negative, then it is non-negative definite. c. If $A\in\mathbb{M}_n(\mathbb{R})$, then $AA^T$ is non-negative definite.    I know that all of the above options are correct but I did not have proof of any one of them.can anybody tell me about the proof of them.


I'm doing capacity planning for my DR site and i'm trying to understand break-even point for Light/Medium/Heavy reserved instances vs the Ondemand. I have plotted my values on a graph as shown in the picture below:    Am i correct,in making the following assertions ?   For an m3.large instance running 24/7 (100% utilization),there is no break-even point and does it makes sense to prefer an Ondemand over light RI ? The break-even point for a High RI over Ondemand is some where around 170 days. Am i right in saying,choosing High RI pays dividends only if,the uptime of that instance is more than 170 days or 4080 Hours (46.44 %) in an year?


How to activate python virtualenv through shell script?

0  I have to activate the virtual environment (venv) so I running these commands manually in terminal:  source .venv/bin/activate     # To activate the virtual env.  and  deactivate                    # To deactivate the virtual env  This works fine when running manually. Now I have to insert these commands in a bash script to make AWS CodeDeploy to deploy it on a Ubuntu 18.04 server.  My bash script named after_install.sh looks like this...  #!/usr/bin/env bash  set -e source .venv/bin/activate ## DO SOME STUFF ## deactivate   For local testing, I made the script executable and ran the script using bash after_install.sh. But nothing happened. It doesn't activate the virtual environment. It seems none of the above commands worked while running the bash script.  I am not getting why these commands work when I run them manually but not with a bash script. What is going on? I need to write these commands inside the bash script so that AWS CodeDeploy can deploy it on the server.


I want to run small untrusted programs, but restrict them from accessing any files outside of their folder, network access, and everything else that they don't really need. What is the simplest way to achieve this?


Let  $$U = Sp\{(3, 3, 1)\}$$  How can I find the Orthogonal complement ? I'm not sure how to calculate it.  In the book I'm learning from it's saying that I need to write the vectors of $U$ in $Ax = 0$ where the lines of $A$ are the vectors of $U$.  But since $U$ has only one vector I'm not sure how could this help me to find the orthogonal complement


I'm taking Discrete Mathematics and am a little confused on the "empty set" or "null set" defined by ∅.  I understand that ∅ is not a member of {∅} but is ∅ a member of {∅, {∅}} given that there is a null set inside this set?


Let $f: X \rightarrow Y$ be a function we define the graph of $f$ as $Γf = \{x × f (x): x \in X\} \subset X × Y$. Show that when $f$ is continuous it is true that $Γf$ is homeomorphic to X. Why the previous theorem shows that the surface defined by the equation $z = xy$ is homeomorphic to $\mathbb{R}^2$? could someone help me with this problem?  It is not clear to me how the going and then the return goes


Python script won't shift face of simple cube

I'm making a simple script that adds a cube and moves it, and then I want to shift some of the faces, in order to change the cube's width height or depth. When I run it, the cube is created and moved, but altering de cube's dimensions gives an error:   convertViewVec: called in an invalid context   I'm using the code that's shown in the Info window when I select a face and drag it along one of the axes. I'm new to Blender and I can't figure out what's missing here..  import bpy  bpy.ops.mesh.primitive_cube_add() bpy.ops.transform.translate(value=(0, 6.04281, 0), constraint_axis=(False, True, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True) bpy.ops.transform.translate(value=(0, 0, -5.22667), constraint_axis=(False, False, True), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True) bpy.ops.transform.translate(value=(0, 2.9328, 0), constraint_axis=(False, True, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True) bpy.ops.object.editmode_toggle() bpy.ops.transform.translate(value=(0, 1.03954, 0), constraint_axis=(False, True, False), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True)   Edit - Solved it by creating a custom geometry, as shown here:  (Pointed out by @poor)  The following code now creates a flat cube:  import bpy    verts = [ (2.0, 1.0, -1.0),  (2.0, 0.99, -1.0),  (-1.0, 0.99, -1.0),  (-1.0, 1.0, -1.0),  (2.0, 1.0, 1.0),  (2.0, 0.99, 1.0),  (-1.0, 0.99, 1.0),  (-1.0, 1.0, 1.0)]  faces = [ (0, 1, 2, 3),  (4, 7, 6, 5),  (0, 4, 5, 1),  (1, 5, 6, 2),  (2, 6, 7, 3),  (4, 0, 3, 7)]  mesh_data = bpy.data.meshes.new("cube_mesh_data")   mesh_data.from_pydata(verts, [], faces)   mesh_data.update()  obj = bpy.data.objects.new("My_Object", mesh_data)    scene = bpy.context.scene     scene.objects.link(obj)     obj.select = True


Misplaced/Overlapping Navigation Item Text on iOS 10

The bug displayed in the attached screenshot occurs consistently for me while running the developer beta of iOS 10 using v1.5.2 of the Stack Exchange app on an iPhone 6.  I was able to recreate this by simply tapping on any question or answer in my feed with a long title. This doesn't appear to be a bug with iOS 10 itself since I haven't seen it in other apps, but I could be wrong.


Why is $\dim_{\mathbb{Q}}\mathbb{R}^n=\operatorname{card}\mathbb{R}$ for all $n\geq1$?

Question: How to show that the dimension of $\mathbb{R}^n$, when viewed as a vector space over $\mathbb{Q}$, is equal to the cardinality of $\mathbb{R}$?   This is related to my . This dimension is clearly infinite, but why is it precisely the cardinality of $\mathbb{R}$?


I'm trying to send a cross domain request using Jquery ajax.  My code here:  $.ajax({     url: 'http://my.domain.com/api/user/66f041e16a60928b05a7e228a89c3799/events/c60d870eaad6a3946ab3e8734466e532',     type: 'GET',     dataType: 'json',     crossDomain : true,     success: function(eventDetailsResponse) {                 response = JSON.stringify(eventDetailsResponse);                 console.log(eventDetailsResponse);              },     error: function() {  },     beforeSend: function(xhr) {                    xhr.setRequestHeader('key1', 'value1');                    xhr.setRequestHeader('key2', 'value2');                    xhr.setRequestHeader('key3', 'value3');                 } });


Windows XP: Add a directory to the PATH environment variable via CLI?

I'm having a problem to add a directory to the PATH environment variable in Windows XP via command line. I've no issue doing this via GUI. I just want to do it in CLI. I know this OS is EOL, but this for testing purposes only. Default PATH C:\>path PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem  C:\>  An attempt to set it via CLI C:\>set PATH=%PATH%; C:\Program Files\7-Zip\  C:\>  Looks fine, it's there. C:\>path PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem; C:\Program Files\7-Zip\  C:\>  However, it didn't really work as expected. 7z program is located in C:\Program Files\7-Zip\ directory. C:\>7z '7z' is not recognized as an internal or external command, operable program or batch file.  C:\>   C:\>cd "c:\Program Files\7-Zip"  C:\Program Files\7-Zip>7z  7-Zip [32] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04


Fake Stack Overflow site on http://stackverflow.com/ - illegal?

stackverflow-dot-com has recently been updated to be a clone of the real Stack Overflow site, and most likely steals information.  Is this website illegally using the Stack Overflow and Stack Exchange logos, and can it be shut down for that?


Will two identical charges moving at the same velocity experience magnetic force due to each other?

I think they shouldn't since they are relatively at rest to each other. The actual answer to this question (it was in an exam I took) is that there will actually be a magnetic force acting on both of them.  Here's my reasoning: Since both the charges are unaccelerated, I can view them from an inertial frame which is at rest relatively to both the charges. Now, these two charges would appear to be at rest and as such they should only affect each other by electrostatic force. What is wrong in my reasoning?   Thank you


I posted a question on SO, intending to use the tag "batch".  After completing the post, the tag mysteriously changed to "batch-file".  I tried editing it several times to switch it to "batch" but each time it reverted to "batch-file" after saving.  This is the post:


Change the default Category selection from a checkbox to an optionbox

Is there any way to transform the default "Category" taxonomy menu in the admin panel (once in a post) from a checkbox multi-option to a checkbox single option, or an option box.  My aim is to prevent a user to add a content in more than one category.  Thanks


I have a class like that:  public class A{  //some properties }  public class B : A{    //some more properties }  public class C : A{    //some more properties }   I would like to make a list of B, C and so on like that:  List<A> mylist = new List<A>() mylist.add((B)someobject); mylist.add((C)someobject);   If I add B, C etc. type of elements to mylist, It will cast them to type A. Therefore if I want to get properties of mylist[0] it gives me only class A properties.  How can I solve the problem and reach B or C type properties too?


Can't See External Hard Drive Files Anymore After Installing A Windows 10 Boot

I wanted to fix my old laptop and for some reason I thought it would be okay to install a  onto my external hard drive. After installing it, I was unable to see all of the files I had on there. I was wondering if there is any way to reverse this or recover my files. It's a 2TB WD Elements Hard Drive and was nowhere near to full yet. I have included an image below of what it looks like on explorer.   Any help or direction would be appreciated, thank you in advance!


Where does a PC (Ubuntu 14.04 LTS here) store WiFi passwords?

I'm asking because I just wittnessed the demise of my laptop's motherboard, but luckily got another almost identical laptop lying around (same model), just with a tiny ancient HDD and without much RAM left (plundered some other day already).  So all I did was move the HDD and the RAM from my smoked laptop to the one lying around and turn it on. Everything worked fine, but I noticed it didn't know the WiFi passwords of the WLANs I was recently using. I was always under the impression those are stored on the HDD, apparently not.  So where are they stored? Somewhere inside the WiFi substystem/chips?  EDIT: Thanks, I looked into the suggested duplicate question. It doesn't actually answer where the passwords are store, though. I learned they are stored below /etc/NetworkManager/system-connections, yet obviously this mount doesn't eventually reference the HDD, since after moving it the passwords were lost. So the question would be where it is actually stored


Evaluate $\int \frac{1}{\sin x\cos x} dx $

Question: How to evaluate $\displaystyle \int \frac{1}{\sin x\cos x} dx $  I know that the correct answer can be obtained by doing: $\displaystyle\frac{1}{\sin x\cos x} = \frac{\sin^2(x)}{\sin x\cos x}+\frac{\cos^2(x)}{\sin x\cos x} = \tan(x) + \cot(x)$ and integrating.  However, doing the following gets a completely different answer: \begin{eqnarray*} \int \frac{1}{\sin x\cos x} dx &=&\int \frac{\sin x}{\sin^2(x)\cos x} dx\\ &=&\int \frac{\sin x}{(1-\cos^2(x))\cos x} dx. \end{eqnarray*} let $u=\cos x, du=-\sin x dx$; then \begin{eqnarray*} \int \frac{1}{\sin x\cos x} dx &=&\int \frac{-1}{(1-u^2)u} du\\ &=&\int \frac{-1}{(1+u)(1-u)u}du\\  &=&\int \left(\frac{-1}{u} - \frac{1}{2(1-u)} + \frac{1}{2(1+u)}\right) du\\ &=&-\ln|\cos x|+\frac{1}{2}\ln|1-\cos x|+\frac{1}{2}\ln|1+\cos x|+C \end{eqnarray*}    I tested both results in Mathematica, and the first method gets the correct answer, but the second method doesn't. Is there any reason why this second method doesn't work?


Javascript array reduce returns empty array

Why is this simple example returning an empty array?    const arr = [1, 2]; const result = arr.reduce((list, val) => {   list.push[val];   return list; }, []);  console.log(result);


Enlarged partition, filesystem still reports old size

I resized the root partition with GParted, from 20 GB to 40 GB, but the filesystem still reports a size of 20 GB.  How can I use all 40 GB?    Update  The resized partition was an LVM Physical Volume (/dev/sda2), and the boot partition is ext4 (/dev/sda1).


When I install Ubuntu, must I get new drivers? IMPORTANT

I’m on an . If I delete Windows 10 and install  Ubuntu, will I have to reinstall drivers such as graphics, networking, hardware, etc.?


Letter with circle above -- not a dot -- in math mode

I need to typeset letter with a circle above it in math. \dot A does a very close result, but I need something that looks like \circ, not like \cdot.  Edit: there is awesome answer , but Detexify failed for me, and I tried looking up tables, but haven't found what I needed.


Is it a bad idea to pour water on a pan without letting it cool off?

Obviously I have enough common sense to not add pour water into boiling oil, but after the cooking is done I try to add water to the pan so it's easier to wash. Usually I let it sit there cooling off and more often than not I just forget about it and have the biohazard that is a greasy cast iron ribbed pan to deal with in the morning. If the pan is still somewhat hot and you feel it's warm feel 3-4 inches above the surface of the cookware is it fine to add water? Can it damage the pan in the long run?


I'm getting the user input like so:  Scanner keyboard = new Scanner(System.in); String input = keyboard.nextLine();   When I compare it like this  if(input == "abc"){   System.out.println("Match!"); }else{   System.out.println(input + "\nabc"); }     If I type "abc" I see     abc   abc   Instead of the expected match.  What's going on?


I am system admin,  Setup -> Quick Search -> Question is not visible in my setup.   Actually their was a trigger written on it before an year.  Now while compiling my test cases I am not able to deploy the change set as it is running into compilation error.  How come I am not able to access standard Question object. Are we missing something?


What is the word for someone who has been recommended?

Does the word recommendee exist? If so, is it spelled as such?  What would be the opposite, or the person who is doing the recommending?


is there a closed form expression for the following matrix infinite series

Consider this infinite sum of matrices. Is there any closed form to express this sum?   $S=B+ABA^T +A^2B({A^T})^2+A^3B({A^T})^3+...$  And B is diagonal.  Thanks


My bike's quick release seat has been slipping down recently. I noticed when my (pro) biker friend remarked how low down the seat on my bike was, and helpfully readjusted it for me. Biking became easier. Yesterday, while biking, I noticed that biking was difficult again, so dismounted and checked the seat -- it was way down again. So I fixed it.....but what can I do to make sure it doesn't happen again?


Is it safe to fork off a Thread to execute an insert using a JdbcTemplate in Swing.  It's a logging event and as much as possible I don't want it to affect perceived performance.


In my digital electronics labs and lectures we are told to try and make things from NAND gates, because they are the cheapest kind of gate available to buy. Why is this? Why isn't an OR/AND gate the cheapest to buy?


How can you depend on test code from another module in Maven?    Example, I have 2 modules:   Base Main   I would like a test case in Main to extend a base test class in Base.  Is this possible?  Update: Found an , which involves creating a test jar.


tense agreement (the simple past tense and the past perfect tense)

I found this sentence below in a test passage:     He had only become a dog-lover in later life when Jofi was given to him by his daughter Anna.   Why is "Jofi was" used when the tense of the main clause is the past perfect tense?


Solaris 11 list of supported USB wireless cards

I just installed Solaris 11.3 on my laptop. Unfortunately the internal card of this laptop (Broadcom BCM4312) is not supported by Solaris.  And so my question is: Is there a list of USB wireless cards with the manufacturer that are supported by Solaris?  I will go to the store and buy one and everything will be fine.  Thank you.


I want to take some smart photos of myself with my Canon 250D. I have it set to 18mm so I can stand a bit away from the tripod. I then put the camera on a 10 second self timer. Eye AF is on.  When I am close to the camera I have tried tapping the screen to track where my head is, and a green square appears. However, as I get further away this stays in the same place and doesn't track me. The issue seems to be that when the shutter button is pressed the focus locks on to whatever is in focus at that time, hence when I enter the frame it didn't track me like it normally would.  I am using Auto shooting mode.  Focusing works completely fine without the Self Timer but I need it. I have found I can get slightly better results by switching from Auto Focus to Manual Focus and fiddling around with it a bit but its not an ideal solution.


Sentence 1: I don’t know if it won't rain tomorrow.  Sentnece 2: I don’t know whether it won't rain tomorrow.  Which sentence sound natural to you? Is there a rule that we should use "if" rather than "whether" when the object clause is negative?  Thank you very much!


How to prove $f(n)=\sum_{k=0}^n\binom{n+k}{k}\left(\frac{1}{2}\right)^k=2^n$ without using the induction method?

The problem is to prove the following statement for all natural numbers. $$f(n)=\sum_{k=0}^n\binom{n+k}{k}\left(\frac{1}{2}\right)^k=2^n$$  I already proved this using mathematical induction. But, my instinct is telling me that there is some kind of combinatorial/algebraic method that can be used to solve this easily. (Unless my instinct is wrong.) Can anyone give me hint on how to do this?


comparing GPS cordinates with a certain margin in c

I have been tying to make a device with arduino that would use two gps modules. So one sends gps cords and the other receives and compares its current location to the location of the sender and once the receiver gets a few meters from the sender an indicator led would turn on indicating the send is nearby and if you were to walk away from the sender the led would turn off. So my problem is i cant figure out how to compare the received and current values of cords to work accurately. This is what i have been trying to get to work i dont know if im going completing the wrong way with this i dont know if you can do some sort of radius and use that if someone could help me solve this i would greatly appreciate it. Example data received from sender Lat: 12.76433041 Lon: -54.74539143 from receiver Lat: 12.76433854 Lon: -54.74539435.     int destLat;  int currLat;  int destLon;  int currLng;    currLat = gps.location.lat();   destLat = Lat;   currLng = gps.location.lng();   destLon = Lon;     bool AreSame(float currLat, float destLat)     if fabs(currLat - destLat) < EPSILON;     {       if fabs(currLng - destLon) < EPSILON;       digitalWrite (4, HIGH);     }


A Good Book for Mathematical Probability Theory

I am from mathematical background, and I always hated the way they teach elementary probability theory in schools without giving any clue about measure theory.   I want a theoretical book in probability theory, which starts with measure theory and defines everything in mathematical terms. I am also not looking for a measure  theory book. If there is such a book that instead of giving only an intuitive introduction to probability theory, it rather defines everything in details, I would be really grateful to know it.  I would be happy to hear about any reading experience. Being exact in mathematical  language and maybe exercises.  Thanks a lot.


How do I use prove this function is bijective?

Suppose I have the following function $e : \mathbb{N} \times \mathbb{N} \to \mathbb{N}_1$, where $\mathbb{N}_1$ is the set of natural numbers starting from 1 instead of 0:  $$e(m,n) = 2^m (2n+1)\ \ \ \forall m,n \in \mathbb{N}$$  I want to show that the map $e$ is bijective.  So I have to show it is both injective and surjective. To show that it's injective, here are my thoughts:   Show for all $m,n$, we have $2^m$ and $2n+1$ being strictly increasing, and so the function is also a strictly increasing one. Since it is strictly increase, there can only be a one-to-one input to output mapping, and so the function is injective trivially.   Now surjection will be harder to prove.  My thoughts are:   This problem has actually 2 arguments instead of the standard 1 argument function, so I suppose I would need to prove individually for each $m$ and $n$. Since they are natural numbers, induction come into mind. I should try to prove that for $\forall m$, starting from $e(0,n)$ and proving the inductive hypothesis, that $2^m$ is surjective. (is this true? A brief idea of Cantor's diagonalization argument makes me think this might be false). Then I try to prove for all $2n+1$ it is surjective. This can be done quite easily since if we keep $m$ constant, then the image $2n+1$ is essentially enumerable. In fact, can we use this argument to prove that $e(m,n)$ is enumerable for all $m$ we vary and $n$ is constant? Finally, having proven that for both cases where $m$ varies and $n$ is constant (and vice versa) they are injective, we can see that the resultant function is surjective as it is closed under multiplication. Is this the right way to define it?   That is the most reasonable shot I can give so far but I've no idea whether this is correct.  Note: the goal is to prove this without using the fundamental theorem of arithmetic.


Can't install any app, App Store asks for credit card

I haven't been installing anything on my iPad Mini for the past few weeks. But previously, I just had to tap on "Install", enter my Apple ID password and go.  Now, for every new application, even those free ones, I have to confirm each time, that I'm 17 or over. And then App Store asks to enter my credit card information. If I disagree and hit "Cancel", installation process is interrupted and I can't install any application, even free one.  I don't trust Apple at all and I'm not willing to share my credit card information, especially that I'm installing only free applications.  I'm pretty sure that I haven't changed anything in the configuration of my iPad Mini for ages.   Am I missing some significant change to the App Store or this is some kind of bug or virus? Is there anything I can do in this situation? How can I install a free application from the App Store, without having to share my credit card information with Apple?


How to measure the period of an oscillation with least error?

I have a question about analyzing the data from a coupled pendulum.  I have measured the amplitude $\psi(t)$ which is expected to be a  and I want to measure the period. The ideal plot would be something like this.    I have to measure the period of the  and the individual components.  The image is ideal, because the amplitude will be decreasing slowly with time.  So I would like to know the best method to calculate the period and its error. I have considered these options:   Fast Fourier Transform (FFT): The problem I see is that it's not a totally periodic function, so it might introduce more error. And I've read that the error is related to the covariance matrix, but I don't understand it. Measuring the distance between maxima/minimum: This would not be affected by the damping, but you would waste many points.


Has there been a recent update to the fontspec package which changed the usage of \setmainfont in LaTeX or XeLaTeX?  This seems to be the same error as in this post today:   I updated my Tex Live installation and I'm now receiving an error for the following MWE.  \documentclass{scrartcl} \usepackage{fontspec} \setmainfont{Times}[ItalicFont={Gill Sans Italic}]  \begin{document} \end{document}      The error from my log is  (/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.cfg))) ./MWE.tex:4: Undefined control sequence. <argument> \xetex_suppressfontnotfounderror:D   l.4 ...nfont{Times}[ItalicFont={Gill Sans Italic}]  The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.


Warp drive small scale experiments "proof of concept"

Possible small scale warp drive experiments, or small scale experiments with quantum mechanics to model space-time warping? Why is it so difficult to engineer a small scale warp drive even though negative energy is not required to build a warp drive? According to this paper negative energy is not needed


Why doesn't the Windows command prompt window maximize to the full screen size?

Anyone know why doesn't the Windows command prompt window maximize to the full screen size?  To the best of my knowledge, even in the new Windows 7 the command prompt window(cmd.exe) doesn't maximize to the full screen size like all other windows. This behavior is quite annoying for me, and I'm sure to many others as well.   Note: The size of the command prompt window can be , but the size remains fixed regardless of the screen size.


loop through paragraphs ID's in node template

In a custom twig template for content type "legal", I'm trying to loop through a 3-field paragraph called "legal_section." It's referenced by my content type, using an entity reference field called "field_legal_section" - set to allow unlimited entries. For each, I want to print the paragraph id. I'm not quite sure how, in this scenario. Maybe there's a little more involved than I thought?  I'm currently trying something like this, in the twig template:   {% if content.field_legal_section %}  {% for item in content.field_legal_section %}   id: {{ content.field_legal_section.id }}<br/>   show the 3 fields: {{ content.field_legal_section }}  {% endfor %} {% endif %}   If relevant, the individual fields within the paragraph called legal_section are:    field_legal_section_title  field_legal_section_subtitle  field_legal_section_body


what would be best for SEO?   force all website page to SSL using 301 force just some page like login and registration page and make it optional for other pages.


Let $x_1=a>0$ and $x_{n+1}=x_n+\frac{1}{x_n} \forall n\in \mathbb N$.   Check whether the following sequence converges or diverges.   When I was in UG my teacher used derivative test for monotonicity.  $f(x)=x+\frac{1}{x}, f'(x)=1-\frac{1}{x^2}>0(x>1).$ So, $f(x)$ is increasing. How to prove the sequence is monotonic? Differentiation is coming after the sequences and series. By AM-GM inequality sequence is bounded below. $x_{n+1}=x_n+\frac{1}{x_n}\ge 2\sqrt{x_n.\frac{1}{x_n}}=2  \forall n\in \mathbb N$. How can I judge whether the sequence bounded above or not? Please help me.


How do I cross-reference example sentences in text?

I want to include some numbered example sentences in my report, like in this paper (introduction and throughout the paper):   From the blue text of the references to the examples they seem to be labeled somehow. Does anyone know how they might have done this, or know a good solution for this?


Does a wing in a potential flow have lift?

I have a hard time understanding whether or not a wing placed in a potential flow, assuming there is no viscosity and no friction with the wing, will produce a lift. I've seen several contradictory (to me) versions of what happens in this case, in particular:   In Landau - Lifshitz, Vol 6, §11 it is shown that the force vector on any object in a potential flow is zero (i.e. there is neither lift nor drag). The mathematics behind this derivation are above my understanding, thus I can't really follow how this is shown and what assumptions are made along the way. The Wikipedia article on the  states that a body in a potential flow does not experience drag. On the other hand the article does not say anything about lift forces and the German version explicitly states that it does not apply for lift forces. A common explanation for the lift produced by wings seems to be that its asymmetric shape causes a higher velocity of the flow above the wing and a lower below. Due to Bernoulli's equation that would result in a pressure-difference and thus a force. Honestly I don't quite get this explanation as I don't see where the different velocities are supposed to come from (without friction and thus without the circulation resulting from turbulences behind the wing).   So now I'm wondering, do or do not wings have lift in irrotational, inviscid, incompressible fluids.