After a fresh installation of nginx 1.4.7 on Fedora 20 I added two additional locations to the the default location:  user  neradis; # I also tried the 'root' user here and commenting this directive out, to no avail worker_processes  1;  [...] http {  include       /etc/nginx/mime.types;     default_type  application/octet-stream;  log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '                   '$status $body_bytes_sent "$http_referer" '                   '"$http_user_agent" "$http_x_forwarded_for"';  access_log  /var/log/nginx/access.log  main;  sendfile        on;  [...]  index   index.html index.htm;  server {     listen       80;     server_name  localhost;     root         /usr/share/nginx/html; autoindex    on;      location /music/ {         root    /home/neradis/audio;     autoindex    on;      }  location /nginx_test/ {         root /;       autoindex on; }       error_page  404              /404.html;     location = /40x.html {     }      error_page   500 502 503 504  /50x.html;     location = /50x.html {     } } }   nginx serves files from the default location /usr/share/nginx/html without problem, but yields errors denied permissions for filesystem operations (open(), opendir()) for the added locations. I am aware that every parent directory must the 'executable' for the user used by nginx, so I ensured that using namei -l:  f: /nginx_test/file.txt drwxr-xr-x root    root    / drwxrwxrwx neradis neradis nginx_test -rwxrwxrwx neradis neradis file.txt   Nonetheless, I still get a 403 response on a wget localhost/nginx_test/file.txt, finding this error in the logs:  [error] 6950#0: *1 open() "/nginx_test/file.txt" failed (13: Permission denied), client: 127.0.0.1, server: localhost, request: "GET /nginx_test/file.txt HTTP/1.1", host: "localhost"   I get the same errors for the /home/neradis/audio/music. I am puzzled what the crucial difference to the working functioning default root /usr/share/nginx/html is:  f: /usr/share/nginx/html/index.html drwxr-xr-x root root / drwxr-xr-x root root usr drwxr-xr-x root root share drwxr-xr-x root root nginx drwxr-xr-x root root html -rw-r-xr-x root root index.html   Any ideas what else might keep nginx from accessing the files?  edit (solution): The comments guided me in the right direction. The file permissions we're okay, but SELinux prevented reading the files in the new locations, as they had (SELinux) types of default_t and user_home_t, that we're forbidden for the httpd_t. I wrote my own selinux module to allow for default_t files and enabled access for the home files with setsebool -P http_read_user_content.

I'm having a problem setting up a vhost on Apache 2.4, using CentOS 6.3.  This question seems to have been answered several times on this forum, but none of the solutions work for me.  Basically, I set up a vhost with a particular document root. When I attempt to access the site, I get a permissions error. But I have no problem if I use a different root.  More specifically, if I set the root to be /volume1/web/xxx, I get a 503 because of a permission problem on index.html.  But if I set it to be /volume1/web, the index.html comes up without a problem.  The details:   I set the persmissions on volume1, web, and xxx to 755. I set the permissions on the index.html files to 777. I copy the index.html file to both /volume1/web and /volume1/web/xxx, so that they have identical index files with identical permissions.   In httpd.conf, I set the VirtualHost options so that I can easily switch the document root by changing 2 comment marks  I have the following lines in the conf file:  NameVirtualHost *:80  <VirtualHost *:80>     ServerName localhost     #DocumentRoot /volume1/web     DocumentRoot /volume1/web/xxx      #<Directory /volume1/web>     <Directory /volume1/web/xxx>       Options Indexes FollowSymLinks Includes ExecCGI       AllowOverride All       Order Allow,Deny       Allow from all     </Directory>      ErrorLog logs/localhost-error_log     CustomLog logs/localhost-access_log common </VirtualHost>   These lines contain all the suggestions that worked for other people with the same problem.  What I get when I enter localhost in my browser depends on the document root.   If the root is /volume1/web, the index.html page comes up. if the root is /volume1/web/xxx, then I get a 503 error, and the apache error log has this line:  [Thu Jul 19 17:17:52 2012] [error] [client ::1] (13)Permission denied: access to /index.html denied   I also tried adding an index.php file to the directory. I then got permission denied messages for both the php file and the html file.  I also tried setting the user : group to apache : apache on the directories and files. That didn't help.  I've done everything I can think of to fix the permissions, to no avail.  Does anyone have an idea about what's happening here?  Thanks.


I'm trying to run code based off of a cell being pulled in from my excel sheet. My code runs but then it stops at the if statement. If statement below.   if(data03 == "Checkpoint")  java

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 noticed on the  that the Community User has starred a question on the Skeptics site. So why does the community user have a starred post?  Does the community user own stars from deleted users?  What criteria must be met for the community user to own a star on a post? This is not a duplicate of  because that was a site-specific problem for SharePoint; it does not explain the issue on Skeptics.

On most sites including the main Stack Overflow site,  has no favorites. So far so good.  However today I noticed that on the  it got 26 questions marked as favorite.  If favorites owned by users who get deleted are "transferred" to the Community user we should have seen LOTS of favorites on Stack Overflow where I'm pretty sure users get deleted frequently.  Any insights on this are welcome.


How do you know if there exists a proper transformation from one metric to another? I know that sometimes you can check if the Weyl tensor is zero or not, or in a simpler case if one is a vacuum solution and the other is not.

Specifically, I'm asking this because I'm taking a class on General Relativity, and in Hartle's book , in Ch. 12, after having spent some time using Schwarzschild coordinates, we are introduced to two new coordinate systems, the  coordinates and the  coordinates.  The book claims that the three of these coordinates are just different coordinate representations of the same spacetime geometry.  How does one prove this claim, particularly since the coordinates do not even remotely behave identically (e.g.: when $r=2M$ in Schwarzschild coordinates, the system appears to blow up, but really the issue is with its representation in Schwarzschild coordinates)?  Obviously, there would be no point having 3 different coordinate systems if they all behave identically everywhere, but I'm having difficulty reconciling these different behaviours as all being different descriptions of the same spacetime geometry.


Hope somebody can explain why in the following code (1) creates a "smarter" in-paragraph spacing than (2)?  \documentclass{article} \usepackage{lipsum}  \begin{document}  {\small\lipsum[1]\LARGE\lipsum[1]\small\lipsum[1]\par} %(1)  \clearpage  {\small\lipsum[1]\LARGE\lipsum[1]\par} %(2)  \end{document}   Result of (1)   Result of (2)

I have a multi-paragraph section of tiny-font within a larger document of normal-size text.  The last paragraph within this section seems to get double spacing:    I can fix the problem by putting a blank line before the final \end{tiny} but I don't know why this works.  Can someone tell me what is going on?  Here is the MWE  \documentclass[11pt,oneside]{report}  \begin{document} This is normal size.  \begin{tiny} This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size. This is tiny size.   Why is this paragraph double spaced?  Why is this paragraph double spaced?  Why is this paragraph double spaced?  Why is this paragraph double spaced?  Why is this paragraph double spaced?  Why is this paragraph double spaced?  Why is this paragraph double spaced? \end{tiny}  \end{document}


From Wookieepedia how a lightsaber works:     The weapon consisted of a blade of pure plasma emitted from the hilt   and suspended in a force containment field. The field contained the   immense heat of the plasma, protecting the wielder, and allowed the   blade to keep its shape. The hilt was almost always self-fabricated by   the wielder to match his or her specific needs, preferences and style.   more:     It seems the Dark Lords of the Sith Empire were ultimately responsible   for the advancement of lightsabers, replacing the belt-mounted power   pack with a power cell within the hilt. An internal superconductor was   introduced, which transferred the returning looped energy from the   negative-charged flux aperture back into an internal power cell. With   this modification, the power cell would only expend power when the   energy loop was broken, such as when the lightsaber cut something,   solving the power supply problem. According to the Tedryn Holocron,   the Sith also created the schematics for the first double-bladed   lightsabers.   More:     High levels of energy generated by a high-output Diatium power cell   was unleashed through a series of focusing lenses and energizers   that converted the energy into plasma. The plasma was projected   through a set of lightsaber crystals that lent the blade its   properties and allowed for the adjustment of blade length and   power output. The ideal number of crystals was three, though only   one was required   More:     Once focused by the crystals, the plasma was sent through a series of field energizers and modulation circuitry within the emitter   matrix that further focused it, making it into a coherent beam   of energy that was projected from the blade emitter. The blade   typically extended about a meter before being arced by the blade   containment field back to a negatively charged fissure ringing the   emitter, where it was channeled back to the power cell by a   superconductor, completing the circuit.   Okay so from all of these quotes here's how I understand a lightsaber to work. There's a powercell in the handle. The power is then focused through crystals that act as a lens. It is preferable to use three crystals but you can make a lightsaber with just one. Then the energy goes through an emitter matrix which further focuses it into a coherent beam. The projected beam goes out about a meter on average then arcs back by the blade containment field(which is somehow done with the force) back into the emitter, and then back to the powers cell, which completes a circuit.   This means that it's a one way shot, a straight line out. In addition it says that the Sith had to design a two sided blade, which I assume is a regular lightsaber connected with separate power cells and seperate crystals to create effectively two separate lightsabers that are connected at the hilt. We see G Canon evidence of this when Darth Mauls lightsaber is cut in half in "The Phantom Menace."  So how does Kylo Ren's lightsaber have beams coming out in a cross formation at the hilt? Does he have separate crystals to focus the beams out? Is it a containment field in an irregular shape, if so how is that done? I am confused and it's possible my understanding of how the fields that generate a lightsabers form are off.  Also as a side note if you feel like addressing it and it applies: Wouldn't the cross parts coming out of the hilt take up more energy and be more for effect then for purpose? If it needs additional power cells or a larger one wouldn't that make the lightsaber much heavier and more difficult to use?  How does Kylo Ren's lightsaber make that cross shape?

There's a lot of discussion going around about the new lightsaber in Star Wars VII. One criticism I've heard is that the cross-guard on the lightsaber doesn't look like it's going to do anything. One function of a cross guard is to stop your opponents blade from sliding down your own and lopping off all of your fingers. As you can see in the image below, there's a little nub of an emitter at the base of the cross-guard. Wouldn't an opponents lightsaber just lop the cross-guard right off as it slid down the blade?  With that in mind, what prevented people from losing fingers in the first place? Can lightsaber blades even slide against each other?  seems to suggest that they can.


How come the following line:   pop = setInterval(function () { doSlide($(this)) }, settings.timeoutSet);    not sending the proper reference as the parameter.  I would like to set up the same functionality as the commented out section in the AutoSlide(theObj2) function but using the class that was sent as the selector of the function but it's not working. I keep getting [object][Object] as the console log.  How can I resolve the issue so the auto sliding function works correctly.

I have a problem with an object I have created that looks something like this:  var myObject = {      AddChildRowEvents: function(row, p2) {         if(document.attachEvent) {             row.attachEvent('onclick', function(){this.DoSomething();});         } else {             row.addEventListener('click', function(){this.DoSomething();}, false);         }     },      DoSomething: function() {         this.SomethingElse(); //<-- Error here, object 'this' does not support this method.     } }   The problem is that when I am inside the 'DoSomething' function, 'this' does not refer to 'myObject' what am I doing wrong?


Using 12.04; I recently added a USB connection for Arduino board. Now I can not print using a Canon ip2600 printer. It is shown as installed but if I try to uninstall or update properties I get a request for a password which is rejected regardless of what is entered, my username is a member of admin and I added it to lp group but I still can not print. The print queue shows that the printing was completed but it was not. I am not allowed to empty queue and no update of drivers is shown in the print box. Printer works fine if I boot into Windows so printer and USB cable are ok.

Using 12.04 my printer a canon ip2600 will not print.   SystemSettings/printers shows it as installed, connected to local host, enabled, accepting jobs, shared and allowing printing for everyone. Yet it does not print.   I have tried to remove it but get a request for user name and password which I enter (I only have one password) but the password is listed as incorrect.   I need a sudo command which I can use to delete the printer so I can attempt to re-install it. As it is the printer is useless and I can not even uninstall it.


My and my fiancé are wanting to elope in Denmark, he's English and I'm Filipino.  In order to get there I need to get a Schengen visa but I'm uncertain about my eligibility.  I'm currently unemployed, not in education and have little savings. My fiancé has about £3000 in savings, to support the trip. Additionally I don't have a referee within the schengen area.  I'm worried about getting rejected as I don't want to waste any money or have flags against my name.  Based on this information is there anyway that I'd be able to be granted a visa, or is it not worth the time/money? Thanks for taking the time to read.

Lots of people would like to visit the EEA area to take holiday or to visit family or even to go for longer term visa arrangements in the Schengen zone.  In order to do this, they need a Schengen (or national) visa.  This appears to be a fairly straightforward process, but hints and tips can always be helpful.  Without focusing on any individual's circumstances, what are some helpful hints that can improve the likelihood of a successful application?


What is the command to move the all files to target directory except *.trg files?  Tried the below command but it's not working:  mv !(*.trg) tgtdir

I have a directory that contains the following:  x.pdf y.zip z.mp3 a.pdf   I want to delete all files apart from x.pdf and a.pdf. How do I do this from the terminal? There are no subdirectories so no need for any recursion.


In the wikipedia article about quantum harmonic oscillator, this image describes the probability density of finding the particle at certain points for the different eigenstates :     I am confused that the probability density is zero at certain points. Does that really mean that it is impossible to measure the particle at those points ? Can we experimentally verify this ?

I have recently read that an orbital node in an atom is a region where there is a 0 chance of finding an electron.  However, I have also read that there is an above 0 chance of finding an electron practically anywhere in space, and such is that orbitals merely represent areas where there is a 95% chance of finding an electron for example.  I would just like to know if there truly is a 0 probability that an electron will be within a region defined by the node.  Many thanks.


Case in point:   This question was quickly closed (and rightfully so) as unclear. The poster then clarified in comments. I edited the question to include the poster's comments. The question is no longer as unclear (it's arguable clear enough to get an answer, at least) and would not need to be on hold for that reason any more.  The reasons for it being put on hold were, in my opinion, addressed. That suggests the question should be reopened. However, if it were to be reopened it would probably be closed again for minimal-understanding.   My question is: Is there anything to gain from voting to reopen a question that has been updated to resolve the original close reason, but still has multiple other, different issues remaining?  This example may not have been the best because in this case, the OP's question was answered to his satisfaction in the comments. We move on, no harm done. But for other questions where the answer is not so straightforward and not quickly provided in comments, what's the best way to handle this?

I have been through a few re-open requests and some shared a similar issue.  Like   It was originally closed as unclear. Then the OP changes the question but his edit still makes it a very poor question with no research shown and the answer could be as simple as yes or no - only if the question didn't get closed.  I judge looking at the new(revised) question ignoring the original closure reason. Even though the revised question still doesn't make a good question and would probably get closed very quickly I just leave it closed with the old closure reason.    Am I doing the right thing or should we re-open and let it get closed for a new - more appropriate reason?   The answer seems obvious: leave it closed, but    is this how all of you process re-open queue?   Note: I am asking because sometimes I've noticed others voting to re-open such cases and I want to confirm that I am on the same page as everyone else


Having myself just been through this, it is very frustrating when a questions is closed when the OP has tried to find an alternative exchange site or other site to answer the question.  Instead of moderators jumping straight on the 'hold' button seconds after a question is answered, is there anyway they can maybe suggest an alternative option that might help get the question answered?  After all, lets remember that these sites were not created to satisfy some moderators ego of how many questions they can patrol, instead moderators should help people who are struggling to find the correct forum for their question.

Been a few blogs on , and I get the point. However, would a staging SE help solve some of these issues like community overlap. I understand , but how can someone not yet a part of a community know to do so. Some of the point of SO is that you often don't know what to ask exactly, and we help clear that up. So, I wonder, rather than "playing hot potato" would it be useful to have a site that's simply for temporarily holding questions and such.  It would be the alternative to migrating to another site where you dump all responsibility on that site. This area, all communities are responsible for. It would be a good place to ask a question if you don't know where to ask. The blog I linked talks about phrasing to a specific audience. For someone that doesn't know, the audience is better at selecting which questions are directed at them. As SE grows, the amount of communities will mean more overlap. Right now it may be reasonable to expect people to be able to predict the best community, but will it always be that way?  Some restrictions:  It would be accessible by all communities. The question could be edited, but not answered. The question could be exposed to more easily tracked/understood/etc. automated janitorial work.  Just a helpful thought.


i have installed windows 8.1 and ubuntu on my new computer, and get the following error when i try to mount the device. I already googled and turned all the hibernation / fastboot options off, but i still have this problem. The option secure boot is disabled in the UEFI-BIOS aswell. Does anyone have an idea, what might cause the problem? And is there a chance to overwrite the Ubuntu error and mount the device -w to do some testing?  Thank you,  here's the error-message:  Error mounting /dev/sda2 at /media/simon/9A3E3EEF3E3EC453: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/simon/9A3E3EEF3E3EC453"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda2': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


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?


I would need some help on my rest app plz. I'm trying to understand the reason of this error message "Trying to get property of non-object" but I'm stuck  I commented the following snippet who's manage a formations create form :  header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");  include_once '../config/database.php';      // Database connection file  include_once '../objects/formation.php';    // Formation class file  $database = new Database(); $db = $database->getConnection();  $formation = new Formation($db);            // class Formation                $data = json_decode(file_get_contents("php://input"));  // Posted datas   $formation->formation = $data->formation;   // This line return an error : Trying to get property of non-object  // var_dump($data)      return an object(stdClass) with a ["formation"] property // var_dump($formation) return an object(Formation) with a ["formation"] property  if($formation->createFormation()){   echo '"Message": "Success"';   }   else {     echo '"Message": "Failed"';   }   I don't understand why the line "$formation->formation = $data->formation;" doesn't work ...  Did I use a wrong syntax ? Any advices ? Thx

It appears that in PHP objects are passed by reference. Even assignment operators do not appear to be creating a copy of the Object.  Here's a simple, contrived proof:  <?php  class A {     public $b; }   function set_b($obj) { $obj->b = "after"; }  $a = new A(); $a->b = "before"; $c = $a; //i would especially expect this to create a copy.  set_b($a);  print $a->b; //i would expect this to show 'before' print $c->b; //i would ESPECIALLY expect this to show 'before'  ?>   In both print cases I am getting 'after'  So, how do I pass $a to set_b() by value, not by reference?


I need to rename an iOS project. Is there a way to do this without starting a whole new project?   All other info I found were related to Xcode 4 or old and those methods seem to crash the project - I created a snapshot before I tried any name changing.

I began an iPhone project the other day with a silly development code name, and now I want to change the name of the project since it's nearly finished.   But I'm not sure how to do this with Xcode, trying the obvious of changing the application's name in the info.plist file, causes the signing process to go wrong (I think...) and my app won't launch giving me a Launcher error.  I guess I could make a new project and copy paste everything over, but it seems so primitive that I'm hoping for a more civilized solution.


int limit = 100; IEnumerable<int> primes = Enumerable.Range(2, limit - 2 + 1);  for (int i = 2; i*i <= limit; i++) {     primes = (from item in primes where (item % i != 0) || (item == i) select item); }  foreach (int prime in primes) Console.WriteLine(prime);  Console.ReadKey();   This is my code to get prime numbers from 2 to 100. Why doesn't it work? Help, please.

I met an interesting issue about C#. I have code like below.  List<Func<int>> actions = new List<Func<int>>();  int variable = 0; while (variable < 5) {     actions.Add(() => variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable?


I am running Ubuntu 13.10 32bit. Since a couple of days Skype doesn't work anymore: "Skype can't connect". It is Skype version 4.2. I know there have been other posts regarding this problem.  it is suggested to update to Skype 4.3 using the software center. I tried this but as far as I can see it the Skype version on the software center is still 4.2. I tried ot anyway, that is, I first uninstalled then reinstalled Skype via the siftware center. But as expected it is still version 4.2. And there it still does not work. Also I checked  site ... but they do not have a version for Ubuntu 13.10. For some reasons I would not like to update Ubuntu to V 14.04 at this point so I would be happy if someone came up with a solution how to fix this problem on Ubuntu 13.10.

Note: The legacy Skype for Linux application (v4.*) is now discontinued and was removed from Canonical’s partner repositories, so this question and its answers are obsolete. Please refer to  of our .  Skype 4.3 is just released with considerable improvements. As a regular Skype user I want to use the latest Skype on my Ubuntu 14.04, but there is no updates from Update Manager. Even in Skype website only Skype 4.3 is available only for Ubuntu 12.04. Is there anyway to use this latest Skype on Ubuntu 14.04 or how much we have to wait for the update?


I am reading the book Development Economics through the Decades: A Critical Look at Thirty Years of the World Development Report by Shahid Yusuf (2008). I struggle to understand the meaning of " functional" in the following sentence:     They are at best functional and at worst weak.   Here is the full context:      The interest of policy makers lies not in whether the state should be large or small or more or less interventionist; the interest is in what specific forms of intervention over a period of time yield the best results under similar external circumstances. The same is true regarding institutions. Everyone can see that market institutions in successful East Asian industrializing countries are at best functional and at worst weak and minimally supportive.   I would be grateful if anyone could explain meaning of the phrase in that last  sentence.

state that "at best" is an idiom. But, what is the grammatical function of "at best" (for example, in the below sentences?)        Their response to the proposal was, at best, cool.   The government's response seems to have been at best confused and at   worst dishonest.   If he drops the course now, at best he’ll get an incomplete, and he could fail.      Thanks


Whenever I try to kill the Devil I die (often when I try I end up passing him and then I can't hurt him because he is behind me).

Currently as soon as I reach him I get destroyed. I've tried ranged attacks, summoning, teleporting, and using my massive enchanted spoon, but to no avail. What is the tactic for beating the devil?


I'm looking for an axiomatization of the natural numbers similar to ZFC or the standard axiomatization of set theory in the language of the first order predicate calculus such that the axiomatization only has one unique model of countable cardinality. I want one that excludes the nonstandard models of the natural numbers. Can anyone cite a reference?

One of the nicer consequences of compactness is that there is no statement in first-order logic whose content "$\leq$ is a well-order". So we can show that there are countable structure $(M,\leq)$ which are elementarily equivalent to $\Bbb N$, but not isomorphic to it.  What about adding $S,+,\cdot$ and $0$? Well. Also not very good. The theory of the structure $(\Bbb N,0,S,+,\cdot,\leq)$ has $2^{\aleph_0}$ non-isomorphic countable models. This shows that none of these additions get us any closer to finding an $\aleph_0$-categorical theory for $\Bbb N$.     Question. Is there a finite (or countable if needed) first-order language which includes $\leq$, and an $\aleph_0$-categorical theory $T$ whose countable structure is order isomorphic to $(\Bbb N,\leq)$?


I need to install old firefox 57 so I can use my listen on repeat app. Won't work in quantum firefox. Trouble is I have NEVER understood how to extract tar files. Instructions from any site just don't ring my bell. Any suggestions. I'm using ubuntu 18.04.

This  asks how to install FF32 bit while keeping the 64 bit.  I want the much more simple thing: is there a canonical way to install firefox 52 ESR as "default" firefox in my 16.04?  I found this  ... but there are no packages; probably no wonder given the fact that the linked blog article dates back to 2012.  So, 2017, Ubuntu 16.04; how to install FF 52 ESR (as I simply need the java plugin to work for me).  ( my current solution: I downloaded the TAR file from mozilla, extracted that to /opt; and then changed /usr/bin/firefox to be a link to that ESR version of firefox. works, but ugly )


Something that occurred to me...   If midichlorians are just cells living inside a living host, and total number of midichlorians determines just how powerful you are in the force, wouldn't removing a substantial amount of blood in the form of robotic appendages significantly reduce the midichlorian count, thereby making you much less powerful?  Seems like Darth Vader should have lost quite a bit of his force powers when he got robotic legs and arms.

From what I understand, midi-chlorian count is a strong indicator of ability in the Force (though there are other factors as well). So it seems like when Anakin loses his arm or Luke loses his hand, their midi-chlorian counts (and thus their Force ability) should slightly diminish.  Is this the case?


byte[] val = { 3, 4, 5 };  Dictionary<String, Object> dict = new Dictionary<String, Object>(); dict.Add("val", val); //...  string request_json = new JavaScriptSerializer().Serialize(dict); Console.Out.WriteLine(request_json);   This produces  {"val":[3,4,5]}   What's the best way to convert val such that the above produces the following (or equivalent) instead:  {"val":"\u0003\u0004\u0005"}   (This is passed to a web service which expects a string of arbitrary bytes rather than an array of arbitrary bytes.)    In case it helps, I would have used the following in Perl:  pack "C*", @bytes   A more descriptive Perl solution would be:  join "", map { chr($_) } @bytes

How can you convert a byte array to a hexadecimal string, and vice versa?


so i had this problem where i generated numbers from 0-1 with a step of 0.01 but the numbers have so many decimals like 0.010101010101.I only need it in the form 0.01 with two decimals.  How do i remove the rest of decimals ?

I want a to be rounded to 13.95.  >>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999   The  function does not work the way I expected.


I have been on this for a while, considering my low php knowledge. Anyway I would like a view that lists users with total number of articles created, total number of those articles that are published and total number of those articles that are not published per user. I have looked around for an answer to this and the closest I get is node view count which does not do what I need.

I created a view to show Users. These users can create nodes of the "Questions" content type.  The view has to render a table to show how many (the total number) Questions the user has created. Something like:  User +++ Questions created John --- 10 Ted  --- 4 Alf  --- 19


Ok, I've spent multiple hours on this issue. I've got some javascript that needs to split a string before a word after a certain amount of characters. So far, I've come up with a solution, but this behaves strangely. Look at this example:   var text1 = "Apple MacBook 12” Retina 2016 Spacegray (MLH82N/A)"; var text2 = "Apple MacBook 12” Retina 2016 Spacegray (MLH82N/A)"; var regex1 = /.{24}\S*(\s|-)+/gi; var regex2 = new RegExp(".{24}\S*(\s|-)+",'gi'); //var res1 = text1.replace(regex1, "$&@").split('@').join("\n").replace("\n", "
"); //var res2 = text2.replace(regex2, "$&@").split('@').join("\n").replace("\n", "
"); var res1 = text1.replace(regex1, "$&@"); var res2 = text2.replace(regex2, "$&@");  console.log(res1); console.log(res2);    regex1 gives the wanted result, but the number 24 in the regex needs to be a variable, which makes it impossible to use regex1 because that doesn't support variables. If anyone can point me in the right direction. I would be forever thankful! Edit: the marked  I have read, but the problem is that the 'exact' regex doesn't output the same result. The RexExp-object is the weird one. Answer: As the total noob I am, I forgot to escape the backslashes in the RegExp-object. Look at this working code while I go cry in a corner...   var text1 = "Apple MacBook 12” Retina 2016 Spacegray (MLH82N/A)"; var text2 = "Apple MacBook 12” Retina 2016 Spacegray (MLH82N/A)"; var regex1 = /.{24}\S*(\s|-)+/gi; var regex2 = new RegExp(".{24}\\S*(\\s|-)+",'gi'); //var res1 = text1.replace(regex1, "$&@").split('@').join("\n").replace("\n", "
"); //var res2 = text2.replace(regex2, "$&@").split('@').join("\n").replace("\n", "
"); var res1 = text1.replace(regex1, "$&@"); var res2 = text2.replace(regex2, "$&@");  console.log(res1); console.log(res2);

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


I have a voucher for $1000 from American Airlines.  How do I turn that into cash so I can use it to book a flight?

Recently I traveled with American Airlines. I had a bad experience as I felt they were terribly outdated, so I complained with their customer service, who, ironically, gave me a paper voucher that I can redeem on my next flight.  Now... seems like this paper voucher that looks like a plane ticket can't be used while booking online, is that true?  How I can redeem it? I read somewhere that I have to do a phone reservation and then mail the voucher. Really? That's so outdated


I currently have my ToC formatted exactly as I need it except I need the word "Chapter" to appear before the chapter number.  i.e:  I want to see  Chapter 1:  Title       instead of             1:  Title.   After reading the PDF regarding the tocloft package it seems that the correct way to take care of this is with the command:  \renewcommand{\cftchappresnum}{Chapter }   citing pg. 11 of the document.  When I do this I see no result; nothing in my document changes.  I have seen others resolve this issue in a similar way so I am very perplexed as to why it is yielding me no result.  Is it possible that the issue is that I am using the report class?  MWE:  \documentclass[12pt]{report}  \usepackage{amsmath, amsfonts, amssymb, amsthm, fancyhdr, enumerate, comment, titlesec, tocloft, lipsum, titletoc}  \begin{document}  \renewcommand{\contentsname}{~~~~~~TABLE OF CONTENTS}  \renewcommand{\cftpartdotsep}{\cftdotsep} \renewcommand{\cftchapdotsep}{\cftdotsep} \renewcommand{\cftchapleader}{\cftdotfill{\cftsecdotsep}}  \renewcommand{\cftchappresnum}{\chaptername~}  \setlength{\cftchapnumwidth}{6em}  \tableofcontents \thispagestyle{fancy}  \chapter{First Chapter} \chapter{Second Chapter}  \end{document}

At here  the word Chapter added in \documentclass{book}. Now I want to use them in \documentclass{report}. How can I do that?


I have found when ROS went out a legendary ring with this stats:   429 vit ( rerolled ) 94 all res 7.0% atk speed   I don't remember which stat I rerolled into vit but I do remember I had only 4M thoughness so I was forced to find some survivability somewhere in the gear.  Now I can reach 9.0M thoughness, so I feel confident to reroll vit again into crit chance or crit damage. I don't have any spreadsheet and I'm too lazy to do the math so I'm asking: Which stat is better to look for? Will I get more dps with 6.0% crit chance or with 50% crit damage? Is it better, indeed, min-max damage or some plain dex - using Seize the iniziative as passive it could balance dps and thoughness?   Edit: Crit chance: 30.5% Crit damage: 392%

I am wondering what is the optimal crit chance/damage ratio? After plugging in numbers into the equation below, I noticed that the magic value appears to be around 1:3. Is my math flawed?   Equation: z=1+xy where z = damage output, x = crit chance, y = crit damage.


So say I'm in a directory that is deep within a file structure, such as  /home/cory/projects/foo/bar/bash/baz   I know that in either the current folder baz or one of the folders above me (such as home, cory, projects, foo, bar, or bash) there is a file named happy.  How can I find that file without searching a lot of extra folders?

I'm nested deep in a file tree, and I'd like to find which parent directory contains a file.  E.g. I'm in a set of nested GIT repositories and want to find the .git directory controlling the files I'm currently at. I'd hope for something like  find -searchup -iname ".git"


I purchased a HP laptop with model number hp 15-ay012nx. The Wi-Fi works perfectly in Windows but is really very weak in Ubuntu that I can use Wi-Fi in laptop only when I place laptop very near to my modem. I tried to solve the issue with some related  results but, I think its not specific to my model. The network details are as follows.    03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723] Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:81c1] Kernel driver in use: rtl8723be Kernel modules: rtl8723be   I'm running Ubuntu 18.04 with Linux kernel 4.15.0-36-generic.

I have the Realtek rtl8723be driver on my HP-Pavillion Notebook.  While installing Ubuntu 18.04 LTS through plug-n-play option, I tried the following commands before actual installation:  sudo modprobe -r rtl8723be sudo modprobe rtl8723be ant_sel=2   and the wifi was working just fine.  But after installation alongside Windows 10, somehow the wifi stopped working properly, and now only wifi networks very close to the device appear.  I tried installing realtek software from  as mentioned in the README. But still no progress.   I even tried changing ant_sel parameters, then saving them to my /etc/modprobe.d/rtl8723be.conf and then performing a cold boot. But still no progress.  I also tried installing from , but I got errors.  sudo lshw -class network   *-network                         description: Wireless interface        product: RTL8723BE PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:08:00.0        logical name: wlo1        version: 00        serial: 70:77:81:bf:a7:b9        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=rtl8723be driverversion=4.15.0-36-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11        resources: irq:18 ioport:5000(size=256) memory:c6100000-c6103fff   *-network        description: Ethernet interface        product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:09:00.0        logical name: eno1        version: 0a        serial: 3c:a8:2a:ba:12:6f        size: 10Mbit/s        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8107e-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:19 ioport:4000(size=256) memory:c6004000-c6004fff memory:c6000000-c6003fff   *-network        description: Ethernet interface        physical id: 3        logical name: enp0s20u2        serial: ea:f8:17:e8:82:30        capabilities: ethernet physical        configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.42.6 link=yes multicast=yes   Can anyone suggest what to do now?


Notification emails from Stack Exchange say:     1 new items in your Stack Exchange inbox   If you have only 1 new item, that should be "1 new item", singular.

Just received the following e-mail, quickly looked at the title and saw "new items in your Stack Exchange inbox" - at a closer look, it turns out there was just one new item in my inbox, so it shouldn't say "1 new items". Same thing goes for the content, where it says "The following items were added [...]".  Here's a screenshot with the problems highlighted:    It should be a fairly easy thing to fix and it just seems like something that should've been done a long time ago, especially considering the site's technical aspects.


i have a hash that is generated from a string using this code:  public static byte[] GetHash(string inputString)         {             HashAlgorithm algorithm = MD5.Create();               return Algorithm.ComputeHash(Encoding.UTF8.GetBytes(inputString));         }   and now, i want to get back the string that hash is generated from, how can i do that? is there any better suggestion to encrypt some data, so that i can retrieve them back again?  i tried this method but its not returning that string:  public string ToHex(byte[] bytes, bool upperCase)         {             StringBuilder result = new StringBuilder(bytes.Length * 2);              for (int i = 0; i < bytes.Length; i++)                 result.Append(bytes[i].ToString(upperCase ? "X2" : "x2"));              return result.ToString();         }   also, i tried this one:  public static string GetHashString(string inputString)         {             StringBuilder sb = new StringBuilder();             foreach (byte b in GetHash(inputString))                 sb.Append(b.ToString("X2"));              return sb.ToString();         }

How can I encrypt and decrypt a string in C#?


Ubuntu 15.04 64-bit desktop.  After install system X server run with -nolisten tcp option:  922 tty7     Ssl+   0:05  \_ /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch   I add xserver-allow-tcp=true into  /etc/lightdm/lightdm.conf and reboot. So X now started without -nolisten tcp:  2688 tty7     Ssl+   0:07  \_ /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 vt7 -novtswitch   But X not actually listen any tcp port:  sudo netstat -Wpnatu Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      645/cupsd        tcp        0      0 192.168.1.110:55524     192.168.1.2:22          ESTABLISHED 4016/slogin      tcp        0      0 192.168.1.110:1008      192.168.1.2:2049        ESTABLISHED -                tcp6       0      0 ::1:631                 :::*                    LISTEN      645/cupsd        tcp6       1      0 ::1:57617               ::1:631                 CLOSE_WAIT  2955/indicator-prin tcp6       1      0 ::1:57413               ::1:631                 CLOSE_WAIT  782/cups-browsed tcp6       1      0 ::1:57412               ::1:631                 CLOSE_WAIT  782/cups-browsed udp        0      0 0.0.0.0:32586           0.0.0.0:*                           790/dhclient     udp        0      0 0.0.0.0:68              0.0.0.0:*                           790/dhclient     udp        0      0 0.0.0.0:631             0.0.0.0:*                           782/cups-browsed udp        0      0 0.0.0.0:5353            0.0.0.0:*                           663/avahi-daemon: r udp        0      0 0.0.0.0:44534           0.0.0.0:*                           663/avahi-daemon: r udp6       0      0 :::40820                :::*                                663/avahi-daemon: r udp6       0      0 :::54127                :::*                                790/dhclient     udp6       0      0 :::5353                 :::*                                663/avahi-daemon: r   So, what else i must to do?  UPD:      With Xorg 1.17 and later, -nolisten tcp is the default, and you need   to explicitly state -listen tcp to enable tcp connections.   According this comment by alanc, i try add another line to lightdm.conf:  xserver-command=X -listen tcp   Finally all work as expected. My result lightdm.conf:  [Seat:*] autologin-guest=false autologin-user=ubuntu autologin-user-timeout=0 autologin-session=lightdm-autologin xserver-allow-tcp=true xserver-command=X -listen tcp   And it's completely solved my problem.

This is on Ubuntu 10.10 (Maverick Meerkat) 64-bit desktop.  I want to make my X server listen to remote connections from clients in other machines on the local network. I know about ssh -X and that is not what I want. I vaguely remember changing something like TCPListen from no to yes, but I don't remember where this change should be applied.  I'm interested in either a GUI method or a CLI one.  PS editing /etc/X11/xinit/xserverrc to remove the -nolisten tcp option and rebooting does not work.


Trying to use point and click      External Services   but unsuccessful with      Named Credential authorization.   A 3rd party service just requires the Authorization Token be sent with request. Not seeing any options in Named Credentials to use this? Before being pointed to creating an Apex Class or Connected App I want to confirm that the point and click approach for this is NOT possible today.   which seems to confirm the above but not clearly.  API I'm trying to use is pretty basic . Seems like rest of External Service piece may be working when used in a Flow.

I have a named credential as follows:  Name   Test_Credential URL    https://www.somesite.com Identity Type    Named Principal Authentication Protocol    Password Authentication Username   foobar Password   mySomeSiteDeveloperKey Generate Authorization Header   FALSE Allow Merge Fields in HTTP Header    TRUE Allow Merge Fields in HTTP Body     TRUE   The service that I am trying to authenticate against uses URL parameters to pass in the developer key and username. Is there any way to use  to pass those in to the URL?   The Named Credential attributes seem not to get decoded until the request is actually sent, as debugging the endpoint, or headers if I set them per the linked doc, show the un-merged data. I can get the callout to go to the right place, and return the expected error because the auth information is not provided. Anybody know of a "show me my HTTP request" site that I could point to to get a better idea of how this works?  I've tried both of these:  req.setEndpoint('callout:Test_Credential/api/action?id={!$Credential.Password}&account={!$Credential.UserName}');  req.setEndpoint('callout:Test_Credential/api/action' + '?id=' + '{!$Credential.Password}' + '&account=' + '{!$Credential.UserName}');   (Edited to remove the part about $Credential vs. $Test_Credential as I was able to determine that it is the former, and see the merged creds by calling out to .)


I'd like to add some small caps to the headers. How could I do that? This is my MWE:  \documentclass[a4paper,12pt,twoside]{book} \usepackage[utf8]{inputenc} \usepackage{fontspec} \setmainfont{Baskerville} \usepackage{lipsum} \usepackage{fancyhdr}    \pagestyle{fancy} % We don't want chapter and section numbers \renewcommand{\chaptermark}[1]{\markboth{#1}{}} \renewcommand{\headrulewidth}{0pt} \fancyhf{} % sets both header and footer to nothing \fancyfoot{} \fancyhead[LE,RO]{\thepage} \fancyhead[CE]{\textsc{A title}} % even pages: chapter title \fancyhead[CO]{\textsc{\leftmark}} % odd pages: book title  \begin{document}  \chapter{A title}  \lipsum  \end{document}

MWE:  \documentclass[a4paper,12pt,twoside]{memoir} \usepackage{DejaVuSerifCondensed} \usepackage[T1]{fontenc} \begin{document} \noindent\scshape{Hello World}\\ \textsc{Hello World} \end{document}   Explanation and question:  As you can see, I am working with a memoir document class and I've load a font DejaVuSerifCondensed, I am trying to obtain small caps for my header (which I did not place in the MWE as unnecessary). However I can't obtain the desire effect with the \scshape command nor with the \textsc{}.  I've seen other questions like     .   But either they do not adapt to my problem (for what I can see) or they do not solve the problem (following the instructions there and "inserting" the piece of code in mine).  Question here is: is there a general method (piece of code or something) to obtain small caps from a custom font (even if that is one I upload with a ttf)?, if not, what would be the piece of code to select the standard small caps font?


. Is there any other basis than the Right Hand Rule when determining the direction of the Cross Product?   Is there a Mathematical or Scientific, or any explanation/proof that points the direction of the Cross Product?  9 x 23 sin(30) = 108 1/2 = 54... Ok, So I got c = 54... but doesn't tell what direction, just basing on the Right Hand Rule.

$\mathbf{a}\times \mathbf{b}$ follows the right hand rule? Why not left hand rule? Why is it $a b \sin (x)$ times the perpendicular vector?  Why is $\sin (x)$ used with the vectors but $\cos(x)$ is a scalar product?   So why is cross product defined in the way that it is? I am mainly interested in the right hand rule defintion too as it is out of reach?


Does this status mean it has been sent to referees? Or is could it still be desk rejected?

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


I live in the US and I'm not a US Citizen. Just applied to the UK visa and received my passport back. I was supposed to go on a work project to India early August and on my way back I wanted to stay in London visiting friends. Which is why I put August 7th as a start date. However, the project changed and now it's a week earlier, meaning i will arrive in the UK (Transit) by July 31st. Am i going to be able to entry the UK? Can I change the date of entry? What can I do right now? My flight to India leaves July 22nd.

I just received my UK visa and the start date is August 8th. I actually stated that my travel date would be in August because I was under the impression that the visa application needs to be made 2-3 months before intended travel. Based on my current schedule and my family availability (in the UK) July is a more favorable time to travel.   Can I ask for a change of date? Is this worth the trouble? And what would be the specific process of achieving this change? I currently live in the USA but I am not a US citizen, I am Ghanaian.


Let's say I have built a game for Android at the size of 480x854. If I test this on my device that has this resolution I suppose it will work and look property. But at a different aspect ratio will the game work and look good? Also, what is the most efficient and easy way to handle this?  Thanks in advance.

A long time ago, 4:3 was pretty much the only apect ratio you would find on a PC. Today the most common one is 16:10, but most new monitors (especially laptops) are 16:9  I'm writing a 2D platformer, and I can't decide how I should handle all the different ratios.  Here are some ideas:   4:3 gets more content, widescreens are cut on top and bottom 16:9 gets more content, the others are cut left and right The game is in 16:9 with black horizontal bars for other ARs The game is in 4:3 with black vertical bars for other ARs


In the log file -   mmc0: Unknown controller version (3). You may experience problems   and a few more error messages. Shutdown hangs for eternity.  nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 022554  [ IBUS ] sd 2:0:0:0:  [sda] No Caching mode page found      wpa_supplicant[1143]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none  wpa_supplicant[1143]: dbus: Failed to construct signal  wpa_supplicant[1143]: Could not read interface p2p-dev-wlp5s0 flags: No such device    And then multiple:  INFO: task kworker/u8:0:5 blocked for more than 120 seconds.    Has anyone else encountered this? Is there a fix / workaround?  The earlier version (17.04) does not have this problem.

I decided to upgrade to 17.10 on my Thinkpad.  Now every time I try to shut it down via console or menu) or reboot it, it takes ages.  TTY gives me several errors connected to hung_task_timeout_secs, reaching from kworker, over networkmanager down to wpa_supplicant.  I tried reinstalling with different ISOs (daily-build from 2 days ago, beta2, and the rc one from today) and still get the same error every time.  Any ideas what could cause that issue? Right now I'm running 17.10 on two other, different PCs without any problems whatsoever.  EDIT: deborphan doesn't return any orphaned packages. I think I might have found something though. I decided to completely wipe the disc, including my dualboot windows. Reinstalled, and everything worked fine. Today in university the problem reappeared.  Now the interesting part is: I think it is related to my wifi. At home, during installation and after, I had it plugged in via cable, and had no problems at all. But with only wifi in university it reappeared. So I gave it a try and plugged in the cable again at home, and it works again. Removed cable, restarted, and the problem reappears. Wifi-Card is a Qualcomm Atheros.


When I type youtube-dl -U, I get this error:  youtube-dl: error: youtube-dl's self-update mechanism is disabled on Debian. Please update youtube-dl using apt(8). See https://packages.debian.org/sid/youtube-dl for the latest packaged version.

I use youtube-dl to download videos for watching later offline. Usually, it works fine. However, due to frequent changes on the video sites, it sometimes requires a quick update. It wasn't a problem before on 13.04 but after upgrading to 13.10, I get  # youtube-dl -U It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.   I tried updating it via apt-get but there is no new package. So the app's update mechanism has been disabled and the maintainers aren't keeping up, what is the solution? How do I update it?  And why was it changed at all? It was updating a package manager version just fine in raring.   I'm already running into compatibility problems.   $ youtube-dl "http://vimeo.com/55784152" [vimeo] 55784152: Downloading webpage [vimeo] 55784152: Extracting information ERROR: Unable to extract info section; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.   QUICK UPDATE:  As requested,  # type youtube-dl youtube-dl is hashed (/usr/bin/youtube-dl)  # apt-cache policy youtube-dl youtube-dl:   Installed: 2013.08.29-1   Candidate: 2013.08.29-1   Version table:  *** 2013.08.29-1 0         500 http://pl.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages         100 /var/lib/dpkg/status


i cant solve this exercise, if you can help or give me a lead. I would like to also say its not marked.  Let $f$ an application from $E$ to $F$, with $\#E=\#F=n$. Show that these propositions are equivalent:    $f$ is injective $f$ is surjective $f$ is bijective   Going from 2 to 3 is fairly simple, and from 3 to 1 is automatic but I can't go from 1 to 2.  Thank you, cordially, JF

Suppose $X$ is a set and $f : X \to X$ is a function.  If $X$ is a finite set, prove that $f$ is injective if and only if $f$ is surjective. Show that when $X$ is an infinite set, the statement is not true in general.   For that, let $X = \mathbb{R}$ and find a function $f: \mathbb{R} \to \mathbb{R}$ which is injective but not surjective, and a function $g: \mathbb{R} \to \mathbb{R}$ which is surjective but not injective  My attempt at the first part   Suppose that the function is surjective but not injective. Let $a,b \in X$ such that $f(a)=f(b)$ but $a \not =b$. Now since this is a finite set mapping to itself then there are not enough elements in $X$ to map to $X$ since two elements were used to map to one element, thus the function can't be surjective. Therefore if the function is surjective it is also injective.   Now suppose that the function is injective but not surjective. Let $a \in X$ such that $f(b)\not =a$ for all $b \in X$. Since the function was assusmed to be injective each $a \in X$ must map to an element of $X$, thus must have two elemetns in $X$ mapping to the same element in $X$. Hence the function can't be injective, therefore if the function is injective it must be surjective.   Would an exponetial function work for injective but not surjective since can't map to negative numbers. And an example of a function that is surjective but not injective could be a log function since none of the negative numbers get mapped to anything?   Also I'm having trouble seeing why it has to be finite for the first part to work. I understand it has something to do with the pigeonhole principle but its not that clear to me.


I am using date time field (Calendar control) in SharePoint 2013 page layout, the calendar control is half way down to the page. Once calendar control is clicked, it takes to the top of the page instead of positioning the right control in chrome browser. Its working fine in IE and Firefox.  Is this default behavior of Chrome or is this resolvable issue?  Same issue reported on Technet with no answers:

I have an EditForm in which a Date field is located towards the bottom. When clicking the DatePicker button in Chrome, the form jumps to the top forcing the user to scroll to the bottom again. This is a problem for my users and they don't want to use Internet Explorer (where it works). Is there a way to preserve the scroll position so it doesn't jump to the top of the form? ty


I am trying to uninstall Viber but I can't. This is what happens:  $ sudo apt-get remove viber  Reading package lists... Done Building dependency tree        Reading state information... Done E: The package viber needs to be reinstalled, but I can't find an archive for it.   How can I uninstall Viber successfully?

Running Synaptic I get the following error message:  E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report.   Upon accepting the message, Synaptic quits.


I can't understand if "banana" or "a banana" has the same meaning. I can understand that "the" and "a" are for definite and indefinite nouns. But what about those which aren't preceded by either of them?

How do I know whether to use the definite (the) or indefinite (a, an) article, and when to omit it altogether?


Looking through the webcomic, I came across one of my favorite comics:    (from )  It seems that people have an ongoing interest in results in mathematics that are true, but highly unintuitive, like the Banach-Tarski Paradox.  However, what results are there that are seemingly obvious and intuitive, but difficult to prove (or perhaps have non-obvious intricacies)?   I feel that such examples are important for helping people understand the necessity of rigor or that seemingly obvious results are not at all obvious from a mathematical perspective.  (Personally, I don't feel that 'simple' number theory conjectures/results like the ABC conjecture fall under this category, because while simple to state, they are often very removed from reality.)

In , I asked about proof of statements which are simple but incorrect.   Here, I ask about statements which seems, at a first glance, straightforward, but if we try to write a proof, we can see it's much harder than it looked. So I expect the answers to contain:   the statement; why it looks easy to prove; why actually it isn't.


I have xampp installed in my system and wants to connect to a remote mysql database using php. I have access to the remote system.  mysqli_connect("hostname", "username", "password", "database name")   So, apart from providing the details in the above line of code should I make any changes in any settings file or something?

Help!  I have a PHP (PHP 5.2.5) script on HOST1 trying to connect to an MySql database HOST2. Both hosts are in Shared Host environments controlled through CPanel.  HOST2 is set to allow remote database connections from HOST1.  The PHP connect I'm using is:-     $h2 = IPADDRESS;     $dbu = DBUSER;     $dbp = DBPASS;  $DBlink = mysql_connect($h2, $dbu, $dbp);   This always fails with:-  Access denied for user '<dbusername>'@'***SOMESTRING***' (using password: YES)   nb: SOMESTRING looks like it could be something to do with the shared host environment.  Any ideas???  BTW: I can make remote connections to HOST2 from my laptop using OpenOffice via ODBC, and SQLyog. The SQLyog and ODBC settings are exactly the same as the PHP script is trying to use.


I ran the binomial logit GLM which predicts whether a claim occurs in a policy or not. My estimated coefficients are as follows: Intercept: -2.68 Car Type (Saloon is base level) SUV: -0.07 Bus: 0.15 Use (Private is base level) Commercial: -0.09 Am i right to assume here, that if a car is Saloon and is used as a Private car, the odds of claim occurrence are exp(-2.68) = 6.86%? And the probability of claim occurrence would be exp(-2.68)/(1+exp(-2.86)) = 6.42%? What if a car is a Bus and is used for Commercial reasons? What would be the probability of claim occurrence then?

I have the following probability function:  $$\text{Prob} = \frac{1}{1 + e^{-z}}$$  where  $$z = B_0 + B_1X_1 + \dots + B_nX_n.$$  My model looks like  $$\Pr(Y=1) = \frac{1}{1 + \exp\left(-[-3.92 + 0.014\times(\text{gender})]\right)}$$  I understand what the intercept (3.92) means, but I'm now sure how to interpret 0.014. Are these still log odds, odd ratios, or can I now assert that for each incremental odds change is gender, females are 0.014 more likely to win than men. Basically, how am I to interpret the 0.014?   Basically, I want to take the probability function and actually implement it in Java for a specific program that I'm writing, but I'm just not sure if I'm understanding the function correctly to implement it in Java.  Java code example:   double p = 1d / (1d + Math.pow(2.718d, -1d * (-3.92d + 0.014d * bid)));


I saw somewhere that there was an option in Blender that allows you to modify the UV map at the same time you modify the topology of the object. I remember seeing a video where a box working as a wall had some faces extended to make the wall larger. In that video, the UV islands for those walls extended at the same time so the texture proportion wasn't affected. I can't find how to do it? Apologies if I have just dreamed it but I remember clearly and it is really frustrating I cant find how to do it after googling for a while.

Now that I'm using Blender 2.9, I've been excited about using the Correct Face Attributes checkbox, which will allow me to resize my mesh and have the texture naturally extend (rather than be stretched). However, when I click on the Options drop-down, I see only the normal Transform checkboxes (Origins, Locations, Parents). But no other options such as when I'm seeing in all these YT vids where people illustrate it. Is there some new addon that I must activate to add this functionality? Thanks.


A circle is drawn that intersects all three sides of $\triangle PQR$ as shown below. Prove that if $AB = CD = EF$, then the center of the circle is the incenter of $\triangle PQR$.

A circle is drawn that intersects all three sides of $\triangle PQR$ as shown below. Prove that if AB = CD = EF, then the center of the circle is the incenter of $\triangle PQR$.     Designate the center of the circle $G$.  Thinking about it a bit, we realize if we could prove the incircle of the triangle and the circle given are concentric, we would know that the center of the circle is the incenter, for they have the same center.    If we shrink the circle given down to the incircle, the incircle should intersect the triangle at the midpoints of $AB$, $CD$, and $EF$.    We therefore denote the midpoint of $AB M$, the midpoint of $CD L$, andd the midpoint of $EF N$.  We know the incircle is concentric to the given circle if and only if $NG$ and $LG$ are congruent, because a circle is a circle if and only if the radii are congruent.  Thus, we must prove $NG\cong LG$.  When proving lengths equal, congruent triangles are always a good idea.  We see that $NGE\cong LGD$ seems likely, and it would also prove our answer if we could prove it.   We know that $GD\cong GE$ because they are both radii of the larger circle, and we also know $DL\cong EN$ because they are both half of two lines that are congruent.  We know $\angle GLD$ and $\angle GNE$ are both right angles, because that is where the smaller circle is tangent to the sides of the triangle.  Thus, $NGE\cong LGD$ by $HL$ congruency.  Because congruent parts of congruent triangles are congruent, we know $NG\cong LG$, which proves $G$ is the center of the incircle.  Is this proof sound?


I am learning java at the moment and I was trying to make a simple program that recieves a username and gives you an opurtunity to change that username...However,the program is always doing the same thing: It doesn't give me a chance to change my username.I am sure that the problem is in the function I made:  public String change (String Accname) {     String chg;     System.out.println("Are you satisfied with this username: "+Accname+"?");     chg=in.nextLine();     if(chg=="yes"||chg=="Yes") {         return Accname;     } else if(chg=="no"||chg=="No") {          System.out.println("What would you want your username to be?");         Accname=in.nextLine();     }     return Accname; }   I wrote this line at the main function:  name.change(username);   (of course,it's not the full code,I gave you the important line). After this line my program gives me the username without an opurtunity to change my username.It's like the program ignores the change function. This problem also happend a while ago in c while i was trying to make a simple program that switches between two numbers.At the end,nothing happens.  If someone could help me,I would really appreciate it!

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?


Since now there is a link to  on the logo on the left of the top bar, can we remove the link that is on the site switcher icon on the right?  The annoying part about it is that, if the page/JavaScript takes a long time to load, clicking on it will not open the site switcher but redirect to . People don't necessarily understand what is going on. For example, a user on Ask Ubuntu  when another user asked him to click on the site switcher:      when i click on it it takes me to another site, the stack exchange home where it shows another login option, not logout. also, this reputation system is insane, this question is meta but i couldn't ask on meta because i don't have enough rep. c'mon, this is just stupid.. at least nikhil was helpful providing me a link to do it   Can we remove this link, and make the button do nothing until the page loads?

Note: I am aware that the site switcher  of the page. This isn't a case of me clicking the wrong icon, it's a case of the site-switcher itself being a link to stackexchange.com (which is  behaviour, and ) for no good reason.      My browser can be pretty slow sometimes, and I often find myself in cases where I want to use the site-switcher . When I do, the site-switcher button acts like a normal link to stackexchange.com.  This is almost exactly never where I want to go when I click that button; pretty much every time I'm clicking on the site-switcher, it's because I want to access…   …the meta for the site I'm currently on …the chat for the site I'm currently on …one of the other sites I frequently use   These are all things that the site-switcher is great at doing. I'm happy, you're happy, everyone's happy. , on the other hand, doesn't really give me convenient access to any site metas, any chat rooms, or even really any other sites.  Sure, sometimes maybe I want to go to check out the hot questions feed, but if I was going to do that there's now a big "Stack Exchange" logo on the top left of the page that takes me right there (and much more intuitively). Having the site-switcher point there by default might've made sense in the old top-bar before there was a dedicated link, but right now it's just redundant and ultimately only exists to cause pain and frustration for all involved.  If you must have that icon point to somewhere, maybe a page that basically duplicates the site-switcher functionality (Even  would be better; at least that's actually "A list of all 171 Stack Exchange sites" like the mouseover text indicates).  Otherwise, I'd be pretty happy if that button just does nothing at all until the magic site-switching menu code I'm actually expecting actually loads up (which is already how the inbox, achievements and help icons behave when their javascript doesn't load).


let $x>0$ And $f(x) =\dfrac{\sin x}{x}$ prove that for every $n$ :  $$|f^{(n)}(x)|<\frac{1}{n+1}$$    for $f^{(1)}$ we have :  $$\frac{x\cos x-\sin x}{x^2}<\frac{1}{2}$$    for $f^{(2)}$ we have :  $$\frac{x^2(-x\sin x)-2x(x\cos x-\sin x)}{x^2}<\frac{1}{3}$$  Now what ?

Suppose $x>0$ and we have function $f(x)=\frac{\sin x}{x}$ how can we show $$\forall n \in \mathbb{N} :|f^{(n)}(x)|\leq \frac{1}{n+1}$$ I need a hint to show this property .Thanks in advance . I tried for $n=1 ,2$  by finding maximum of $|f'| ,|f''|$ but I get stuck to show for $n$


I need to get the variable name instead of the variable value. I have a situation like this: Type1 = 1 Type2 = 2  fields = [Type1, Type2] for field in fields:    value = field.__name__ #or something like     print(value)  Expected result is Type1  Type2  Ty for helping

Say I have a variable named choice it is equal to 2. How would I access the name of the variable? Something equivalent to  In [53]: namestr(choice) Out[53]: 'choice'   for use in making a dictionary. There's a good way to do this and I'm just missing it.  EDIT:  The reason to do this is thus. I am running some data analysis stuff where I call the program with multiple parameters that I would like to tweak, or not tweak, at runtime. I read in the parameters I used in the last run from a .config file formated as  filename no_sig_resonance.dat  mass_peak 700  choice 1,2,3   When prompted for values, the previously used is displayed and an empty string input will use the previously used value.  My question comes about because when it comes to writing the dictionary that these values have been scanned into. If a parameter is needed I run get_param which accesses the file and finds the parameter.   I think I will avoid the problem all together by reading the .config file once and producing a dictionary from that. I avoided that originally for... reasons I no longer remember. Perfect situation to update my code!


As per what I understand Nope is an informal way of expressing the same what no does. Is it appropriate to use Nope in official mails, or is it suggested to use in like whatsapp chat etc. Also why the need for this separate word Nope?

What is the difference caused by using “nope” instead of ”no”?  Is it used because “nope” sounds better and not straight like “no”? In some situations, it feels like nope is better to use than no even though it adds 2 more characters. What is the reason why many use it?


I just added the Nvidia driver PPA ppa:graphics-drivers/ppa, and am noticing that a number of the options in Additional Drivers now have "(open source)" (i.e. first option in image) appended to them instead of "(proprietary)".  Sorry if I'm out of the loop, but I thought Nvidia only provided proprietary drivers, and it was X.Org, the makers of Nouveau, who did the open source stuff.  Can anybody clarify? Thanks!

The proprietary NVIDIA drivers "disappeared" with my latest update:    The option of "Proprietary drivers for devices" is correctly set under the "Ubuntu Software" tab. I have the graphics-driver PPA (ppa:graphics-drivers/ppa) correctly added to my sources.  Any ideas on how to bring the proprietary drivers back?  PS1: I need them because some of the games I play under wine don't work without them, for whatever reason.  PS2: Also, this feels like it should have a straightforward answer, but I've been looking online for a while without luck.


I just deleted all kext from System/Library/Extensions/ and my mac is stuck at boot screen. Kernel was taking too much space so I thought lets see if I delete all kext files , I thought I deleted bootcache file too , is th is reason why its talking too long , mac is stuck on boot screen and its not opening

I've already installed macOS Sierra. But I've also performed a "general" cleaning and I suspect some files were gone. Now the whole system is slow, some things doesn't behave the way they used to. Is it possible to download again macOS Sierra from AppStore and simple reinstall it? I mean, install macOS Sierra over macOS Sierra that is already up and running (not so well...). Thanks a lot for your help.


Unfortunately, I forgot how to solve the following improper integral.  \begin{equation} \int_{-\infty}^\infty \frac{\cos{x}}{x^2+4}\;dx \end{equation}  Could you give some hints?

I need to find $\displaystyle\int_{-\infty}^{\infty} \frac{\cos x}{x^{2} + a^{2}}\ dx$ where $a > 0$. To do this, I set $f(z) = \displaystyle\frac{\cos z}{z^{2} + a^{2}}$ and integrate along the semi-circle of radius $R$. For the residue at $ia$ I get $\displaystyle\frac{\cos(ia)}{2ia}$. Then letting $R \rightarrow \infty$, the integral over the arc is zero, so I get $\displaystyle\int_{-\infty}^{\infty} \frac{\cos x}{x^{2} + a^{2}}\ dx = 2 \pi i \frac{\cos(ia)}{2ia} = \frac{\pi \cos(ia)}{a}$. But this is supposed to be $\displaystyle\frac{\pi e^{-a}}{a}$, so I am doing something wrong.  In a similar problem, I have to evaluate $\displaystyle\int_{-\infty}^{\infty} \frac{x \sin x}{x^{2} + a^{2}}\ dx$ and get $\pi i \sin(ia)$ whereas this is supposed to be $\pi e^{-a}$. I think I am getting some detail wrong in both cases. Can anyone enlighten me?


Please can anyone help me how to implement this effect in the text. Kindly help me with this. I have been trying but I can't get it to work.

I want a single word embedded in whole logo. How do i do it in adobe illustrator?  I want to design a logo like this. Kindly help me


Question: How is K-fold cross validation better than an implementation of 'grid-search' with repetitions when tuning hyper-parameters in a model? Context: I am tuning hyperparameters in a model. I have implemented grid search in such a way as to try out different combinations of parameters, repeat each combination multiple times, and then average the results. For each repetition, the training and validation sets are being completely regenerated from scratch (taking the whole set and doing the splitting again). If I now am told to implement K-fold cross validation, how do I know which of these two methods will yield better results (and why)? I understand that k-fold cross validation is meant to decrease the variance that we might see by doing a basic grid-search implementation whereby we just trial each parameter combination only once, but what about when each combination has been repeated? By repeating each combination more than once, have I implemented cross validation incorrectly? Including the repetitions seemed intuitive as the one trial seemed un-reliable. Is a grid-search with k-fold cross validation likely to be better than a grid-search w/ repetitions but no k-fold cv?

I am trying to learn various cross validation methods, primarily with intention to apply to supervised multivariate analysis techniques. Two I have come across are K-fold and Monte Carlo cross-validation techniques. I have read that K-fold is a variation on Monte Carlo but I'm not sure I fully understand what makes up the definition of Monte Carlo. Could someone please explain the distinction between these two methods?


When I try to zoom in/out or move the view, nothing happens. All I can do is spin in one stationary spot. I've tried using a mouse, I've tried restarting my computer, and updating Blender to the newest version. I don't even know why it happened in the first place. It was working fine all day then it just wouldn't let me move all of a sudden.

I often find that I can zoom in to a point, but then cannot zoom any more, even when there is a lot of room to zoom to the meshes on the scene.   This is particularly annoying in the following scenario:  I often land up left clicking on the scene and the 3D cursor shifts there. I use Shift+C to shift the 3D cursor back to the origin. However, this also centers the view on the cursor and shifts the view to show all objects, and sometimes this zooms things way out – at this point, if I try to zoom in, I can zoom in to a point (using the pinch/zoom on trackpad), but then it stops zooming in.   How do I zoom in after that? Is there anything else I am doing wrong in this case?


Below query is used in one of my product. I am not able to understand why 1=1 is mentioned. it is always going to true. select * from emp; select * from emp where 1=1;  As per my understanding both are same. What could be the intention of developer to put 1=1 in below query? he can simply write where condition in one of the and condition. SELECT   msi.concatenated_segments item_code, mmt.transaction_date, mtt.transaction_type_name, mmt.transaction_quantity, mcd.prior_cost, mcd.new_cost    FROM  mtl_cst_actual_cost_details mcd, mtl_system_items_kfv msi, mtl_material_transactions mmt, mtl_COST_types mtt WHERE 1 = 1  -------------------------------------------------This I am refering AND mcd.inventory_item_id = msi.inventory_item_id AND mcd.organization_id = msi.organization_id AND mcd.transaction_id = mmt.transaction_id AND mmt.inventory_item_id = msi.inventory_item_id AND mmt.organization_id = msi.organization_id AND mmt.transaction_type_id = mtt.transaction_type_id ORDER BY mcd.creation_date DESC;

Why would someone use WHERE 1=1 AND <conditions> in a SQL clause (Either SQL obtained through concatenated strings, either view definition)  I've seen somewhere that this would be used to protect against SQL Injection, but it seems very weird.  If there is injection WHERE 1 = 1 AND injected OR 1=1 would have the same result as injected OR 1=1.  Later edit: What about the usage in a view definition?    Thank you for your answers.  Still, I don't understand why would someone use this construction for defining a view, or use it inside a stored procedure.  Take this for example:  CREATE VIEW vTest AS SELECT FROM Table WHERE 1=1 AND table.Field=Value


Is there any proof that $\sum_{k=0}^{n}$ ${n-k}\choose{k}$ $=f_{n+1}$, when $f_{n}$ is a Fibonacci number? (I tried to write in some $n$'s and it looked true, but I don't really know how should I prove it.

Prove the following fibonacci sequence, which appear in Pascal's Triangle. I am not sure where to start on this, any pointers? $$ f_n = {n\choose0} + {n-1\choose1} + ... + {n-k\choose k}$$  where $\displaystyle k=\left\lfloor\frac{n}{2}\right\rfloor$


I need to convert a string with date to valid c# date time object.  input string example = "2015-03-24T12:31:33.8700000" output c# datetime   I tried doing this   DateTime.ParseExact(x.claimDetails.clmDOA, "yyyy-MM-dd HHmmss", CultureInfo.InvariantCulture)   Buit it gave exception   String was not recognized as a valid DateTime  Please Note: I googled thoroghly .    Somehow i couldnt find any string    with "T" included as in datetime string.   Prior to downvoting if one can suggest me exactly where a question is answered with datetime string containg a T in it or of this format.yyyy-MM-dd'T'hh:mm:ss.fffffff

I've got a huge list of date-times like this as strings:  Jun 1 2005  1:33PM Aug 28 1999 12:00AM   I'm going to be shoving these back into proper datetime fields in a database so I need to magic them into real datetime objects.   This is going through Django's ORM so I can't use SQL to do the conversion on insert.


Is the set  $$ \left\{ 2^a \cdot 3^b \; : \; a, b \in \mathbb{Z} \right\} $$  dense in $[0, \infty)$? Seems like the answer is yes, but what's a simple proof?

I am not able to prove that this set is dense in $\mathbb{R}$. Will be pleased if you help in a easiest way. $A=\{a+b\alpha: a,b\in \mathbb{Z}\}$ where $\alpha$ is a fixed irrational number.


The Basilisk in Book 2 reminds me much of Greek mythology Medusa who could kill anyone who sees her with his/her naked eyes.  It was not that some sort of rays or extreme heat or light emits from the eyes (Medusa or Basilisk) - Its just that they look so fearsome and horrified that the person who sees them die of the mere shock.   Now, a person with feelings of fear and foreboding, understandably could die of shock on seeing a real life 50 foot or so giant snake with huge fangs but this however doesn't give any explanation on how the plastic camera of Colin Creevy was damaged and the film inside was burnt when Colin saw the Basilisk through it.   Any theory?

As far as we know the gaze of the basilisk will instantly kill someone or eventually petrify him/her in case the gaze is somehow softened or reflected.   But why would it melt the film in Colin's camera? The film is just plastics with some specific chemicals.   A bit broader question would be - is the some information that the basilisk's gaze is somehow destructive to non-alive objects too and under what circumstances could it happen?


Find the sum of the  following infinite series:   $$ \frac{1}{6} + \frac{5}{6 \cdot 12} + \frac{5\cdot 8}{6 \cdot 12 \cdot 18} + \frac{5\cdot 8 \cdot 11}{6 \cdot 12 \cdot 18 \cdot 24} + \dotsb$$   I was trying this question many times but I could not get it. I was trying to solve this problem by D'Alembert ratio test, but I did not get my answer. My teacher gave me this question as a homework, I don't any hint or idea to solved this question, I was trying many times but didn't get it.  If anybody help me I would be very thankful. Thank you.

A series is given as follows   $$\frac{1}{6} + \frac{5}{6\cdot 12} + \frac{5\cdot 8}{6\cdot 12\cdot 18} + \frac{5\cdot 8\cdot 11}{6\cdot 12\cdot 18\cdot 24}+\ldots$$  Can you give me hints to get started finding its value? Thanks.


With all the down voting going on why not have the number next to your profile picture also reflect negative reputation that people including you can't see? Why isn't there a box where they can put why they down voted only you can see?  I notice even if I have a positive reputation after a long year long suspension I still have to be very careful not to get flagged. It is not like when you first start where you can make a few mistakes and get a day or week. If you get suspended it is for another year for any mistake you make. I am trying to fix my early errors but only receive more down votes or something that keeps me in a perpetual state of bans and suspensions. I just want to start fresh.

If a user is the type of person to consecutively get downvoted to potential negative reputation, so be it. What's the reasoning to maintain a minimum of one?  One reason that may justify this is of trying to not deter new users from the site who haven't read the FAQ and unknowingly and wrongly ask or answer a question. But most of us acknowledge this and not downvote in such a scenario.  So what's the reasoning behind this lower bound of 1?


I live in US, and have a F1 Visa and an Indian passport. I am traveling to India in couple of weeks, and my passport got some wear and tear. The stitching which hold the inner pages and the cover is coming off, and only 2-3 threads are left.  Will the Indian Embassy fix that stitching problem? Can they do that?  Also, I plan on issuing a new passport. But my appearance has changed a bit, my indian address is different and my father’s name is different (only the surname). Can I apply for a tatkaal passport? I don’t care if they retain the same info and photo, but when the embassy sees my other supporting docs, they might be able to see a clear change in address, photo and father’s name.   Also, if I have a new passport, I will still have to retain my damaged passport since it has my visa stamping in it.  Immigration and customs can still stop me saying my damaged passport is severely damaged and have me reissue the damaged passport, right? Is there an easy way to get all my stamps and student visa on my new passport, without going to the embassy?  Also, I think my paasport has been marked as ‘damaged’ by the immigration last time I traveled

My Indian passport threading is coming off i.e. the cover of the passport is coming off, there are only 2 threads remaining.   Will it be a problem at the airport when going abroad ? Also anyone who has experience of getting a replacement passport fairly quick ? Because I need to get a passport in like 15 days.


I've inherited responsibility for a 400GB MySQL database that is hosted in Amazon RDS.  The DB serves an application that relies intensively on DB operations, so version releases frequently involve running ALTER statements on very large tables. These updates take over 24 hours to run.  Typically, we make a snapshot of the production RDS instance, restore it to a temporary instance, run the migration on that and then rename it so that the apps start connecting to it as the Production DB.   The obvious difficulty in this is that during the 24+ hour upgrade, we have to keep both DBs in sync, which means data has to be loaded to the application twice, which is a major headache.  I'm convinced there is a better way to do this (albeit I'm aware of the limitations of RDS), but I can't see find a solution.  The DB can't be live while it is being altered, but the alteration takes forever.  Anyone have similarly experience, or should I just learn to live with it?

I periodically need to make changes to tables in mysql 5.1, mostly adding columns.  Very simple with the alter table command.  But my tables have up to 40 million rows now and they are growing fast...  So those alter table commands take several hours.  In a couple months they'll take days I'm guessing.  Since I'm using amazon RDS, I can't have slave servers to play with and then promote to master.  So my question is if there's a way to do this with minimal downtime?  I don't mind an operation taking hours or even days if users can still use the db of course...  Can they at least read while columns are being added?  What happens if my app tries to write?  Insert or update?  If it fails immediately that's actually not so bad, if it just hangs and causes problems for the db server that's a big problem..  This must be a fairly common scaling issue, everyone needs to add columns..  What's typically done to a production db?  Slave -> master migration?  Update - I forgot to mention I'm using the innodb storage engine


Rendering of text on Home page Safari browser  I've noticed over a course of a week or so that the rendering of the question titles on the Home page on MacOs Safari browser is not so satisfactory, resulting in overlapping words with the reputable attributes on the left. Is anyone else having this problem? The formatting on the Questions page is, however, rendering fine and I've checked both pages on firefox in the same system and it appears fine. I've seen the problem in both physics and math stack exchanges.

Today I noticed that in new design view count is getting overlapped with question title on scifi.se for longer title:    But it's not site specific as same problem happen in Beta site too ( Hinduism.se):    That's why asked in main meta.


I have just now installed nvidia drivers on my Ubuntu box and realized that the resolutions are very very messed up. On windows which is supposed to share the PC with Ubuntu the screen operates flawlessly at a resolution 1600x900 whereas on Ubuntu the resolution is (Spoiler: Its not gr8) 1024x768. I am using a samsung sync-master 2033 monitor connected with a VGA cable for my primary and only monitor. My mind and eyes alike would appreciate any help. Thanks in Advance.  Bonus fact: when I used Xorg and not proprietary drivers I could achieve higher resolution using xrandr but now when i use the commands it (the terminal) says:  xrandr --addmode VGA-0 1440x900_60.00                                  !103 X Error of failed request:  BadMatch (invalid parameter attributes)   Major opcode of failed request:  140 (RANDR)   Minor opcode of failed request:  18 (RRAddOutputMode)   Serial number of failed request:  33   Current serial number in output stream:  34 here

Got a working screen via HDMI, but the DVI won't go past 1360x768 (a PackardBell Maestro monitor). Had no issues in Windows 7.  I've tried all the xrandr tricks, see the output below:   xrandr  Screen 0: minimum 8 x 8, current 3280 x 1080, maximum 16384 x 16384 VGA-0 disconnected (normal left inverted right x axis y axis) DVI-D-0 disconnected (normal left inverted right x axis y axis) HDMI-0 connected primary 1920x1080+1360+0 (normal left inverted right x axis y axis) 510mm x 287mm    1920x1080      60.0*+   59.9     50.0      1680x1050      60.0      1600x900       60.0      1440x900       59.9      1280x1024      75.0     60.0      1280x800       59.8      1280x720       60.0     59.9     50.0      1152x864       75.0      1024x768       75.0     70.1     60.0      800x600        75.0     72.2     60.3     56.2      720x576        50.0      720x480        59.9      640x480        75.0     72.8     59.9   DVI-D-1 connected 1360x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm    1024x768       60.0 +    1360x768       60.0*    59.8      1152x864       60.0      800x600        72.2     60.3     56.2      680x384        60.0     59.8      640x480        59.9      512x384        60.0      400x300        72.2      320x240        60.1     cvt 1920 1080 # 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync  xrandr --newmode "test" 173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync  xrandr --addmode DVI-D-1 test X Error of failed request:  BadMatch (invalid parameter attributes)   Major opcode of failed request:  140 (RANDR)   Minor opcode of failed request:  18 (RRAddOutputMode)   Serial number of failed request:  37   Current serial number in output stream:  38    I'm using the latest driver from Nvidia (binary, 352.63) because Nouveau would show a black screen on my second monitor.  I got stuck on manually finding/creating a xorg.conf file and adding some monitor hacks, can anyone help me?


Folk wisdom has it that in order to keep your room cool, it's best to close the window. I assume the reasoning is that while a breeze of air feels cool, in most traditional houses the outside air temperature is actually warmer, heating up the room.  However, I live in a studio directly under the roof with giant east-facing windows. In summer inside temperature can be easily 5 degrees Celsius warmer than outside. Yet friends keep advising me to keep my windows closed.  What is the correct approach?  What I have been doing is opening the windows as soon as outside temperature is cooler than inside temperature (estimated based on weather forecast and room thermostat) and keeping the curtains closed until the window is in the shadow. (related: )

In summer, that is when it's warmer outside the house than inside, one want to prevent the air in the house to warm up too much. Let's consider that all the windows are kept closed, that they are double panes and made of "Low-E" glass. During the day, does closing the curtains on the windows reduce the heating of the house? If so, does the color of the curtains have a significant impact?   Intuitively, I would think that once the sunlight goes through the window, it's too late to prevent the greenhouse effect. However, the curtains could create a layer of warm air that would improve the isolation, but maybe the convection would prevent this layer to form.