I'm having all kinds of troubles while setting up my site online. I can't upload new modules and if I try caching this is what I get:   Warning: file_put_contents(temporary://filedwZLkV) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1900 of /home/brighton/public_html/includes/file.inc). The file could not be created. Warning: file_put_contents(temporary://fileLbErlU) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1900 of /home/brighton/public_html/includes/file.inc). The file could not be created. Warning: file_put_contents(temporary://filehy4XmT) [function.file-put-contents]: failed to open stream: "DrupalTemporaryStreamWrapper::stream_open" call failed in file_unmanaged_save_data() (line 1900 of /home/brighton/public_html/includes/file.inc). The file could not be created. Notice: Undefined index: search_api_page_search_form_search in drupal_retrieve_form() (line 760 of /home/brighton/public_html/includes/form.inc). Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'search_api_page_search_form_search' not found or invalid function name in drupal_retrieve_form() (line 795 of /home/brighton/public_html/includes/form.inc).   The problem is that I have to use dso with my LAMP stack, so there's a lot of things that belong to the user "nobody" (there's no www-data user), and I'm really not quite sure how I should handle this.   A few details about the site's structure and current permissions:  Site root:  drwxr-x--- 12 brighton nobody       4096 Sep 12 18:55 public_html/   sites/default:  drwxr-x---  3 brighton nobody 4096 Sep 12 18:48 default/   sites/default/files:  drwxrws--- 11 brighton nobody  4096 Sep 15 12:42 files/   Private file system path and temporary directory (../tmp/drupal/):  drwxrw-rw-  3 apache   apache   4096 Sep 12 19:50 drupal/

I'm gearing up to deploy a Drupal 7 site and I can't find any documentation about what the recommended security-conscious file and directory permissions should be set to.  Specifically default/files/ (also sub directories?), settings.php, .htaccess and anything else I should be aware of.


What I want to do is basically  cp long/directory/path/file long/directory/path/file-copy   This or similar operations are pretty common. Typing out the whole path twice is obviously awkward, even with auto-completion or copy-paste. There are a couple of simple ways to do it, but none seems ideal:   First cd into the directory, then simply cp file file-copy. Least keystrokes, but I end up in the directory, which I didn't really want. Wrap the above in a subshell, sh -c 'cd dir-path; cp file file-copy', to make the cp local. Fair enough, but that means I have to type the commands in a string literal, which disables auto-completion and isn't overall nice. Define the dir as a variable, then just cp "$dir/file" "$dir/file-copy". Can work nicely, but I'm kind of paranoid about namespace pollution... echo dir-path | while read p; do cd "$p"; cp file file-copy; done. Basically combines subshell-wrapping with variable definition, by emulating a lambda-calculus stype let-binding with read. I quite like it, but it's just a bit weird, and involves a lot of extra characters. Anything I can come up with that uses sed 's/file/file-copy/' needs even more boilerplate around it. Open the file with an editor, then save-as. Not well applicable to non-text files, and often resource-costly.   Is there a more elegant alternative? Ideally one that works with mv as well, analogously.

Often I will work out of the root of a rails directory where I find my self navigating the same path twice every time I would like to move a file:  mv app/views/layouts/application.html.erb app/views/layouts/application.html.haml   The haml is just one of may examples where I need to change the file name without modifying the directory it currently lives in and without changing directory.  Is there a way to achieve  this?


I'm searching for a data base or webservice, that provides buildings at a level of detail (LOD) of   cuboid (length,width,height) or roof, corners, etc   or better. The area should cover germany.  I've seen very good results at google earth but there seem to be no way to export and use that data.  It'd be nice if the data source is INSPIRE-complient.

I am searching for building/property data which include building height, building area, lot size, and building type classifications(preferably as complete as possible). I am working on an Earthquake Model for highly urbanized locations, especially those around fault lines.


I am using ubuntu 14.04 on my computer and when i boot, the bootloader graphics dont show. I am using the proprietary Nvidia drivers so i can edit videos. This isnt a big problem, its just annoying.

When you boot from live CD, or doing the first boot after installing Ubuntu, splash screen looks awesome. But as soon as you enable nvidia-current driver, installed with apt-get, splash screen goes all crazy.  With crazy I mean that resolution is very low, font(I assume) is very weird and it all looks like it's been broken.  This happened with 10.04 and now again with 10.10.  How do I fix splash screen after enabling nvidia drivers?


I'm working with linguex package. How can I draw underarrows to represent movement? I'm interesting in producing something like this:    Thanks!

Is it possible in gb4e to gloss an example AND have a movement arrow in the example.  I'm currently using gb4e, and I want an arrow from 't' to 'een auto'. I already looked at other packages (xytree, tikz), but I found no way to do this  \documentclass[11pt]{article} \usepackage{gb4e}  \begin{document}  \begin{xlist}         \ex \label{scramble-det}         \gll          ... dat Jan een auto gisteren t gekregen heeft.\\         ... that John a car  yesterday t gotten has \\         ... that John a car yesterday. \end{xlist} \end{document}   The following, as an example, is taken from the , but I don't understand it at and therefore cannot modify it to suit my needs:


I updated my WordPress to Version 4.5 yesterday, and the below warnings were show   Warning: Declaration of Walker_Nav_Menu_Dropdown::end_lvl(&$output, $depth) should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = Array) in /homepages/7/d610643512/htdocs/clickandbuilds/chattepoilue/wp-content/themes/novavideo/_front/mobile-nav.php on line 0  Warning: Declaration of Walker_Nav_Menu_Dropdown::end_el(&$output, $item, $depth) should be compatible with Walker_Nav_Menu::end_el(&$output, $item, $depth = 0, $args = Array) in /homepages/7/d610643512/htdocs/clickandbuilds/chattepoilue/wp-content/themes/novavideo/_front/mobile-nav.php on line 0   Here is the code from file described in the error :  class Walker_Nav_Menu_Dropdown extends Walker_Nav_Menu{ function start_lvl(&$output, $depth = 0, $args = array()) {   $indent = str_repeat("\t", $depth); // don't output children opening tag ('<ul>') }  function end_lvl(&$output, $depth){   $indent = str_repeat("\t", $depth); // don't output children closing tag }  function start_el(&$output, $item, $depth, $args){   // add spacing to the title based on the depth   $item->title  = str_repeat("&nbsp;", $depth * 4) . $item->title;   $class_names  = isset( $class_names ) ? $class_names : null;   $indent       = isset( $indent ) ? $indent : null;   $value        = isset( $value ) ? $value : null;   $item_output  = isset( $item_output ) ? $item_output : null;       $output .= '<option'. $indent . $value . $class_names;       $attributes  = ! empty( $item->attr_title ) ? ' title="'  . esc_attr( $item->attr_title ) . '"' : '';       $attributes .= ! empty( $item->target )     ? ' target="' . esc_attr( $item->target     ) . '"' : '';       $attributes .= ! empty( $item->xfn )        ? ' rel="'    . esc_attr( $item->xfn        ) . '"' : '';       $attributes .= ! empty( $item->url )        ? ' value="'  . esc_attr( $item->url        ) . '"' : '';        $item_output .= $attributes . '>';       $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID );       $item_output .= '';        $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );        // no point redefining this method too, we just replace the li tag...   $output = str_replace('<li', '<option', $output); }  function end_el(&$output, $item, $depth){   $output .= "</option>\n"; // replace closing </li> with the option tag }   }

I'm currently working on a WordPress site and whenever in the admin I go the Appearance > Menus page I get the following error:     ErrorException: Runtime Notice: Declaration of Walker_Nav_Menu_Edit::start_lvl() should be compatible with that of Walker_Nav_Menu::start_lvl() in wp-admin/includes/nav-menu.php line 203   It seems like some sort of PHP compatibility issue. I'm running PHP 5.3.10 on my local dev machine.  What would be the best way to remedy this problem?


Need advice, please. Trying to explain why not to use the "to infinitive"  I got the question after it was read in a textbook.  "The queen, what she does her entire life is lay eggs"   "lay" is used here as a bare infinitive because it used after the auxiliary verb "does", right?  Why would "to" be added if the sentence is changed to:   "The thing which she does her entire life is to lay eggs."   Does the rule still apply?  To simplify:  The thing which she does is to lay eggs.  What she does is lay eggs.   What am I missing here?  Any help would be appreciated.

All he does is watching TV.   I said this sentence and my native friend corrected me and said 'you need to use bare infinitive here'      All he does is watch TV.   Why is this right while the other is false? If I change the placement of the complement and subject, I will have this sentence:     Watch TV is all he does.   Shouldn't it be 'watching TV (or to watch) is all he does'?  I searched for it online and I couldn't get anything. Is there a rule that I'm missing? When do they use bare infinitive after 'to be' verbs?  Thanks


I use dell Inspiron 5520 laptop with latest BIOS version A13 with 4GB RAM and Intel core i5 processor.  Recently I have removed Windows 8 and installed Ubuntu 12.04 by disabling the UEFI mode. Since installing Ubuntu I found my laptop overheating. Help me regarding this issue  !! i use AMD Radeon graphic card

I'm trying to install the Jupiter power settings app but, I read it is no longer compatible with the new kernel. Is there a similar program or a way to manage the power settings on 13.04?


How do I determine which number is bigger as $n$ gets sufficiently large, $2^n$ or $n^ {1000}$?  It seems to me it is a limit problem so I tried to tackle it that way.  $$\lim_{n\to \infty} \frac{2^n}{n^{1000}}$$  My thoughts are that, after some $n$, the numerator terms will be more than the terms in the denominator so we'll have something like $$\frac{\overbrace{2\times 2\times\cdots \times 2}^{1000\text{ factors}}}{n\times n \times \cdots \times n} \times 2^{n-1000}$$ At this point, I was thinking of using the fact that $2^n$ grows faster slower than $n!$ as $n$ gets larger so the limit, in this case, will be greater than $1$, meaning $2^n$ is bigger than $n^{1000}$ for sufficiently large $n$. This conclusion is really just a surmise based on a non-concrete formulation. Therefore, I'd appreciate any input on how to tackle this problem.

In other words, how to prove:  For all real constants $a$ and $b$ such that $a > 1$, $$\lim_{n\to\infty}\frac{n^b}{a^n} = 0$$  I know the definition of limit but I feel that it's not enough to prove this theorem.


A question I've always had when watching the Star Wars franchise is: Why use laser guns? I understand it's a different galaxy and technology may have advanced differently than on earth, but surely at some point they could have developed something similar to traditional guns.  Especially against the Jedi, where lasers move slow enough such that they can be stopped real time by a beam of light. Or against anyone really with decent reaction time and good eyesight.  It just seems to me that the super slow speed of lasers is constantly getting people killed and is just impractical. Snipers would be almost useless in Star Wars.  Also it's not like their laser guns are massively more powerful than a bullet; we see them hit walls and unarmored people and it doesn't seem to do more damage than a typical rifle round.  So why are they using such an ineffective weapon? Or why can't they at least make the lasers move faster?

From  question about gunpowder in the Star Wars universe it is  that the shot from a  slug thrower is not completely deflectable by a lightsaber. This seems to be listed as an advantage (over blasters) against lightsabers and Jedi.     For example, during the days of the Galactic Republic, mercenaries fearing an intervention by Jedi Knights used rapid-fire slugthrowers that were impossible to completely deflect, unlike blaster bolts.   This doesn't make much sense though. A slug, while maybe not as deflectable should be just as ineffective against a lightsaber as a blaster shot is, due to the nature of a . That is, a blade made of plasma should simply vaporize the slug, should the slug manage to penetrate the containment field.     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.   While a slug would seem to be more accurate than a blaster bolt (at least when used by a skilled marksman), I can't imagine that the slug would be faster than a bolt. Or if it is faster I wouldn't imagine it would be so fast that a Jedi would be unable to react with enough speed to block it, either with their saber or with the force. So what is the implied advantage of a slug thrower, versus a blaster, when used against a Jedi?


In the Harry Potter series, Voldemort splits up his soul into 7 pieces and puts the "pieces" in objects that he hides, called horcruxes, so that one would have to "kill" all 7 horcruxes in order to kill Voldemort.  What I don't understand is Voldemort's horcrux choices. Why would he use such obvious things as large pieces of jewellery (Rowena Ravenclaw's diadem), his old diary, or even living, mortal beings like Nagini?   It seems that a safer route would have been to make a horcrux out of a single pebble and throw said pebble on a massive beach or in the ocean; this would have made it impossible for Harry to find it and thus impossible for Voldemort to die.

Nobody knew about his Horcruxes (even Slughorn wasn't 100% sure). But still, there was a small probability that someone could discover his secret. So, he hid his Horcruxes very well. But, there was always a way to get to those Horcruxes.  Why didn't he hide his Horcruxes in a place which was out reach of anyone? Some examples: His own stomach, Center of Sun/Earth/Black Hole etc. He could also had simply made Voyager-1 a Horcrux..


How should I prepare for these things? Good advice: Base strategies, weapons and accessories, etc.

I've been having trouble defeating this monster. Even with lots of buff potions, health potions, high tier armor (Molten), and ranged weapons with plenty of ammo (Minishark), I can't seem to kill this boss.  Worse, when I get it down to about 2000 hp, even if I'm fairly far away, it'll suck me in and continually rise towards the skybox, which doesn't allow me to do anything for some reason.  How do I defeat the Wall of Flesh? What gear should I be using and what kind of potions do I need?


I have maximum number of bits that is not bit aligned E.g. 35 and required to generate unique random number from 1 - 68719476734 (max number for 35 bits). Could use SecureRandom but will have to extract 5 bytes out of it and convert to Long maybe, but chances of collision seem to a concern. What are some options to generate a random for this range. Could i seed this random with nanoTime maybe if there is a collision and regenerate in this range.

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


How do I display multiple images from an image collection using .map()?  // Create clipping function var clipper = function(image){   return image.clip(geometry); };  // Load image collection var modis = ee.ImageCollection('MODIS/006/MOD09GQ').map(clipper); var months = ee.List.sequence(1,12);  var byMonth = ee.ImageCollection.fromImages(       months.map(function(m) {         return modis.filter(ee.Filter.calendarRange(m, m, 'month'))                     .filterBounds(geometry)                       .median()                     .set('month', m); }));  // Create a visualization color scheme var medVis = {   min: 0,    max: 8000,   palette: [     'FFFFFF', 'CE7E45', 'DF923D', 'F1B555', 'FCD163', '99B718', '74A901',     '66A000', '529400', '3E8601', '207401', '056201', '004C00', '023B01',     '012E01', '011D01', '011301'   ], };   var display = function(image){   return Map.addLayer(image,medVis); };  byMonth.map(display);   I get the following errors when I run the last few lines of code (please use any geometry of your choice): Please reopen the question as a user has a more relevant answer.   Can't encode an undefined value.  Layer 2: Layer error: Failed to decode JSON. Error: Field 'value' of object '{"type":"ArgumentRef","value":null}' is missing or null. Object: {"type":"ArgumentRef","value":null}.  Layer 3: Layer error: Failed to decode JSON. Error: Field 'value' of object '{"type":"ArgumentRef","value":null}' is missing or null. Object: {"type":"ArgumentRef","value":null}.

I'm trying to map the maximal amount of days without rain using the TRMM dataset in Google Earth Engine. I'm doing this by iterating over the collection and if no rain has fallen, one gets added to the cell (code below). When rain has fallen the value gets multiplied by 0 so the "counter" is reset. Then I would like to store each result of each iteration in a Image collection and then select the maximum value to get the longest consecutive dry period.  But that is the theory. When I put this in a script I get an error while adding the image of one iteration to a list.   Does anyone know why this is and how this can be solved?  Code:  var list = []; function drylength(current, previous){   var mask = current.remap([0], [1], 0,"precipitation").rename('precipitation');   var sum = mask.add(previous).multiply(mask);    list.push(sum);   return sum; }  var dataset = TRMM .filterDate("2015-01-01","2015-02-01") .sort('system:time_start:');  var totalPrecipitation = dataset.iterate(drylength, dataset.max() .remap([0], [0], 0, "precipitation") .rename('precipitation'));  print(list); print(totalPrecipitation); Map.addLayer(ee.Image(totalPrecipitation), imageVisParam);   Furthermore it appears only 3 items are stored in the list which makes me assume the iteration is more complex than a literal iteration where all images are calculated one by one?   Here is an image of the error:    Errors written if image is not visible or for search engines:  Failed to decode JSON. Error: Field 'value' of object '{"type":"ArgumentRef","value":null}' is missing or null. Object: {"type":"ArgumentRef","value":null}.   and:  Unknown variable references: [_MAPPING_VAR_0_0, _MAPPING_VAR_0_1].


I'm working with an interesting coding environment that has unmanaged code, managed code, and C#. I have a GUI written in C#, and the associated console outputs stuff using unmanaged code that I don't really have access too. I was wondering if there is a way to read in the console to a text box in my GUI, or something like that? Basically just need access to the text in the console.   (One solution I tried was writing it to a text file, then reading it in, but its doesn't like that, because it is constantly writing)  Any help is appreciated!

I'm developing an Windows Forms application that requires me to call a separate program to perform a task.  The program is a console application and I need to redirect standard output from the console to a TextBox in my program.    I have no problem executing the program from my application, but I don't know how to redirect the output to my application.  I need to capture output while the program is running using events.    The console program isn't meant to stop running until my application stops and the text changes constantly at random intervals.  What I'm attempting to do is simply hook output from the console to trigger an event handler which can then be used to update the TextBox.  I am using C# to code the program and using the .NET framework for development.  The original application is not a .NET program.  EDIT: Here's example code of what I'm trying to do.  In my final app, I'll replace Console.WriteLine with code to update the TextBox.  I tried to set a breakpoint in my event handler, and it isn't even reached.      void Method()     {         var p = new Process();         var path = @"C:\ConsoleApp.exe";          p.StartInfo.FileName = path;         p.StartInfo.UseShellExecute = false;         p.OutputDataReceived += p_OutputDataReceived;          p.Start();     }      static void p_OutputDataReceived(object sender, DataReceivedEventArgs e)     {         Console.WriteLine(">>> {0}", e.Data);     }


For users below 2k reputation who need to copy a question or answer source text, the only option nowadays is to use the "edit" button and copy the source from the edit page. When the "Suggested edit queue is full", this is not possible.  Is there another way to copy the source text of a question or answer? What about comments? Would it be useful to add a "view source" button to questions and answers? What about comments?

I sometimes see a useful markup feature in a per-site meta answer. However, I cannot edit it to see how one did it, since editing (or suggesting edits) is disabled for users with less than 2k reputation on per-site metas.  Is there a way to see the source code of a per-site meta answer?


Determine all positive integers relatively prime to all the terms of the infinite sequence  $$a_n = 2^n + 3^n + 6^n − 1, n ≥ 1.$$

Here's No. 4 from the 2005 IMO.   Q: Determine all positive integers relatively prime to all the terms of the infinite sequence $$a_n=2^n+3^n+6^n-1,  n\geq1$$   I found the , but I'm failing to understand it.  It reads:   Trivially, $a_2 = 48$ is divisible by 2 and 3. Okay, I get this, assuming they just picked n=2 since it's a small number.  Let therefore p > 3 be a prime number. Wait what? What does p represent - does it represent n, or n+2? And from the previous step, how can we assume this?   Then $6a_{p−2} = 3·2^{p−1} + 2·3^{p−1} + 6^{p−1} −6 ≡ 3 + 2 + 1−6 ≡ 0 (\mathsf {mod \ p})$. Alone, I think I understand this line, although why multiply by 6? Is $6a_{p-2}$, or any term you would place instead, congruent to $\mathsf {0(mod \ p)}$ since that fulfills the definition of a prime number?   And so the only such number is 1. Only such number refers to what number? Proved. So... what would be the answer?  Thank you for helping!


We roll a die until each side appears at least once, then we stop.     What is the probability of rolling exactly $n$ dice?   I guess the answer is  $$6-6\left(\dfrac{5}{6}\right)^n\;,$$  but this may be wrong.  In trying to solve this problem, I read , but I couldn't solve the problem.

What is the average number of times it would it take to roll a fair 6-sided die and get all numbers on the die?  The order in which the numbers appear does not matter.  I had this questions explained to me by a professor (not math professor), but it was not clear in the explanation.  We were given the answer $(1-(\frac56)^n)^6 = .5$ or $n = 12.152$  Can someone please explain this to me, possibly with a link to a general topic?


I'm implementing a field through a text formula inside my salesforce layout:  HYPERLINK($Setup.Endpoints__c.Server_Url__c + "/pdf/" +  field__c ,"Open Last Pdf")   This link works correctly when clicked on a normal browser as it redirects to an external website. The problem is that when opening through Salesforce1 app on iOs, it doesn't open a new window or a browser, but says:  Navigation started when state=1

I have created a HYPERLINK formula   HYPERLINK("/apex/my_VF_Page?Id="+ Id , "MY VF Page" )   If I use link in saleforce 1 App.  This link doesn't work any workaround so I add any logic in HYPERLINK for redirect to VF page in saleforce 1App.  Any Idea if we can use sforce.one.navigateToURL or something  javascript:sforce.one.navigateToURL('/apex/SimpleSiteProgram?id='+Id)


for my first year CS I need to know Shell Scripting, but I'm really terrible at this. I wrote this script for example  #!/bin/bash  [ $(whoami) != "root" ] && echo "Run as superuser" && exit 1  while getopts "ugb: " opt; do case $opt in  u) read -p "Wat is de naam van de user die je wilt toevoegen?: " username [ $username == ""] && echo "Geen usename meegegeven!" && exit 1 read -p "Wat is de groepsnaam voor de gebruiker?: " group_name [ "$(getent group $group_name)" == "" ] && echo "De groep bestaat niet, exiting" \ && exit 1 echo "adduser -m -g $group_name $username" create_softlink $group_name $username  g) read -p "Wat is de groepnaam voor de user?: " group_name [ "$(getent group $group_name)" != "" ] && echo "De groep bestaat, exiting" \ && exit 1 addgroup "$groupname" mk_shared_folder "$groupname"  b) BACKUP_FOLDER="/var/backup" [ ! -d "$BACKUP_FOLDER"] && mkdir -p "$BACKUP_FOLDER" [ -d "$SHARED_FOLDER/$1"] && echo "Shared folder bestaat niet" && exit 1 zip "$SHARED_FOLDER/$1" "$BACKUP_FOLDER/$1-$(date +"%m-%d-%y")"   Now I want to execute this script. For example making a user. In a simple script, you simply do ./scriptname.sh. But I don't know what the command is.  I'm sorry if this makes absolutely no sense. I'm really bad at this and barely understand any of it myself.  EDIT: my quesion has been flagged as a duplicate. However ./scriptname.sh will NOT run the script.

Whenever I open a .sh file, it opens it in gedit instead of the terminal. I can't find any option similar to Right Click → Open With → Other Application... → Terminal.  How do I open this file in the terminal?


I have a dedicated server with centOS. I need to do a full system backup, save backup file on server and download a copy of that backup file to my personal computer (local computer in office).   From what I have read the tools to use are either dump or rsync.  1.Step: make file system backup via dump -> save as compressed gz file  2.Step: download the gz file to my local pc(windows)  3.Step: On later time, if centOS is corrupted/broken/hacked -> upload gz file to server and restore whole system via this backup file  How can this be achieved ? Thanks in advance

I have this command to backup a remote machine. The problem is that I need root rights to read and copy all files. I have no root user enabled for security reasons and use sudo the Ubuntu way. Would I need some cool piping or something to do this?  rsync -chavzP --stats user@192.168.1.2:/ /media/backupdisk/myserverbackup/


Was the Terminator instructed to lay low after completing its mission and reunite with SkyNet? Maybe there were secondary missions? Blow itself to smithereens to avoid contaminating the timeline?

A Terminator is essentially given a mission or an objective ("Go back in time and kill Sarah Connor" or something of the like).  What does a Terminator do once its mission is accomplished?  We see in Terminator 2: Judgment Day (the live-action movie) that the  (played by Arnold Terminator Schwarzenegger) completed its mission of protecting the Connors, and then sort-of just melted itself into nothingness (presumably to protect the world from discovering Terminators again).  But what would the  or the  (in Terminator 3) have done?   Are they given multiple directives ("Go kill Sarah Connor, then go kill Robert Baratheon, and then have a nice hot bath; you've earned it")?  This question is related, but not a dupe:


I'm planning a chili pepper degustation together with some friends who are likewise interested in cooking.    We're planning to taste a number of different peppers both to better understand when to prefer one over the other and simply because it's a fun idea. We'll be working our way up in hotness and inevitably everyone will reach their limit of acceptable hotness.  Is there any food or beverage that can be consumed to lessen the effects of chili pepper once someone has reached their limits? As a counter example I've heard drinking water is a bad idea, as it helps break down remaining pieces of pepper which will in turn make you feel the taste more.  Not to be confused with , I'm looking for a remedy for after eating the pepper.

Say, for example, I eat a very spicy jalapeno and I have a burning sensation in my mouth and throat.  Are there any foods or drinks to wash that away?


I've been told because of taxes etc in Australia its cheaper to buy round trip flights from outside the country. For example, in the case of going from Perth to Bergen, purchase the ticket in Bergen. How do you do that and is that a fact or fiction?

In a Youtube video by ADVChina, the speaker is recommending using a VPN in China for various reasons, and to sign up using his referral code.  He says there are various practical uses including "You could also go and get cheaper plane tickets by hopping around different countries." and shows a screenshot of a flight website called KAYAK, with the VPN software changing his country to Italy.  Is it possible to get cheaper plane tickets by using a VPN in this way? I've never heard of KAYAK, but if I use something like Skyscanner, is it common for tickets to be priced differently depending on which country the user's IP is from?  Is it because of different taxes in different countries? So could it be illegal to get discounts like this? Or is there some pricing strategy from airlines to charge different amounts depending on the country of purchase?


"Quite" is probably the most ambiguous word in the English language. Merriam-Webster defines it three ways:  1:  completely, wholly, totally (quite mistaken)  2:  to an extreme :  positively (quite drunk)   3:  to a considerable extent :  pretty, rather (quite near, quite ill quite rich)  So if someone tells you someone else is "quite drunk", how do you know this person is: a) completely drunk? b) very drunk? c) pretty drunk?  Or how about "quite difficult?" Does it mean rather difficult? Or extremely difficult?

The adverb "quite" has the following meanings :     1: wholly, completely ("not quite   finished")      2: to an extreme : positively "quite   sure" —often used as an intensifier   with a "quite a swell guy" "quite a   beauty"      3: to a considerable extent : rather   ("quite near")   My understanding is that #1 and #2 conflict with #3. For example, when you say "She's quite right", do you mean "She's completely right" or "To a considerable extent, she's right"? Notice that in the latter case you're not saying that she is completely right.  Another example is "I'm quite sure". Does it necessarily mean "I'm completely sure"?   Does the word really have conflicting meanings that can possibly cause ambiguity? Or am I missing something?


I use Yii PHP framework to generate sitemaps of user profiles. The sitemap url is something like this  http://mywebsite.com/site/sitemap33449   This URL returns xml of the sitemap. (with correct header type).  I submit this sitemap using google webmaster tool. In the google search result this link is also visible.   I used the following code in my .htaccess file. But no luck  <IfModule mod_rewrite.c>   <FilesMatch "site/sitemap33449"> Header set X-Robots-Tag "noindex" </FilesMatch>  </IfModule>   How I fix this issue? Any kind of help is highly appreciated

How do I prevent my XML sitemap files from showing up in Google search results like this result of a site: search query:    I don't understand why Google would choose to show sitemap files in search results to begin with.  These files are not meant for human consumption.  Google needs to be able to crawl it to be able to process it, so I can't disallow it in robots.txt.  I just don't want them to put it into the search results after processing it.


"... the following subset of $X$ denoted by $[x]$ $(x\in X)$ is called the equivalence class generated by $x$:  $$[x]:= \{y \in X; x\sim y \}$$  Show that the equivalence classes give a partition of $X$.   According to my book "Given a nonempty set $X$ we say that the family of subsets $\{X_\alpha\}_{\alpha \in I}$ is a partition of $X$ iff   $$\bigcup_{\alpha \in I} X_\alpha = X$$  $$ X_\alpha \cap X_\beta = \emptyset \text{ if } \alpha \not = \beta$$  I missed my lecture on this topic and I dont have any clue where to start. As I understand it the equivalence classes is the set of all $x \in X$ s.t for $y \in X$ then $x\sim y$. But after here I am lost.  I guess I could denote the equivalence classes by  $$ [x_i] := \{y \in X; x_i \sim y\}$$ And now try to prove that   $$\bigcup_{\alpha \in I} [x_{i}] = X$$ and  $$[x_i] \cap [x_j] = \emptyset \text{ if } j \not = i \text{ ?}$$

Let $X$ be a set. Let $\sim$ be an equivalence relation on $X$. Show that $X$ is the union of disjoint equivalence classes $\{x\}$ for $x \in X$.  What I have tried:  claim: $X = \bigcup_{x\in X} \{ x \}$  indeed, $\{x \} \subset X ;\forall x$ hence $ \bigcup_x \{x \} \subset X$.   Suppose $y \in X$ then here I am stuck - is it OK to write that $y \sim y$ so $y \in \{y \}$? I am not sure I can do that, but if I could it would finish the proof. Any help please


The formula to calculate all permutations without repetitions of the set {1,2,3} is $\dfrac{n!}{(n-r)!}$ But how to calculate it if the set (or rather array in programming terms) includes repeated numbers {1,2,2,3,3} so that you don't add up same permutations?

I have a string ABCCEF and I want to find the number of permutations not counting the duplicates. I ran a piece of python code     len(set([''.join(i) for i in itertools.permutations('ABCCEF')]))   and the output was 360. This piece of code determines all the permutations of ABCCEF (including the duplicates), creates a set of the permutations, then spits out the length of that set.  I am really rusty in the subject of combinatorics but through the magic guess and check, I BELIEVE that the value 360 is determined from  5*4*3*3*2*1 = 360   I determined this from the string have 6 values but only 5 unique values. So on the first slot I have 5 options to choose from, then 4, then 3. then 3 again (2 C's), then 2, then 1.  I dont really have a firm grasp of this concept. I was wondering if anyone could point out flaws in my logic and/or help me with a better process to solve this problem. Pretty much explain to me why I am correct...OR WRONG!


The context of my question is Baysian generative models. The text book I am reading states  $p(\tilde{x} \, \vert \, D) = \int p(\tilde{x} \, \vert \, \theta) p(\theta \, \vert \, D) \, \mathrm{d}\theta$.  where $p(\tilde{x} \vert D)$ is the posterior predictive distribution ($\tilde{x}$ is a new data point, $D$ is the training data), and $p(\theta \vert D)$ is the posterior distribution ($\theta$ is the parameter of the model, $D$ as before is the training data).  This equation seems intuitively true, but I am having trouble proving it mathematically using the basic rules of conditional, marginal, etc. distributions.   Moreover, I think the general statement is not true. By which I mean, I think with random variables $X, Y, Z$, it is not the case that  $p(X \vert Z) = \int p(X \vert Y) p(Y \vert Z) \, \mathrm{d}Y$  What, then, is the relationship that must hold between $X, Y, Z$ such that the above statement is true? Is it that we must have $p(Y \vert Z) = p(Y)$?  In addition, if anyone can show me a proof of the first statement, it would be greatly appreciated.

I often saw a formula, used mostly to integrate on the parameter space like:  $$ p(x|y) = \int p(x|\theta) p(\theta|y) d\theta $$ where $\theta$ is the parameter.   I am confused and I hope to explain me how is that.  I know that $p(x) = \int p(x,\theta)d\theta = \int p(x|\theta)p(\theta)d\theta $.  If I use a similar idea which in my mind means "a marginal distribution is obtain by integrating a join distribution over one variable", but with a conditional, I would expect to have:  $$ p(x|y) = \int p(x,\theta|y)d\theta = \int p(x|\theta,y)p(\theta|y)d\theta$$ which obviously not not look the same.   Any help with that?  Later edit: The first formula was not correct, the integration is over $\theta$. Thanks


I'm trying to get points around "me" by location and it's pretty simple :  select * from X where ((SQRT(POW(69.1 * (a.lat - 49.201441 ), 2) +  POW(69.1 * (16.161299 - a.lng) * COS(a.lat / 57.3), 2))) <='1') LIMIT 5   *  my location = 49.201441;16.161299 distance = 1 (mile)   This query returns me 5 points around "me" at a distance of 1 mile. This is rly fast, but just when my table have a ... I don't know, maybe 5000 rows.  I'm using this query on 200 000 rows table, and it's very slow! Maybe .. 2-7 sec and even if the limit is 1 = no difference.  Can someone explain it to me and help me? Thanks a lot guys!  BTW: If my query does not contains this part of query = it takes maybe 0.0008s... so second part of query is correct.

I've got a working PHP script that gets Longitude and Latitude values and then inputs them into a MySQL query. I'd like to make it solely MySQL. Here's my current PHP Code:  if ($distance != "Any" && $customer_zip != "") { //get the great circle distance      //get the origin zip code info     $zip_sql = "SELECT * FROM zip_code WHERE zip_code = '$customer_zip'";     $result = mysql_query($zip_sql);     $row = mysql_fetch_array($result);     $origin_lat = $row['lat'];     $origin_lon = $row['lon'];      //get the range     $lat_range = $distance/69.172;     $lon_range = abs($distance/(cos($details[0]) * 69.172));     $min_lat = number_format($origin_lat - $lat_range, "4", ".", "");     $max_lat = number_format($origin_lat + $lat_range, "4", ".", "");     $min_lon = number_format($origin_lon - $lon_range, "4", ".", "");     $max_lon = number_format($origin_lon + $lon_range, "4", ".", "");     $sql .= "lat BETWEEN '$min_lat' AND '$max_lat' AND lon BETWEEN '$min_lon' AND '$max_lon' AND ";     }   Does anyone know how to make this entirely MySQL? I've browsed the Internet a bit but most of the literature on it is pretty confusing.


We know that an object that feels no force should travel at a constant speed. But a body accelerating because of gravity feels no force. This seems to be a paradox. Could we possibly find the origins of gravity if we solve this paradox?

So I understand the concept of gravity, in that it's not actually a force, but more of a displacement in the spacetime grid. An object with a big enough mass will bend the spacetime, causing smaller objects to "attract" to it (not really, but good enough for what I am trying to figure out)   Ok so that makes sense, but what I am not understanding is, how come planets don't just get engulfed by the Sun? There must be something acting against the gravity for the planet to be a certain distance away from the sun. Am I not understanding this concept correctly?


Actually I was formatting my Dell Vostro Laptop. And while doing that a message showed up that "you cannot install OS in this partition. The selected disk is of the GPT partition style." I have search the solution in technet.microsoft.com and one answer i got is to "To manually wipe a drive and convert it to GPT: " and solution found is   From inside Windows Setup, press Shift+F10 to open a command prompt window. Open the diskpart tool: diskpart Identify the drive to reformat: list disk Select the drive, and reformat it: select disk  clean convert gpt exit  And after that when i opened custom installation type. I found that all my hard disk got unallocated.  Kindly provide me solution to get my Partition table back or any solution to recover my data.  Please help me. And thanks in advance.

What steps can I take to try to recover lost or inaccessible data from any storage device?  Answers:   This applies to any computer storage device, e.g. internal/external hard drives, USB sticks, flash memory. The most important thing is to STOP using it, any type of I/O can ruin your chances of a recovery.     We have separate questions covering common problems with USB flash drives in greater detail:


My university offers two courses, ECN470 and FIN470. If I ask someone whether they both are same courses(by study materials), what should I ask?   ‘Is’ ECN470 and FIN470 the same course?   Or   ‘Are’ ECN470 and FIN470 the same courses?

Which is the correct one?     On average, the polyunsaturated fat content in one teaspoon of the olive oil and canola oil is the same        On average, the polyunsaturated fat content in one teaspoon of the olive oil and canola oil are the same


The following code is just been used as an example but i can't seem to get it to work. Getting the error 'System.Array' does not contain a definition for 'Remove  and no extension method 'Remove' accepting a first argument of 'System.Array' could be found.  int[] a = [1,2,3,4,5] a = a.Remove(4)   The examples that ive seen removes the 4 from the list meaning a then = [1,2,3,5]  What is going wrong here?

I have an array of Foo objects. How do I remove the second element of the array?  I need something similar to RemoveAt() but for a regular array.


I teleported far away from my house using /locate. I went to a stronghold and set my spawn there thinking I might die several times. After defeating the dragon, I realized that I couldn't find my house. I was in the middle of nowhere, and even my map (made to the largest possible size) didn't show anything. Now I can't find my old house, which took me over 11 hours to make. Compasses won't work since I reset my world spawn. Is there any possible way to find my house, or is there no chance? I am in creative mode.

I wandered too far to go look for sheep and now I'm on a completely different island.  How do I find my way back to my house?


I am relatively new to Python, is there a way I can split the string "James kicked Bob's ball, laughed and ran away." into the following, so I have the words and punctuation in list items ["James", "kicked", "Bob's", "ball", ",", "laughed", "and", "ran", "away", "."]. is there a way to do this in python?

I'm trying to split a string up into words and punctuation, adding the punctuation to the list produced by the split.  For instance:  >>> c = "help, me" >>> print c.split() ['help,', 'me']   What I really want the list to look like is:  ['help', ',', 'me']   So, I want the string split at whitespace with the punctuation split from the words.  I've tried to parse the string first and then run the split:  >>> for character in c: ...     if character in ".,;!?": ...             outputCharacter = " %s" % character ...     else: ...             outputCharacter = character ...     separatedPunctuation += outputCharacter >>> print separatedPunctuation help , me >>> print separatedPunctuation.split() ['help', ',', 'me']   This produces the result I want, but is painfully slow on large files.  Is there a way to do this more efficiently?


In "The Dragon and the Wolf" (Game of Thrones, S07E07), Litllefinger was accused and found guilty of many crimes. Before that scene, we see Sansa talking to Litllefinger and not sensing any treason on his part, but in court, in front of all the northern lords, and her sister and brother, she was declaring his crimes, one by one, as if she was there when he did them.  Was it Bran who told her these pieces of information? And if it was him who told her, how can she accept what he [Bran] said?

In "The Dragon and the Wolf" (Game of Thrones, S07E07), Littlefinger was in a trial, accused by Sansa and Bran of many crimes that he has committed against the Stark family, and eventually sentenced to death. But they didn't show any evidence or proof of Sansa's accusations. He could have easily denied every accusation and, at least, it would put doubts in the other Lords' minds.   How could the Starks convince the other Lords that Littlefinger was guilty?


Let G be a finite group such that the automorphism $f:G\to G$ sends more than three quarters of elements of G to their inverses. Show that $f(x)=x^{-1}$ for all $x\in G$ and that $G$ is abelian.

Assume that $\pi$ is an automorphism of a finite group $G$. Let $S$ denote the set $\lbrace g \in G: \pi (g)=g^{-1} \rbrace$. Show that if $|S|>\frac{3|G|}{4}$, then $G$ is an abelian group.    Anyone has any idea on how to solve this ? I have no idea how to start.


I have been able to show the injectivity part but I am stuck with surjectivity.I think we need to use the intermediate value theorem somehow but I don't know how?Also what if $\log(1+|x-y|)$ is replaced by any other surjective function will the function still be surjective?

In this question for proving the bijection, I can easily check that this is an injection. But how can one show that this function takes all the real values? by taking $y=0$ I can show that $|f(x)-f(0)| $ can be made as large as required by using the fact that it is larger than the log term. But how can I show that f assumes the negative values as well as the positive ones? Any help is highly appreciated.


I know nothing, and the related answers I read are not intelligible to me. Do I have to be Linux literate before I try to install Ubuntu? Sounds like a ton of work and time. Is it possible otherwise? This is what I tried: I downloaded, from ubuntu.com, version 20.04. When I looked into downloads, I found version 18 something! Even so, I clicked right on it to run it; I thought it is the way to install it, as I have done before with other things. The prompt didn't show me any software/program with which to run/open it. I have downloaded Rufus, as one tutorial indicated. What do I do? Thank you in advance.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I am trying to create some alias for executing the same command but with sudo credentials. In the ultimate case I want to be something like:  alias !!='sudo !!'   But when I source /.bashrc file this particular alias doesn't work for some reason.

I'm trying to set an alias for sudo !! in Bash. I tried alias sbb='sudo !!', but it interprets that as a literal  !! and prints   sudo: !!: command not found   If I use double quotes, it substitutes the double bang in the string itself, so that doesn't work.  Is there any way to make this work? Or an alternative alias? `


I have a table named 'versions' which has columns control_no, revision_id ,revision_dt, version_no, version_dt, created_by, change_type, summary, new_owner.  Each control_no has revision_id ranging from 1 to a specific number. From this table, I want to select  VERSION_NO,CHANGE_TYPE,SUMMARY,CREATED_BY for a CONTROL_NO with max(REVISION_ID).  How to do this?

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


I would like to make a shape like the one shown in the screenshot below. I've looked at other questions, yet they were made in the previous version of Blender. The version I am currently using is 2.91, can you tell me what version this model was made in? Additionally, I also wonder how to make a primitive cylinder show three colors like the one shown in the other screenshot below.  Please be aware that the sphere is a UVSphere and not an icosphere. So all linked answers won't work with UVSphere!   (old version)

I know how to make it manually with cone rotation around the sphere. but maybe there's much simpler solution or addon that has that option, preferably not very high poly solution.  Also if possible I would like the spikes not to be very pointy if that makes any sense      Thanks


I have no problem compiling however when i execute the code i get this error :   Exception in thread "main" java.lang.NullPointerException at Stock.enregistrer(Stock.java:25) at TestStock.main(TestStock.java:13)    I am learning java and i am stucked with this error for a while now . Thanks for the help.  public class Stock {    Stock() {   }    Produit [] pdt ;    Fournisseur [] four;   int [] qte ;    int t = 0;    void enregistrer(Produit p , Fournisseur f , int q) {     pdt[t] = p ;     four[t] = f ;     qte[t] = q ;     t++ ;   }    void afficher() {     for (int i = 0 ; i < pdt.length ; i++) {       System.out.println("Le produit "+pdt[i].getNomP()+"à pour fournisseur : "+four[i].getNomEnt()+" et la quantité est de "+qte[i]);     }   }  }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I need to install some CPAN module on my Ubuntu computer. I want to install it from deb package so I need to find out what package contains that module.  Sometimes the solution for this task is pretty simple. For example if I need to install  I just convert the name to lowercase, change :: to - and add lib to the beginning and -perl to the end. The result is the package name libfile-find-rule-perl:  $ apt-cache search libfile-find-rule-perl libfile-find-rule-perl - module to search for files based on rules   But in other cases this is not working. I want to find deb package that contains . But apt-cache search libdebian-aptcontents-perl finds nothing.  Well, in the case of  I know that it is in the package dh-make-perl, but I want to know how to find what deb package contains the module I need.

This is certainly related to , but I feel it doesn't overlap, so here we go. How can I get the functionality of the following command on Ubuntu (and/or Debian as bonus):  yum whatprovides 'perl(Foo::Bar)'   Obviously I can attempt to rely on the package somehow ending up in a folder structure that resembles the namespaces in Perl, but I'm looking for something equivalent, i.e. equally brief and trivial. However, if it doesn't work as briefly on Ubuntu, I can do with a longer path and create my own function.  Please consider 10.04 or newer for this question.


I am trying to display the dimensions of an image and then resize them with a program my system says is there called Package ImageMagick-6.5.4.7-7.el6_5.i686 already installed and latest version. But getting error:  -bash-4.1# display main-bg1.jpg display: unable to open X server `' @ display.c/DisplayImageCommand/420.

When I am online, I get following error and the tool does not start:  [root@dhcppc9 lin64]# ./ise No protocol specified _pn: cannot connect to X server :0.0   But everything is OK when I am not a superuser. Why that?  Edit  [root@dhcppc9 lin64]# export $(dbus-launch) No protocol specified   any suggestion?  Also   [root@dhcppc9 lin64]# xhost [+] No protocol specified xhost:  unable to open display ":0.0"


I'm looking for something like command1 ; command2 i.e. how to run command2 after command1 but I'd like to plan execution of command2 when command1 is already running.  It can be solved by just typing the command2 and confirming by Enter supposed that the command1 is not consuming standard input and that the command1 doesn't produce to much text on output making it impractical to type (typed characters are blended with the command1 output).

I often start a long running command that is bound to either CPU, Disk, RAM or Internet connection. While that is running, I find that I want to run a similar command. Let's say downloading something big.  Then I start a shell with wget ...1 and let it run. I could open another shell and run the other wget ...2, but now they would fight for the bandwidth. When I just type the second command into the running shell, it will execute that later on, since wget is not interactive.  Is there a reasonable way to do this with either Bash or Fish Shell?


Can I testfor shot arrows and then make them explode?  Good would be if this would work only for player-shot arrows. Or, even better, could I do that when anybody shoots the arrow from a specific bow (somehow named or with another NBT tag), it explodes?

I am trying to make an effect trail for a specific weapon in MC, a bow with power 120.  I want to use a command block to target any arrow with the damage it should be doing (63) and summon a trail of splash potions.  I also want to kill any arrow entities that have inGround=True  Is there any way to do this or do I have to come up with something else?  Attempt:  /execute @e[type=Arrow,damage=63,inGround=0] ~ ~ ~ summon ThrownPotion ~ ~ ~ {Potion:{id:potion,Damage:8197}} /kill @e[type=Arrow,inGround=True]   Each unfortunately just affects all arrows.  Is this even possible?


Out of curiosity I'm trying to find an effective algorithm to find the value of a square root of a number(a) without a calculator. I'm trying to find a solution without searching it up.  What I have so far: $$ \sqrt{a} = a^{1/2} $$ $$ a^2 = a.a $$ $$ a^3 = a.a.a $$ $$ a^n = a x .\cdots .n $$ All I need to know is what will $a^{1/2}$ equal to?   I tried: $$ a^{1/2} = a . \frac{a}{2} $$ $$ a^{1/2} =  (a.a)/a $$  But these are definitely wrong

I need to calculate the SQRT of  $x$ to $y$ decimal places. I'm dealing with $128$-bit precision, giving a limit of $28$ decimal places. Obviously, if $\,y > 28$, the , which I'm currently using, becomes futile, as it simply doesn't offer $y$ decimal places.  My question to you is, can I calculate the Square Root digit-by-digit? For example, calculating the $n$-th digit, assuming I already have digit $\,n - 1$. I'm well aware this may be impossible, as I've not found any such method through Google yet, just checking here before I give up in search of arbitrary precision methods.


The movie plot was there was an accident that wiped out life except if you happened to die at the exact same time when the accident took place. The movie centered around a character who if I remember correctly worked at the facility where the accident took place.  Sound familiar to anyone?

This was a TV show aired in the UK probably sometime between 1990 and 1993, if memory serves it was only a one-off. The plot starts with the protagonist waking up in bed and being disappointed. He eventually goes outside and everyone is dead, whatever they were doing at the time they died doing it (driving, working, etc.) The protagonist is in a state of panic running around town (I seem to remember it being set in the UK) and he discovers that he's is 'alive' because he'd attempted suicide and died at the exact moment this mysterious event happened. I think he encounters others that 'died' at the time of the event and that's when he realises. I think the protagonist was a bald, white man, probably mid-thirties. Sorry for any vagaries, I was VERY young when it was on. Until recently I assumed it was The Quiet Earth but I've checked and it definitely isn't. It was in colour and was contemporary at the time so it would have been made around 1990.


After a new hard drive replacement in my old iMac (late 2009) I have similar problem like the questioner who changed it to grant. My main question if I follow the direction given in the answer will it reset to old Operating system? Please help.  To be clear I will explain what happened.  I tried to change user name in preferences, clicked on the current user (advanced options), which was named 'user', which was also the administrator, and changed the name. This didn't end up changing the username. I then tried to create another administrator user.  I logged out. When I logged back in the only user available to log in with was 'user'. When I opened user preferences I see that 'user' is no longer an administrator.  I now have no way of accessing an administrator. When I try move files into the applications folder it asks for admin username and password. I've tried every combination of 'user' and 'new user name' and nothing works.

On my mac I have 2 accounts and the both are normal account. So in this moment I don't have a Administrator account, only one that was in the past a administrator, but now is not.  How I can have again a Administrator account?


I am struggling with the bibtex for a long time, could you help me?  I want to cite a text from on a website without author. Therefore, I am using @misc in bibtex to cite it. The code is as follows:  @misc{sensitivity_and_specificity,     key={sensitivity-specificity},     Publisher={Emory University Medical School Evidence Based Medicine Course},     title = {Sensitivity and Specificity},     url = {http://www.med.emory.edu/EMAC/curriculum/diagnosis/sensand.htm},     urldate = {2017-08-30} }   But I only get the output which is not what I want to have  As shown in the figure above, the colon ( : )  in front is not wanted, and in the end, the wort "Zugriffsdatum" is expected to be changed in English. I have serched online for long and find the code should be correct. I think the problem may be caused by the template which I am using right now. But I have totally no idea how to change it. Could you help me. Thank you in advance.  Best regards YQ

Which bibtex entry type should I use to cite an article in a professional/popular (i.e. non peer reviewed) magazine. The article does not state an author, and bibtex article entry requires an author.  I found that the citation should be something like this   ‘Tax-free savings push’, Sunday Mail (4 April 1999), p. 3.


Gauge symmetries do not give rise to conservation laws via Noether's theorem, and they represent redundancies in our description of the system. So why do we want to keep them after quantization? For example:     But gauge symmetries are not symmetries at all. They are redundancies in our   description of the system. As such, we can't afford to lose them and it is imperative that they don't suffer an anomaly in the quantum theory.   (From , Chapter 5, Page 108).  If they are redundancies, then why do we want to formulate a theory with them in it? They give rise to all sorts of inconveniences, e.g. having to define a new functional integral that only integrates over physically distinct configurations.  I have seen how, by assuming a symmetry, e.g. U(1) symmetry, one can derive some beautiful results, such as the Maxwell Lagrangian, as done by Peskin and Schroeder. But why demand that there be gauge symmetries in the first place?

I have read before in one of Seiberg's articles something like, that gauge symmetry is not a symmetry but a redundancy in our description, by introducing fake degrees of freedom to facilitate calculations.  Regarding this I have a few questions:   Why is it called a symmetry if it is not a symmetry? what about Noether theorem in this case? and the gauge groups U(1)...etc? Does that mean, in principle, that one can gauge any theory (just by introducing the proper fake degrees of freedom)? Are there analogs or other examples to this idea, of introducing fake degrees of freedom to facilitate the calculations or to build interactions, in classical physics? Is it like introducing the fictitious force if one insists on using Newton's 2nd law in a noninertial frame of reference?


I have just started to embrace web mobile design.  I have this HTML markup:

Header

Filler

Main Content

Footer

   I want to cover the whole screen.  The 'Main Content' will be of vaying fixed sizes (for each page).  The 'Filler' is just a 'blank space' and its objective is to stretch the whole page down to the bottom of the screen so the footer is at the bottom. i have played arounbd with several styles (relative, inherit, hieght:100%) and i cannot get it to what I want it to do.  Is this a problem to do for mobile devices?  Thanks

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


i am using Microsoft Windows Version 2004 (OS Build 19041.329) unable to create a file at a path more then 247 characters as following C:\Users\NavpreetDevpuri\Downloads\LyndaDownloader-master\LyndaDownloader-master\Lynda\Become a Full-Stack Web Developer\2. PHP with MySQL Essential Training 1 The Basics (5h 51m) 720p\1. Start a Database-Driven Project\00000000000000000000000.txt  on emore example a file on desktop as follow having 247 characters at maximum. C:\Users\NavpreetDevpuri\Desktop\gasdfgasdrgvsdfgsdfgsdfgsdfsdsdsdfgsdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd.txt  I tried to restart and shotdown after changing following settngs I tried to change following but it did not work.  Group Policy to 1  Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Filesystem -> Enable Win32 long paths   Filesystem Registry entry to 1  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled   Group Policy Registry entry to 1  HKEY_LOCAL_MACHINE\System\CurrentControlSet\Policies\LongPathsEnabled   But following Group Policy is missing as mentioned at many online resources. may be this is the problem. Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Filesystem -> NTFS -> Enable NTFS long paths  How to resolve this issue ?

Windows 10 is killing me. I want to write some file names with more than 80 characters. I have a folder path like that: C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop\Illustrator CC - L art des courbes vectorielles\02 - Demarrer cette formation sur Illustrator CC. When I create a file into that folder and start typing the file name Windows only let me type only 50 characters. For example: Nouveau document texte jhkds fjkdshfkj sfhjsdh.txt. When I get into C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop\Illustrator CC - L art des courbes vectorielles it let me write at maximum 99 characters like Nouveau document texte khfjddjg djfhjdshf jdshf sdfsjdfjsd fds fsd fjsdfjdsjfhsdjfh djsfhjsdhfj.txt. When I get into C:\Users\MyUser\Documents\Formations\Maitriser les outils vectoriels d Illustrator et de Photoshop it allows me to write a file name with maximum 147 characters like Nouveau document texte djkshfkjs djfk hfjdshjf jshfjhsd fjshfjs dhfjhs djfhsjdhf jsdhfjhsdj fhds fhsdj fjdshfj hsdjhf sdhfjh sdjhf shdjf sjdhf .txt. each time I get closer to c:\ it increases the filename maximum length.  I even create a Python script to try to create a filename longer than the maximum allowed by Windows, Python throws an exception like File or directory not found (something like that).  I have LongPathsEnabled set to 1 in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.  My Hard drive is GPT and NTFS, it has 2 NTFS partitions.  What is wrong with Windows? How to fix it?


If we have the set $Y=\{1,2,3...2014\}$ and $X$ is some subset of $Y$, I'm to prove that if $|X|\geq64$ then there exists pairs $\{x,y\}$ and $\{a,b\}$ for some $x,y,a,b \in X$ for which $|x-y| = |a-b|$. I'm fairly sure this can be shown using pidgeon-hole principles, but I'm having real trouble braining it out. Any ideas how I can proceed?

Let X be a subset of {1,2,...,2014}.  How would I show that if |X| ≥ 64, then there exist at least two different pairs {x,y} and {u,v} of distinct elements of X which |x-y|=|u-v|?   I'm not too sure how to go about this problem. Any help is appreciated.


So I have a second hand notebook. The previous owner seems solid and says that for him, he was able to catch his Wifi router without any issues, even when he was in front of his house and the router was in 3rd floor inside...  Now I am the owner and the laptop was in service once. I used wired lan before so I did not care, but now I tried the wifi adapter and it is almost useless. I have wifi router RIGHT next to it and it indicates only 3 bars out of 5. Any other wifi routers in the house are inaccessible.  I was looking into the computer and wifi antenna is connected. I even tried to switch the main and aux antennas and it did not help at all. When I disconnect antennas and just leave the adapter without them, I get 2 bars out of 5 in the same experiment as before.  I even took the whole computer apart (inc. display) and the antennas do not appear to be damaged or severed anywhere... This is a little mystery to me. What else can I try?

I hope that I have asked this question in the right topic.  Basically I use BT (In the U.K.) and I have problems with my router receiving a weak signal in certain rooms of the house, which, therefore makes the internet really slow in some cases it won't work at all.  I have had experience working with Virgin Media (UK) before and just changed the channel number and this worked fine, but, do not know if I would receive the same outcome on BT.  Could anyone suggest any other things that I could try alongside of the channel change in order to /hopefully/ get a stronger signal, without having to install Ethernet cable?


In many codes I see that there is the symbol @ appearing (e.g. it often appears in counters). My simple question is: does @ has a special meaning or it is just a character as others?

Does the @ mean anything specific? For example, is it substituted? Does it split the command into parts, like \s@foo could internally mean "foo of type s"? Is the purpose of the @ only to make internal commands break when used outside a class definition or a package? If so, how is that a Good Thing?


\documentclass{article}  \usepackage{amsmath}  \begin{document}  \begin{equation*}   f(x) = x^2  \end{equation*}  \end{document}   When I type this in MikTex I always get an error and cannot see the Typeset. Why? I always get this

Why blank lines between equation makes error? there are a lot of commands in latex and almost for all of them these blank lines are not important,  but why in this case is important and is there any similar function?


I have got trouble downloading updates due to 404 error   Failed to fetch W: Failed to fetch http://vn.archive.ubuntu.com/ubuntu/dists/trusty/universe/source/Sources  404  Not Found [IP: 91.189.92.200 80]  E: Some index files failed to download. They have been ignored, or old ones used instead.   How to solve this error?

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


I already know of the app Researcher, but lately I found it is quite buggy and was wondering what people do to keep updated. Do you just join mailing list from selected journals or search daily for some keywords? Or is there something else I could use?

I see a lot of people use Google Scholar and ResearchGate alerts, but I find those alert systems too overwhelming to the point I get inundated and treat them like spam. Perhaps I'm not using them effectively, though (e.g., too many AND operators in my searches). Any tips to improve my experience? Any alternatives that you might suggest? I'm intrigued by ReadCube Papers for its capabilities to integrate searches for papers, citations, and annotations (which is something I've also struggled to do, having used three different pieces of software for those functions), but I'd prefer something that doesn't have a subscription payment structure, at the very least.


I am trying to show all published posts of my custom post type and I wrote this    $query = new WP_Query(array(        'post_type' => 'x-video',        'post_status' => 'publish',        'posts_per_page' => -1    ));    /loop code/    pagenavi();   This query is retrieving all published posts at once and I am looping through the results and displaying one page.  What I need is, I want it to be paginated with 12 posts per page. How can I do that?  If I put 'posts_per_page' => 5 then it is showing only 5 posts but not pagination

I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination?  Addendum  I have modified the main loop query via . Why isn't pagination working, and how do I fix it?


I was about to ask the following question:  “Is 'CIA' an acronym, or is only 'laser' an acronym?”  Now, in another question, I've been asking about the earliest use of words which started as initials but which are pronounced as words (which excludes "CIA"). For clarity's sake, I was wondering about the case of “laser” and not the “CIA” one. In the course of that discussion, naturally the word "acronym" appeared: I became interested in the meaning of the word "acronym."  Does "acronym" only mean the cases where you pronounce it like "laser" (i.e one word), or does "acronym" in fact stand for the cases like "CIA" whose initials are pronounced? Now, in investigating that issue, my investigations lead me to believe that, in fact: The word "acronym" is, quite simply, not well-defined between the two cases. Thus, (1) surprisingly all "official" dictionaries, etc, poorly distinguish or simply do not distinguish, between the two cases, neither do they mention that (say) it specifically means 'both cases', nor only one case. (2) in academic and similar use of the term, once again, no real distinction is made between the two (3) when I asked a handful of intelligent, literate people what "acronym" means, and particularly asked them to distinguish between the two meanings, all of them in the straw poll just said the same thing, "You're right, that's weird, nobody knows what 'acronym' means." or words to that effect. (4) It's easy to find examples where people use 'acronym' to aggressively means only the "CIA" case, and it's easy to find examples where people use 'acronym' to aggreesivly means only the "laser" case,  My questions i) What is your opinion on which of the two cases acronym means ii) Can you in fact, unlike me, find some "definitive" reference on the issue iii) Can you perhaps see in some academic or article setting, clear distinction between the two possibilities? iv) Am I sadly correct that the word 'acronym', simply, fails in general use to distinguish between the two cases?

One definition of an  is:     An abbreviation formed by (usually initial) letters taken from a word or series of words, that is itself pronounced as a word, such as RAM, radar, or scuba; sometimes contrasted with initialism.   An  is:     A term formed from the initial letter or letters of several words or parts of words, but which is itself pronounced letter by letter.   If I pronounce an initialism, as a word, and not just as letters, does that 'make' it an acronym?


Our organisation wants to set up a single Twitter account identity with multiple users from the organisation. How do we do that?

We have a Twitter account for our company but want other staff members to contribute to its feed. Is this possible?


Let $f:S\to T$. Let $S\subset X$ and $Y\subset T$. If $X=f^{-1}(Y)$, is it true that $f(X)\subset Y$? Is it true that $f(X)=Y$?   The first claim is true. Pick some $y_0\in f(X)$. Then there exists some $x_0\in X$ such that $f(x_0)=y_0$. By definition of inverse image, $X = \{s\in S: f(x)\in Y\}$. Thus, we have $f(x_0)\in Y$. That is, $y_0\in Y$. This implies that $f(X)\subset Y$.  But I'm not sure about the second claim?

Suppose that $f : E \rightarrow F$.  What is $f(f^{-1}(A))$? Is it always $A$? $f^{-1}$ is the inverse function.  This is not a homework, I'm confused by this statement.


I am trying to understand the equality (==) equals() method but couldn't reason out this behavior. Can someone explain this behavior with the following println statements.  String a="Hai"; String b="Hai"; int c=5, d=5;  System.out.println("Check1 : " + (c==d)); //prints  "Check1 : true"  System.out.println("Check2 : " + a==b); //prints false. It didn't print the string "Check2 : "  System.out.println("Check3 : " +a.equals(b)); //prints "Check3 : true"  System.out.println(" c==d : " + c==d);   //compile time error - incomparable types: java.lang.String and int   Many Thanks.

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'm remove opportunity, case related list from contact layout. After remove I try to pull using sfdx:force:source:pull -u . But, unfortunately I got an error . ERROR running force:source:pull:  Entity of type 'CustomApplication' named 'Contact' cannot be found.

While trying to pull changes from a scratch org (sfdx force:source:pull, tried with and without -f), I'm getting this error:     Entity of type 'ListView' named 'Note_Relation__c.My_Notes' cannot be found.   I do have a custom object Note_Relation__c, and it exists both locally and in the scratch org.  However, it's not an object that is normally accessed directly.  It has no tab, and should have no list views.  Nonetheless, I've checked the object's list view (via prefix, e.g., /a0D in both Classic and LEX view), and I can find no list views at all.  I've also tried adding an entry to .forceignore:  force-app/main/default/objects/Note_Relation__c/listViews/My_Notes.listView   This has no effect either.  At this point, I'm stuck with a bunch of config changes in a scratch org that I cannot pull.  I can find no references to this error message with scratch orgs.  Has anyone seen this issue?  Edit to clarify: I tried the .forceignore line based on what I think the file name should be; I have no force-app/main/default/objects/Note_Relation__c/listViews directory locally.  Edit 2: Workaround:  I found a workaround that doesn't make sense to me, but it works.  I'm not adding it as an answer yet because I'm not sure what's happening.  The workaround is to add the following line to .forceignore  Note_Relation__c.My_Notes   Even though this isn't a DX filepath, it's the name from the error message, and it seems to work.


After installing ubuntu latest version the webcam of my HP laptop doesn't work. I have installed cheese but the window of cheese is black it doesn't show anything.  I checked on google but there is no possible solution that could solve this problem. The light on my webcam turns on but the cheese doesn't show anything.

My HP Pavilion laptop has Ubuntu 18 version and I once tried to disable InBuilt webcam just for security reasons. But now it wasn't working and I reinstalled newer version of Ubuntu 20. But even after installing newer version the camera is still not working. When I open cheese it shows this screen. I assumed I might have deleted the drivers as I was doing package installation and removel that time. Please suggest me what should I do to get this working.


I was denied entry to US recently because of improper documents. My passport was stamped with entry withdrawn. I have a multiple entry visa also for Canada. Will it affect my travel plans to Canada? Will it affect my visa applications in other countries? I travel a lot because of business.

I was denied entry to India due to a visa technicality. I was advised by organisation I was travelling with to get tourist visa when I actually needed miscellaneous visa. Will this affect future travel to other countries if I have been refused once by a country, or if I want to re-enter India?


I was often stumbling upon (and correcting by hand) an IMHO rather surprising behavior of TikZ: powers are parsed in an unconventional way. Look at the MWE  \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \begin{tikzpicture}  \begin{scope}[local bounding box=symb]   \draw plot[variable=\x,domain=-1:1] (\x,{\x^2});  \end{scope}  \node[anchor=south] at (symb.north) {$x\verb|^|2$};  %   \begin{scope}[xshift=2.5cm,local bounding box=pow]  \draw[dotted] plot[variable=\x,domain=-1:1] (\x,{pow(\x,2)});  \end{scope}  \node[anchor=south] at (pow.north) {$\texttt{pow}(x,2)$};  %   \begin{scope}[xshift=5cm,local bounding box=star]  \draw[dashed] plot[variable=\x,domain=-1:1] (\x,{\x*\x});  \end{scope}  \node[anchor=south] at (star.north) {$x*x$}; \end{tikzpicture} \end{document}     The left/solid plot shows x^2, and naively I would expect it to coincide with pow(x,2) and x*x, but it doesn't. Rather, for negative x, the plot also grows in the negative direction.  On the other hand, pgfplots seems to correct for this, even/also (but not only) when one uses declare function.  \documentclass[tikz,border=3.14mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \begin{tikzpicture}[declare function={f(\x)=\x^2;}]  \begin{axis}[width=4cm,title={pgfplots}]  \addplot[domain=-1:1] {f(x)};  \end{axis}  \begin{scope}[xshift=5cm,yshift=1cm,local bounding box=tikz]  \draw plot[variable=\x,domain=-1:1] (\x,{f(\x)});  \end{scope}  \node[anchor=south] at (tikz.north) {Ti\emph{k}Z}; \end{tikzpicture} \end{document}     Naively, I'd expect the plots having the same qualitative shape (modulo adjustments of length scales made by pgfplots, of course). So pgfplots and TikZ seem to interpret the same function differently.  Question: Why is that? Is there a simple way to make TikZ produce the expected output (i.e. x^2 is nonnegative)?   NOTE: @circumscribe made me aware of . Apart from the comparison to pgfplots, this post does not add anything to the story, and in any case most likely the only viable answer is . So I will certainly not object to this question being closed as a duplicate of . (I did search for earlier questions, but was under the impression they should contain parse in the title, which is why I didn't find it.)

I have some files with TikZ graphics that have suddenly changed appearance since I upgraded to PGF-2.10.  Here is a minimal example:  \documentclass{minimal} \usepackage{tikz} \begin{document} \pgfversion\par \begin{tikzpicture} \draw[blue] plot[domain=-1:1] (\x,{\x^2 + \x^3}); \draw[xshift=4cm,blue] plot[domain=-1:1] (\x,{(\x)^2 + (\x)^3}); \end{tikzpicture} \end{document}   In PGF 2.00 I had this:    while in 2.10 I have this:    The one on the left in PGF 2.10 looks like the graph of y=x^3 but could also be y=x^3 + x|x|.   This has been  on sourceforge and  on the pgf-users mailing list.  Although I haven't checked myself yet, the bug remains open and some of the commenters below report that problems still exist in the CVS version.   Geoffrey Jones notes the bug is in the 2.00 CVS version:     Hi Matthew, not an answer, just an FYI   that's too large for the comment box.   My compile of your code through pgf   v2.00 produces the result you see with   v2.10, above:       I.e., the difference you observe seems   to pre-date v2.10.   There is a workaround by inserting parentheses.  But since I have so many old lecture files I'd rather find a solution that doesn't involve rewriting my TikZ code.  And I'm squeamish about using the CVS bleeding edge code even if it were fixed, since I don't want to introduce other problems.  Ideally I'd like a simple patch that I can stick at the preamble, or just fix one file in the PGF distro.


I am using a substring value of "data" to search fields in the database having a substring "data" in them. I currently have two fields of that type. Running the code with hard-coding " /data/i " in the "title" field returns the result but when I insert the variable substring to the query for "title" it returns an empty array.     WORKS   router.post('/search',function(req,res){   let substring = req.body.substring;   console.log(substring);   substring = ('/'+substring+'/i');   console.log(String(substring));       data.find({title:/data/i},function(err,found){ //works here           if(err) console.log(err);         console.log(found);         });     });      Does Not Work   router.post('/search',function(req,res){   let substring = req.body.substring;   console.log(substring);   substring = ('/'+substring+'/i');   console.log(String(substring));       data.find({title:substring},function(err,found){ // doesnt work here          if(err) console.log(err);         console.log(found);         });     });

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?


The  spell specifies that:     The target's game statistics, including mental ability scores, are replaced by the statistics of its new form ... The creature is limited in the actions it can perform by the nature of its new form, and it can't speak, cast spells, or take any other action that requires hands or speech, unless its new form is capable of such actions.   So let's take the example of a level 20 Sorcerer who has permanently True Polymorphed himself into a Planetar Angel.  The sorcerer's game statistics are replaced by those of the new form. Does this include class levels? The angel's form doesn't limit the physical ability to use spellcasting, but does the sorcerer retain their class-given spellcasting ability?  The wording of the spell seems to imply the caster is still able to cast their spells, as long as the new form is physically capable of performing the required components.  How about a dragon? They are capable of verbal and somatic components, which are the only requirements for spell usage.

The Polymorph spell states (in part):     The target’s game statistics, including mental ability scores, are   replaced by the statistics of the chosen beast. It retains its   alignment and personality.      The creature is limited in actions it can perform by the nature of its   new form, and it can’t speak, cast spells, or take any other action   that requires hands, or speech.   So, can a polymorphed Paladin use their Divine Smite class feature?  It expends a spell slot, but it is not a spell, and as far as we can tell does not require hands or speech.  We know (based on the 10th level Transmutation Wizard feature) that a wizard is supposed to be able to polymorph herself, and we can assume that she is also supposed to be able to maintain concentration needed to stay in the new form (otherwise it would be a pretty useless ability).  This is (as far as I can tell) not something any of the beasts eligible as polymorph targets can normally do.  So it is clear that the polymorphed creature maintains some abilities from her old form.  The question is which ones.    The Druid's Wild Shape ability explicitly says you can use class features, while Polymorph does not, suggesting that you can't use class features while polymorphed.  However, Wild Shape also explicitly says that you can continue to concentrate on a spell (see below, emphasis mine), and Polymorph does not, yet we believe that a polymorphed creature can continue to concentrate on the polymorph spell.  So the fact that Wild Shape explicitly allows something and Polymorph is not explicit about it does not necessarily mean that the polymorphed creature cannot do those things.  From Wild Shape rules:     You can't cast spells, and your ability to speak or take any action   that requires hands is limited to the capabilities of your beast form.   Transforming doesn't break your concentration on a spell you've   already cast, however, or prevent you from taking actions that are   part of a spell, such as call lightning, that you've already cast.   So, since Polymorph is silent on the question of whether or not class abilities can be used, and states only that the polymorphed creature cannot perform actions that require hands or speech, how can we best determine whether (RAI) polymorphed creatures maintain any of their old abilities beyond spell concentration?


I'm having a bit of trouble with the title problem out of Davidson and Donsig's Real Analysis. I'll state it again:  Suppose $f$ is continuous on $\mathbb{R}$ such that $$\lim_{h\to 0} \frac{f(x+h)-f(x-h)}{h} = 0\  \forall x\in\mathbb{R}.$$ Prove that $f$ is constant.  They provide the following hint which I have been trying to apply.  HINT: Fix $\epsilon > 0$. For each $x$, find a $\delta > 0$ so that $|f(x+h)-f(x-h)| \leq \epsilon h$ for $0\leq h \leq \delta$. Let $\Delta$ be the supremum of all such $\delta$. Show that $\Delta = \infty$.  Here's how I've started. Fix $\epsilon > 0,\ x\in\mathbb{R}$. By the definition of the limit,  $$(\forall x\in\mathbb{R})(\forall\epsilon>0)(\exists\delta>0)(0<|h|\leq\delta\implies\Bigg|\frac{f(x+h)-f(x-h)}{h}\Bigg|<\epsilon).$$   Therefore, we immediately get a $\delta>0$ for our $x,\epsilon$ such that $$|f(x+h)-f(x-h)|\leq\epsilon h,\ 0\leq h \leq\delta.$$  I don't know how to proceed from here. I'm not even sure conceptually how showing that $\Delta=\infty$ would give us that $f$ is constant. Any help would be appreciated!

Put precisely, if $f:\mathbb R\to\mathbb R$ is continuous with  $$ \lim_{s\to 0^+}s^{-1}(f(t+s)-f(t-s))=0 \kern20mm (*) $$ for all $t\in\mathbb R$ , is $f$ then constant?  I guess it is but I cannot see the proof. Obviously, if instead of ($*$) we had $\lim_{s\to 0^+}s^{-1}(f(t+s)-f(t))=0$ , i.e. the right-handed derivative zero, then the assertion could be proved indirectly by a simple compactness argument applied to closed intervals $[a,b]$ with $f(a)\not=f(b)$ . However, I cannot see how this argument could be modified to get the above result. Is there possibly a reference to this, or is the result even false?


I have a program in Java used as a command line application. I am using  for argument processing.  When getting the values from Jopt the code gets ugly because of the of multiple cases depending of the values of argument to choose an execution path.  Here is the method responsible for choosing what will be the next step based on the values of arguments:  private void processArgs(String args[])  {       .......      if (argsList.contains(VERSION)) {         showVersion();         return;     }      if (argsList.contains(SHOWENV)) {         showEnv();     }      if (parsed.has(TARGET_LANG)) {         String targetedLang = _targetLangOptionSpec.value(parsed);          if (!JAVA.equalsIgnoreCase(targetedLang))         {              execJava();             return;         }     }     if (parsed.has(TARGET)) {         processTargets();         return;     }      if (parsed.has(EXEC)) {         processExec();     }      if (parsed.has(CONSOLIDATE)) {         consolidate();     }     ......    }    I was wondering if this case was already treated by some design pattern.  I have looked at the answers  but there is no clear solution proposed.

If you are writing a program that is executable from the command line, you often want to offer the user several options or flags, along with possibly more than one argument. I have stumbled my way through this many times, but is there some sort of design pattern for looping through args and calling the appropriate handler functions?  Consider:  myprogram -f filename -d directory -r regex   How do you organize the handler functions after you retrieve the arguments using whatever built-ins for your language? (language-specific answers welcomed, if that helps you articulate an answer)


How do I rename List of Figures into Figures and List of Tables into Tables? (An automatic function in LaTeX)  \listoftables \listoffigures   I used this to create them.  And I'm using   \documentclass[chapterprefix]{scrreprt}

I'd like to modify the names used to typeset some of my document elements. For example, the caption of figure floats should change from "Figure" to "Fig.", and my \tableofcontents sectioning heading shouldn't read "Contents", but "Table of Contents". How can I do that?  \documentclass{article} % \usepackage[english]{babel} \begin{document} \tableofcontents \section{foo} \begin{figure}[h] \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure} \end{document}


As far as I understand, if I have 3 different network cards, then HAL will cal each of them eth0, eth1 and eth irrespective of their brands, manufacturerers etc. But it seems to me that udev precisely performs similar operations based on its rules. What is their essential difference(except that HAL is deprecated)?

I'm just beginning to dive into the internals of Linux, and I was wondering what the difference is between udev and the hal daemon.  From what I gather, both seem to be responsible for managing hot pluggable devices... is hald used by udev to listen, or are they two separate things?


I want to change the dimensions (height and width) of some images that I have inserted into a Word document, and do it automatically and not one by one(right click and size...).  The images have the same initial size.  They are all going to the same new size and preserving the aspect ratio without cropping. They were not previously resized or otherwise modified on the page.  The images I want to change have the same category of caption.  Is there a way to do this?

In a blank document, I insert images (screenshots - all are of same size and same format) from a folder. I want to resize the images to a desired size. All now I am doing is selecting one image by one, setting its size. Word does not seem to have multiselect working for images.  Ideally, I want to select multiple images set its size in one go with out use of a macro.


Let $X_1, \ldots, X_{n_X}$ and $Y_1, \ldots, Y_{n_Y}$ be $n_x$ and $n_Y$ iid observations from two independent Bernoulli populations with probabilities of success $p_X$ and $p_Y$. Define the statistics $T_X = \sum_{i=1}^{n_X}X_i$ and $T_Y = \sum_{i=1}^{n_Y}Y_i$. I am testing the hypothesis:  $$ H_0 : p_X = p_Y \ \ \ \text{and} \ \ \ H_1 : p_X \neq p_Y $$  Consider the test statistic:  $$ T = \dfrac{\hat{p}_X-\hat{p}_Y}{\sqrt{\hat{p}(1-\hat{p})\left(\frac{1}{n_X}+\frac{1}{n_Y}\right)}} $$  where $\hat{p}_X = \frac{T_X}{n_X}$ and $\hat{p}_Y = \frac{T_Y}{n_Y}$, and $\hat{p} = \frac{T_X+T_Y}{n_X+n_Y}$.   I would like to derive the asymptotic distribution of $T$ under $H_0$ as both $n_X$ and $n_Y$ go to infinity that is that under the null: $$ T = \dfrac{\hat{p}_X-\hat{p}_Y}{\sqrt{\hat{p}(1-\hat{p})\left(\frac{1}{n_X}+\frac{1}{n_Y}\right)}} \to_D N(0,1) $$  Now this question has been asked before see:   However the answer given there is wrong because it gives a justification based on the continuous mapping theorem. The continuous mapping theorem says that for random variables $X_n$ and $X$ such that $X_n$ converges in distribution to $X$ and if $g$ is a continuous function, then $g(X_n)$ converges in distribution to $g(X)$. However $g$ cannot be a function of $n$.  The function $\varphi$ used in the answer is itself dependent on $n_X$ and $n_Y$ and so the continuous mapping theorem doesn't apply.   In which case how do you find the asymptotic distribution?

Let $X_1, \ldots, X_{n_X}$ and $Y_1, \ldots, Y_{n_Y}$ be $n_x$ and $n_Y$ iid observations from two independent Bernoulli populations with probabilities of success $p_X$ and $p_Y$. Define the statistics $T_X = \sum_{i=1}^{n_X}X_i$ and $T_Y = \sum_{i=1}^{n_Y}Y_i$. I am testing the hypothesis:  $$ H_0 : p_X = p_Y \ \ \ \text{and} \ \ \ H_1 : p_X \neq p_Y $$  Consider the test statistic:  $$ T = \dfrac{\hat{p}_X-\hat{p}_Y}{\sqrt{\hat{p}(1-\hat{p})\left(\frac{1}{n_X}+\frac{1}{n_Y}\right)}} $$  where $\hat{p}_X = \frac{T_X}{n_X}$ and $\hat{p}_Y = \frac{T_Y}{n_Y}$, and $\hat{p} = \frac{T_X+T_Y}{n_X+n_Y}$.   I would like to derive the asymptotic distribution of $T$ under $H_0$ as both $n_X$ and $n_Y$ go to infinity. My works is as follows: By the asymptotic properties of the MLE:  $$ \sqrt{n_X}(\hat{p}_X-p_X) \to_{D}N(0,p_X(1-p_X)) $$  and  $$ \sqrt{n_Y}(\hat{p}_Y-p_Y) \to_{D}N(0,p_Y(1-p_Y)) $$  I would like to find the distribution of $\hat{p}_X-\hat{p}_Y$, but am not sure how. In general two "in distribution" results are not additive. That is, it is genreally NOT the case that $X_n+Y_n \to_{D} X+Y$. Does anyone have any ideas?  I know in general that under the null:  $$ T = \dfrac{\hat{p}_X-\hat{p}_Y}{\sqrt{\hat{p}(1-\hat{p})\left(\frac{1}{n_X}+\frac{1}{n_Y}\right)}} \to_D N(0,1) $$


What is the equivalent for this in VB.net  int? x;  int s;  s = x ?? 5;

Is there a VB.NET equivalent for C#'s ?? operator?


I am using Ubuntu 13.10. When I type df -h, the terminal shows the following information  Filesystem      Size  Used Avail Use% Mounted on /dev/sda7        28G   26G     0 100% / none            4.0K     0  4.0K   0% /sys/fs/cgroup udev            3.9G  4.0K  3.9G   1% /dev tmpfs           794M  872K  793M   1% /run none            5.0M     0  5.0M   0% /run/lock none            3.9G  224K  3.9G   1% /run/shm none            100M   48K  100M   1% /run/user /dev/sda8        35G  102M   33G   1% /boot /dev/sda5        69G   18G   51G  27% /media/user/Chinnu /dev/sda2       130G   40G   90G  31% /media/user/CCCA371ACA37006E /dev/sda1        70G   50G   21G  72% /media/user/76E66C99E66C5AFF  /dev/sda3       130G   12G  118G  10% /media/user/jinju   I hope 28G is the size given to Ubuntu.  When I took "About this computer" menu item. it shows that     DISK : 66.2 GB    But I need some more GBs in Ubuntu. Is it possible to resize my Ubuntu partition without reinstalling?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


In Linux, let us assume we have a directory with the following properties:  drwx---r-x 29 user1      group1 4096 Jun 22 14:11 dir1   can I, as user2 having group group1, navigate into dir1?   Since other has r and x permissions, I was thinking I could, but I could not navigate into the directory and got the following error:  -bash: cd: dir1/: Permission denied   What am I missing?

I just ran into something unexpected (for me) regarding file permissions on Linux (Arch Linux). Basically I have:   userX in groupX fileX userX:groupX ---rwx----   What puzzles me: I cannot perform any action (rwx) on fileX. Is this right? Can someone please confirm this is indeed the expected behaviour?  The only actions I can perform are mv and rm because I have write permissions on the parent directory.  The thing is, I always thought these permissions collapse on each other, starting with the most general one (other -> group -> user). In other words, if o=rwx who cares what the persmissions for group and user are? Apparently this is not the case but it doesn't make much sense to me; it seems counterintuitive. The only thing this approach seems to be useful at, is to easily exclude a very specific person / group, which doesn't seem like a smart way to go at it (imho). Besides, the owner (and group?) should be able to chmod anyway right? Any thoughts on this matter?