Im amateur photographer, just got my first DSLR camera (Nikon D3300), I was wondering how to shoot car trail light at night.  Thanks!


Is a set of continuous and bounded functions defined on [0,1] compact? Is it bounded?

Suppose that $S=\{f\in C[0,1]|\|f\|<=M\}$ with $\|f\|=\max_{x\in[0,1]}|f(x)|$. Is set $S$ a compact set? Is set $S$ a bounded set?


I believe that umask is something that controls , but do not fully understand it.  After running umask 0644 in a , I cannot read the files I create with the command-line text editor nano. I noticed that the permissions of that file are set to 0022 instead of the default 0755.  How does umask work? I thought I could just remove the each digit in the umask from 0777, 7 - 6 = 1 and 7 - 4 = 3, so I expect the permissions to be 0133, but apparently, this is not the case.   What is umask exactly? Explain it to me like I was a "Linux noob" How do I calculate with umask? What are use cases for umask?


Example of a field embedding from K to K which is not an Automorphism.

A field embedding from K to K is an injective homomorphism. What is an example of a field embedding which is not surjective (and therefore not an automorphism)?


List entry followed by code block messes up the code section

Here's two examples (note that in first example, backticks also had no effect, for some reason):   include/db.php:      $attribs =               array(                     PDO::ATTR_PERSISTENT => $config['db']['persistent'],                     PDO::ATTR_ERRMODE => $config['db']['errormode']             );       $db = new PDO(             $config['db']['uri'],             $config['db']['user'],             $config['db']['pass'],             $attribs     );     $db->query("SET NAMES 'utf8'");     $db->query("SET CHARACTER SET 'utf8'");   } catch (PDOException $e) {         print "Error!: " . $e->getMessage() . "";         die(); }  function dbGetEngine() {         global $config;         return substr($config['db']['uri'], 0, strpos($config['db']['uri'], ':')); } ?> include/config.php:     It gets worse, try adding space prior to the asterisk :/  Just removing the asterisk fixes stuff up. Thing is, I believe it looks nicer with the asterisk ... and it's definitely a bug :-)


My nikon d3100 has broken flash... what can I use to replace it, externally?  I just want something small and lightweight, as fill flash. I have a large external flash unit, but it's HEAVY. Thanks! Claudia


Mac 10.9.4 & MacTeX (Installation of .sty file)

I hope you can help.  I was a fairly regular user of LaTeX, only for Open University assignments (even attended a TUG course in London!!) but have had about 18 months off and returned with a new platform! Mac!  As a previous Windows user, I had set up everything OK (with a little help) - but am now embarking on this through the world of Apple.  Previously I was used to TeXworks as the editor and had downloaded a tma.sty file from an OU forum which assisted in the layout tremendously... I had adjusted and added things and eventually re-wrote some of the .sty file to reduce the preamble in my OU assignments.  However, porting to Mac has left me somewhat stumped!  I have downloaded MacTeX and performed the 'whole' installation.  I have booted up TexShop and opened a previously created .tex file.  On opening a previous .tex document it opens fine, the PDF partner opens fine, but the minute I press 'Typeset' I get a ! LaTeX Error: File 'OUTMA.sty' not found.  I know I need to save my .sty file somewhere... but where? I have a TeX foler under Applications that has; Excalibur-4.0.7 [folder] FixMacTeX2013.pkg LaTeXIT LuaTeX-and-XeTeX [folder] TeX Live Utility  TeXShop FixMacTeX2014.pkg BibDesk and 3 x .pdf files  And I remember something about refreshing a file name database once this was done (but again, how)?!  I'm sure I will be fine once I have it started... HELP!  If it helps, I am running TeXShop v. 3.41 and have updated everything I can using TeX Live  Thanks in advance - Simon


Integrate $\int \frac{25 - x^2}{x^4} \operatorname d\!x$

I think we use trig substitution for this. But I'm not sure where to even begin with this   $$\int \frac{25 - x^2}{x^4} \operatorname d\!x$$


"Had been on the phone" vs "Was on the phone"

"I had been on the phone with my sister when the bell rang."  "I was on the phone with my sister when the bell rang."  Do these two sentences have the same meaning?


For loop body executes with a value that does not meet the loop condition in threaded code

Here it goes a tricky one (maybe not for experts). I'm learning about concurrency in C# and I'm playing around with some dummy code to test the fundamentals of threads. Im surprised about how is possible that the following code prints the value 10 sometimes. Thread[] pool = new Thread[10];  for(int i = 0; i < 10; i++) {    pool[i] = new Thread(() => Console.Write(i));    pool[i].Start(); }  Typical output is like 76881079777. I know is the value 10 and not 1 and 0 because the for loop body executes 10 times (not strictly sure, but I couldn't break C#). I'm even more surprised why this does not throw an IndexOutOfRange exception in the statement pool[i] = new Thread(() => Console.Write(i)); As long as I know, the for loop executes like following:  Check the condition ( i < 10) Executes the body if condition is true Increments the control variable (i++) Repeat  So, assuming that, is imposible for me to understand how the body can be executed with the value 10. Any ideas?


Why did the  with the class "container" cling to the left edge?

Why is the div with the class “container” clinging to the left edge when the div with the class "boss" is normally displayed in the center?  For a div with a "boss" class, I specified the width and the maximum width and everything works fine, but when I write the same code to the "container" class, the content is pressed to the left    body {   font-family: 'Open Sans', sans-serif;   margin: 0; }  *, *:before, *:after {   box-sizing: border-box; }  .header {   background-color: coral; }  .boss {   width: 100%;   max-width: 1100px;   background-color: #313030;   margin: 20px auto; }  .container {   width: 100%;   max-width: 1100px; }  .menu {   display: flex;   justify-content: center; }  .button {   padding: 40px 30px;   transition: background-color .2s linear; }  .button:hover {   opacity: 2;   background-color: red; }  .link {   color: white;   text-decoration: none; }

HOME

PORTFOLIO

ABOUT US

CONTACT

              Example
         Example


No polynomial with integer coefficients satisfies the conditions

Prove that there is no polynomial with integer coefficients $P(x)$ such that $P(7)=5$ and $P(15)=9$.  In general; how to know if there exists a polynomial with integer coefficients $P(a)=b$ and $P(c)=d$, where $a,b,c$, and $d$ are all integers?


Hi stackers,         System.out.print("Enter your first name:  ");   firstName = keyboard.nextLine();   if(firstName!="Mike"&&firstName!="mike"&&firstName!="Diane"&&firstName!="diane")   {       System.out.println("derp");   }   else       discount=true;   however, this is the result:  Enter your first name:  diane derp   if anyone can tell me what I'm doing wrong that would be great thank you very much!


How much feedback to provide for unsalvageable manuscript during peer review

When reviewing a manuscript as a peer reviewer and providing written feedback on a manuscript that is clearly a Reject, how does one decide how much feedback to provide? By "clear Reject," I mean poorly written, lack of novelty, experiments not satisfactory, issues with references, etc. Should the time be taken to provide comprehensive feedback for all aspects of the paper (i.e., what I'd typically do for a major revision) or do I just note the major components that led to the rejection recommendation? In other words, how much time should I spend providing feedback for a paper that is not reasonably salvageable?


How do I replace the *first instance* of a string in .NET?

I want to replace the first occurrence in a given string.   How can I accomplish this in .NET?


C++ performance of accessing member variables versus local variables

Is it more efficient for a class to access member variables or local variables? For example, suppose you have a (callback) method whose sole responsibility is to receive data, perform calculations on it, then pass it off to other classes. Performance-wise, would it make more sense to have a list of member variables that the method populates as it receives data? Or just declare local variables each time the callback method is called?  Assume this method would be called hundreds of times a second...  In case I'm not being clear, here's some quick examples:  // use local variables class thisClass {     public:         void callback( msg& msg )         {             int varA;             double varB;             std::string varC;             varA = msg.getInt();             varB = msg.getDouble();             varC = msg.getString();              // do a bunch of calculations          }  };  // use member variables class thisClass {     public:         void callback( msg& msg )         {              m_varA = msg.getInt();              m_varB = msg.getDouble();              m_varC = msg.getString();               // do a bunch of calculations         }      private:         int m_varA;         double m_varB;         std::string m_varC;  };


How can I use toggle bolts with limited depth behind them?

I have a predicament, I am putting up a shelf into the wall.  The wall is plaster, and then hollow and then concrete. I have screws with toggle bolts on them.  The 2 inch screw with the toggle bolt was too short to get the toggle bolt inside the plaster to the hollow part.  The 3 inch screw with the toggle bolt is too long because it hits the concrete. But the toggle bolt will reach into the hollow part.  How do I approach this dilemma? Do I need to drill into the concrete somehow? I think my current drillbit is incorrect for doing this, but I'm not sure.  Insight appreciated


Why are my some of my LED lights flickering?

Something is causing some of my LED lights to flicker in three locations. Here are two examples:       There are a few peculiar aspects.   The lights flicker sometimes and not at other times. Each time the flicker period is prolonged. I would say the lights flicker about 30-40% of the time. The lights flicker at different "flicker frequencies" as you can see in the videos. The flicker frequency also varies from time to time. There are three different rooms/circuits where the LED lights flicker. (They don't flicker in other rooms/circuits.) In each of the rooms, the light bulbs are of a different brand. There are 4 brands in total: Torchstar, Feit Electric, Hyperikon, Philips. Each of the three rooms uses a different kind of switch: Lutron dimmer (DV-600P), Lutron dimmer (DVW-600PH), and a dumb switch. The flicker sometimes stops if I replace one of the lights on the switch with an incandescent bulb. In one of the rooms, I have two sets of lights on two different switches, on a single circuit. Occasionally one set flickers more than the other.   A bad connection anywhere along the path is out of the question.  Any insight would be greatly appreciated!


Does there exist an operation that is commutative but not associative?   do you know what is operation?


How can I view the original (or "master") version of a photo in Photos without reverting all edits?

Most photo applications provides some way to toggle between the original (unedited) version of a photo and the current (edited) one.    In Aperture, "M" toggles between the two, many iOS photo apps let you touch the screen to compare the edited or filtered version to the original, etc.  I can't find any way to show the original in the new Photos app other than "reverting," which removes all the edits.  I don't want to remove them, I just want to compare the two.    I realize that I can "revert" then undo, but it's hacky, slow, and worse, dangerous - counting on undo to preserve work in any app is iffy, at best.  Note: The fact that Aperture edits are saved "less destructively" than Photos shouldn't be relevant here.  Both applications DO retain the original, in edition to the edited version.


I'm having trouble finding the uniform minimum variance unbiased estimator (UMVUE) of non-standard distributions/functions.  I understand there are few general approaches that work pretty well, but I'm get still getting stuck. Also, if the UMVUE doesn't exist, how would I show that?  For example.  Consider a sample $X_1$, $X_2$, ..., $X_n$ that are iid with density $f(x|\theta) = x \theta exp(-\theta x^2 /2)$   where $x>0$ and $\theta >0$.   Notice, this function is part of the exponential family.  Thus, the complete sufficient statistic is a function of $T = \sum_{i=1}^{n} x_i^2$, and the UMVUE is a function of T. The distribution of the sufficient statistic doesn't seem particularly obvious.  I want to say it has to do with something like a gamma distribution. There also doesn't seem to be any unbiased estimators that are jumping out, so its hard to know where to go from here.  My gut says the UMVUE doesn't exist, but I'm not entirely sure how to show that rigorously.


What does high credit utilization really mean?

I've heard and read that high utilization of credit hurts, but what does that mean exactly? Does that mean high utilization month-to-month, or simply high utilization at all, even when paid off in full at the end of the month?  Scenario: At the beginning of the month, you make a purchase that is 70% of your credit. Supposing that you don't use the credit card for the rest of the month and you have the cash to pay it off, does it matter when you pay off the credit card? Immediately or at the end of the month?   Does the length of time of that high utilization, even within one month, affect your credit score/limit? Is it simply the fact that you used that credit at all an issue?


I'm new to Tex and want to install it on my Mac which has OSX Yosemite.   I want to know know the Tex editor which works best with my OS? I saw on it on some forums that MacTeX doesn't work properly on the latest OSX.  Thanks in advance! :)


For some very weird reason, blender uses my plane object as a camera. possible bug?

I do not know if this is a bug or not, but I just went onto blender this afternoon, and I am not sure what the heck I did wrong, but all of a sudden, whenever I pressed Numpad 0, (which is the hotkey to see through the camera's perspective,) it took me into the object's perspective, as if the object were a camera itself, even though I already have a real camera in the scene.  Sorry if I worded that weird, but basically, my problem is that I need to be able to look through the perspective of my actual camera, and not my plane object. also, whenever I press the "camera to view" button, it rotates and moves my plane object around as if it were the camera.  I've made sure that I have no camera objects that are parented to the mesh, so I have no clue what the heck is happening. I will give a link to my file below, although if it is some sort of bug it might not work for everyone. And before you ask, yes I have tried restarting blender and even my computer and that has changed nothing.


Is electron revolving clockwise or anticlockwise around nucleus?

Ignore the position i.e whether you are on one or other side of orbit. Does space quantization play any role.


I have lenovo laptop, with windows 8.1 installed. I have installed Virtual box on it, try to install ubuntu 14.04 on virtual box, it install successfully. But it work in 800 X 600 resolution, how can I make it full screen.  Thank you in advance.


Hello i have an external HDD witch shows that the hdd is full and when i'm going on the hdd i have just 1 million of dir0000, dir0001 files and i would like to know if is possible to recover something from this hdd.  thank you


How to Hide sections of InfoPath form based on Group membership

I need to Hide "Sections" of InfoPath form using SharePoint or AD group membership (either is fine). How can I achieve this?  InfoPath 2010 in SharePoint 2010


Should I use dd or similar before I use testdisk? I reformatted an ntfs partition and would like to recover some of the data. I am using live ubuntu. Also is testdisk good for this type of job? Thank you in advance.  My question is different from  because that doesn't say if you should clone the drive before using testdisk.


Please, help me to prove that $$ \sum_{n=1}^\infty \frac{\cos(\pi n-\sqrt{\pi^2n^2-9})}{n^2}=-\frac{\pi^2}{12 e^3} $$ I found this fact here  but there's no reference.


"If I go.." vs. "If I will go.." referring to the future

Possible Duplicate:          Which one is correct?     option 1: If I go there, I can meet her   or     option 2: If I will go there, I can meet her   I clearly remember, was told by English (not American) teacher that "If", "When" cannot be used with "will" in the above context. Though, I have seen few people in US saying like option 2  I do know that "If I would go there, I could meet her" is correct (or at least, think so).


Can we simulate the whole universe in computer?

Here is an idea: As human kind we discovered many laws, formulas, events, etc. in our surrounding environment.here is a way to discover the unknowns :   Now if we simulate a virtual world with our knowledge in computers we expect it to work, because we guess that we know all of it. If a bug occurs in the simulation or something acts differently from the expected in the real world, that may tell us that there is something new; a thing (law, formula, ...) that we didn't know, which causes that bug or that anomaly.  For examples imagine that we created a virtual simulation for motion dynamics and we didn't add the friction to our simulation. Everything in the simulation will work fine but in a different manner. So if we hadn't discovered friction yet, would it help us to think about if there is something we didn't add? Or if there is something we don't know?       But can we simulate the whole universe, everything we know, in one simulation? I know it will require a deadly high computational power. Something like what they did for DNA; two years of computation to analyse their pattern. can we simulate everything we know to create a virtual universe to compare it to our real universe?


The mathematical notation for a subset with given conditions

Assuming I have a set $A$ of numbers, I'd like to mathematically notate a subset $B$, such that the cardinality of this subset is $x$ and its elements are the greatest $x$ elements of $A$. So, how can I mathematically notate this? Thank you very much for any help.


It is not really puzzling that Benjamin should have taken such authors seriously; virtually everyone – including the avant-garde – was drinking from the murky waters in the interwar period.   From the preceding paragraph it follows that Benjamin really "took such authors" (the ones with reactionary and right-wing beliefs) seriously. But does not the usage of "should have" in my sentence indicate actually the opposite?


Does converse of Lagrange's theorem hold for a group of order 21?

Let G be a group of order $n=21$. Now is it possible for converse of Lagrange's theorem to hold? Or if $m \mid n$ will there certainly be a subgroup of order $m$ and if yes are the subgroup unique?


Entity Reference: Filter by an entity reference view not working as expected

I am attempting to get a taxonomy reference field select widget that shows a list of taxonomy terms, including some extra data from their fields. I have attempted to use the "Reference method" = "Views: Filter by an entity reference view" and then select an entity reference view I created, then in my entity reference view I have done the following:    However, this gives me only the taxonomy term name despite the settings indicating it might show all the fields inline ("Note: In 'Entity Reference' displays, all fields will be displayed inline unless an explicit selection of inline fields is made here.").


$c$ is a complex number that satisyfing $(c+\frac{1}{c}+1)(c+\frac{1}{c}) = 1$


Using STM32F4 Discovery I/O PINS attached to another device on the board

I am trying to communicate with a device over SPI using an STM32F429 Discovery kit. I would like to use the SPI5 but according to  and , table 12, page 76, there is no "Free I/O" available. Pins PF7, PF8, PF9 have as Alternate Function SPI5, but those pins are connected to L3GD20. I thought that I could just de-assert (i.e. set to "1") the CS (chip select) of L3GD20 (which I do not want to use) that is connected to pin PC1. But according to , table 3, page 8, chip select is used for "I2C/SPI mode selection". Can I use PF7, PF8, PF9 pins or will I interfere with L3GD20? Should I configure PC1 somehow and why?


Need a PDF editor that will let me highlight text

I've looked in the Software Centre but no mention of highlight features for the various PDF edit software.   I've installed adobe reader 9 but it doesn't seem to have the option.  Does anyone know of a PDF editor/reader that will let me highlight?  I'm running Ubuntu 13.04


Stack Overflow logo weird styling in SO Japanese users tab

The regular logo is shown in the         But when going to a  it's cut off:        I use Chrome.


As a matter of fact, I was learning stellar astrophysics where I couldn't understand the chain of events at the time of death of stars, Once the hydrogen fuel core is exhausted, the stars start shrinking until the helium nuclei starts fusing under immense gravitational pressure. Due to powerful radiation pressure the star starts expanding. Like our sun is expected to stretch 200 times it current radius, gobbling up the Mercury and Venus planets. Here I couldn't understand that helium fusion starts when star is shrinking, but after star starts expanding, so how could star sustain fusion $?$ I mean helium fusion requires even more pressure or temperature than hydrogen, but once star starts expanding, it become cooler and less denser, which should make fusion impossible. And during this phase of Red giant, not only helium, but more heavier nuclei are formed like oxygen which should require even more pressure and temperature. Is there any flaw in my understanding,then  please tell$!$ Please help and thanks in advance $!$


I am working on an api to make batch requests through HTTP. Suggested by this (), I decided to use Multithreading.   Here is the implementation:    public class GetItems { //Control the number of connections made to the server. PoolingHttpClientConnectionManager cm = new PoolingHttpClientConnectionManager(); cm.setMaxTotal(120); cm.setDefaultMaxPerRoute(30); HttpClient httpClient = HttpClients.custom()     .setConnectionManager(cm)     .build();  //Using concurrent map to store the result from different threads private Map<String, ItemAttributesFromDatapath> itemDataMap = Maps.newConcurrentMap();  //requests' batch private List<Request> requests;  public List<String> call() {         List<Thread> threads = Lists.newArrayList();         requests.forEach(request -> {             Thread thread = new Thread(new GetTask(client, request));             thread.start();             threads.add(thread);         });          threads.forEach(thread -> {             try {                 thread.join();             } catch (Exception ex) {                 LOGGER.error(ex);             }         });  }  //Inner class for multi-thread. public class GetTask implements Runnable{          private CatalogHttpRequest request;         private CatalogHttpClient client;         private String asin;          public GetTask(HttpClient client, final HttpRequest request) {             this.request = request;             this.client = client;         }          @Override         public void run(){             try{                HttpResponse response = client.executeHttpRequest(request);                 try {                     if (response.isOK()) {                         //some logic here                         String item = handle(response)                         itemDataMap.put(itemId, item);                      } else {                         String message = "Is Client Error";                         LOGGER.error(message);                      }                 } catch (Exception ex){                     LOGGER.error(ex.getMessage());                  }             } catch (Exception ex) {                 LOGGER.error(ex.getMessage());             }         }     } }   Then I tried to write unit-test,   @Test public void testBatchRequest() throws Exception{ HttpClient = mockClient(...); GetItems batch = new GetItems(...); List<String> ret = batch.call();}   Inside mockClient method, I mock some class using Mockito:   private HttpClient mockSuccessfulClient(InputStream responseStream, int code) throws IOException{          HttpEntity entity = Mockito.mock(HttpEntity.class);         when(entity.getContent()).thenReturn(responseStream);          HttpResponse response = Mockito.mock(CloseableHttpResponse.class);         when(response.getEntity()).thenReturn(entity);          StatusLine statusLine = Mockito.mock(StatusLine.class);         when(statusLine.getStatusCode()).thenReturn(code);         when(response.getStatusLine()).thenReturn(statusLine);          //CloseableHttpClient httpClient = Mockito.mock(CloseableHttpClient.class);         //when(httpClient.execute(any())).thenReturn(response);           CatalogHttpClient client = Mockito.mock(HttpClient.class);         when(client.executeHttpRequest(any())).thenReturn(response);          return client;     }   For the unit-test right now, the return list is empty, which is incorrect.   I tried to debug the code by setting up breaking point and found the main code didn't execute run() method inside GetTask when thread starts.   Since I am not familiar with multi-thread stuff. This problem may seem dumb to you, but can you help me figure out what's wrong in my code and how to write the proper test for my case.  Also, I am not sure if the ConcurrentMap is a good practice to store the results across multiple threads?


I feel that two people incorrectly marked my question as a duplicate.    On its face, my question is about large amounts of binary data, not just opening a file and writing text.    I feel like I should have some way to protest, without simply editing my own question.


How to continue a framed box which is defined in floating environment

I have defined a floating environment. It defines a framed box using \mdframe. Here is the code I used.  \documentclass{article}  \usepackage{mdframed} \usepackage{lipsum} \usepackage{caption} \usepackage{newfloat}  \usepackage{float} \DeclareFloatingEnvironment[fileext=frm,placement={!ht},name=Frame]{myfloat}  \begin{document} \begin{myfloat}[tb] \begin{mdframed} \caption{Lipsum Frame}  \lipsum \end{mdframed} \end{myfloat}   \end{document}   The text content in the mdframed box is too large to fit in a single page. But on executing this code, I miss the text content which exceeds the first page's limit. The framed box abruptly stops at the end of first page. How to continue my framed box on the next page?


In my website I use md5 to crypt password user in my database (and store session user)  $pswUser = md5($_POST["password"]);   But I have just been told that this way of encrypting has become obsolete  I did some research to find out how to do it but most of the posts dates from two or three years ago So what is the best way to encrypt password in 2017 ?  Thank you  Isn't duplicate discussion ...  => 2009 ...


How can I improve the speed at which QGIS 2.4 handles network data? (Seems much slower than 2.2 - even with small datasets)

I recently downloaded and installed QGIS 2.4 Chugiak on a Windows 7 64-bit machine with a quad core processor and 8GB RAM.  I'm having a few problems using datasets of all sizes from a network drive - the data is slow to render and there is an annoying low-pitched "beep" each time I zoom in/out. In the previous release (2.2), this network data would render almost instantly for small datasets with no sounds.  I've also noticed that opening the attribute tables for this network data is very slow. E.g. a dataset with just 91 records takes almost 30 seconds - something that was almost instant in QGIS 2.2 Valmiera.  Using the dataset on a local drive removes the problems, though this is not an option as we have several members of staff working on the same datasets and want to avoid having multiple file versions all over the place!  Have any network settings been changed from 2.2 to 2.4?


Convergence of $\sum_{n=1}^\infty \frac{\sin^2(n)}{n}$

Does the series $$ \sum_{n=1}^\infty \frac{\sin^2(n)}{n} $$   converge?   I've tried to apply some tests, and I don't know how to bound the general term, so I must have missed something. Thanks in advance.


I have a requirement to show an apex page message "XX YY" if the selected template id to email is "Update Status". (This message needs to be displayed when they make the selection not when they click the "Send" button.)  Please find my page here:  <apex:page standardController="Incident_abv__c" recordSetVar="Incidents" extensions="IncidentListActionController" tabStyle="Incident_abv__c">     <apex:form >           <apex:pageBlock title="Selected Incidents to Include in Attachment" id="Pb1">          <apex:pageMessages />         <apex:commandButton value="Back" action="{!cancel}"  rendered="{!SelectedSize == 0}"/>              <apex:pageBlockTable value="{!selected}" var="inc" rendered="{!SelectedSize > 0}">                 <apex:column value="{!inc.name}"/>                 <apex:column value="{!inc.Rep_abv__c}"/>                                 <apex:column value="{!inc.Incident_Loaded_Date_abv__c}"/>                                                 <apex:column value="{!inc.No_Of_Transactions_abv__c}"/>                                 <apex:column value="{!inc.Status_abv__c}"/>             </apex:pageBlockTable>               </apex:pageBlock>         <apex:actionFunction name="rerenderEmailFields" action="{!ApplyTemplate}" rerender="PB2" >             <apex:param name="firstParam" assignTo="{!selectedTemplateId}" value="" />         </apex:actionFunction>         <apex:pageBlock title="Email" id="PB2"  rendered="{!SelectedSize > 0}">         <apex:pageBlockButtons >                     <apex:commandButton value="Send" action="{!send}" reRender="Pb1"/>                 </apex:pageBlockButtons>             <apex:pageBlockSection columns="1">                 <apex:selectList id="chooseTempalte" label="Choose Template" value="{!selectedTemplateId}" size="1" onChange="rerenderEmailFields(this.value)">                     <apex:selectOptions value="{!TemplateOptions}"/>                  </apex:selectList>                 <apex:InputText value="{!ToEmailAddrs}" label="To Addresses" style="width:100%"/>                 <apex:InputText value="{!CCEmailAddrs}" label="CC Addresses" style="width:100%"/>                 <apex:InputText value="{!Subject}" label="Subject" style="width:100%"/>                 <apex:InputTextArea value="{!Body}" label="Body" style="width:100%;height:300px;" />                                                   </apex:pageBlockSection>         </apex:pageBlock>             </apex:form> </apex:page>


Why should I avoid multiple inheritance in C++?

Is it a good concept to use multiple inheritance or can I do other things instead?


I am using texmaker on ubuntu 12.04.   After compiling the bibliography does not apper.  I am new to latex so maybe I am doing something of wrong.  I know that there are a lot of post with the same problem but I am not able to solve with them.  here a small example:  this is the file AWSPCA.tex      \documentclass[oneside]{article} \usepackage[cmex10]{amsmath} \usepackage{amssymb} %\usepackage{graphicx} %%\usepackage{amsthm} \usepackage{graphics} \usepackage{subfigure} %%\usepackage{float} \usepackage{epsfig} \usepackage{rotating} %%\usepackage{enumerate} \usepackage{booktabs} \usepackage{multirow} \usepackage{bm}  \usepackage{cite} \usepackage{color} %% correct bad hyphenation here %\hyphenation{op-tical net-works semi-conduc-tor}    \begin{document} Hello  \cite{shen2008sparse}   \bibliography{biblio}{} \bibliographystyle{plain} \end{document}   And here the file biblio.bib  %List of References  @article{shen2008sparse,   title={Sparse principal component analysis via regularized low rank matrix approximation},   author={Shen, Haipeng and Huang, Jianhua Z},   journal={Journal of multivariate analysis},   volume={99},   number={6},   pages={1015--1034},   year={2008},   publisher={Academic Press} }   The two files are in the same folder.  The obtained output is  Hello[?]  without the bibliography. I tried to compile the file different times.  From the compiler I receive this warning   LaTeX Warning: Citation `shen2008sparse' on page 1 undefined on input line 24. No file AWSPCA.bbl. [1 {/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./AWSPCA.aux) LaTeX Warning: There were undefined references.


Use iPhone as sound output device for MacBook

I want to connect headphones to my iPhone (7), and then play all audio from my MacBook (Pro with Retina, 15" Mid-2015), through the headphones connected to my iPhone.  macOS Mojave 10.14.6, iOS 12.4.1  How can I do that?


I have just added the Mate Desktop repository with this command: sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu quantal main"  I have quite a few repositories installed, and running sudo apt-get update can take quite some time. I have heard of ways to update a specific ppa, however, the solutions don't work with a repository added through it's deb repository line.  Is there any way that I can choose to update only one non-ppa repository?


two different gnome-software stores - same os Xubuntu 20.04lts - starting snap-store starts gnome-software?

I recently fresh reinstalled Xubuntu 20.04lts on two of my pcs. Suddenly after a few weeks, i discovered a couple of differences between these pcs, were i did not alter anything. It seems that the Software store (gnome-software) looks like being different versions compared between both systems. one has a Source tab on the top right next to minimize, the other lacks that and has a gear for options there. (containing nothing special only software and updates, and two options for updating software) This source tab gives access to flatpak software, and a little extra sources. Also i cannot find this tab anywhere on the other pc in the gnome-software application. The other point is, that on this pc, which has extra sources for software like flatpak, the snap-store seems to be replaced for gnome-software. What means, that when i click the snap-store icon, it starts gnome-software. also i tried running it by terminal with snap-store, but the same result. i dont know what happened here. first of all, how can i get these flatpak resources also, with that source tab on the other pc (in gnome-software), and how do i ¨restore¨ the snap-store to working state. the other pc by the way does have a working snap-store. i have compared the ppas of both, and there are no differences, and nothing has been added.


How can you enumerate an enum in C#?  E.g. the following code does not compile:  public enum Suit {     Spades,     Hearts,     Clubs,     Diamonds }  public void EnumerateAllSuitsDemoMethod() {     foreach (Suit suit in Suit)     {         DoSomething(suit);     } }   And it gives the following compile-time error:     'Suit' is a 'type' but is used like a 'variable'   It fails on the Suit keyword, the second one.


What is $\Bbb R^{\times}$? [unit group, ring to "times" power]

I'm doing some sheets for my Abstract Algebra class and I can't seem to remember the group defined as $\mathbb{R}^{\times}$. It's obviously some variation of $\mathbb{R}$ but I'm away from college on reading week so can't ask my tutor. If someone could clear up the confusion I'd be grateful.


How to cut extra piece of face on intersection with other face?

There is no common edges or vertices on intersection


Is there a difference between Therefor and Therefore?

I'm a non-native English speaker, and my automatic spellchecker seems to accept both therefore and therefor. Is one orthography preferred ? Is that a British vs. American difference ? Or an old vs. more recent orthography ? Or something else ?


I have a loan with PHH and my loan ratio has reached 77.7% last month.  I contacted them to inquire about why the PMI has not dropped off for my payment this month. I was told that it was not scheduled to drop off for several more months based on the "initial amortization" schedule that was anticipated when we did the initial loan.   Because I have paid extra some months I reached the required <78% sooner.  They told me I would have to get an appraisal and submit a request for "early cancellation"? Is this legal? I thought the goal was to reach less than 78%...not reach a specific date.  We have had the loan for almost 5 years and have never missed a payment. It's not even about the money at this point but what seems like kind of a shady practice in general.


Proof that a continuous function is zero

Let $f:[0, 1] \to \mathbb{R}$ be a continuous function such that $\int^1_0 f(x)x^ndx=0$ $\forall n \in \mathbb{N}$. Show that $f \equiv 0$ in [0, 1].  I need help.


Find and justify the Supremum of the following set

Find the supremum of the following set:  $$A:=\left\{{(n-1)\over(2n+3)} : n \in\mathbb{N}\right\}$$  So I have as my answer that sup(A) = ½ but need to justify. We were taught to justify in two steps, first show our answer is an upper bound for the set then show it is a least upper bound.   For step 1: if a is a member of A then a = (n-1)/(2n+3) for some natural number n and (n-1)/(2n+3)   Step 2 is where I am uncertain. I think I need to show that for any y<½ there exists a member of the set between y and ½ but not sure how to do this. Thanks for all the answers so far!


2h 20m layover at Istanbul Airport (IST)

I am a Bangladesh passport holder and a Canadian permanent resident.  On my way from Dhaka Airport (DAC) to Toronto Airport (YYZ) one of my layovers will be at Istanbul Airport (IST) for 2 hour 20 minutes for a connecting flight.  Will I need any visa just to change flights at IST airport?


What's the intuition behind "stiff systems"?

One of the mysteries that my numerics class left me with are "stiff systems". Our prof didn't really manage to explain what they are. Now that the class (and the test) are over, I'm still curious.   The most concise definition about "stiff systems" I've found so far is: "There is no universally accepted definition of stiffness". So, if there is none, I don't expect one.   I'd be thankful about information on both of the following points:   From what kind of (real-world) problems do stiff systems arise? What's so "stiff" about them? What's the good thing - or the bad thing - that I'd worry about when I have to numerically solve such a real-world problem?


How can I resize any image without loosing any quality

Very new to this, but I have an image that is 9.7" × 14.5" and I want to resize it to 9" x 12", I know this will need cropping, but I would love to print it, so wouldn't want to loose any quality.   What is the best way of getting this done in photoshop? or is there an online website that has an online re-sizer?  I am very new to this, so if you could please maybe write down a small step by step process of how this could be done in photoshop, I would be very grateful.  Thank You in advance.


How would I change the initial templates created by Xcode when creating a new Cocoa Class.  I am referring to the comments and class name created when using Xcode's new class wizard.


I have got a header file that includes boost libraries and I need to include this header file in a source code written in C. Is it possible to do this?  Thanks!


Should all queries where you expect a specific order, include an ORDER BY clause?

In order to better understand the SQL Server query processor, I've been thinking about how the ORDER BY clause works, and how SQL Server provides results.  It appears SQL Server will provide results in exactly the same order for any given set of data that remains the same and never, ever changes.  Once you introduce any kind of uncertainty such as developers changing something, the order of results can no longer be expected to be the same.  Simply seeing the results in the same order, each time you press F5 does not guarantee the results you expect.  Try this:  USE TempDB; DROP TABLE TestOrderBy; DROP TABLE TestOrderBy2; CREATE TABLE TestOrderBy (     ID INT NOT NULL CONSTRAINT PK_TestOrderBy PRIMARY KEY CLUSTERED IDENTITY(1,1)     , SomeData varchar(255) ); INSERT INTO TestOrderBy (SomeData) VALUES ('E'); INSERT INTO TestOrderBy (SomeData) VALUES ('D'); INSERT INTO TestOrderBy (SomeData) VALUES ('C'); INSERT INTO TestOrderBy (SomeData) VALUES ('B'); INSERT INTO TestOrderBy (SomeData) VALUES ('A');  CREATE TABLE TestOrderBy2 (     ID INT NOT NULL CONSTRAINT PK_TestOrderBy2 PRIMARY KEY CLUSTERED IDENTITY(1,1)     , SomeData varchar(255) ); INSERT INTO TestOrderBy2 (SomeData) VALUES ('E'); INSERT INTO TestOrderBy2 (SomeData) VALUES ('D'); INSERT INTO TestOrderBy2 (SomeData) VALUES ('C'); INSERT INTO TestOrderBy2 (SomeData) VALUES ('B'); INSERT INTO TestOrderBy2 (SomeData) VALUES ('A');  SELECT SomeData  FROM TestOrderBy UNION ALL SELECT SomeData FROM TestOrderBy2;  CREATE INDEX IX_TestOrderBy_SomeData ON TestOrderBy (SomeData); CREATE INDEX IX_TestOrderBy2_SomeData ON TestOrderBy2 (SomeData);  SELECT SomeData  FROM TestOrderBy UNION ALL SELECT SomeData FROM TestOrderBy2;   The results:    As you see, adding a simple index on the fields selected in the query alters the order of the results.  From here on, I'm adding ORDER BY unless I truly don't care.


I have a problem I have had before. When I create a USB drive to install Ubuntu 12.04 using startup disk creator, it won't work. It doesn't give me any errors, but when I restart the PC to boot into the USB drive (settings are correct in BIOS), I get the option to: 1) Try Live CD 2) Install Ubuntu 12.04 3) Check the disk  I choose option 2 and after that, nothing happens, just black screen no matter how long I wait.  I tried creating the USB using unetbootin, on both Ubuntu 11.10 and Windows 7, but same issue.  I have had this problem installing Ubuntu 11.10 too, but it was solved by creating the USB drive in Linux Mint. But I don't have Mint installed now, so I hope someone knows what the problem could be. Thanks in advance!


Prove that a finite union of closed sets is also closed

Let $X$ be a metric space.  If $F_i \subset X$ is closed for $1 \leq i \leq n$, prove that $\bigcup_{i=1}^n F_i$ is also closed.  I'm looking for a direct proof of this theorem.  (I already know a proof which first shows that a finite intersection of open sets is also open, and then applies De Morgan's law and the theorem "the complement of an open set is closed.")  Note that the theorem is not necessarily true for an infinite collection of closed $\{F_\alpha\}$.  Here are the definitions I'm using:  Let $X$ be a metric space with distance function $d(p, q)$.  For any $p \in X$, the neighborhood $N_r(p)$ is the set $\{x \in X \,|\, d(p, x) < r\}$.  Any $p \in X$ is a limit point of $E$ if $\forall r > 0$, $N_r(p) \cap E \neq \{p\}$ and $\neq \emptyset$.  Any subset $E$ of $X$ is closed if it contains all of its limit points.


I deleted my Ubuntu partition from my Windows 10 drive, but now when I power on the PC, Windows does not start. All I see is "error: unknown filesystem. Entering rescue mode... grub rescue>_", so I thought to change the boot order. However, I can't enter the BIOS screen. Before, I was able to change the boot order by pressing F12, but now if I press it, it does nothing. I can't even enter into the bios with F2 when it says "press F2 to enter bios" and "F12 boot options". I can't see those options anymore.   What could be causing this?


Do vouchers offered by EU airlines for Coronavirus cancellations include taxes and fees?

My family's flights with AlItalia later this month have of course been affected by Coronavirus. We cannot get refunds, only vouchers are offered, as with basically all airlines at the moment. We booked through an agent, Supersaver.  If I look at the sum we paid (about € 1520), insanely enough only about € 90 of that is for the tickets, and the other € 1430 is for "taxes and fees". Presumably not all the taxes and fees will need to be paid by AlItalia if we don't go on the flight.  For which sum will I get vouchers if I accept them, the ticket price or the price including everything?


I'm trying to set up a static IP address for my LTSP server as to configure one of my two NICs (internal one : Server -> Light client) via the /etc/network/interfaces , but when I open the interfaces file all I can see is this :  auto lo iface lo inet loopback   Is this normal?


How do you get a count of all file extensions on a hard drive using the gnu+linux terminal?

On windows I have a program that can count all the files on a hard drive and the output shows a list of file extensions and a number (which showed how many files on the drive were for example are jpg).  How do I do this in a terminal on gnu+linux?


Linux access level permission why it is different for user and UPG

I have question related to permission in Linux, which set to user and its user primary group . When we set any permission on UPG and  user is by default is member of UPG group, and here let us  take i set permission RWX for the UPG and RW for the user. Here is the question is why is different permission for user and UPG as the user falls in same group and then whatever permission set to group it will applicable to user because user/owner is member of the UPG. and that is the purpose of the group. Can any body answer my question?


Redirect log to file before process finished

test.py (work):  import time  _, a, b = [1, 2, 3] print a print b   run the code: python test.py > test.log  you will get the log in test.log  test.py (not work):  import time  _, a, b = [1, 2, 3] print a print b  while True:     time.sleep(5)   But this one you get None in the log.  How do I get log before the program finished, without the python log module(just use the redirect '>')?


Book recommendations for learning about open quantum systems

Recently I'm curious about the topic of  which is not talked about in common quantum mechanics textbooks, i.e. Master equation, Lindblad equation, reduced density matrix, entanglement entropy, correlation, decoherence, , ,   and so on.   Are there some good references (easy and readable or rigorous and thorough) including papers, literatures or textbooks which can elucidate these topics related to open quantum systems?


Battle of the Dupe Hammers: OP vs. Gold Tag Badge holder, who wins?

Once upon a time, . Recently,  as well.  Now, suppose OP who has a gold tag badge asks a question with the tag he/she has hammer for, gets a duplicate flag/vote and choose "That solved my problem". Who will appear as the binding close voter? Community♦, or the OP with the gold badge indicator?


How to create User Account Registration form with Webform?

I am using Drupal 7. I have Webform with 6 fields:    Your name User name password Email phone number Website   If we submit it will store in database, but here I need username & password should store in "User Account Registration" form also.   We can add fields from Configuration -> People -> Account settings for other fields, but it doesn't work in this situation. I need to store the User name & password values to "User Account Form" and then to login with that username and password.


Is it possible to get an Edit Notification on questions or answers that I up voted?

My question is similar to   I believe this would be useful in the scenario if I upvote a question or answer... and the OP changes it where you no longer think it deserves the up vote you have bestowed upon it.  For example, I upvoted an answer, because I thought it was a great answer... then the OP changes it to add a bunch of stuff that I no longer think makes it a great answer. How am I notified of this change?  I know you can rollback use roll back, but how do you know it was edited without getting a notification!?  I haven't seen any meta asking this question, but if one exists please link it and I will remove this question!    EDIT:   @JoshC brings up a valid point... where not everyone has time to go through all the notifications... but why can their be an option under account preferences to turn this feature on or off?


I am new to the field of electrodynamics and I recently came across the definition of capacitance as $$C = \frac{Q}{V}$$ It is said that capacitance is constant, which implies that total charge of the one conductor is proportional to the voltage difference between the two conductors. But we know that $$Q = \int ρ(\vec r')dV$$ where the integral is evaluated in one conductor, and $$V(\vec r) = \int \dfrac{ρ(\vec r')}{|\vec r - \vec r'|}dV$$ where the integral is evaluated along the two conductors. How can we prove from these that $Q$ and $V$ are proportional?


How do I convert all files in a folder to a different line ending? (on Windows)

How do I convert all files in a folder to a different line ending (linux or mac)? I am using Windows.  Right now my approach is to use Winscp to copy to a linux box and then run dos2unix recursively on the folder.


Where is proxy information stored in ubuntu

I saved one URL as proxy during install time. At which place is the proxy URL stored in system.  One place is apt conf folder.  Thanks in advance


Paging in sharepoint 2013 for JAVA REST API

I'm trying to implement sharepoint pagination in a way that you send how many items to skip and retrieve the next n number of items. Is there a way to go about it?    https://sharepoint.com/_api/web/lists/getbytitle('List')/items?$select=Id,Title&$filter=substringof(%27a%27,Title)   I need an implementation like skip and top for this url Edit:Can't use $skiptoken since ID's are not in sync and might cause variable amount of responses


Given a certain differentiable inequality of f show that $a\geq\pi$

We are given a positive number a and a function $f:[0,a]\rightarrow[0,+\infty)$ that satisfies $f(0)=f(a)=0$ and $\forall_{x\in(0,a)}f(x)+f''(x)>0$. Prove that $a\ge\pi$.  Obviously we can assume that $a$ is the first point after $0$ for which $f(x)=0$. It is so because if $x\in(0,a)$ and $f(x)=0$ then f satisfies all of this problems conditions on the interval $[0,x]$ so we have to show that that $x\ge\pi$ anyway (the first such $x$ must exist since $f$ can't be constantly $0$ on any interval $[0,\epsilon)$ because then $\exists_{x\in[0,\epsilon)}f(x)=0$ and $f''(x)=0$ so $\exists_{x\in(0,a)}f(x)+f''(x)=0$. Contradiction. And it can't be that $f$ hits $0$ infinitely often near $0$ since then $f''$ would be unbounded from the negative side so we would find $x\in(0,a)$ such that $f(x)+f''(x)<0$. Another contradiction.  Having said that I am lost. The condition $\forall_{x\in(0,a)}f(x)+f''(x)>0$ invokes some use of trig functions (both $\sin$ and $\cos$ satisfy $f(x)+f''(x)=0$) and I have experimented with a number of functions. Here are some of my findings (here we assume $a<\pi$):  $\forall_{n\in\Bbb{N}}\space g(x)=f(x)\pm n\sin(x)$ satisfies $g(x)+g''(x)>0$  $\forall_{n\in\Bbb{N}}\space g(x)=f(x)\pm n\cos(x)$ satisfies $g(x)+g''(x)>0$  $g=\dfrac{f}{\sin}$ has a positive second derivative in $x$ if and only if $f'(x)+\dfrac{f(x)}{\tan(x)}>0$  I get that the condition $\forall_{x\in(0,a)}f(x)+f''(x)>0$ somehow dictates how fast can $f$ get back to $0$ from $0$ but my intuiton is out on this one.  Any help would be appreciated.


Is it better in C++ to pass by value or pass by constant reference?  I am wondering which is better practice.  I realize that pass by constant reference should provide for better performance in the program because you are not making a copy of the variable.


how to decompress gzipped contents in JAVA

In HTTP request and response, content-encoding is 'gzip' and content is gzipped. Is there a way to decompress the gzipped content so we can see the contents ??  Example for GZipped HTTP request  HTTP/1.1 200 OK Date: mon, 15 Jul 2014 22:38:34 GMT Server: Apache/1.3.3.7 (Unix)  (Red-Hat/Linux) Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT Accept-Ranges: bytes Content-Length: 438 Connection: close Content-Type: text/html; charset=UTF-8 Content-Encoding: gzip  //Response body with non type characters


Does the game roll for my dodge chance when the enemy weapon is fired, or when it would hit my ship?


How are + Action cards used in Dominion?

We were confused by the + action cards.  It says you have to start at the top of the card and work your way down. so when do you play a second action card and are you allowed to play another action card if you havent done everything on the first action card.  Also, can you total up all of the extra coins on all of your action cards and combine them for one buy?


There is a conclusion :Suppose $M$ is a connected topological manifold,then $M$ is path-connected.  We can define $S_p=\{q\in M:$there is a path from $p$ to $q\}$.Obviously,$S_p$ is nonempty since $p\in S_p$,If we prove that $S_p$ and $M\setminus S_p$ is open,then we can conclude that $M=S_p$ by connectness of $M$.  Suppose $q\in S_p$,then there is a coordinate chart $(U,\phi)$ around $q$ and $\phi(U)$ is open in $R^n$ for some $n$,how to prove $S_p$ is open by using the above fact?


Would a black hole evaporate before reaching the event horizon?

Consider Alice approaching a black hole while Bob observes her journey from a distance. Due to the large gravitational field surrounding the black hole, Bob observes Alice her clock to slow down as she approaches the event horizon. Alice, on the other hand, sees Bob's clock speeding up as she approaches the horizon.  Once Alice reaches the horizon, her clock stops according to Bob's observation, while she notices no change of rate on her clock (proper time). On the other hand, when she looks at Bob, she observes time progressing at an incredibly high rate on his clock.  Now, in a heat death scenario for our universe, the black hole is bound to evaporate by Hawking radiation eventually. From Alice her perspective, 'eventually' might be very soon on her world line. I would therefore hypothesize that she will witness the evaporation just as she remains about to cross the event horizon. I would imagine the black hole to shrink before her very eyes; leaving Alice in a distant future where the black hole has evaporated.  By that time however, Alice would have been bombarded with a large, and probably lethal, dose of Hawking radiation. Is my analysis of the situation correct? If so, why are we told a different story by physicists? If not, where is the error in my reasoning? For instance, could it be that Alice does not observe time to progress infinitely fast in the rest of the universe, if she were to cross the event horizon?


My old graphics card hase just died. So I ordered a new MSI Radeon HD6450. What is the best way to install the AMD drivers?  Thank you.  Regards,  Richard


How to select files/folders based on input name prefix match in nautilus instead of start searching?

When one types on the keyboard in a view of a directory in nautilus, it either starts searching or to select the first file/folder matching the input with a prefix in the file's/folder's name. I've been searching a availalbe options in the settings dialog, but it doesn't seem to be configurable and change from release to release (in Ubuntu 14.10-beta1 it's searching, in 14.04 it was prefix matching and in 13.10 searching again, as far as I remember). How to configure prefix matching?


I created a room, and now it's frozen due to inactivity.  How can I unfreeze it?


Program for making a complete ISO-image of damaged DVD by multiple readings?

I'm looking for a program that (tries to) makes a complete ISD-image of a damaged DVD or CD.  This is (AFAIK) done by reading the damged media time and time again, until the program is able to put together an undaged ISO-image of the whole disk.  I just can't remember what it was called or where I found it...


How I will be able to get the symbols   in LaTeX?


I wish to draw a rounded corner box (top-left side as a square, top-right side with 6pt radius curve and the bottom of two sides also with radius curve), in addition to that there should be shading, how can I get such a style? Is there any package available for this task?


check if there are planets in the vicinity

I'm trying to make a random galaxy map in gamemaker, with several planets at random places. The problem I have run into is that some planets will be too close together. I need a way to put a minimum distance between them, but I can't figure out how to do it, or where I'm going wrong in the code.  I use the following script to make the map (argument0=amount of planets of this type to create and argument1=the object under which this type is located):  var i; var MinDistance var ToCloseFlag var planetx, planety  for (i=0;i!=argument0;i+=1) {  do    {     do     {         do{         planetx=random(room_width);         }         until(planetx<room_width-64 && planetx>64);         do {         planety=random(room_height);         }         until(planety<room_height-64 && planety>64);     }     until(place_empty(planetx,planety))     MinDistance=400;     ToCloseFlag = 0;      with(argument1){         if (point_distance(planetx,planety,other.x,other.y)<MinDistance)             {                 ToCloseFlag=1;             }     }              }       until (ToCloseFlag=0);         if place_empty(planetx,planety)     {         instance_create(planetx,planety,argument1);     }   }  Any help would be greatly appreciated.


Where, precisely, does feedback on Community ♦ generated flags go to die?

For the most part, I treat "Community" like any other user when handling system raised flags. If they are useful, I mark them as such. If they are noise, I dismiss them as such. The Community user has a static flag weight, so our reaction to them is more or less feedback for developers.  Is this feedback from moderators network wide used in any way to help improve the accuracy of system raised flags? Or, would clicking either button suffice?  I'm asking because our reasoning behind declining a flag is now more precise. Does dismissing some as noise help improve the criteria that ultimately generates the flag?  Edit  Yes, thank you Skype, I realize that  asked a similar question .


Proof of $\lim\limits_{n\to\infty} \frac{a^n}{n!}=0$

$\lim\limits_{n\to\infty} \frac{a^n}{n!}=0$  how to prove this one since L'Hospital Theorem cannot be used with factorial?


A new employer I met over the internet wants me to open a bank account and do money transfers. Is this a scam?

I began virtual assistance as a hobby and I posted a few ads. A guy contacted me and  gave me his Linkedin profile and  phone number and asked me to contact him if interested. He said that  he's a realtor in the US (I'm in Canada).    He said that his wife is having a surgery and he is too busy to manage some work issues. He wants me to help with emailing his clients and to do some transfers for him by opening a new account.  He'll send the money to help send to his clients. I refused at first because I didn't want anything to do with this.  He assured me that this is  legit since he gave his business profile and contact details.   He said he doesn't know how to handle a US account from Canada and that's why he suggested that I open a new account. He needs me to respond on Monday. I Googled  his business profile and found an address and website for his company.  Should I believe any of this?


Many phone games restrict the number of turns you can play in a given amount of time. I don't get what is the purpose of this limitation. Is it only to force the player to buy additional turns? Some games don't even allow this for some turn "kinds" (like action A can be played again by spending real money while action B cannot be played again by spending money).   Another possible reason would be to limit the bandwidth usage to their server and make it more predictable over time, but I can't see phone games using so much data.


Would a Shimano 105 R7000 left side crank fit on an Utegra 6800 crankset?

I'm looking at getting a left side crank power meter and was wondering would the various shimano left cranks available with power meters fit with the existing Ultegra 6800 crankset I have? The 105 or even dura ace. Thanks


How to set jquery function for all of  element in ajax response

I have a function with an ajax code to get data from a table filter by username.  function showdata(){ var username  = $("#username").val(); // input:text element id = 'username' $.ajax({     type:"POST",     url:"purchase_process.php",         data: "act=show&username=" + username,     success: function(data){         $("#show_data").html(data); // div element with id = 'show_data'         $("#show_data").fadeIn(2000);     } });}  showdata();  $(".del_button").click(function(e) { e.preventDefault(); var id = $(this).attr('id'); var no = id.split('-'); var number= no[1]; var username  = $("#user_"+number).val(); var code  = $("#code_"+number).val();  $.ajax({     type:"POST",     url:"purchase_process.php",         data: "act=delete&username=" + username + "&code=" + code ,     success: function(data){                          $("#info").html(data);  // div element id = info         showdata();      }   }); });   And here is the ajax response from purchase_process.php that show all data in a table that each rows of the data have  element show in a image (delete.png) to delete row :

No.	             Part Number	             Part Name	             Location	             Qty	             Cost	             Subtotal	             Action

             $no	                              $r[part_code]                 <input type=hidden id='user_$no' name='user_$no' maxlength=20                                     value='$_POST[username]' readonly>                 <input type=hidden id='part_$no' name='part_$no' maxlength=20                                     value='$r[part_code]' readonly>             	             $r[part_name]	             $r[location]	             $r[qty]	             ".number_format($r['cost'],2,",",".")."	             ".number_format($subtotal,2,",",".")."

   Function showdata() is running well but jquery function event:click for "a" element with class = "del_button" have no response whenever I click in image (delete.png) However if I make the same "a" element in that page, that jquery function running well. I assumed that jquery function don't get the "a" element value because that was called from ajax response.  Is there anyone can help me to solve this trouble? Thanks before...


I haven't been able to figure out if the following reasoning is correct, so I'd like to have the opinion of other people on that.  The goal is to prove that the empty set is unique.  In order to do that, let $E$ be a set, $A$ be an empty set and  $B$ be an empty set. I want to prove that $A = B$.  First, I can try proving that $A \subset B$.  I know that $\forall x \in E, x \notin A$. Now I can consider this proposition : $x \in A \Rightarrow x \in B$  Since $x \notin A$, I can safely say that that the proposition above is true.  Hence, I can conclude that $A \subset B$  Am I right in my conclusion?


Asymptotic expansion for Fresnel Integrals

If you take the fresnel integrals to be $$S(x) = \int_{0}^{x}\sin \left(\frac { \pi \cdot  t^2}{2} \right) dt$$ How do you find the asymptotic expansion? I know it begins with a $1/2$ but how?


xgboost: Is there a way to perform regression on rates/percentages data?

I have a dependent variable, $Y$, that is made up of rates/percentages data, so each value is between $0$ and $1$. I was attracted to the xgboost library because it allows focusing in on specific subsets of the data in training itself, but I am stumped as how to perform regression on the data I have.  Normal OLS regression will produce outputs that will be over and under the [0,1] range if you do not change the likelihood to be the , or something else bounded in the same range, but will xgboost suffer the same mistake?  Any advice on trying to get this to work would be greatly appreciated by me.


Help with Code coverage, Loop and if conditions

I'm unable to have code coverage. Wrote a test class that has 24% coverage. How should I test loops and conditional statements?     Following is my Apex Class...   public class OrderTrackingList{ public OrderTrackingList(ApexPages.StandardController controller) {} public list<wrapgroupwise> singlegroup; public List<wrapgroupwise> getStartHere(){ singlegroup= new List<wrapgroupwise>(); List<orders__c> tempacc=[SELECT Id,Name FROM orders__c where id=:ApexPages.currentPage().getParameters().get('id')];   for(Integer i=0; i<tempacc.size() ; i++){     List <order_lines__c> tempOrderLines=[SELECT Id,name From order_lines__c Where order_number__c=:tempacc[i].id];     List <shipment_lines__c> tempShipmentLines=[SELECT Id,Name From shipment_lines__c Where Order_Number__c=:tempacc[i].id];    if(tempOrderLines.size()==0 && tempShipmentLines.size()==0){           singlegroup.add(new wrapgroupwise(tempacc[i],null,null));      }     else{       if(tempShipmentLines.size()==0)      {           if(tempOrderLines[i].status__c=='Open')            {                tempOrderLines[i].calculated_estimated_delivery_date__c=tempOrderLines[i].planned_ship_date__c;            }          singlegroup.add(new wrapgroupwise(tempacc[i],tempOrderLines,null));         }         else      {         if(tempOrderLines[i].status__c=='Open')        {            tempOrderLines[i].calculated_estimated_delivery_date__c=tempOrderLines[i].planned_ship_date__c;        }        if(tempOrderLines[i].status__c=='Invoiced')        {            tempOrderLines[i].calculated_estimated_delivery_date__c=tempShipmentLines[i].estimated_delivery_date__c;        }        if(tempOrderLines[i].status__c=='Shipped but not billed')        {            tempOrderLines[i].calculated_estimated_delivery_date__c=tempShipmentLines[i].estimated_delivery_date__c;        }                   singlegroup.add( new wrapgroupwise(tempacc[i],tempOrderLines,tempShipmentLines));       }      }    }   return singlegroup;    }  public class wrapgroupwise  {     public List<order_lines__c> con {get;set;}     public orders__c acc {get;set;}     public List<shipment_lines__c> opp {get;set;}       public wrapgroupwise( orders__c a , list<order_lines__c> c,list<shipment_lines__c> o)      {         acc=a;         con=c;         opp=o;       }    }   }      ========================TEST CLASS===========================    @isTest  public class OrderTrackingList_Test{  static testMethod void coverCode(){            //OrderTrackingList.wrapgroupwise wgw = new            OrderTrackingList.wrapgroupwise();           Profile pf= [SELECT Id FROM Profile WHERE name= 'System Administrator' LIMIT 1];            Account acc = new Account(Name='ABC Corp.');           insert acc;           System.assertEquals('ABC Corp.', acc.name);            orders__c tempOrder = new orders__c();           tempOrder.name = '0001234567';           tempOrder.account__c = acc.id;           insert tempOrder;           System.assertEquals('0001234567', tempOrder.name);             order_lines__c tempOL = new order_lines__c();           tempOL.Name = '10';           tempOL.number_of_order_lines__c = tempOrder.id;           insert tempOL;           System.assertEquals('10', tempOL.name);            shipment_lines__c tempSL = new shipment_lines__c();           tempSL.Name = '10';            tempSL.CurrencyIsoCode = 'USD';            insert tempSL;            System.assertEquals('USD', tempSL.CurrencyIsoCode);           OrderTrackingList gepwO = new OrderTrackingList(new ApexPages.StandardController(tempOrder));            OrderTrackingList gepwOL = new OrderTrackingList(new ApexPages.StandardController(tempOL));          OrderTrackingList gepwSL = new OrderTrackingList(new ApexPages.StandardController(tempSL));          gepwO.getStartHere();          //gepwOL.singlegroup.add(gepwOL);         // gepwSL.singlegroup.add(gepwSL);         // gepwO.singlegroup.add(gepwO);         }    }   What am I missing? Please guide. Thanks.


Issue with title for a page in wordpress for categories (Displaying CategoryName Archives)

The issue with a title for a page in WordPress for categories (Displaying CategoryName Archives). If the category is Aptitude then page title shows Aptitude Archives. How to remove Archives from the title.


Every time I try to login to www.stackexchange.com, it says it will redirect me, but it doesn't actually do it.   I am constantly stuck on this URL: https://meta.stackexchange.com/users/login?returnurl=https%3a%2f%2fstackexchange.com%2fusers%2flogin-or-signup%2fdelegated%3freturnurl%3dhttps%253a%252f%252fstackexchange.com%253f_%253d1143850276&cdl=1


Can we have a more relevant message when the deletion of a comment fails?

I had posted a comment on a question asking the OP to provide more information on the exact problem. Seeing that, the OP posted more information about the question and I decided to delete my comment as its purpose was achieved. But when I tried to delete the comment, I got an error message. This is the error message I got when I tried to delete that comment.    The problem is not with the comment not getting deleted. I could wait for a while and delete the comment later, but the problem is with the error message which is displayed when trying to delete the comment.     An error occured during voting   This error message for a comment deletion failure is certainly not the best.  So, can we please have a more relevant error message, something like     An error occured while deleting the comment   or anything better the devs could come up with, when we the deletion of a comment fails?


What I Have: A static ArrayList which stores Integers. I add an Integer via reference to it and then I change the value but the value is not updated.  import java.util.ArrayList;  public class Main {      public static final ArrayList<Integer> integers = new ArrayList<>();     public Integer integer;      void addInteger(Integer i){         integers.add(i);     }      public static void main(String[] args) {          Main main = new Main();         main.integer = 3;          integers.add(main.integer);          main.integer = 4;          System.out.println(integers.get(0));      } }   Output: 3  Question: Why is the output not 4 ?  Further Question based on follow ups: What is really stored within the ArrayList ?  EDIT BASED ON THE ACCTPTED ANSWER:  Since integer is an Integer (and not an int) the 3 is autoboxed. The ArrayList stores actually Integer.valueOf(3).


Not a duplicate. This deals with sets that are elements of other sets. In other words, sets of sets. The other question deals with elements of sets and subsets of sets. The key difference in here is that the sets are the elements. Besides the other question only asks if $A \subset A$ which is trivial.   When it comes to sets of sets, $ \subset$ and $\in$ always confuse me in set theory. Could someone explain in detail with an example? I greatly appreciate it.  In other words, when do we say $\mathbb{A} \in \mathbb{B}$ and when do we say $\mathbb{A} \subset \mathbb{B}$ (besides the definition that every element in  $\mathbb{A}$ ought to be in  $\mathbb{B}$)  Thank you


what is the prepositional object of "1 in 5 students"?

"1 in 5 students uses tobacco."  What is the subject? What is the prepositional object of "in"? What part of speech is "5"? What part of speech is "students"?  I don't need a re-wording of the meaning.


How to reduce all the folder and file icon size?

After updating to latest version 16.04, automatically all the folder and file icon sizes have increased. Even my search bar size has increased.  How to resolve this ?


Linux file manager similar to Windows File Explorer (directory tree + file list)?

Which Linux file manager has a UI that mimics Windows File Explorer in a way that it supports a split view with:  a directory tree on the left, and a file list on the right?


I'm trying to understand how repairing items works in Divinity: Original Sin. It seems like I just need a repair hammer and a low level in blacksmithing to repair higher-level items any time I like with no negative effects, which seems too easy, especially since durability seems to be the main mechanism for preventing brute-forcing through every chest and door. So, to make sure:   What, exactly, is required for fixing an item?   In terms of equipment needed, skills needed, etc. And what is the precise dependency on item level / value / type / whatever  Is there any potential downside to fixing an item too often or too little?


In an integral domain $R$, are principal ideas always equal to $R$ ??

If we define:  1) $R$ is a ring, $I$ is an ideal.  We say that $I$ is prime if $I$ is not equal to $R$ and whenever $ab$ belongs to $I$ then either $a$ is in $I$ or $b$ is in $I$.  2) Let $R$ be a commutative ring and let a be an element of $R$. The set $\langle a\rangle=\{ar: r \in R\}$ is an ideal and any ideal of this form is called principal.  3) Let $R$ be an integral domain and let a be a non-zero element of $R$. We say that $a$ is prime, if $\langle a\rangle$ is a prime ideal.  But suppose $R$ is a finite integral domain. For any non zero $p$, $pa = pb$ iff $a = b$.  Can we conclude that $\langle p\rangle = R$ (thus $p$ can't be prime)?


My Ubuntu 16.04 hangs on shutdown/restart requiring me to press and hold the power key to turn the machine off... I don't know how to report this as a bug and what commands to run to show the necessary hardware/sys log info? Any help would be hugely appreciated!


I am studying Git and Github Here's my procedures  I made a repository called "repoA" to github  Also I made my local folder call "folderB"  Then I connect each other using git clone https://github.com/user/repoA.git    But the result was: folderB/repoA/.git What I actually want: folderB/.git Are there any ways to fix this problem?


Why are transition amplitudes more fundamental than probabilities in quantum mechanics?

I am reading Quantum Theory: Concepts and Methods by Asher Peres. Terminology used in the book: $P_{\mu m}$ are "transition probabilities". They are the squares of "transition amplitudes". That is, \begin{equation}| C_{\mu m}|^2 = P_{\mu m}\end{equation} He says on page 40,  Up to this point , nothing was assumed that had any physical consequence. The phases of the transition amplitudes $C_{\mu m}$ still are irrelevant, and we could as well have stayed with the probabilities $P_{\mu m}$. It is only now that we introduce a new physical hypothesis (borrowed from classical wave theory): Law of Composition of Transition amplitudes. The phase of the transition amplitudes can be chosen in such a way that, if several paths are available from the initial state to the final outcome, and if the dynamical process leaves no trace allowing to distinguish which path was taken, the complete amplitude for the final outcome is the sum of the amplitudes for the various paths.  Then on page 43 he says  The amplitudes $C_{\mu m}$ should be considered as the primary, fundamental object, and the probabilities $P_{\mu m}$ should be derived from them, in spite of the fact that the $P_{\mu m}$ are the only quantities that are directly observable.  My Question I don't understand why we work with transition amplitudes instead of probabilities if the probabilities are the only direct obserables. Can someone explain why transition amplitudes are regarded as more fundamental?


Sequence is periodic $x_{n+2}=|x_{n+1}-x_{n-1}|$

How to show that the sequence $$x_n, n \geq 0, x_{n+2}=|x_{n+1}-x_{n-1}|, n \geq 1$$ with $x_0, x_1, x_2$ positive integers, not all null,  is periodic?  I tried to pick up the square but obtained equalities not helped.  Thanks so much for any suggestion.


Java create object but not the arrays that come with it

I have an object in java that encodes something as such:  public class Obj(){     private string[] array = {         "1","2","3","4",etc...     };     public Obj(String param){         if (param=this.array[1]){ do something.. }     } }   So I need to have so info in the background. However, apparently it takes up a lot of RAM. So I was wondering if there is a way to just have the array once for all of those objects instead of having it in every single object.  EDIT:  Made it static. Does the magic. Thank you guys.  Thank you


Can a college drop-out successfully re-enter academia?

Obviously, the college drop-out in question is me, so allow me to supply as much detail as needed for you to answer this question as it pertains to my situation.  I come from a "disadvantaged" background; bad schools, bad home-life, the works. The high school I attended was one of those under-performing schools that undergraduate admissions romanticize as containing token diamonds in the rough. Entirely ignorant of the concept of financial aid and misinformed about college admissions, I didn't work hard enough to become one of those angels. Regardless, I did well enough to barely graduate with honors and earned a near-perfect ACT score, and I earned a scholarship to a private college.  My mental well-being imploded during that freshman year. I transferred out with a GPA of 2.9 to a local state school for my sophomore year. Unfortunately, this wound up being the worst mistake of my life.  My sights have always been set on higher education. On top of my personal issues, however, that developed into a paralyzing fear of failure and perfectionism. I spent the next five years barely keeping my head afloat, being dismissed once, re-admitted once again, and then finally leaving out of my own volition to seek out the healthcare I desperately needed from day 1. It's been about three years, but for whatever reason, The bureaucratic nightmare that is my former school still lists me as a student with a GPA below 1. Complications regarding financial aid and my change in majors make returning to finish that degree an impossibility, as I cannot pay for the rest of my degree out of pocket or through private loans.  I've worked odd jobs to save up to move out-of-state to work for a year to gain in-state tuition at a community college, and to begin a bachelor's degree that's actually relevant to my field of choice.  The choices that I would make regarding my futures studies are predicated on contingencies that I'm not familiar with. The biggest looming question in my mind is, assuming that one day I complete a bachelor's sufficiently well enough to entitle me to the prospect of graduate study, would my first attempt at a bachelor's be too big of an obstacle to overcome? What general advice would you have for me in my situation?  EDIT: My question presumes that I start and finish a bachelor's degree now with a decent-to-strong GPA and then apply for graduate admission. That's a different scenario than compensating for a low GPA earned with a completed bachelor's degree.


Disk storage graphic and usage amount inconsistent?

I have a Macbook Air(6,2) with 120 GB SSD. When I checked About This Mac --> Storage, I see inconsistent information.    It says 87.89 GB free but Apps take up 92.65 GB. So there should only be about 30 GB free according to the graphic. However, I believe the graphic is wrong because OmniDiskSweeper says Macintosh HD is ~30GB.   Why do the graphic and numbers disagree?


absolute value of supremum is smaller than or equal to supremum of absolute values

Is the following statement correct?   "The absolute value of supremum of a set is smaller than or equal to the supremum of the absolute values of the first set"  It would be helpful to proof that the absolute value of the integral of a function is smaller than or equal the integral of the absolute value.


A phrase comparable to 'In the house of the blacksmith, wooden knives'

In Spanish, we have a phrase..     En casa de herrero, cuchillos de palo.   Literally,     In the house of the blacksmith, wooden knives.   The meaning is probably clear, but some examples:   A math teacher whose children cannot add. A software engineer who is still using Windows 95 at home. ...a country which supposedly leads the world in technology and industry,  yet is still incapable of providing the most basic of manufactured goods needed  to confront a major crisis and    Is there a comparable expression or phrase in English that describes this situation?


How does Motherboard and CPU affect RAM choice?

I am seeking advice on which memory to use with my motherboard and CPU. Below are my components and some relevant information extracted from their official websites.   NOTE: Although this is a very specific case, a general answer is equally good for me — and also alot more useful for everyone else!  CPU: AMD Phenom II X4 810   ASUS M4A785TD-V EVO listed as one of many  motherboards.   Motherboard: ASUS M4A785TD-V EVO   4 x DIMM, Max. 16 GB, DDR3 1800(O.C.)*/1600(O.C.)/1333/1066/800 ECC,Non-ECC,Un-buffered Memory Dual Channel memory architecture (Complete list of specs: ).   NOTE II: I wouldn't want to do any overclocking as I have no experience with that. So I think the 1333 MHz is the most appropriate. Since the higher frequencies are marked with "O.C."  Questions:   How can I be certain that a specific RAM will work well (or not work) together with my CPU and motherboard? (The Qualified Vendor List is a good starting point, but it's a bit limited and sometimes a bit outdated). Is it true that choice of memory is not independent of the processor? How?    I'm worried I'll be missing something essential when buying my next RAM chips :)


How much/what kind of cursing can people get away with on SO?

I suggest people answer with a curse word/short phrase and if the votes on it are net positive then it should be acceptable on normal SO.


Help with proof that the expected value of $x_i$ is $\bar{X}$

I'm having a little trouble with the proof that the expected value of $x_i$ is $ \bar{X} $.  What I have is   $E[x_i]=\sum_{j=1}^{N}X_j Pr(x_i=X_j) $  Then,  $Pr(x_i=X_j) = 1/N $  This is the bit I can't understand, how does that probability evaluate to that value.  I know the denominator is how many ways you can choose n out N. I think that the numerator should be how many ways you can choose (n-1) out of (N-1). But I seem to have an extra n.  Any advice ?


I saw this fascinating article today about how HIV moves through a mouse host in real time.    It's common to hear a virus' activity described in the way the article does: with intent.   I have a hard time understanding this. Something is considered alive when it has a metabolism, takes in nutrients and expels waist.  It has to have some kind of respiratory system and it's own reproductive mechanism. Although locomotion is optional, most forms of life have some form of getting around.  Some plants are able to move somehow...  Viruses have no sensing organs and no method of locomotion.  They cannot smell or see or move on their own.  This means they have to be carried inside a cell or if free floating in a host's fluids, rely on random motions to get about.  In order to invade, as far as I understand this; they must essentially wait until they come into physical contact with a compatible target.  At this point, their protrusions (I call them "keys") attach to a host cells "door" and they then inject their DNA.  Most (or all?) cells use Mitochondria for "power" so they can do things - like metabolize and reproduce.  I've never seen a diagram of a virus that shows where it get's it's energy to power the 'injection' part of it's 'life cycle'.  How is this done?  In the mouse video, the HIV virus looks like it has a "plan" and that it knows how to select which initial cells to invade and then how to pick a good method of remaining hidden.  How can this be when they have no sense organs?  How can they "know" of other virus particles are being successfully attacked by the host?   This is incredible and incredibly complex.  I'm not a medical professional. I'm just a fascinated by-stander.


How can I find page views for root of web site in Google Analytics?

Most of our traffic doesn't come to the root of our web site.  But I would like to know just how much does? It seems like an easy thing to do, and an easy thing to search for, but so far I haven't been able to find the solution.


Prepending text read from a file on the top of another file

I want to add "void mainfunction()" on the top of a file. I am reading the actual name of the file from another file and the name of the main function from another file. I was using sed -i '1i void $name_main()' $name_c where the name of the file is stored in name_c and the name_main stores the name of the main function. But this command is inserting void $main_name() at the top of the file. How can I fix this?


How to resolve 'Fields pending deletion' and force deletion of said field?

I'm stuck with an uninstallable module. Drupal insists that there are Fields pending deletion and that the module can not be uninstalled. I've run cron zillion times already as advised for such situations but without success. Cron runs fine, but drupal insists that still, Fields pending deletion.  Visiting /admin/reports/fields gives no clues - the fields provided by that module are not listed. I even tried using drupal console to uninstall module with --force switch, but also without success.  I also tried drush field-info in hope to get some clues, but that's apparently not yet implemented as drush 8.1.2 gives fatal error:     Call to undefined function field_info_fields().   How do I make drupal delete those fields that pending deletion? Do I have to do this manually in database?  I've seen few tables like field_deleted_data_f5e7b87e32 or field_deleted_revision_be01eddd10 but they are all empty. Is that even relevant?


Prove $1 + \frac{n}{2} \leq 1+ \frac{1}{2} +\frac{1}{3} +\cdots + \frac{1}{2^n}$ for all natural numbers $n$

Definitions   $H_n = 1+\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{n}$ for all $n \in \mathbb{N}$    The Question   Prove $1 + \frac{n}{2} \leq H_{2^n}$ for all $n \in \mathbb{N}$   My Work    Base Case:  $1+\frac{1}{2} \leq 1+\frac{1}{2} = H_1$   Inductive Hypothesis: $1 + \frac{k}{2} \leq H_{2^k}$ for all $k \in \mathbb{N}$   Induction Step: $1+\frac{k+1}{2} = 1+\frac{k}{2} + \frac{1}{2} \leq H_{2^k}+\frac{1}{2} \leq H_{2^k} + \frac{1}{2^k+1} + \frac{1}{2^k+2} + \cdots + \frac{1}{2^{k+1}} = H_{2^{k+1}} $    My Problem   My problem is actually understanding the $H_{2^k}+\frac{1}{2} \leq H_{2^k} + \frac{1}{2^k+1} + \frac{1}{2^k+2} + \cdots + \frac{1}{2^{k+1}}$ step. I think that's how the proof should finish, but I don't know why.   My Question   Can someone explain why the inequality under the "My Problem" header is true? Or if it even is true, am I going about this proof the wrong way?


Regex find and replace is working properly in Javascript

I am creating online Regex to find and replace web pages. But It doesn't replace anything.  Index.html  <input type="text" id="textInput"></textarea> <input type="text" id="find"></textarea> <input type="text" id="replace"></textarea> <button id="button"> Submit </button>   Replacer.js  $( document ).ready( function() {     $("#button").on( 'click', function(){         var textInput = $("#textInput").val();         var find = $("#find").val();         var replace = $("#replace").val();         var newText = textInput.replace( /find/, replace );         console.log( newText );     }) })   Text= 2019, find= (\d{4}) , replace= J $1  I am expecting J 2019 in the console. But I am getting 2019.


Why doesn't electron collide with nucleus?

We know that electrons go round the nucleus. But in my textbook, it is written that Rutherford's model was incomplete as the electrons would collide with the nucleus because of Maxwell's law.  But in Bohr's model, the problem remains. Because even in this model the electrons go round the necleus.  So    Is Bohr's model incomplete in this sense? Or Is Maxwell's theory incomplete?


I encountered the error when attempting to transfer source files from a remote Linux web server to a local HP dt1000i Desktop Hard Drive connected to an Ubuntu 12.10 box via USB.  A Samba share is configured for the HP drive to enable the Windows machines on my LAN to access the files. Samba was set up using the built-in graphical folder sharing functionality within Ubuntu. I can modify the files fine in Windows, but problems occur using rsync.  When the error occurred, I was trying to use rsync to backup files from my web space to the HP drive. I executed the rsync command in PuTTY from a Windows 8 machine on my LAN:  rsync -avz --progress --partial -e 'ssh -p 2222' user@www.example.com:/home/user/ /media/HPDesktopDrive/Backup/HostGator/  This resulted in the following error: rsync: failed to set permissions on "/path/to/file.txt": Operation not permitted (1).  I thought the source of the error was the mount options for the HP drive in the /etc/fstab file: both the user_id and group_id options were set to zero so I tried change them to 1000 as per the advice in .  An ls -la of the Samba share reports that the user and group are recursively set to root:root. I tried to address this by executing sudo chown -R mike:mike /media/HPDesktopDrive/, but the files are still set to root:root.  What is the correct command to change the permissions from my Windows machine via PuTTY and will this address the problem?


Why do some authors define the ordered pair as the set: $(a,b)=\{\{a\},\{a,b\}\}$?

I am using a textbook called foundations of mathematical analysis by johnsonbaugh and in it, he defines the ordered pair of elements $a$ and $b$, writen as $(a,b)$ as the set:  $(a,b)=\{\{a\},\{a,b\}\}$ where $a$ is called the first element of $(a,b)$ and $b$ is called the second element of $(a,b)$.   This definition is a bit strange, would anyone know how I can interpret it? Thank you!


Ubuntu 18.04.1 iso modifications with Cubic. not able to install gnome-tweak-tool

I am using Ubuntu 18.04.1 I have installed Cubic. I used the latest Ubuntu 18.04.1 iso to customize with Cubic. I could install git, make, but not able to install gnome-tweak-tool Any ideas?


How to delete a directory automatically when an executable is killed

Quite often, we run an executable that needs to write / read some temporary files. We usually create a temporary directory, run the executable there, and delete the directory when the script is done.  I want to delete the directory even if the executable is killed. I tried to wrap it in:  #!/bin/bash dir=$(mktemp -d /tmp/foo.XXXXXXX) && cd $dir && rm -rf $dir /usr/local/bin/my_binary   When my_binary dies, the last process the kernel will delete the directory, as the script is the last process holding that inode; but I can't create any file in the deleted directory.  #!/bin/bash dir=$(mktemp -d /tmp/foo.XXXXXXX) && cd $dir && rm -rf $dir touch file.txt   outputs touch: file.txt: No such file or directory  The best I could come up with is to delete the temp directory when the process dies, catching the most common signals, and run a cleanup process with cron:  #!/bin/bash dir=$(mktemp -d /tmp/d.XXXXXX) && cd "$dir" || exit 99 trap 'rm -rf "$dir"' EXIT /usr/local/bin/my_binary   Is there some simple way to create a really temporary directory that gets deleted automatically when the current binary dies, no matter what?


Why there's a page difference between the title of the paper and the abstract?

Can you please tell me what causes a page difference between the title/authors and the abstract?  \begin{document}  \title{\LARGE Spectral Clustering vs Wavelet Clustering: A Comparative Study}  \author{     \IEEEauthorblockN{M. Jalal\IEEEauthorrefmark{1}, R. Ramananda\IEEEauthorrefmark{1}}     \IEEEauthorblockA{\IEEEauthorrefmark{1}Electrical and Computer Engineering Department,%                                            University of Wisconsin-Madison%     \\\{jalal, ramananda\}@wisc.edu}      } \maketitle \pagestyle{empty} \thispagestyle{empty}   %**************************************************************************** % Abstract %**************************************************************************** \onecolumn \section{Abstract}


Path-connected and locally connected space that is not locally path-connected

I'm trying to classify the various topological concepts about connectedness. According to 3 assertions ((Locally) path-connectedness implies (locally) connectedness. Connectedness together with locally path-connectedness implies path-connectedness.), we can draw this diagram:  +--------------------------+ |Connected                 | |             1      +-----+----------------------------+ |                    |  3  |           Locally connected| |   +----------------+-----+     6                      | |   |Path-connected  |  4  |                            | |   |                +-----+------------------------+   | |   |    2           |  5  |  Locally path-connected|   | +---+----------------+-----+                        |   |                   8  |           7                  |   |                      +------------------------------+---|   So, I want to find examples of all these 8 categories, but I can't find an example for 4.      See below The real line The  of two spaces of the 3rd type $[0,1] \cup [2,3]$ The rationals   Actually there is an  that gives an example of type 4, but there isn't any explanation. Can anyone please explain it (why it is not locally path-connected, to be specific) or give another example?


Variable as function parameter in Python

I think example is worth more than words.   I want to rewrite this :   person = Person.objects.filter(email__contains="gmail.com")   somehow like this :   condition = "email__contains" person = Person.objects.filter(condition="gmail.com")   Is this possible ?


How to boot Ubuntu persistent live USB on Android?

I'm discovering the possibilities offered by persistent live USB using Ubuntu 19.10 and I was wondering if it would be possible to boot with Ubuntu on Android (i.e. using your computer capabilities through your smartphone) using those multi-plug USB sticks which have both USB3 and micro-USB2.  In other way: can I get some kind of a boot menu on an Android device in order to boot with a persistent live USB in order to access my Linux computer tools and setup from a wider range of devices?


There is a related question  but two highly upvoted answers there don't seem to agree with each other, and in any case I wanted to take a different tack.  Is AIC useful for comparing:   non-nested models only. nested models only. either non-nested or nested models.   Why/Why not?


c# is it possible to create extension method for string keyword

I created an extension method for generating string from System.Guid like this.  public static class Fnk {      public static string Guid(bool dash = true)     {         return dash ? System.Guid.NewGuid().ToString() : System.Guid.NewGuid().ToString("N");     } }   I am using it like Fnk.Guid(). I wonder that, is it possible to call it like string.Guid()? If yes, how?


I want a package that is not part of the MacTeX distribution.   I'm running Lyx 2.1.1 (on OSX) and want to use icml2013.sty I followed , which said to make local additions to MacTeX in Library/texmf. I did this. My package is presumably in the correct place: Library/texmf/icml2013.sty  I reconfigured LyX and then created a document with:  \usepackage[accepted]{icml2013}   When I try to view the document, I get an error:     LaTeX error: File 'icml2013.sty' not found.   Where does the package need to be (e.g., a sub-directory of Library/texmf/)? Or this is a problem with MacTeX?


If I've got a page that originally has a node (ie node/20) for the URL and then if I've assigned its own custom URL (ie website.com/landingpage) I'm finding that I can still access the page by using its node number.  Ideally I'd like to have it so a user can only access the page via the custom URL and never the node so is there a way I can configure a node so it cant be used in the URL to reach the page?


Can I use find to find all files which have extended attributes set? Let's say, I want to find all files with +i, immutable attribute in /foo and its subfolders.  I could not find any, mention of extended attributes in man find.  Is there any other way to find all files with attributes  I am using Debian Wheezy


I have a command that may contain the ampersand charater: &. Sometimes, when I use this command, I want that ampersand interpreted as a space. This is why I wanted to use the TeX command \catcode.  While the code below seems to be OK  \catcode`\&=11 \ensuremath{2&=2} \catcode`\&=4   When I put the content inside a definition with \def for example:    \def\foobar{\ensuremath{2&=2}}   \catcode`\&=11   \foobar   \catcode`\&=4   I get an error message:  Misplaced alignment tab character &. leading text:   \foobar   How can I solve my problem? Moreover, I don't understand why the second snippet generates this error message while the first one does not.


SFDC DKIM Setup - Production or Sandbox?

Cannot figure out this via SFDC documentation. Need someone who have setup this before to advise.  Basically we want to enable DKIM for our SFDC org. In testing Sandbox and production, the from email address is using the same email domain. For example, "test@abc.com" for sandbox and "contact@abc.com" in production.   Question: shall we setup DKIM in both sandbox and production or just need to setup in production since sandbox and production are actually using the same domain "abc.com"?


Is there a word for the bias of not knowing what came before?

Is there a word or phrase for the bias of not knowing what came before?  Of thinking that an idea under consideration is truly new?  I'm looking for a word to describe the bias that comes from this thinking, and not the act of not knowing itself (i. e. "reinvent the wheel"). For instance, I work as a web developer, and junior developers are all the time coming up with "new" ideas that have been with us for decades.  In not being aware of the history, they end up wasting time recreating existing work and making old mistakes.  I'm also pretty sure this happened to the field of semiotics, which was discovered twice because the work done by earlier groups was somehow not evident to later semioticians. I was looking for "historical bias" or "ahistorical bias," but couldn't really find anything.  I'm sure there must be a word! It would be used in the following way:  The ignorance of the developers was an example of __________.