How can I update to firefox 42? There's nothing on the about page to update. I would like to update and keep all my settings and stuff. How can I go about doing this? I'm on Ubuntu 14.04 and currently using firefox 41. I'd like to avoid reinstalling but I guess I could if that would still save all my stuff. Thanks in advance for any help!

I want to install the latest Firefox on my Ubuntu (64bit) box.  What is the best way to do this? Is there a specific update site or should I download the binaries manually? If doing manually, in which directory should I put the files? In my home directory, or is there a better place?


I recently opened the SE Android app on my phone, and it opened to the "Feed" screen. However, the margins on the right are way too large.  They take up way too much space (>50% in total).  They should be scaled down to something smaller - like 8% each - so that more then 3 words can be displayed per line.

The lines wrap so much on v1.0.85 that only a few items can be displayed.  Edit: This is on the world's most low end tablet, Azpen A727.  Screenshots of the old:    and new, showing loss of quality


Prove that every prime $p$ of which $-1$ is a quadratic residue can be represented in the form $x^2+y^2$.   In  the result is achieved by noting that every prime of the form $p=4k+1$ can be written as the sum of two squares and "it follows that -1 is a quadratic residue $\pmod p$ ". So, in my question, does it just suffice to show that $p$ is the sum of two squares if $p \equiv 1 \pmod 4$? How should we proceed?

It is a theorem in elementary number theory that if $p$ is a prime and congruent to 1 mod 4, then it is the sum of two squares. Apparently there is a trick involving arithmetic in the gaussian integers that lets you prove this quickly. Can anyone explain it?


I'm reading actually Schwabl's "Advanced Quantum Mechanics" and encounter an understanding problem while considering the Klein-Gordan-equation. Here the excerpt:  Obviously, since the eigen energies of free solutions are $E= \pm \sqrt{p^2c^2+m^2c^4}$, the energy is not bounded from below. But I don't understand the conclusion why that means that then K-G-equation provide a scalar theory that does not contain spin and then could only describe particles with zero spin.

I have a question about an argument used in Schwabl's "Advanced Quantum Mechanics" concerning the properties of the Klein-Gordan-Equation (see page 120):    Since the eigenenergies of free solutions are $E= \pm \sqrt{p^2c^2+m^2c^4}$the energy states aren't bounded from below. But I don't understand why that  then K-G-equation provide a scalar theory that does not contain spin and then could only describe particles with zero spin.   Intuitively, I guess because that spin can't regard by a scalar equation but I find this "argument" too squishy and would like to know a more plausible argument.


I just read that a (1 - alpha)*100% confidence interval cannot be interpreted as follows: The probability that mu is in the confidence interval is (1 - alpha)*100%.  That is counterintuitive from the proof from NYU below.  In particular, doesn't the last line imply that the probability that mu is in the confidence interval is (1 - alpha)*100%?  If not, can someone explain why?  What am I missing?

I know roughly and informally what a confidence interval is.  However, I can't seem to wrap my head around one rather important detail:  According to Wikipedia:     A confidence interval does not predict that the true value of the parameter has a particular probability of being in the confidence interval given the data actually obtained.     I've also seen similar points made in several places on this site.  A more correct definition, also from Wikipedia, is:     if confidence intervals are constructed across many separate data analyses of repeated (and possibly different) experiments, the proportion of such intervals that contain the true value of the parameter will approximately match the confidence level   Again, I've seen similar points made in several places on this site.  I don't get it.  If, under repeated experiments, the fraction of computed confidence intervals that contain the true parameter $\theta$ is $(1 - \alpha)$, then how can the probability that $\theta$ is in the confidence interval computed for the actual experiment be anything other than $(1 - \alpha)$?  I'm looking for the following in an answer:   Clarification of the distinction between the incorrect and correct definitions above. A formal, precise definition of a confidence interval that clearly shows why the first definition is wrong. A concrete example of a case where the first definition is spectacularly wrong, even if the underlying model is correct.


I tried (int) "4209531264" and intval("4209531264") but sadly all I get is 2147483647 (I realize this is because of 32 bit architecture or some php dependencies or something).  I came up with "4209531264" + 0 which returns the correct result but it is surprising to see it working since it is beyond maxint.  but the real question: is this the "right way" of converting string to long?  edit:  (float) that is.  thanks for the comments! eye opening!

Ignoring the special libraries that allow you to work with very big numbers, what's the largest int value you can store in PHP?


Let $f:I\to \mathbb{R}$, $f$ is $C^{n+1}$ and $a\in I$. Then $$f(a+h)=f(a)+f'(a)h+\cdots+\frac{f^{(n)}(a+\theta_n h)}{n!}\cdot h^n,$$ where $\theta_n = \theta(h)$ with $0<\theta<1$.  Show that if $f^{n+1}(a)\neq0$, then $\lim_{h\to 0} \theta_n(h)=\frac{1}{n+1}$.  I know Taylor-formula with Lagrange remainder, but I don't have idea how to calculate this limit.

If the function $f: \mathbb R \to \mathbb R$ is $n+1$ times differentiable at $x_0$ and $f^{(n+1)}(x_0) \neq 0$, then a form of the remainder in Taylor's Formula is supposedly   $$r_n(x_0;x) = \frac{f^{(n)}\big(x_0 +\theta(x-x_0)\big)}{n!}(x-x_0)^n,$$ where $ 0< \theta < 1$ and $\theta = \theta(x)$ approaches $\frac{1}{n+1}$ as $x$ approaches $x_0.$  How would one derive this?  This seems quite strange to me.   For example, taking $f(x) =e^x$, the normal Taylor expansion for $n=2$ at $0$ would have the form  (Lagrange Remainder): $$e^x = 1 + x + \frac12x^2 +\frac{1}{3!}e^{\xi}x^3,$$ but in this case it is   $$e^x = 1 + x + \frac12x^2 +\frac{1}{2!}e^{\theta(x)}x^2$$.   The properties of $\theta$ do not make much sense. Am I missing something?


I have script with #!/bin/ksh in the first line. When I try to execute this script (run ./myscript.sh) the error occurred:  -bash: ./myscript.sh: /bin/ksh: bad interpreter: No such file or directory   But when I execute this script through source myscript.sh or bash myscript.sh command - script runs successfully.  Yes, ksh is not installed and it is correct to install this. But I can't understand different behavior ./ and bash or source

This may be a silly question, but I ask it still. If I have declared a shebang  #!/bin/bash    in the beginning of my_shell_script.sh, so do I always have to invoke this script using bash  [my@comp]$bash my_shell_script.sh   or can I use e.g.  [my@comp]$sh my_shell_script.sh   and my script determines the running shell using the shebang? Is it the same happening with ksh shell? I'm using AIX.


I've been using Windows my whole life, and I really want to test Ubuntu out on my Notebook (ASUS F205TA-BING-FD018BS, Windows 10 installed).  I have tried several options in doing so (installing over USB, SD, rEFInd, easyUEFI, you name it...), but nothing seemed to work. My laptop just skips those options, no matter what I do.  Edit: Not a duplicate of , I tried this solution already and it doesn't seem to work.

I've created a bootable USB of Ubuntu 16.04 64-bit with Rufus, setting the drive to be a GPT for UEFI. Then I booted my tablet PC and I ran the UEFI BIOS, from which I turned secure boot off. I then restarted and went again on the BIOS to boot from my key, but all I got was a black screen that lasted few seconds and then it brought me back to the BIOS. I read about a bootia32.efi file and other procedures that can be followed, but I didn't find a good explanation of what I need to get done. My tablet PC runs an Intel Core Atom Z3735F and has 2 GB of RAM. If you have the answer please let me know.


Lost OS(windows 10) and partitions(which had all my files) while installing ubuntu 14.10(which now, I upgraded to 15.04 since testdisk did not work in 14.10). I would like to know if there is any chance to recover my lost files from the partitions which I had before. Now all the partitions are combined to one 991 GB partition hard disk with just ubuntu 15.04 in it. I am new user of Ubuntu. Please help me. Thank you. Tried Testdisk did not work.

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


col=3  row=3  matrix=[[0]*col]*row   count =0  for i in range(row):      for j in range(col):         matrix[i][j]=count         count+=1    print(matrix)     Output:[[6, 7, 8], [6, 7, 8], [6, 7, 8]]

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


Variations on this question appear to be a common unanswered question; often they have a comment or two that I don't understand. I'm hoping someone can answer with some general background information, the concepts.  E.g. I see reference to "rooting". Do I need to root a phone before I can upgrade it? I've had previous Android phones that got auto-updated (either by the carrier or manufacturer: I just find a message that says: "a new update has been downloaded, click here to install"), and I didn't need to root them.  E.g. Can any smartphone be upgraded to Android 4.4? If not why not? And why might a manufacturer not want users to update their phones? Are some manufacturers more open to having phones updated, and some not? Does anyone keep a list of "upgrade-hostile" manufacturers?  E.g. does the phone being sim-locked (to a specific carrier) matter?  I'm not going to say what my phone is because that will distract from the more general answers I'm after.

This Community Wiki question is designed to be the "canonical question" for questions asking how to upgrade one's device to a new Android version.   I want to get a newer version of the OS for my Android device. How can I do that?  See also:


I was about to reply to some topic but I see this thing is NOT solved and decided to make my own topic.  Let's begin, You see because of this sort of things I can't quite move to Ubuntu. And this is one of the hundreds of things that are fixable but NOT easily, and in most cases people end up settle for less then.  I have 2 monitors. 1440p and 4k. Solution in Windows is keep 2560x1440 monitor with 100% DPI that looks amazing and big enough for any work. And 4K monitor I have 4K resolution but I bump up DPI to 200% and everything is just a bit bigger than on my 1440 monitor but I still love it because everything is sharp and resolution is native.   Now in Ubuntu is a mess. Right now solution is 1440 on both sides. And obviously 4k monitor running at 1440p looks like crap. I mean all text and everything is simply not sharp. In Nvidia or Display properties there is a way to adjust DPI but it's not working for individual monitors. If I set 100% on one monitor it's for BOTH. I can't set one 100% and another 200% .... WHY ? Again I read I all of this tricks and tips, you need to have a programming degree just to set damn resolution on you monitor ? I mean come on now.  So yeah having two 1000$ monitors and $800 card is simply too much for Ubuntu. I don't understand why simple things can be so difficult on Ubuntu but that's how it is and that's a reality. So I stopped QQ, can someone give me advice or you degree in programming to get it done ?  Thanks !  P.S.  I remember back in a day before NVIDIA and AMD had it's own surround monitor solutions build right in to drivers third party had apps to create custom desktops with 3 ,4 ,5 ,6 etc monitors. And you could do whatever you wanted, like 2 on right side 3 on left and may be 2 above with vertical position, something like that. IS something similar available for Ubuntu that will set proper resolutions , positions, dpi for me ?  Specs: Ubuntu 17.10 ROG PG278Q and Acer XB271HK connected to 1080ti card. Running Nvidia 384.111 Drivers.  I tried Ubuntu Display settings and Nvidia Display settings, In Nvidia I don't even see DPI settings.  Thanks guys !

How can I adapt Ubuntu to a high resolution display?  I have a display with 3200x1600px on only 11'' and everything looks really tiny.


One of the ways to test time dilation effect are so – called Mössbauer rotor time dilation tests. In these tests experimenter places source in the center of the disk and absorber on the rim and vice versa. The disk rotates with very large angular velocity. Then experimenter measures received by absorber deviation of frequency (Transverse Doppler Shift) and measures amount of time dilation this way. It is well known, that measurement brings results in accordance with Lorentz transform for time dilation, i.e. rotating clock dilates.  Clock hypotesys claims, that clock dilates purely because of relative velocity and acceleration has no effect on that.  One interesting thing is that when source and absorber were placed on opposite sides of the disc (1963 Champeney and Moon time dilation test) there was no frequency shift. Well, if two clock dilate at the same magnitude they will not be able to measure dilation of each other.  In special relativity time dilation is reciprocal. Clock dilates not because of it‘s own motion through a medium, but because of relative motion to another one. It is always another clock dilates and SR does not admit that clock dilates because of actual motion.  One of problem is that rotating absorber detect not redshift, but blueshift of frequency. That means, that rotating clock actually dilates.  If they place absorber in the centre and source on the rim, there is a redshift of frequency. So, it seems that rotating observer can measure only acceleration of clock in the centre.  Distance between clocks doesn‘t change. Do they move relatively to each other? Why clock at rest sees dilation of rotating clock? Why rotating clock sees acceleration of clock in the centre? Why clocks on opposite sides of the rim see neither dilation nor acceleration?   What makes rotating clock dilate?  How does all that fits into the Special Relativity?

With today's ultracentrifuge technology, they can spin so fast that the sample can be subjected to  accelerations of up to 2 millions Gs. That is equivalent to two solar masses. Has someone tried to measure the time dilation in a radioactive sample? How calculate that time dilation respect to the time outside the ultracentrifuge, for example one week. I think that that time dilation will be significant enough to be measured.


Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I have integrated "SalesforceMobileSDK-iOS-Distribution" library in my iOS native application from this link to achieve  scenario as mentioned below        1) I have a HOME screen in my iOS native application. 2) From there I have to navigate to Salesforce login screen. 3) User will enter credentials and Salesforce will validate it. 4) Once logged in success then it will back to my HOME screen with token/sessionID. 5) That token/sessionID I will use internally in my application.    in my application I implemented code like   - (IBAction)login:(UIButton*)sender {      NSString *strClientID = @"2kN3Bn17hv5A1f.3QFK.....";     NSString *strCallbackURI = @"https://localhost:0000/signin-salesforce";      NSString *kIdentifier = @"com.salesforce.ios";      SFOAuthCredentials *creds = [[SFOAuthCredentials alloc] initWithIdentifier:kIdentifier clientId:strClientID encrypted:YES];     creds.redirectUri = strCallbackURI;      _oauthCoordinator = [[SFOAuthCoordinator alloc] initWithCredentials:creds];     // _oauthCoordinator.scopes = [NSSet setWithObjects: @"web", nil]; /* If I pass scopes then I'm getting "Invalid scopes even I enabled same scopes in salesforce as a connected app" */     _oauthCoordinator.delegate = self;     [_oauthCoordinator authenticate]; }  #pragma mark - SFOAuthCoordinatorDelegate  - (void)oauthCoordinator:(SFOAuthCoordinator *)manager didBeginAuthenticationWithView:(UIWebView *)webView {      CGRect newFrame = self.view.frame;     newFrame.origin.y +=64;     webView.frame = newFrame;     [self.view addSubview:webView]; }  - (void)oauthCoordinatorDidAuthenticate:(SFOAuthCoordinator *)coordinator authInfo:(SFOAuthInfo *)info {     [self.oauthCoordinator.view removeFromSuperview];     NSLog(@"authType = %d",info.authType);     NSLog(@"accessToken = %@",coordinator.credentials.accessToken);     NSLog(@"refreshToken = %@",coordinator.credentials.refreshToken);     NSLog(@"instanceUrl = %@",[coordinator.credentials.instanceUrl description]);     NSLog(@"issuedAt = %@",[coordinator.credentials.issuedAt descriptionWithLocale:[NSLocale currentLocale]]);     NSLog(@"userId = %@",coordinator.credentials.userId);     NSLog(@"organizationId = %@",coordinator.credentials.organizationId);     NSLog(@"communityId = %@",coordinator.credentials.communityId);     NSLog(@"legacyIdentityInformation = %@",coordinator.credentials.legacyIdentityInformation);     NSLog(@"activationCode = %@",coordinator.credentials.activationCode); }  - (void)oauthCoordinator:(SFOAuthCoordinator *)coordinator didFailWithError:(NSError *)error authInfo:(SFOAuthInfo *)info {      [self.oauthCoordinator.view removeFromSuperview];     UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:@"Error %d", error.code]                                                     message:error.localizedDescription                                                    delegate:nil                                           cancelButtonTitle:@"OK"                                           otherButtonTitles:nil];     [alert show]; }  Output log 2014-12-19 12:55:45.946 SampeSalesforce[24576:607] authType = 1 2014-12-19 12:55:45.947 SampeSalesforce[24576:607] accessToken = MAQOGHGMlDR.keKCErM5MAIHJI65S5ABF646DBB89AB767FBAB77575l2Dbf4Z6UkdYnE8x70BoXLzP 2014-12-19 12:55:45.948 SampeSalesforce[24576:607] refreshToken = (null) 2014-12-19 12:55:45.948 SampeSalesforce[24576:607] instanceUrl = (null) 2014-12-19 12:55:45.948 SampeSalesforce[24576:607] issuedAt = (null) 2014-12-19 12:55:45.948 SampeSalesforce[24576:607] userId = (null) 2014-12-19 12:55:45.948 SampeSalesforce[24576:607] organizationId = (null) 2014-12-19 12:55:45.949 SampeSalesforce[24576:607] communityId = (null) 2014-12-19 12:55:45.949 SampeSalesforce[24576:607] legacyIdentityInformation = (null)   I could able to logged in and getting "accessToken" but I need get claims of logged in user such as first name, last name, email etc...  How can I get these info? is there anyway to get it by calling RestAPI? Please help me. Thanks in advance.

Is there a way to get the details/credentials (email, password, name, etc.) of the logged in user using salesforce SDK or even third party libraries?. After allot of googling and searching, i found this link but doesn't work on me:


this is my HTML code:  <button name='q1.button1' id='q1.button1' onclick='incorrect()' </button>   and this is my CSS file:  .q1.button1 {   width: 500px;   height: 250px;   background-image: url('images/buttons/q1.button1.jpg'); }    i also tried:  #q1.button1 {   width: 500px;   height: 250px;   background-image: url('images/buttons/q1.button1.jpg'); }    but none of them work, the button is just a big white box!  i thought there could be a problem with the HTML so I tried the following and it worked:  Button {   width: 500px;   height: 250px;   background-image: url('images/buttons/q1.button1.jpg'); }    however, i cant use this because each button has to be different but this will change all buttons

What characters/symbols are allowed within the CSS class selectors? I know that the following characters are invalid, but what characters are valid?  ~ ! @ $ % ^ & * ( ) + = , . / ' ; : " ? > < [ ] \ { } | ` #


I need to build a php script to upload images in a folder, store the name of the image on the database (Mysql in my case), protect the folder from direct access (probably using .htaccess) and get the images only if the user insert them in his post.   But how to do that? I'm not an expert in this type of thing and i don't know how to do this.  How to protect images from direct access? This is my primary problem.  Please, someone know were can I find a good guide for this? Or can someone teach me how can I do that?

I have a php file which I will be using as exclusively as an include. Therefore I would like to throw an error instead of executing it when it's accessed directly by typing in the URL instead of being included.  Basically I need to do a check as follows in the php file:  if ( $REQUEST_URL == $URL_OF_CURRENT_PAGE ) die ("Direct access not premitted");   Is there an easy way to do this?


We are looking for a way to conditionally add <script> to the page in the <head> tag with the purpose of having setting pages where we can add URLs paths, and only to those pages. If possible, add it as the very first item in the <head> tag.   Is there a module or a recommended way to do this?  We initially thought to use the following code.  mymodule.module  function  mymodule_page_attachments(array &$page) {   $attachments['#attached']['library'][] = 'mymodule/myscript'; }   mymodule.libraries.yml  myscript:   version: 1.x   header: true   js:     /path/to/file: { external: true }

In the module I am developing I need to add script which require jQuery.The will be added depending on configuration settings. Hence I am using template_preprocess_module(&$variables) where I am trying to add script by doing something like this:  function template_preprocess_module(&$variables) {   if (TRUE) {     $variables['jquery'] = ?;     $variables['script'] = 'path to script in module';   } }   Then in the template I will simply be rendering these variable in the head section. But I am facing trouble in adding jQuery, because I don't know its source (obviously I know its source in core but I need something over here which automates path). Can the source be known by using something like drupal_get_path() ? I am also not sure if this is the best way to add script conditionally, any suggestion regarding this? Thanks.


Does logger(1) command belong to util-linux? it is not shown in , but in .

I am using a minimal Debian system which does not have the top program installed. I tried to install top with sudo apt-get install top, but top is not a package name.  It seems that top is a part of some other package. How can I find out which package I should install to get it? More generally, how can I find the package that contains a program?


Is it possible to position submit button of the lightning:recordEditForm in the footer part of the modal window in slds?  The problem is that the button should be between the lightning:recordEditForm tags, while position it in footer moves it out of the lightning:recordEditForm.  Button inside lightning:recordEditForm:

                     {!v.headerText}

                  <lightning:recordEditForm aura:id="recordEditForm"                                           objectApiName="{!v.objectApiName}">                     <lightning:messages />                      <aura:iteration items="{!v.fields}" var="field">                         <lightning:inputField fieldName="{!field}" />                     </aura:iteration>                      <lightning:button class="slds-m-top_small" type="submit" label="Create new" />                 </lightning:recordEditForm>

   Button in footer attempt:

                     {!v.headerText}
                          <lightning:recordEditForm aura:id="recordEditForm"                                       objectApiName="{!v.objectApiName}">
                       <lightning:messages />                      <aura:iteration items="{!v.fields}" var="field">                         <lightning:inputField fieldName="{!field}" />                     </aura:iteration>                      <lightning:button class="slds-m-top_small" type="submit" label="Create new" />
                                      <lightning:button class="slds-m-top_small" type="submit" label="Create new" />                               </lightning:recordEditForm>

   Here is how I see it then:

The  documentation provides this example:  <aura:component>     <lightning:recordEditForm recordId="003XXXXXXXXXXXXXXX" objectApiName="Contact">         <lightning:messages />         <lightning:inputField fieldName="FirstName" />         <lightning:inputField fieldName="LastName" />         <lightning:inputField fieldName="Email" />         <lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update" />     </lightning:recordEditForm> </aura:component>   where a a click on the nested submit button causes the data to be saved.  Anyone know of a reliable/documented way to get the lightning:recordEditForm to save based on a click of a button located elsewhere in the page?


I'm getting this error when I pass latin words (with accents and "ç") as parameter to a SQL View layer.     Rendering process failed    java.io.IOException   null   Invalid value for parameter NOME_IMOVEL   Look this error on log:     Invalid value for parameter NOME_IMOVEL   java.lang.IllegalArgumentException: Value ARAÃUAI does not match ^[\w\d\sáàéíóúÁÀÉÍÓÚçÇ]+$      I sent "NOME_IMOVEL:ARAÇUAI".  Did anyone had this issue before? Is there any workaround?

I have a shapefile loaded in GeoServer 2.8 and accessed by OpenLayers 2.13. This layer is in UTF-8 encoding and has some english and non-english records. When i use english fields in cql-filter - as follows, but no differnce between WMS and WFS request- GeoServer filters data very well  and returns the result.    layer1 = new ol.layer.Image({             title: 'Ostan',             source: new ol.source.ImageWMS({                 url: 'http://localhost:8080/geoserver/wms',                 params: {                     LAYERS: 'ws:layer1',                     VERSION: '1.1.1',                     CQL_FILTER: "NAME_ENG = 'sommy'"                 }             })         });   But if i try to use a field which contains non-english data in cql-filter, GeoServer returns no data. My webpage has following meta, as well:   <meta content="text/html; charset=utf-8" http-equiv="content-type" />   When i check geoserver log, i see some messy characters instead of my non-english string in cql-filter.


First, in the present and then in the future. Why? it's from a newspaper  The title is in the present tense. I don't understand why:     Taylor to stay in hospital      The actress, Elizabeth Taylor, will remain hospitalised for another day or two following a brain seizure that put her back in the hospital shortly after she was discharged following brain surgery, a spokesman said yesterday.

Does  use the word "to" to emphasize?      Pope to meet U.S. bishops amid sex abuse scandal, allegations of Vatican coverup


I am working through Elementary Analysis by Ross and don't understand part of his proof of Theorem 10.7 (i). This question is in a similar vein as  one, but regarding a different part of the proof.  Theorem 10.7 Let ($s_n$) be a sequence in $\mathbb{R}$. (i) If lim $s_n$  is defined [as a real number, +∞, or −∞], then lim inf $s_n$ = lim $s_n$ = lim sup $s_n$. Proof We use the notation $u_N$ = inf {$s_n$:n>N}, $v_N$ =sup {$s_n$:n>N}, u = lim $u_N$ = lim inf $s_n$ and v = lim $v_N$ = lim sup $s_n$. Suppose lim $s_n$ = +∞. Let M be a positive real number. Then there is a positive integer $N$ so that $n>N$ implies $s_n>M$. Then $u_N$ = inf {$s_n:n>N$} $≥ M$. It follows that $m>N$ implies $u_m ≥ M$. In other words, the sequence ($u_N$) satisfies the condition defining lim $u_N = +∞$, i.e., lim inf $s_n = +∞$. Likewise lim sup $s_n = +∞$. The case of lim $s_n = −∞$ is handled in a similar manner. Now suppose lim $s_n = s$ where $s$ is a real number. Consider $ϵ > 0$. There exists a positive integer N such that |$s_n − s$| $< ϵ$ for $n > N$. Thus $s_n < s + ϵ$ for $ n > N$, so $v_N$ = sup {$s_n : n > N$ } $≤ s + ϵ$ . Also, $m > N$ implies $v_m ≤ s + ϵ$, so lim sup $s_ n$ = lim $v_m ≤ s + ϵ$. Since lim sup $s_n ≤ s + ϵ$ for all $ϵ > 0$, no matter how small, we conclude lim sup $s_n ≤ $lim $s_n$. A similar argument shows lim $s_n ≤ $lim inf$s_n$. Since lim inf $s_n ≤$ lim sup$s_n$, we infer all three numbers are equal: lim inf $s_n$ = lim $s_n$ = lim sup $s_n$.  My question is in regards to this statement towards the end: "Since lim sup $s_n ≤ s + ϵ$ for all $ϵ > 0$, no matter how small, we conclude lim sup $s_n ≤ $lim $s_n$." Why may we make this assumption? For example, let lim sup $s_n = s + ϵ$. Then since $ϵ > 0$, no matter how small, shouldn't we conclude lim sup $s_n > $ lim $s_n$ in that case? Thank you!

I have been assigned this problem for homework:     Show that, if $a < b + \epsilon$ for every  $\epsilon \gt 0$, then $a\le b$.   I have tried to go about this using Induction, but I don't know what the base case would be. It is obvious to me in my mind, but I don't know how to put it into mathematical terms on paper. any hints?


Prove that:$$\sum_{k=1}^n \frac{1}{n^3}<1.23,$$ without Zeta-Riemann considerations.  I had absolutely no idea, and all my (naive) methods failed. Unfortunately, I am not allowed to use powerful tools in terms of real analysis (fast convergent series of that constant). To be specific, I am interested in a ,,classical solution'', with as little knowledge as possible. A possible o.k. tool is using telescopic sums, and trying to get some range of that sum (this is what I tried). I know this sounds stupid, but these are the requirements. Also, by classical proof I mean a proof that is not assisted by computers, to compute a value of the partial sum, for huge terms. P.S. Thanks for the downvotes, this will motivate me to improve myself.

One way to evaluate $ \displaystyle\int_{0}^{z} \log \Gamma(x)  \,  \mathrm  dx $ is in terms of the .  $$ \int_{0}^{z} \log \Gamma(x)  \,  \mathrm  dx = \frac{z}{2}  \log (2 \pi) + \frac{z(1-z)}{2} +  z \log \Gamma(z) - \log G(z+1)$$  Another way is in terms of the .  $$ \int_{0}^{z} \log \Gamma(x)  \,  \mathrm dx = \frac{z}{2} \log(2 \pi) + \frac{z(1-z)}{2} - \zeta^{'}(-1) + \zeta^{'}(-1,z)$$  I've been trying to prove the latter so that I can prove $$\log G(z+1) - z \log \Gamma(z) = \zeta'(-1) - \zeta'(-1,z) .$$  My starting point is the  $$ \sum_{k=2}^{\infty} \zeta(k,a) x^{k-1} = \psi(a) - \psi(a-x) .$$  Integrating both sides, I get $$ \sum_{k=2}^{\infty} \frac{\zeta(k,a)}{k} x^{k} = \psi(a) x + \log \Gamma(a-x) - \log \Gamma(a),$$  which implies   $$ \sum_{k=2}^{\infty} (-1)^{k} \frac{\zeta(k,1)}{k} x^{k} = \gamma x + \log \Gamma(x+1) . $$   Then rearranging and integrating both sides from $0$ to $z$, I get  $$ \int_{0}^{z} \log \Gamma(x+1) \,  \mathrm dx = \int_{0}^{z} \log x \  \mathrm dx + \int_{0}^{z} \log \Gamma(x) \,  \mathrm dx   = - \frac{\gamma z^{2}}{2} + \sum_{k=2}^{\infty} (-1)^{k} \frac{\zeta(k,1)}{k(k+1)} z^{k+1} .$$  And then using the integral representation $$ \zeta(s,a) = \frac{1}{\Gamma(s)} \int_{0}^{\infty} \frac{t^{s-1} e^{-at}}{1-e^{-t}} \, \mathrm dt, $$ I get  $$ \int_{0}^{z} \log \Gamma(x) \,  \mathrm dx = z- z \log z  - \frac{\gamma z^{2}}{2} + \sum_{k=2}^{\infty} (-1)^{k} \frac{z^{k+1}}{k(k+1)} \frac{1}{\Gamma(k)} \int_{0}^{\infty} \frac{t^{k-1} e^{-t}}{1-e^{-t}} \, \mathrm dt $$  $$ = z - \log z - \frac{\gamma z^{2}}{2} + z \int_{0}^{\infty} \frac{e^{-t}}{1-e^{-t}} \frac{1}{t} \sum_{k=2}^{\infty} \frac{(-1)^{k}}{k+1} \frac{(zt)^{k}}{k!} \, \mathrm dt $$   $$ = z - z \log z - \frac{\gamma z^{2}}{2}  + z \int_{0}^{\infty} \frac{e^{-t}}{1-e^{-t}}\frac{1}{t} \left( -\frac{e^{-zt}}{zt} - 1 + \frac{zt}{2} + \frac{1}{zt} \right) \, \mathrm dt$$   $$ = z - z \log z - \frac{\gamma z^{2}}{2} + \lim_{s \to 0^{+}} \Big[ - \int_{0}^{\infty} \frac{t^{s -2} e^{-(z+1)t}}{1-e^{-t}} \, \mathrm dt - z \int_{0}^{\infty} \frac{t^{s-1} e^{-t}}{1-e^{-t}} \, \mathrm dt $$ $$ + \frac{z^{2}}{2} \int_{0}^{\infty} \frac{t^{s} e^{-t}}{1-e^{-t}} \, \mathrm dt  + \int_{0}^{\infty} \frac{t^{s -2} e^{-t}}{1-e^{-t}} \, \mathrm dt \Big]$$  $$ = z - z \log z - \frac{\gamma z^{2}}{2} + \lim_{s \to 0^{+}} \Big[ - \Gamma(s-1) \zeta(s-1,z+1) -z \Gamma(s) \zeta(s) + \frac{z^{2}}{2} \Gamma(s+1) \zeta(s+1)$$ $$ + \Gamma(s-1) \zeta(s-1) \Big] .$$  Assuming I haven't made any mistakes up to this point, how do I evaluate that limit?


During our last session, two of my players got involved in a little PvP, and the Rogue was fireballed by the Wizard as a last act of defiance, hoping to take the Rogue with him as she died.   The rogue was high enough level to have the Uncanny Dodge class feature, and wanted to know if it applied. I was unsure, and looked over the rules, and didn't come to a final conclusion. I ruled that it did, in the moment, but it didn't actually matter that much, since the fireball didn't do enough damage to bring down the rogue, even with a failed DEX save and without Uncanny Dodge. But I would like a ruling I can stand by in the future, so the short version of my question is as follows:  Would a spell that does damage via a saving throw count as an attack, for the purposes of Uncanny Dodge? Or does an attack have to include an attack roll?  Answers must be supported by either a quote from the Player's Handbook, Dungeon Master's Guide, or a tweet from one of the developers of the game.

I was looking over the class feature of the 'fiend' patron warlock in 5e. I'm a bit confused on what actions the player needs to take before they can use the 'Hurl Through Hell' ability on an enemy. The PHB states:     Starting at 14th level, when you hit a creature with an attack, you can use this feature to instantly transport the target through the lower planes.   I'm not clear on what an 'attack' means in this context. Does it have to be a physical attack like a sword or crossbow? Do magical attacks like Eldritch Blast that require an attack roll count? What about spells with no attack roll?


I am dynamically adding a column via jquery:  $('#id_orderTable tr:last').after('
' +  orderLine.short_desc + '	<input type="button" value="-" class="qtyminus"></input>	'   I have a listener for "qytminus"   $('.qtyminus').click(function(e) { ... some code...}   If I just write the code on a predefined table, the onclick triggers just fine and ...some code... is executed.  However when I click on the button when I add the row dynamically, the onclick does not get invoked.  Is this even possible with dynamic content additon?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


So far in .net I have been using urlmon.dll FindMimeFromData function which works really well and does not even require having full file contents present in a buffer (practically 1024 bytes is sufficient for most file types including XML).  Now in dotnet core although it's possible to use this native library I would like to avoid such dependencies and use a reliable native C# method to determine the file type (images in my case).  Is there any method of doing it without using native dependencies (Mime nuget project) or guessing just by filename (MimeSharp nuget project)?

I am looking for a simple way to get a mime type where the file extension is incorrect or not given, something similar to  only in .Net.


Stack Overflow is great at enlightening people with things that really matter, and our hearts are grateful after all these recent years of light.  But it's definitely wasting huge potential by using this primitive type of selection by coercion.  Any question should be welcome here and there, because the focus should be on classifying and differentiating each one, and not on searching and destroying them.  I have chosen this platform to publish my beautifully crafted questions some years ago, after noticing so many curious people around, but after 5 minutes of fame, it was deleted. I felt really bad. It was my second question here, and I have never posted one since then.  My question is:  Why do you fight against what you could easily benefit from with a little bit of adapting and participating?

I now and then see :     first hit after typing "difference between stub and mock " into google: martinfowler.com/articles/mocksArentStubs.html Can you explain why I am googling for you?   imho all programming questions should be welcome, even if they are very easy to find by googling. To be the #1 one place, SO should contain answers for ALL programming questions. Or am I wrong?


I am writing a report using class article. Since I have already started with article, I want to know if there is any wait to have frontmater and mainmatter like in class book. I want my introduction section number to be 1 and all titles (and page numbers) before to be with roman numerals.  Thanks.

I'm writing something with the article class, and I'd like to have the table of contents pages numbered with roman numerals, and in addition and most importantly: to have the arabic numbers reset after the table of contents.  That's because I'm printing the document as I write, and the TOC will be ready only after the work is finish (and I don't want to change the page numbers). As it's a somewhat big article (~70 pages maybe) should I switch to a book class instead?


I didn't submit my form but did make a mistake; I wrote my date of birth wrong. Will they accept having a crossed-out date of birth and, written above in black ink, the correct date? I live in Saudi Arabia

I've gone through all similar questions but I believe my specific question doesn't have an answer yet.  I've applied for a Standard Visitor visa. After I completed the application, made an appointment and paid the fee, I noticed that the way I spelled my name on the application differs from how it is spelled in the passport by 1 letter (this is partially because of myself being an idiot, but mainly because my new passport has an incorrect transliteration of my name, whereas my old passport and any other document in my life has the correct one).  So here are the options I see:   Print the application and make a pen-and-ink correction with a black ballpoint pen by crossing the printed name/letter and writing the correct one - as answers to other similar questions suggests. Edit the PDF electronically and print it so that there are no visible corrections. However, as the form is saved at their end, there will be a discrepance between the printed form and saved form with no visible signs of correction.   Which way has better chance for me to have my application accepted?  Also (probably doesn't matter much but still): if it's the pen-and-ink correction, is it better to cross-out the whole name or only the wrong letter?


In the workbook that I'm working with, there is a strange structure of sentence for me and I would like to check with you if it's not wrong or mistake such as typo. The sentence is:      Only after buying the cottage did we discover that it was infested with mice"   The location of the auxiliary verb "did" in this  is not clear to me. Normally, when it comes before the pronoun then the sentence is turned into an .   We can use also the auxiliary verb as an emphasizer but in such cases it should come after the verb (e.g. Only after buying the cottage we did discovered that it was infested with mice"). In addition, I do not understand the omission of the past form (ed) from the word "discover".

Occasionally I see constructs like this in English sentences:        Not only is this true in this case, but ...      What puzzles me is the "is this" part of it. The sentence is not a question, yet it seems to have a question-like order. Isn't this correct/preferred:        Not only this is true in this case, but ...      Are there other cases where non-question sentences contain question-like parts (so to speak)?


In the following, does 'in which' sound right?     Therefore, some design patterns will be implemented programmatically   during the writing of this thesis, in order to analyze and to compare.   Swift is the programming language in which the patterns are   implemented, and iOS is the name of the Apple’s mobile operating   system (platform).

Why do we say "In which" in many formal essays and documents? I never understood this. The definition for which on Merriam Webster is "being what one or ones out of a group". Why is it that we have adapted to using the word 'which' outside of interrogative sentences?


I have a title, subtitle, and image. The subtitle should be directly below the title, with both left aligned and taking up 75% screen width. Then the image should take up the remaining 25%, and be on the same 'row'/horizontal plane as the titles.    I think the issue is around the title/subtitle being in a display:block; however when I change it to display:inline; the subtitle jumps to its own line with the image and the title is left above both. I do not want this. I want the subtitle to remain below the title, and for the title/subtitle together to be treated as one block that the image is placed to the right of. Ideally it would look like it does now with the image shifted up.  How do I change the CSS to get the result below?    Thanks in advance for any help!  (also why doesn't simply changing the titles' display from block to inline solve the issue? I understand block takes up a whole row, while inline removes line breaks before/after. I would expect inline to remove the line break that is there now while keeping the subtitle with the title, since they are in the same <div>, but that doesn't happen)

Why won't vertical-align: middle work?  And yet, vertical-align: top does work.   span{   vertical-align: middle; }
      Doesn't work.


Suppose that there is indeed an diffeomorphism $f: \Bbb R^m \to \Bbb R^n$, and $f(a) = 0$. Then $f \circ f^{-1} = identity$. In class my teacher asserts that $Df^{-1}_a \cdot Df_a = identity$ and $Df_a \cdot Df_a^{-1} = identity$. Why this is true and how does it imply that $f$ cannot exist?

${\large let \ U\subset \mathbb{R^n,}V\subset \mathbb{R^m}}$  be open subsets. map $f:{\large U }\to{\large V }$  is called a diffeomorphism if is bijective and both $f$ and $f^{-1}$ are continuously differentiable.   once there is diffeomorphism $f:{\large U }\to{\large V }$  then $Df:\mathbb{R^n}\to\mathbb{R^m}$ will be ${\large linear \ isomorphism  }$ hence $n=m$. how is this a linear isomorphism??. i know $Df(a)$ is a linear map , but why this is one one and on to ??


An Exercises from Linear Algebra by Serge Lang     Let R be a commutative ring. If $M$ is an ideal, denote the ideal $MM$ by $M^2$. Let $M_1, M_2$ be two ideals such that $M_1+M_2=R$. Show that $M_1^2+M_2^2=R$.   I let $x \in M_1,y \in M_2 $ such that $x+y=e$ (the identity element). Then I want to prove there exist some elements $a \in M_1^2, \ b \in M_2^2$ respectively and such that $a+b=e$. However I am stuck here. any hint?

Possible Duplicate:          On  it's a stated fact that if $I$ and $J$ are coprime ideals of a ring $A$, then $I^k$ and $J^\ell$ are also coprime for any integers $k,\ell$.   There's no proof given. Why is this fact true?


Find the necessary and sufficient condition on integers $D_1,D_2$ for fields $\mathbb{Q}(\sqrt{D_1})$ to be isomorphic to $\mathbb{Q}(\sqrt{D_2})$  How should I start this problem?

What are the conditions for integers $D_1$ and $D_2$ so that $\mathbb{Q}[\sqrt {D_1}] \simeq \mathbb{Q}[\sqrt {D_2}]$ as fields.  Here $\mathbb{Q}[\sqrt {D}] := \{a + b \sqrt D \mid a,b \in \mathbb{Q} \}$  Really not sure where to begin with this sort of problem. I was thinking that I should split into cases where the integer is a square or not.


I have 2 classes base1 and base2     public class base1     { public base1(int I, string s) { }       public void f1()     {     // code     }     public void f2()     {     // code     }     public void p()     {     // code     }      }     public class base2     { public base2(int x) { }       public void f3()     {     // code     }     public void f4()     {     // code     }      protected void f5()     {     // code     }      }   I need to implement 5 classes that derive from both of them but there is no multiple inheritance in c#....so how can I do it?-one class base1i can`t change. with the second one i can expirement.so the only idea i have is to make it  to be interface? but both classes constructors have arguments!so it is not possible to make a interface may be you have better ideas...

Since multiple inheritance is bad (it makes the source more complicated) C# does not provide such a pattern directly. But sometimes it would be helpful to have this ability. For instance I'm able to implement the missing multiple inheritance pattern using interfaces and three classes like that: public interface IFirst { void FirstMethod(); } public interface ISecond { void SecondMethod(); }  public class First:IFirst  {      public void FirstMethod() { Console.WriteLine("First"); }  }  public class Second:ISecond  {      public void SecondMethod() { Console.WriteLine("Second"); }  }  public class FirstAndSecond: IFirst, ISecond {     First first = new First();     Second second = new Second();     public void FirstMethod() { first.FirstMethod(); }     public void SecondMethod() { second.SecondMethod(); } }  Every time I add a method to one of the interfaces I need to change the class FirstAndSecond as well. Is there a way to inject multiple existing classes into one new class like it is possible in C++? Maybe there is a solution using some kind of code generation? Or it may look like this (imaginary c# syntax): public class FirstAndSecond: IFirst from First, ISecond from Second { }  So that there won't be a need to update the class FirstAndSecond when I modify one of the interfaces.  EDIT Maybe it would be better to consider a practical example: You have an existing class (e.g. a text based TCP client based on ITextTcpClient) which you do already use at different locations inside your project.  Now you feel the need to create a component of your class to be easy accessible for windows forms developers. As far as I know you currently have two ways to do this:  Write a new class that is inherited from components and implements the interface of the TextTcpClient class using an instance of the class itself as shown with FirstAndSecond.  Write a new class that inherits from TextTcpClient and somehow implements IComponent (haven't actually tried this yet).   In both cases you need to do work per method and not per class. Since you know that we will need all the methods of TextTcpClient and Component it would be the easiest solution to just combine those two into one class. To avoid conflicts this may be done by code generation where the result could be altered afterwards but typing this by hand is a pure pain in the ass.


So while I was going through my email, there was an email from Supernova about selling "Harry Potter Series Adult Editions in Hardcover". Below is the image from the email, with the Harry Potter ad on the left.    I am wondering if there is any noticeable difference between these versions of the series and the original versions?

I have heard rumors that there is Adult versions of the Harry Potter book series that were only released in Europe. Not porn type adult but more graphic in nature. In this series supposedly Dumbledore is gay. Is there any truth to this?


I'm new to Linux. I'm trying to make a script that prints something and initiates a shutdown command. This is my script:  #!/bin/bash      echo Hello WOOOOORRRRRLLLLDDDDDDD  echo sudo poweroff   Every time I try to run my script,using  chmod +x Hello World BASH   or     ./Hello World BASH  however, I get this error message:  chmod: cannot access 'Hello': No such file or directory chmod: cannot access 'World': No such file or directory chmod: cannot access 'BASH': No such file or directory   In general, everytime I try to run this script, the "no such file or directory" error message popped up. How can I fix this?

I have a Python script which accepts string arguments.  $ python script.py "one image.jpg" "another image.jpg"   This works as expected.  Python argparse: ["one image.jpg", "another image.jpg"]    If I need to pass filenames I would do,  $ python script.py $(ls "/some/dir/*.jpg")   Python argparse: ["one", "image.jpg", "another", "image.jpg"]  If use the -Q of ls command, I can wrap results between double quotes. However, quotes stay escaped in Python script, ie.  $ python script.py $(ls -Q "/some/dir/*.jpg")   Python argparse: ['"one image.jpg"', '"another image.jpg"']    How should I expand ls filenames into proper strings to use as arguments? (as in my very first example)


What will be the following limits?  $\lim\limits_{x \to 0}\sin(\frac{1}{x})$  for $x \to 0 ,$ $\frac{1}{x} \to \infty$  Now what will be the $\sin$ value on $\infty$ ?

I am stuck trying to understand how to prove that the limit of $\sin(\frac{1}{x})$ as $x$ approaches $0$ does not exist. a hint was given: a limit does not exist if there exists an $\varepsilon > 0$ such that for every $\eta>0$ there exists an $x$ with $0<|x-a|<\eta$ whenever $|f(x)-L|\geq \varepsilon$.   so I approached this by stating that $|x|<\eta$ then $\sin(\frac{1}{x})-L\geq \varepsilon$. then I set $\varepsilon \leq|f(x)-L|<\sin(\frac{\eta}{2x})-L$ then used inverse sine to try and get delta alone... but now I'm looking at it trying to figure out what i did and why i did it.   can someone please walk me through a proof that this limit does not exist and maybe try and explain it to me. I am lost.


I have a problem when trying removing a file with name something like -h_some_file_name, this is because of generated script that I made and forget to check the prefix.  If I run the command rm '-h_some_file_name' it return an error rm: invalid option -- 'h'.  If I try to change the name and then remove it using mv '-h_some_file_name' new_filename it return mv: invalid option -- 'h'  Question: How to remove a file with name like -h_some_file_name in shell? if using gui I can right click and move to trash, but in shell only returns an error

This may be a simple question, but how do I use files starting with "-" with command line programs?   For example,  I am trying to use pdfgrep on a file named -2013-01-01.pdf but it complains that there are no options defined for 2, 0, 1, 3 and so on.  Changing the filename to something that does not start with "-" solves it, but this is not an option since the files aren't created by me. I simply want to check for a specific change I know is coming.


I am looking for a USB-C or Thunderbolt 3 dongle that has mini DisplayPort, at least 1 USB 2/3 port, and a USB-C power delivery port.   The idea is to have a single cable between my laptop and my mini DisplayPort Cinema display. Would the Apple Digital AV Multiport Adapter work with a HDMI to DisplayPort adapter?  Edit: This question is different from  for a few reasons:    The DisplayPort Cinema display uses mini DisplayPort. I would like only 1 cable going to the laptop.

I noticed in this thread the OP successfully managed to connect a 30" cinema display to the new Macbook Pro USB-C, with full resolution:    I have the official Apple dual DVI adapter, going to a displayport > USB-C adapter like yours, however the screen does not fire up.  I then tried a multi adapter instead of the single displayport > USB-C, which worked but only at 1280 resolution:    Would the official Apple Dual DVI adapter not work?


I'm trying to make a simple bookstore program where people can browse the books and buy some if they want. First they'll choose a genre then choose a title before checking out. If they want to buy more, they'll be sent back to the genre selection.  package finalOOP1;  import java.util.Scanner;  public class main {     //i wanna make a bookstore that sells novels from all genre     public static void main(String[]args)     {         Scanner scan = new Scanner(System.in);         horror h1 = new horror();          System.out.println("Pick a genre:");         System.out.println("Horror");         System.out.println("Adventure");         System.out.println("Fantasy");         String genre = scan.next();          if (genre=="Horror")         {             h1.titles();         }      } }    import java.util.Scanner;  public class horror {       static Scanner scan = new Scanner(System.in);      public static void titles()     {         System.out.println("Pick a book number.");         System.out.println("1.1984");         System.out.println("2.Goosebumps");         System.out.println("3.Dracula");         System.out.println("4.Go back to genre selection");         int choose = scan.nextInt();          if (choose == 1)         {             System.out.println("You chose 1984.");         } else if (choose == 2)         {             System.out.println("You chose Goosebumps.");         } else if (choose == 3)         {             System.out.println("You chose Dracula.");         } else         {             main.main(null); //calling the main method from main.java         }     } }   I haven't made the other genres coz I just wanna try one first, but when I run the main.java, I input Horror, it immediately terminate itself. It didn't show the book titles. I'm wondering if I did something wrong?  I'm new to Java, so I don't really know how this works. Isn't horror.java supposed to work like a function in c++?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am using Ubuntu 18.04 Bionic. It still uses php7.2. When will it switch to php7.3 or even php7.4? How can I force the installation of php7.3?

I am using  in my server and NextCloud informs me that:     You are currently running PHP 7.0.32-0ubuntu0.16.04.1. Upgrade your   PHP version to take advantage of performance and security updates   provided by the PHP Group as soon as your distribution supports it.   So, I tried to upgrade me OS (Ubuntu 16.04), by executing:  apt-get update  apt-get dist-update  Then I restarted the server and I re-executed the above commands. After all these, when I connect from terminal I am getting:  Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-83-generic x86_64)   * Documentation:  https://help.ubuntu.com  * Management:     https://landscape.canonical.com  * Support:        https://ubuntu.com/advantage  0 packages can be updated. 0 updates are security updates.   and my PHP version is still PHP 7.0.32-0ubuntu0.16.04.1 (cli) ( NTS ).  This means that PHP 7.0.32 is the latest possible version that I can install in ubuntu 16.04;


Following is what I understand regarding the simply connected linear algebraic groups afer reading some definition in Hochschild's 'Basic Theory of Algebraic Groups' :  (I don't know about fundamental group)  Let $G$ be a linear algebraic group over a field $F$ of characterstic zero. Then $G$ is said to be simply connected if any surjective homomorphism of algebraic groups  $$\phi : H \to G$$ where Ker $\phi$ is finite turns out to be an isomorphism.  Now, $G$ being defined over $F$ means the defining equations have coefficients in $F$. However, $G$ has points coming from $F^n$ as well as $K^n$ where $K$ is some extension of $F$. Let us denote the $F$-points in $G$ by $G_F$.  Following are my questions:   What can be say about the simple-connectness of $G_F$? Is this simply connected as well ? I would appreciate if you could refer to some results leading to the conclusion. What about the Lie algebra of $G_F$? Is $Lie(G) \cong Lie(G_F)$?   I do not know much algebraic geometry and these type of results are coming in a paper which I am reading. Please help me out. I would appreciate if the explanation is simple and detailed.  Thanks !

Let $G$ be a simply connected algebraic group defined over $C$.   Note : I see the definition of simply connected as "Every isogeny to $G$ is an isomorphism" as given in Hochschild's  "Basic Theory of Algebraic Groups and Lie algebras".   $C$ is an algebraically closed field.   Please help me realise the follwoing things provided they are true:   $G_C$ (the $C$-points of $G$) is simply connected as well. $Lie(G) \cong Lie(G_C)$    Thanks !


In the submitForm of a custom form, I have this:    $sFileName = 'sites/default/files/_private/bulletins/' . $form_state->getValue('adherent')[1] . ".pdf"; $response = new BinaryFileResponse($sFileName); $response->setContentDisposition(   ResponseHeaderBag::DISPOSITION_ATTACHMENT,   'bulletin.pdf' ); $form_state->setResponse($response);     This triggers the download of a pdf document and it works. Then, I try to execute:    $form_state->setRedirect('<front>');   and that is not working! In FormState::setResponse documentation, I read « If a response is set, it will be used during processing and returned directly. The form will not be rebuilt or redirected ». I guess it is why my redirection to  doesn't work...    How can I do it anyway?

In the submitForm of a custom form, I have this:    switch ($form_state->getValue('suscribe')) {   case 0:     $iStatus = 1;     break;   case 1:     $iStatus = 3;     $sFileName = 'sites/default/files/_private/bulletins/' . $form_state->getValue('adherent')[1] . ".pdf";     $response = new BinaryFileResponse($sFileName);     $response->setContentDisposition(       ResponseHeaderBag::DISPOSITION_ATTACHMENT,       'bulletin.pdf'     );     $form_state->setResponse($response);     break; }  $storage = \Drupal::entityTypeManager()->getStorage('member'); $id = $form_state->getValue('adherent')[0]; $entity = $storage->load($id); $entity->status = $iStatus; $entity->save();  \Drupal::messenger()->addMessage($this->t('Your wish has been recorded.'));   suscribe is a Yes/No radio button. $form_state->setResponse($response); triggers the automatic download of a pdf document.    The message (Your wish...) is correctly displayed in case 0. In case 1, the message shows only if I refresh the page (or go to another page). How can I have the message displayed without doing another action after submitting the form in case 1?    By the way, database is correctly updated in both cases. I'm using Drupal 8.6.10.


I got to understand what a LUT actually is. The inputs of a logic function acts as drivers for address lines of a memory block (typically a RAM block) and the address lines are decoded to point to a value which is passed on to the output.  Y=A^B  We store the values[0:3]=(0,1,1,0); And based on the input which acts as address,the corresponding output is enabled.  But how is this value actually stored?  I write y<=a xor b;  How is this put into the look up table? And how is this linked with the multiplexers and D-Flipflops?

I have gone through various sources... But I am not quite sure what it is.I want an and gate and the logical equivalent is two inputs feeding to one gate and for Y=AB' the logical equivalent is feeding to one not gate and one and gate. But it is the same LUT for both AND and Y=AB'. I think we store the values as desired in the LUT. Someone elaborate on this


Just wondering if there's any docking solution that provides the possibility to connect to 3 external displays to the MacBook Air 2018, or if we're hardware limited by the iGPU here.

How do I find out the number, type, resolution & refresh rate of additional monitors I can attach to my MacBook or MacBook Pro?  This is an attempt at a canonical QA, as per the Meta QA -   to try prevent the myriad "same but different" questions we get on every possible combination of computers, cable & monitors There are perfectly good resources out there that Ask Different should not have to duplicate the efforts of.


Here is the sentence from a New York Times article: "...and three women whos homes already had been feng shui-ed by our instructor..." Could the words 'already' and 'had' been flipped in this case? Why or why not? I am just trying to understand this a bit more. Thanks!

For example:     The word rarely turns up outside of those contexts.      The word turns up rarely outside of those contexts.   Which one is correct and why?


I've recently come across a phrase     "Develop against the Sandbox and learn to use the different operators in your testing."   It's not clear why the preposition against is used in this case. Can it be replaced by in? What is the exact meaning of to develop against here?  P.S. Sandbox is a simulation interface that allows to reproduce an ecosystem of an application.

I've encountered this strange and rather odd (to me) usage of the preposition 'against', which I quite can't grasp as of now. I've tried to look it up in several dictionaries to no avail.


I am running Ubuntu 12.10. I thought I had installed 64-bit but somehow I had installed 32-bit.   I wanted to install 64-Bit Ubuntu over the current installation with my flash drive but whenever I select my flash drive to boot, it boot into Ubuntu anyway.   My computer teacher gave me an Ubuntu 8.10 Desktop Edition DVD. Could I possibly boot from it and delete the partition so I can do a clean installation?   I looked this up for quite some time and I haven't found any answers.

I have a laptop with Ubuntu installed as the only OS. I also have a USB stick with a Windows 7 installation on it. I want to install Windows from the USB stick on my laptop but when I try to restart the laptop to get access to BIOS, I can't seem to find the command for it, its like it skips everything and just says Ubuntu and then takes me to the login screen.  How do I change the boot priority to USB in Ubuntu?


When looking for jobs on  I can sort the job list by date, job name or company name.   But since jobs have tags it would be great if there were another sort option that takes the tags into account I answer the most.  For instance Jobs having the most tags in common with my top 10 tags on Stack Overflow should be first in the list.

In Careers 2.0, individuals can choose "search jobs" and sort by date posted, job title, and company name.  However, Careers 2.0 already knows what tags I'm proficient in, and knows the tags associated with the job postings.  A sort option, relevance, should be added so that jobs matching my skill set, as demonstrated on stack exchange, will float to the top.


I want to create a folder following the below procedure:  set folder 2017/October/10 mkdir $folder   But this isn't possible and I get the message:  mkdir: cannot create directory '2017/October/10': No such file or directory   I want to include that in script function! I could really use some help!  EDIT: This just can't happen!

When I run  mkdir ../../bin/Release_Linux/Resources   Im getting an error  $ mkdir ../../bin/Release_Linux/Resources mkdir: cannot create directory ‘../../bin/Release_Linux/Resources’: No such file or directory   Or just   mkdir Release_Linux/Resources mkdir: cannot create directory ‘Release_Linux/Resources’: No such file or directory


What I know (please correct if my understanding is wrong):  vmlinuz: is a compressed, self-extracting, bootable Linux image. Always ELF? Generated how?  zImage (or bzImage): are compressed, self-extracting, bootable Linux image. Always binary. Generated by “make zImage” .  Some sources say that it is the actually the same image eg:  and .  but it doesn't look so. I have build embedded Openwrt project and got this info when doing "file vmlinuz":  vmlinuz: ELF 32-bit MSB  executable, MIPS, MIPS32 rel2 version 1 (SYSV), statically linked, stripped   as can be seen it is in ELF format and NOT a binary as zImage.  to add to confusion, when I do readelf on my ubuntu vmlinuz, I get that it is not an ELF file.

While browsing through the Kernel Makefiles, I found these terms. So I would like to know what is the difference between vmlinux, vmlinuz, vmlinux.bin, zimage & bzimage?


I have an equation with this shape, where $k,t_1,r \in \Bbb N$:  $$2^{(x+1)^2}=k+t_1(x^2+r)$$  And I noticed that I can find $t_1$ in terms of $x$ as follows:     $$ \frac{{\rm d} }{{\rm d}x} 2^{(x+1)^2} = \frac{{\rm d} }{{\rm d}x} \left( k+t_1(x^2+r) \right)$$   And then I would continue as follows:  $$ 2(x+1)\cdot2^{(x+1)^2}\cdot\ln(2) = t_12x$$  $$ (x+1)\cdot2^{(x+1)^2}\cdot\ln(2) = t_1x$$  So finally:  $$ t_1=\frac{(x+1)\cdot2^{(x+1)^2}\cdot\ln(2)}{x}$$     Is it possible to use a derivative in such case? I think that if both functions $2^{(x+1)^2}$ and $t_1(x^2+r)$ are equivalent and the derivative exists it might be possible, but I am not very sure about the validity of that step. Thank you!

Suppose we have $x^2+4x+3=0$  We differentiate both sides to get $2x+4=0$.  So $x=-2$  But $(-2)^2+4(-2)+3=0$   $4-8+3=-1$ is not equal to $0$.  Which tells that we cannot differentiate equalities. But in many proofs, like in integral calculus, differentiating both sides occurs. So, where is the fallacy?


I googled a lot but I did not manage to reproduce:   this rho symbol  and  this special parenthesis .    Thanks in Advance,  Mirko

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


by Salazar Slytherin and the other three founders.  But indoor plumbing (i.e., running water through pipes) wasn't developed until - well, I'm not sure, but . Now, Pottermore confirms it:   So the secret entrance to the Chamber of Secrets clearly wasn't via some kind of .  And I believe it unlikely to have been through the  because, though it certainly would have been an excellent disguise for it, I can't see Salarar Slytherin building it that way for reasons of dignity.  So, what was the original design, when was the Castle renovated with indoor plumbing, who built the current secret entrance during those renovations, and how was it kept secret from all the other occupants of the Castle at that time and also the other renovators?

This is the first of a three-part question on the basilisk plot in Harry Potter and the Chamber of Secrets.  Out of all the Harry Potter books, Chamber of Secrets is the most problematic for me as far as continuity and plot goes. I have issues with the whole basilisk plot. I have a set of three questions regarding Chamber of Secrets that I'm looking for CANON COMPLIANT explanations for. By "canon compliant", I mean within the spirit of canon, answers directly from the book(s), or quotes from J.K. Rowling.¹    In Chamber of Secrets the basilisk moves about the castle through the plumbing. However, if Hogwarts was built 1000+ years ago, that would precede indoor plumbing. How can this be explained, that the castle has original indoor plumbing? How could the Founders have anticipated this innovation? The basilisk is described as very large: "as thick as an oak trunk" (CoS - page 318 - US Hardcover) and "able to grow up to fifty feet long" (FBAWTFT - page 3 - Scholastic) Would a snake this large be able to feasibly fit through standard-sized pipes used for indoor plumbing, even pipes sized to accommodate Hogwarts? At the point indoor plumbing was installed in Hogwarts, how is it that the entrance to the Chamber of Secrets wasn't obvious and easily discovered by those installing the indoor plumbing? How could sinks be installed above the entrance, complete with a faucet marked with a serpent, indicating the entrance, without anyone knowing the significance of the serpent on the faucet?    How could Hogwarts have feasibly accommodated a basilisk 800-1000+ years ago, presumably without indoor plumbing?  ¹ I find the Harry Potter Wiki to be inconsistent and oftentimes incorrect. I am not looking for any answer(s) sourced from the HP Wiki unless Wiki itself backs that precise fact with explicit canon quote. Just an FYI.


The stoplight turns green if there (is/are) more than 1 car(s) waiting   I'm having a bit of trouble figuring out the above statement. Which configuration is correct?  This is odd, as I'm a native English speaker in my mid-twenties, and I like to think my vocabulary and understanding of the English language is pretty good...but I'm always willing to learn!

While adding to an Answer to  question, I needed to use the above phrase, and I suddenly realised I was unsure whether to write "is" or "are".   There is more than one way to skin a cat. If there are more than one species of cat, we will flay each species differently.   I don't think that second example above sounds quite right to me (disregarding the meaning - sorry!), but in my original Answer I felt "is" would have been even worse.  Is "are" always wrong here? If so, what exactly is the rationale? If not, is there a case where it's unquestionably preferred – and why is that?    Note that in both the problematic Answer and my example attempting to mimic the same context more briefly, the writer doesn't know how many there are. There may be one, more, or even none.  Getting even more specific, the writer might have an opinion on how many there might be, and wish to convey his leanings by choice of verb form if language allows this to be done succinctly.


To check a string contains a sub string or not we can use [LIKE] or  [CHARINDEX]. I know that like uses indexing in case we have name%.(while %name% may not use index) .Also charindex does not use index.  For example I want to get all rows containing employeename as 'av'  select * from employee where CHARINDEX('av', employeename)>0   OR i can do same by using LIKE  select * from employee where employeename LIKE '%av%'   In this case which one is better to use? Charindex or like? Why?

This question is related to . The below query was taking 10 to 15 seconds to execute:  SELECT [customer].[Customer name],[customer].[Sl_No],[customer].[Id] FROM [company].dbo.[customer] WHERE (Charindex('123456789',CAST([company].dbo.[customer].[Phone no] AS VARCHAR(MAX)))>0)    In some articles I saw that using CAST and CHARINDEX will not benefit from indexing. There are also some articles that say using LIKE '%abc%' will not benefit from indexing while LIKE 'abc%' will:      In my case I can rewrite the query as:  SELECT [customer].[Customer name],[customer].[Sl_No],[customer].[Id] FROM [company].dbo.[customer] WHERE [company].dbo.[customer].[Phone no]  LIKE '%123456789%'   This query gives the same output as the previous one. I have created a nonclustered index for column Phone no. When I execute this query it runs in just 1 second. This is a huge change compared with 14 seconds previously.  How does LIKE '%123456789%' benefit from indexing?  Why do the listed articles state that it will not improve performance?  I tried rewriting the query to use CHARINDEX, but performance is still slow. Why does CHARINDEX not benefit from the indexing as it appears the LIKE query does?  Query using CHARINDEX:  SELECT [customer].[Customer name],[customer].[Sl_No],[customer].[Id]  FROM [Company].dbo.[customer]  WHERE ( Charindex('9000413237',[Company].dbo.[customer].[Phone no])>0 )    Execution plan:    Query using LIKE:  SELECT [customer].[Customer name],[customer].[Sl_No],[customer].[Id]  FROM [Company].dbo.[customer]  WHERE[Company].dbo.[customer].[Phone no] LIKE '%9000413237%'   Execution plan:


I have a View which I need to alter the output depending on whether the field (taxonomy term) has a certain value. If the value of the taxonomy field is "Yes", I want to add a surrounding  to the view so that it links to a details page. If the value is "No", I want to output without the surrounding  so there isn't a link to a details page as not all of the nodes in the view will have a details page.  Normally in a node template file I'd use "if(!empty($node->field_subtitle['und'][0]['value'])) {" etc but that doesn't work in Views.  Any ideas guys? I've looked through many articles online but can't figure it out.  Kind regards Liam

In my scenario I'm trying to display a flag (Font Awesome icon) in Views Global Text Field if another field in the same row of a type "Date" has a value of, say, a week from now. I tried  but it has some bugs with filters I'm using, so I thought that using the above approach would be better.


They are taking an anti-typhoid drug that is called as xyz. They are taking an anti-typhoid drug called xyz.  Which one is correct and why? or both are correct?

Which is the correct sentence?   The young cow is calf. The young cow is called calf. The young cow called as calf.


I want to search the way a c++ library works, so I want to know the code after the maro and head files are substituted.

Let's say I have a source file with many preprocessor directives. Is it possible to see how it looks after the preprocessor is done with it?


I have a computer with Linux installed. And I want to be able to read and write data to its disk from Windows 7. Is there any software or does Windows 7 have any functionality for it built-in? I've seen some website describing how to, but they are quite old:   So I wonder if there is any better way than they ones they have described there.

Is there any way I can use  partitions on Windows 7?  I have tried to install , but it doesn't seems to run on Windows 7.


In 's second code block, there is a string assigned like this:  string xmlpath = @"C:\Users\Rick\Documents\Visual Studio 2010\Projects\Server\server.config\DC_Finalized\" + cboNetGuid.SelectedItem.ToString() + ".xml";   The rest of the code block after this is highlighted as though it is one long string (it treats any text that actually is a string as non-string plaintext).  It looks like the @ makes the highlighter treat it as a multi-line literal, and the string ending with a \ escapes the closing quote, causing the highlighter to treat the entire thing as a string.

The title really says it all, but when I use the @ character to ignore escapes in a string literal @"Like This\", the \" is interpreted as a quote character belonging to the string rather than the terminating quote.


Do light particles come in different sizes if it makes sense to even think about them that way?

Is a photon of 400nm in wavelength "smaller" than a photon of 1km in wavelegth?


I need to seperate the bars from the cells in this model.   But when i go in the Edit Mode, the bars disappear.  I am using an array modifier, but I think the problem is not with the array.

I have append a mesh (rex) from this .blend .  In edit Mode I see different vertices from objcet mode (see pictures). The vertices of belt are missing!  OBJECT MODE:   EDIT MODE:   How can I edit vertices of belt? Is It a bug?  This is my .blend  maybe can help.


Let $X,Y$ be Noetherian schemes and $f: X \to Y$ be quasi-finite and proper morphism.  Is $f$ necessarily a finite morphism ?

Does anybody know a reference for a proof of:  Let $f: X \rightarrow Y$ be a quasi-finite proper morphism of varieties. Then $f$ is finite.  Is there one in Hartshorne? I could not find it.  Thanks!


I made an animation of a wheel rotating which is 80 frames. Is there a way I can export my PNG sequence in a vertical sprite sheet, the PNG files stacked one on top of the other like the example I have provided? Thank you.

I want to create a png file that is an animation of fire for a Minecraft resource pack. I can render the images as separate files and painstakingly put them together in Photoshop. I would rather see if I can do that in Blender or with another tool?  Here is an example of the desired outcome. Sorry for the size.


What do I do to reinstall the GRUB boot-loader, since I heard the Windows boot-loader overwrites GRUB.

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


I have the following problem:  Be the equation:  $$u(x,t)=\int_{-\infty}^{\infty}c(w)e^{-iwx}e^{-kw^2t}dw$$  Show that $u\rightarrow 0$ as $x\rightarrow \infty$, even when $e^{-iwx}$ does not falter if $x\rightarrow \infty$.  The problem gives the hint to use integration by parts. I was hoping you explain this problem or help me solve it, for your attention and any help: thank you very much.

I have the following problem:  Be the equation:  $$u(x,t)=\int_{-\infty}^{\infty}c(w)e^{-iwx}e^{-kw^2t}dw$$  Show that $u\rightarrow 0$ as $x\rightarrow \infty$, even when $e^{-iwx}$ does not falter if $x\rightarrow \infty$.  The problem gives the hint to use integration by parts. I was hoping you explain this problem or help me solve it.  I asked this same question in , however, I found no answer. But I remembered that this equation is a solution of many physical systems, so I decided to put it here hoping for a little more luck.


Do we have a nice expression for the following finite series? $$ \sum_{k=0}^{j} \binom{j}{k} \ \frac{(-1)^k}{2k+1}.$$ Any help is really appreciated since I can skip the part concerning the partial sums.

Mathematica tells me that  $$\sum _{k=0}^n { n \choose k} \frac{(-1)^k}{2k+1} = \frac{(2n)!!}{(2n+1)!!}.$$  Although I have not been able to come up with a proof.  Proofs, hints, or references are all welcome.


I was reading something which I found really special. It goes like this : Imagine we have a line with unity division (0,1,2,etc.) Now, we have a point on this line. The point can be on a point of division or it can be contained between two points of division. If it isn't on a point of division, then we can continue cutting the line into 10 equal pieces. (The first piece being 0, the second 1, the third 2,...) So, if my point was between 1 and 2, I'll have 1.0,1.1,etc. We continue this cutting until our point arrives at a point of division.If this arrives, we have two choices : We can pick the interval on the left or the interval on the right. And we can continue this way at infinity.  We also have the following formulae to express our numbers : g+a/10+a2/100+a3/1000+... g being an integer and a being the number of the piece which contains our point.  Now, my question concerns this :    How can it be possible that we can have 1/4=0.2499... and 1/4=0.25000... Also, for this idea to be valid, must it necessarily be an infinite decimal expansion or I could have the following 1/4=0.249 and 1/4=0.250 ?  Thank you !

I'm told by smart people that $$0.999999999\ldots=1$$ and I believe them, but is there a proof that explains why this is?


How do I burn the latest 12.10 790 MB ISO to a CD?  My burning software says insert a disk but 700 MB CD's are too small. I tried a DVD and that didn't work either.

I have an old computer that can't handle a boot stick install, so i have to create an actual, old fashioned boot CD.  However, the image size for Ubuntu 12.04 is 732MB, which is too large for a CD, which can hold only 700MB.  The maintainers of Ubuntu 12.04 say the image size will never go over 700MB, and indeed, the download size seemed to be 689MB.  Brasero says it won't burn the CD because the file is too big, what's going on?


Please read this carefully. I want to actually run the OS from the USB,thus install it on it, not to copy the setup files to it. I have done some research on this, but doesn't help. I have an XP .iso file and a 32GB flash drive, if that helps. I have read some of the other threads and they can't help.

I wanted to know if there was a way (that worked!) to both Install and Run Windows XP Pro from a USB 2.0 connected Hard Drive. My system does allow to boot from external usb hard drive, but when I tried to install Windows XP to the USB HDD, it didn't allow me to.  My ultimate goal is to be able to move only the hard drives (w/ windows installed) to other identical systems, in times of maintenance, etc.


I read this morning :     ... words which leap from the second verse and alert whomever may read the epistle ... to the fact that ...   I am not clear with what exactly is going on with 'alert whomever may read'. Is 'whomever' the grammatical object of 'alert' or is it the grammatical subject of 'may read' ? Or is it both ?  So should it be 'whoever' ?

So sad to lose you, yet happy for whomever has the pleasure of working with you next.


I often see interesting but off-topic questions. Should they still be downvoted, or is flagging as off-topic and leaving a comment enough?

The upvote tooltip says:      This question shows research effort; it is useful and clear.   The downvote tooltip says:      This question does not show any research effort; it is unclear or not useful.   Sometimes, a question can show research effort, be useful, be clear, but just not in the good place. Voting to close the question and downvoting seems like a double penalty.  Should an off-topic question always be downvoted ?


In the / directory, I use:   ls -alFd /tmp     to check the /tmp directory permissions and I get drwxrwxrwt.  I know rwxrwxrw means user, group, other permissions are read, write and execute.  But I don't know the meaning of the d and t. of the drwxrwxrwt, can someone explain it?

The ls -al command shows the following output;  -rwxrw-r--    10    root   root 2048    Jan 13 07:11 afile.exe   What are all the fields in the preceding display?


If I use \textsc{xyz} with a font that has no small caps (e.g. Latin Modern Sans), the result is typeset in lower case. Is it possible to automatically fallback to all-caps instead? I cannot do this manually since I want to use small caps in a macro.  \documentclass{article}  \begin{document} \newcommand{\acronym}[1]{\textsc{#1}}  \acronym{abc} is an acronym.  \begin{description} \item [\textsc{\acronym{abc}}] Trying to use \textbackslash{}acronym with LM Sans \item[ABC] This is what it should look like \end{description} \end{document}

The description environment allows an optional heading, like \item [<heading>] text, to be used. By default this makes the text <heading> bold.  I'm having the issue that this style of heading text is overriding my \textsc{}.  Why won't the description environment honor my \textsc{}?  Here's a picture:        And a MWE:  \documentclass[12pt]{book}  \begin{document}  This is normal text. \textsc{This is in small caps.}  \begin{description} \item [\textsc{Why not small caps?}] Why isn't the text at left in small caps? \end{description}  \end{document}


If $f(x) = f(2x)\forall \; x \in \mathbb{R}$ and $f(x)$ is continuous for all $x\in \mathbb{R}$ and $f(5) = 10,$ Then $f(2016) = $   $\bf{My\; Try::}$ Let $0<x<1$  Then $f(x)=f(2x) = f(2^2x) = f(2^3x)=......=\lim_{n\rightarrow \infty}f(2^nx) = f(0)=\bf{Constant}$  and when $x>1$  Then $\displaystyle f(x) = f\left(\frac{x}{2}\right) = f\left(\frac{x}{2^2}\right)=f\left(\frac{x}{2^3}\right)=.......=\lim_{n\rightarrow \infty}=f\left(\frac{x}{2^n}\right)=f(0)=\bf{Constant}$  But I did not understand How can we solve for $x<0$ and $x=0$ and for $x=1$  Help Required, Thanks

If a Continuous function $f(x)$ satisfies $f(x) = f(2x)$, for all real $x$, then does $f(x)$ necessarily have to be constant function? If so, how do you prove it? If not any counter examples?


How can I clear my working directory in Git?

How do you delete untracked local files from your current working tree?


Power went down while editing a file with Geany and the file got truncated to 0 bytes ...  Is it possible to recover the file ?

Are there any tools, methods, incantations to recover recently deleted files on Ubuntu?  If it makes any difference, I want to recover a  2.x database file. But would be better to have a method/tool that works on any kind of file.


I am Indian, travelling to Spain (Madrid 2 nights, Barcelona 3 nights) and then to Italy (Venice 2 nights. Florence 2 nights, Rome 3 nights). Which visa should I apply for?

I'm planning to go to Germany on Sept 6-8, then Netherlands on Sept 8-11 and exit Switzerland on Sept 11-14.  My question is:  Which embassy do I need to apply for the Schengen visa? The number of days are the same for Netherlands and Switzerland, but I'm planning to apply in Netherlands since it will be my second point of entry.


I want to check the given right hand side equation is equal to the left hand side or not. The value of $x = (19/30). (((6*($x)) - 5)/(7 - (3*($x)))) = ((4 - (8 * $x))/((4 * $x) + 2)) I had tried below mentioned code, but it shown the RHS value is greater than LHS. <?php  function check($m, $n)  {           $rhs = abs($m);      $lhs = abs($n);      if($rhs > $lhs){          echo "$m is greater than $n";      }     elseif($rhs < $lhs) {         echo "$m is smaller than $n";      }     else{         echo "$m is equal $n";     }  }    // $m = ((6*(19/30)) - 5)/(7 - (3*(19/30))); // $n = (4 - (8 * (19/30)))/((4 * (19/30)) + 2);   $x = 19/30; $m = abs(((6*($x)) - 5)/(7 - (3*($x)))); $n = abs((4 - (8 * $x))/((4 * $x) + 2));  check($m, $n);   ?>  The output: 0.23529411764706 is greater than 0.23529411764706

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I read on the internet that an iron vane is attracted to a coil and the vanr is attached to a pointer. Thus we get the reading. The article also said that we can measure both AC and DC using it. How is that done? Won't the vane keep oscillating when connected to AC?

What does the  measure in a circuit,  average voltage, \$V_{average}\$, or RMS voltage, \$V_{rms} \$?  \$V_{average}=\frac{1}{T}{\int_{0}^{T}vdt} \$  \$V_{rms}=\sqrt{\frac{1}{T}\int_{0}^{T}v^2dt} \$


do i need to pay for anything in this situation : i m making mini games to raise money and cant afford unity pro or plus(don't think its worth it)for my original idea/game.i am also thinking about using unity ads(is that free to use as well).

Is it okay to use Unity 3D programming and gaming software to create mobile game apps for Android and iOS? I am using a free version of Unity 3D and planning it to sell my current game app I've created by publishing it to Google Play. I also use this method for earning money by setting as a free app with ads on it.   I saw some developers relied on using free version of Unity 3D to create games and published it via App Store or Google Play. If it does, should I have to pay or share contribution to the Unity development team for earnings since I use the free version in order to rely for producing several game apps for business?


We have an AWS server running OpenVPN which was built using Ubuntu 13.10. After the announcement of the Heartbleed vulnerability, we updated the server. This morning, we upgraded the server to 14.04. The current output of "openssl version -a" is:  OpenSSL 1.0.1f 6 Jan 2014  built on: Mon Apr  7 21:22:23 UTC 2014  platform: debian-amd64  options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)   compiler: cc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM OPENSSLDIR: "/usr/lib/ssl"   I verified the fact that the server is still vulnerable using the following:  :~$ openssl s_client -connect openvpn.example.com:443 -tlsextdebug 2>&1| grep 'server extension "heartbeat" (id=15)' || echo safe TLS server extension "heartbeat" (id=15), len=1   Attempts to run "sudo apt-get install openssl" return that the current version is already installed. What are the best options to resolve this issue? Does it appear there was a problem during distribution upgrade; i.e. is the 14.04 OpenSSL package actually outside the danger range? Or is there a possible issue with the repository itself?

As of today, a  has been found affecting versions 1.0.1 through 1.0.1f (inclusive) and 1.0.2-beta.  Since Ubuntu 12.04, we are all vulnerable to this bug. In order to patch this vulnerability, affected users should update to OpenSSL 1.0.1g.  How can every affected user apply this update now?


How do I set up a rule to move emails after they have been read rather than as soon as I get the email?  I can set up rules to move emails from my inbox automatically, but I would like to be able to keep all unread emails in one spot rather than having to check 37 folders for unread emails.

Outlook 2010. Want to create a rule that moves all mail from my inbox to another folder:   Has been read Is older than X days   I was looking at Auto-archiving, but it does not seem to let me be this specific with my criteria.


I want to add a line to a table of content. The line would say  something like   Chapter(on the left)     and  Page (on the right)  with addcontentsline I get a page number which I do not want.

I tried latex code for generating toc suggested by stack exchange in response to my previous query  . Still I need small modifications. In the first page of toc, At top middle “TABLE OF CONTENTS” is required and then in the second line 3 column names such as “CHAPTER NO.”, “TITLE” and “PAGE NO.” are required. In subsequent pages only the said second line particulars are required. The same applies to List of tables and List of figures.


I have an AMD Raedon 6770 graphics card in my computer, and for some reason I'm unable to get Ubuntu 13.10 to read it. I had another copy of 13.10 on my desktop, but when I tried to install the .run file for the card from the terminal, it corrupted something within my operating system and I could no longer get Ubuntu to boot. I'm fairly new to this operating system, but am beginning to grasp the concept pretty fast. Is there anyway to add a library of screen resolutions? I really need something with a 16:9 ratio for my Emerson TV screen which I'm using as my monitor, and currently only 4:3 is available (linked tv to computer through a monitor cable).  I've also tried to run a few xrandr commands without any success. Any suggestions would be greatly appreciated!

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I recently installed Ubuntu 16.04 alongside Windows 10 on my Acer Aspire laptop, and this is my first experience with Linux. I'm having trouble with the WiFi. There is no option for me to turn wireless on, and there is no list of available networks.  I know similar questions have been asked a lot, but I've been different different answers for the last couple of days and trying the solutions and none of them have worked.  I have Broadcom BCM43228, and I have selected "Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary)" in the Additional drivers section of the system settings.  My wireless is not soft or hard blocked, my wired internet is working, and my WiFi also works in Windows.  Output of iwconfig:     ~$ iwconfig      lo        no wireless extensions.      enp1s0f1  no wireless extensions.`   Output of sudo modprobe wl  ~$ sudo modprobe wl  [sudo] password for zacmerphy:   modprobe: ERROR: could not insert 'wl': Required key not available

This issue happens only on UEFI systems with enabled Secure Boot.  When I try to install DKMS modules like VirtualBox, Nvidia, or Broadcom drivers, they do not install and I get Required key not available when I try to modprobe them.  VirtualBox complains that vboxdrv is not loaded.  Broadcom wl driver is shown in lspci -k as a kernel module but is not in use. sudo modprobe wl throws Required key not available.  Also this issue may happen when I install some kernel modules from git sources.  This issue may appear after a kernel update as disabled wireless adapter, black screen after a reboot, etc.   How can I fix it?


Honestly, my default graphic driver for Ubuntu 13.10 is Intel® Ivybridge Mobile. But got a Nvidia driver which it was already been installed. So, how to make Nvidia driver as a default graphics driver?

I am considering buying a Dell XPS 15 laptop. The laptop has a Nvidia 420m card which should work with Linux but I keep reading that the Nvidia Optimus technology isn't supported on Linux. I am not really interested in switching from Nvidia to Intel to save power but need to know that the Nvidia card will in fact work if I installed Ubuntu.  If anyone has experience using a Nvidia card with Optimus technology or even better the exact laptop in question (Dell XPS 15 with 1GB NVIDIA® GeForce®  GT 420M) it would be great.  A major problem holding people back from adopting Linux is this sort of hardware issue. I am a long term Ubuntu user and supporter who can't afford to make a mistake with a purchase like this. I don't want to spend £500+ to find I have no graphics acceleration because Windows 7 is not an option.


How can I use another macro in a string macro in C?  I have this:  #define MAX_OPERATION_COUNT 10 #define MSG_TOO_MANY_OPERATIONS "Too many operations! Only the first 10 were applied."   But I would like the second macro to use the value of the first one instead. In Java for instance, I would have had something like:  public static final int MAX_OPERATION_COUNT = 10; public static final String MSG_TOO_MANY_OPERATIONS = "Too many operations! Only the first " + MAX_OPERATION_COUNT + " were applied.";   Is there a way to do something similar in C?  Edit: The solution to this turned out to be very similar to the solution to , but I believe the problem itself is quite different and should be treated separately.

I'm looking for a way to convert a preprocessor token to a string.  Specifically, I've somewhere got:  #define MAX_LEN 16   and I want to use it to prevent buffer overrun:  char val[MAX_LEN+1]; // room for \0 sscanf(buf, "%"MAX_LEN"s", val);   I'm open to other ways to accomplish the same thing, but standard library only.


A force is required to change the momentum of the rocket exhaust which consists mainly gas moving out of the rocket chamber. People think that it is the rocket that pushes the gas out. If this were true, yes the gas would push back. However, the gas moves because of pressure gradient force and not because of the rocket pushes it out. Therefore, there would be no push on a rocket.    When the gas moves out at high velocity, the atmosphere provides resistance which creates back pressure of flow causing thrust. In space, there is no such resistance.

I know Newton's third law of motion might be the answer for this but still I am wondering how the rockets could thrust in the empty space and move in the opposite direction. I guess an astronaut wouldn't be able to push in the empty space with his hands or legs to move himself, but with a rocket engine it's possible. How? What might be the explanation for this in General Relativity?


How do I remove this pesky ad bar in Utorrent? I already removed most of these idiotic messages, with the help of , but one remains:

Since version 3.2, uTorrent displays ADs in the form of a "Featured Torrent" banner and a small square advertising in the sidebar. Is there a way to disable those?


Need a big favor! I'm trying to send uploaded file using JavaScript & Ajax, however not getting any success.   I want that when I upload the file, it will call the function myFunction(), and send the file to the PHP path(ajax.php) I've set.  Below is the code I've so far.  <script>    function myFunction() {       var x = document.getElementById("up");       $.ajax({          type: 'GET',          url: 'ajax.php',          data: {},          beforeSend: function() {},          success: function(data) {             alert(data);          }       });    } </script> <input type="file" name="images" id="up" onchange="myFunction()" />

I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); });  File <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="button" value="Upload"/>     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?