Can a caster end the spell Delayed Blast Fireball immediately after the turn they cast it?

The spell  states:  A beam of yellow light flashes from your pointing finger, then condenses to linger at a chosen point within range as a glowing bead for the duration. When the spell ends, either because your concentration is broken or because you decide to end it, the bead blossoms with a low roar into an explosion of flame that spreads around corners. Each creature in a 20-foot-radius sphere centered on that point must make a Dexterity saving throw. A creature takes fire damage equal to the total accumulated damage on a failed save, or half as much damage on a successful one. The spell's base damage is 12d6. If at the end of your turn the bead has not yet detonated, the damage increases by 1d6.  According to the  rules of The Rules of Magic (emphasis mine):  You can end concentration at any time (no action required).  Is it possible for a caster to cast Delayed Blast Fireball on their turn, end their turn (increasing the damage by a d6 by doing so), and immediately end the spell during the start of the next creature in the initiative order's turn?


I've been told that a vacuum isn't actually empty space, rather that it consists of antiparticle pairs spontaneously materialising then quickly annihilating, which leads me to a few questions.  Firstly, is this true? And secondly, if so, where do these particles come from?... (do the particles even have to come from anywhere?)


Is $\mathbb{Z}/3\mathbb{Z} \times \mathbb{Z}/3\mathbb{Z}\hspace{0.5mm}$ isomorphic to $\hspace{0.5mm}\mathbb{Z}/9\mathbb{Z}$?

I kind of know that the answer is no (It is no, right?) through brute force trying out, and I remember my professor emphatically saying that $\mathbb{Z}/2\mathbb{Z} \times \mathbb{Z}/2\mathbb{Z}\hspace{0.5mm}$ is not isomorphic to  $\hspace{0.5mm}\mathbb{Z}/4\mathbb{Z}$, and the same logic should apply to the question at hand. However, I still don't quite understand the systematic reasoning here, it's all still a bit trial and error at this point for me. Can someone shed some light on this?


Just like we have the equation $y=mx+b$ for $\mathbb{R}^{2}$, what would be a equation for $\mathbb{R}^{3}$? Thanks.


Say the set $A$ is countable, therefore we can write $A = \{x_0,x_1,x_2,......\}$ $\subseteq \mathbb{R}^2$. But, we can also write, $A = \bigcup \{x_i\} $. And we know a single point in $\mathbb{R}^2$ is a closed, therefore $A$ is closed since it is a countable union. Is this true?


How do I randomize the numbers in a for loop in python 2.7.5?  The for loop looks like this:     for i in[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]: I already tried using the import random thing, maybe I wasn't using it right, but I don't know.


How do I get the paths of files and directory that a process is currently using in C #?

We need a method that can check which file or folder is currently being used by the process and return a list for further path analysis. Not so long ago I found out about PerformanceCounter, which partially simplified my life. But this question was never resolved. But the concept of my application requires a solution to this issue. There is an example of what I want to achieve is the standard Resource Monitor snap-in for Windows. There is a tab Disk > Disk activity, just select any process and you can see all the files and folders opened by this process. Actually, that's why I'm not giving up yet, because I suppose that there is an API. The Net Framework is a rich library, not a single programmer's life is enough to learn everything. We will discuss any solutions.


How to use GeoPandas buffer function to get buffer zones in kilometers?

I am having trouble with using GeoDataFrame.buffer function. That is probably because of my lack of understanding crs. Here is the case: I have events dataset (points longs & lats) and locations dataset (points longs & lats). I want to check which of the events occurred within 2km radius circle from locations. I know how to perform spatial join in geopandas, but the problem is in buffer(distance, resolution) function. When creating both GeoDataFrames I used crs: 'epsg:4326' and in distance parameter use 0.2 (without any good reason). So my question is: How to adjust crs and distance parameter to make it in kilometers? Here is my sample code. The intersection should contain only events with id 1 & 2. However it does contain event 3 which is about 10km far from any of locations. Also it does not contain event with id 4, which is good, because that one is hundreds kilometers from any of locations. events = pd.DataFrame([     {'id': 1,      'longitude': 54.606402,      'latitude': 18.347709},     {'id': 2,      'longitude': 54.604681,      'latitude': 18.346534},     {'id': 3,      'longitude': 54.544322,      'latitude': 18.293896},     {'id': 4,      'longitude': 50.843233,      'latitude': 11.130688} ]) locations = pd.DataFrame([     {'id': 'a',      'longitude': 54.604972,      'latitude': 18.346815},     {'id': 'b',      'longitude': 54.605917,      'latitude': 18.347249} ])  locations_gpd = gpd.GeoDataFrame(locations,                                  geometry=gpd.points_from_xy(locations.longitude, locations.latitude).buffer(0.2, 16),                                  crs={'init': 'epsg:4326'})  events_gpd = gpd.GeoDataFrame(events,                               geometry=gpd.points_from_xy(events.longitude, events.latitude),                               crs={'init': 'epsg:4326'})  intersection = gpd.sjoin(locations_gpd, events_gpd, how='left')


What is it called when an idiom is used so out of place that it is ridiculous?

A spokesman for the UK's Department of Food and Rural Affairs seems to be indicating that either DEFRA, the UK population or the whole of humanity are due to say goodbye to planet earth in 2043.     A Defra spokesman said: “We are committed through our 25-year environment plan to eliminating avoidable plastic altogether by the end of 2042 so we leave our planet in a better state than we found it.     Is there a word (or phrase) for using a familiar idiom (such as 'leave it as you find it') in such a way that it is ridiculous ?    Sample sentence :  _______ is the misuse of an idiom which leads to a ridiculous statement.


How to get syntax highlighting activated on another SE site?

It seems syntax highlighting is not enabled on every SE site, but later on turns out to be rather advantageous. As an example,  may not have sounded like needing it, yet there is , and I think it's justified since many answers have code in them, e.g. JS for InDesign scripts, some GREP-regex and (rather obviously) HTML and CSS. While I'd appreciate having syntax highlighting activate on that specific site (so please upvote ), this question is more general about two points:   Why is syntax highlighting disabled on some sites at all? Are the additional resource costs really so high? Couldn't caching improve that then? How to actually proceed when it should become activated on a specific site? It seems feature requests on the specific meta site are not exactly handled quickly (the request mentioned above is from 2013!), and also appear overkill for a simple "please switch that site's config bool for syntax highlighting".


How to pause a video animation in video editor

I am trying to create a technical animation where i require a video to pause at specific intervals to include explanation texts. For example, in the image below i require a cut to be done exactly where the blue line is:  I am aware using keyboard shortcut "K" allows for me to split strips where i can split the video, followed by splitting the image apart from the video as such:  However, when i scrub to the portions where the portion is black no video will be playing. Tl;dr: How do i easily pause an animation such that i can add other edits in the other channels while keeping a still frame in the original video. (the only brute force method i can think of currently is duplicating that still frame that i cut [2nd image] for the whole duration of the blank space.)


For $n=pq$, show that there exist $\alpha, \beta \in Z_n^*$ such that $\alpha, \beta \notin (Z_n^*)^2$ and $\alpha \cdot \beta \notin (Z_n^*)^2$.

For $n=pq$, where p,q are distinct odd primes show that there exist $\alpha, \beta \in Z_n^*$ such that $\alpha, \beta \notin  (Z_n^*)^2$ and $\alpha \cdot \beta \notin   (Z_n^*)^2$. Here if we try to use Chinese Remainder theorem results then let : $$\alpha \equiv \alpha_p\mod p\,\,,\qquad\alpha \equiv \alpha_q\mod q$$ $$\beta \equiv \beta_p\mod p\,\,,\qquad\beta \equiv \beta_q\mod q$$ Since $\alpha \notin (Z_n^*)^2$, what can we say about $\alpha_p$ and $\alpha_q$? Do $\alpha_p \notin (Z_p^*)^2$ and $\alpha_q \notin (Z_q^*)^2$ also hold? Is there another approach to solve this problem?    PS: Couldn't insert "p,q are distinct primes" in title due length restriction.


The graph of $f$ is a connected subset of $\mathbb{R}^2$.

Let a function $f:[0,1]\to\Bbb R$ given by $f(x)=\sin(\frac lx)$ for $x\ne 0$ and $f(0) = 0$. Show that although $f$ is not continuous, the graph of $f$ is a connected subset of $\mathbb{R}^2$.  I was wondering on how to prove this.  I have read that the closure of a connected set is also connected, so if I can show the given set is a closure of some connected set then I am done.  Could you please help me out.


differing `puts` behavior inside `do..end` blocks and curly braces in Ruby

I'm an experienced developer but a Ruby newbie.  I was reading this thread  and learned some good stuff about when to use braces and when to use do .. end blocks.  One of the tips was use do .. end when you are after side effects and {} when you are concerned about the return value. So experimenting with some of the examples in the enumerator tutorial I'm going through: irb(main):001:0> my_array = [1, 2] => [1, 2] irb(main):002:0> my_array.each {|num| num *= 2; puts "The new number is #{num}."} The new number is 2. The new number is 4. => [1, 2] irb(main):003:0> my_array.each do |num| num *= 2; puts "The new number is #{num}." end The new number is 2. The new number is 4. => [1, 2]  Hang on.  I thought the do..end block returns an enumerator object?  It looks like an array.  Let's check: irb(main):004:0> puts my_array.each {|num| num *= 2; puts "The new number is #{num}."} The new number is 2. The new number is 4. 1 2 => nil irb(main):005:0> puts my_array.each do |num| num *= 2; puts "The new number is #{num}." end #<Enumerator:0x000055967e53ac40> => nil  Okay, it is an enumerator. But what happened to the output of the puts call in the loop on line 005? The {} had the expected side effect but not the do..end block, which seems to violate that rule of thumb. What happened to my "The new number is #{num}." strings?


I would like to make an array of buttons, which later will help me construct the board with JButton, but whenever I try to call on the code below i get a NullPointerException on the addButton method. The Exceptions are with the actionPerformed and mouseReleased in the BasicButtonListener, which I don't really understand.  public Window(int size, MainWindow mainWindow) {         this.size = size;         this.mainWindow = mainWindow;         mainWindow.getWindowList().add(this);         model = new GamePlay(size);          JPanel top = new JPanel();          label = new JLabel();         updateLabelText();          JButton newGameButton = new JButton();         newGameButton.setText("New Game");         newGameButton.addActionListener(new ActionListener() {              @Override             public void actionPerformed(ActionEvent e) {                 newGame();             }          });          top.add(label);         top.add(newGameButton);          JPanel mainPanel = new JPanel();         mainPanel.setLayout(new GridLayout(size, size));          for (int i = 0; i < size; ++i) {             for (int j = 0; j < size; ++j) {                 addButton(i, j); //Line 50                 mainPanel.add(buttonMatrix[i][j]);             }         }          getContentPane().setLayout(new BorderLayout());         getContentPane().add(top, BorderLayout.NORTH);         getContentPane().add(mainPanel, BorderLayout.CENTER);     }       private void addButton( int i,                             int j) {         final JButton button = new JButton();          button.addActionListener(new ActionListener() {             @Override             public void actionPerformed(ActionEvent e) {                 Player newValue = model.step(i, j);                 button.setText(newValue.name());                  updateLabelText();                  Player winner = model.findWinner();                 if (winner != Player.NOBODY) {                     showGameOverMessage(winner);                 }              }         });          buttonMatrix[i][j] = button; //Line 81      }   And the MainWindow class:  private List<Window> gameWindows = new ArrayList<>();      public MainWindow() {          JButton small = new JButton();         small.setText("3 x 3");          small.addActionListener(getActionListener(3));          JButton medium = new JButton();         medium.setText("5 x 5");          medium.addActionListener(getActionListener(5));          JButton large = new JButton();         large.setText("7 x 7");          large.addActionListener(getActionListener(7));          getContentPane().setLayout(                 new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));         getContentPane().add(small);         getContentPane().add(medium);         getContentPane().add(large);     }      private ActionListener getActionListener(final int size) {         return new ActionListener() {              @Override             public void actionPerformed(ActionEvent e) {                 Window window = new Window(size, MainWindow.this); //Line 43                 window.setVisible(true);                 gameWindows.add(window);             }          };     }


Tabs in output file written by xelatex and pdflatex are different

I'm trying out  with gnuplot to generate the data.  This works by having pgfplots write some stuff to an external file, run gnuplot on the file, and then use the generated data to plot the graph.  The problem I'm having is that I get different behaviour under xelatex as pdflatex or lualatex.  In xelatex, the data file is littered with ^^I whereas in the other two formats these are tabs.  It appears that the code ^^I is getting stored as a macro which then gets written out to the file, so possibly there's something funny going on with the ^^I syntax: xelatex is reading it literally.  Indeed, when I do \show\pgfplots@TAB (the macro in question) then for pdflatex and lualatex then I get a literal tab whereas for xelatex I get ^^I.  So how do I get a tab in xelatex?  And why isn't \gdef\pgfplots@TAB{^^I} working?  (The previous line in the code, by the way, is \catcode`\^^I=12 - I don't know if that has anything to do with it.)


Using that: $$ x^{n - 1} + x^{n - 2} + \cdots + x + 1 = \left(x - w\right)\left(x - w^{2}\right)\ldots\left(x - w^{n - 1}\right) $$  Prove that: $$ \sin\left(\pi \over n\right)\sin\left(2\pi \over n\right)\ldots \sin\left(\left[n-1\right]\pi \over n\right) = {n \over 2^{n - 1}} $$


Unknown display besides laptop Built-in display. Old question but with no answers

After my update from 12.04 to 13.10 my display configuration started showing an extra unknown monitor, even though I have nothing connected.    lscpi:  00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)   xrandr  Screen 0: minimum 320 x 200, current 1366 x 768, maximum 32767 x 32767 LVDS1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm    1366x768       60.0*+   60.1      1360x768       59.8     60.0      1024x768       60.0      800x600        60.3     56.2      640x480        59.9   VGA1 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) DP1 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) VGA-2 connected (normal left inverted right x axis y axis)    1024x768       60.0      800x600        60.3     56.2      848x480        60.0      640x480        59.9     1024x768 (0x43)   65.0MHz         h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz         v: height  768 start  771 end  777 total  806           clock   60.0Hz   800x600 (0x44)   40.0MHz         h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz         v: height  600 start  601 end  605 total  628           clock   60.3Hz   800x600 (0x45)   36.0MHz         h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz         v: height  600 start  601 end  603 total  625           clock   56.2Hz   This problem seems to had been previously asked  and .  Any ideas on how to solve this?


Create a bootable USB on a Mac to install Ubuntu on a PC

I have a working MacBook Pro and a crashed Windows 7 PC. I was running Ubuntu on my PC, but after a recurrent issue now I can't boot either OS. I would like to install only Ubuntu on my PC and will make Windows 7 history for good, but I am a bit puzzled by the instructions for creating a bootable USB options on the website.  If I create a bootable USB on my Mac following the instructions for OS X, would it boot in a PC?


How can i edit the nautilus quicklist in ubuntu 13.10?

in ubuntu 13.10 how can i edit the quicklist? Because i need to add some other place and remove some that are default (like picture, video, etc) thanks!


I am working on a CentOS server and schedule a task with command at  # echo "touch a_long_file_name_file.txt" | at now + 1 minute job 2 at Wed Oct 31 13:52:00 2018   One minute later,  # ls | grep a_long_file_name_file.tx a_long_file_name_file.txt   the file was successful created.  However, if I run it locally on my macOS,   $ echo "touch a_long_file_name_file.txt" | at now + 1 minute job 31 at Wed Oct 31 13:58:00 2018   Minutes later, if it failed to make such a file.  I checked the version of at on the CentOS server  AUTHOR:   At was mostly written by Thomas Koenig, ig25@rz.uni-karlsruhe.de.   2009-11-14                                                In contrast, the macOS version  AUTHORS      At was mostly written by Thomas Koenig <ig25@rz.uni-karlsruhe.de>.  The time parsing routines are      by      David Parsons <orc@pell.chi.il.us>, with minor enhancements by      Joe Halpin <joe.halpin@attbi.com>.  BSD                            January 13, 2002                               I found that at, atq, atrm are not of GNU coreutils.  $ ls /usr/local/opt/coreutils/libexec/gnubin/ | grep at cat date pathchk realpath stat truncate   How could I install the latest version of at on macOS and make it work?


Offline desktop application using Flash stopped working today (12 Jan 2021)

I have an old Windows desktop offline application (Tap'Touche) that uses Flash for some of its features. Yesterday (11 Jan 2021) it worked just fine, as it did during several years. Today (12 Jan 2021), it simply stopped working: the Flash-based animations are replaced with a Flash logo, and while most of the application works fine (it's a typing app, so I can type the letters and such), when a level is completed, it waits for the animation to play and, since it no longer works, the level is not completed and my scores are not recorded. I'm appalled at the fact that Microsoft disabled offline, desktop applications for no reason, without a prior warning on Windows itself. I manually changed the date on Windows to yesterday, and it works again. How can I keep it working without having to reset the clock on my computer? Is there a way to emulate the date or use something so that Windows will not arbitrarily decide to block? Edit: this application is not launched by Flash, but it uses Flash for some of its features. So I cannot simply launch it using Newgrounds Flash Player; unless there is a way to replace the default player that is used by the application, I believe Newgrounds's one is not useful here. Edit: I could find a  on the Internet Archive, but it does not work: it is simply a binary similar to Newgrounds' player. The old player seems to be located at C:\Windows\System32\Macromed\Flash or C:\Windows\SysWow64\Macromed\Flash. I found a Flash uninstaller executable on the Internet Archive and used it, then reinstalled a , the latest before the "time bomb" by Adobe, but it does not change the version used by Tap'Touche. Apparently it uses the "ActiveX"-based executable which I found in my SysWow64 directory, but even if I rename it (so that the file is not found), the .363 installer still claims that "a more recent version is already installed". It seems Microsoft has a specific Windows update that removes Flash completely, but I couldn't find it. I tried deleting some registry keys related to Flash, so that the installer would work, but even as administrator I couldn't remove them.


Combine multiple images using ImageMagick

I would like to combine multiple images into one image using ImageMagick. To explain a little better, I want the result to look similar to this:    That is, I have a number of screenshots, and I want to turn them into one image with the original images on top of each other.  By Googling, I have come across the 'composite' command, but I don't know if, and in that case how to use it to get the result I want.


My schema:  id:int | post_hash:str | post_body: str | is_op: tinyint(1) | parent_id:int  1 | 'dddba11f43d90117b01' | 'test post' | 1 | Null   2 | Null                  | 'test reply'| 0 | 1   This is to store forum posts and replies. How can I select post_hash and all its child posts specified by parent_id? To clarify, the idea is something like:  SELECT p.id FROM posts p WHERE post_hash = ? or parent_id = p.id   where p.id is the result of the select. It's self-referential so a subquery or join will be needed but I'm not sure how to go about this one.


I have this problem with my redstone. Im trying to build a trapped chest piston trap, but 3 of the pistons will just not deactivate. it stays powered even when its not connected to anything. is there any way to stop this?


Pass arguments of .BAT file to executed .EXE file

I need a DOS .bat script that just transfers ALL arguments to a .exe program.  For example the DOS script main.bat that calls the .exe program.exe:  program.exe ????   The question is what ??? should be. The arguments must ALL be passed quoted: if there are filenames with spaces, these must be left intact. Under UNIX/POSIX this is called "quoted array", because the arguments form an array (ARGV[x]), and each argument must be quoted.


Exploding features based on numerical field in QGIS?

I have a set of data as polygons, each with a Number field with value X. Is there then a way to copy this into X number of polys at the same location? (ideally points distributed across the poly but that's a bonus).  In QGIS I have tried Random Points, but this doesn't inherit attributes, and Join Attributes by Location is useless if the parent polys overlap.  The reason behind this is for collating data easily with the GroupStats plugin.


What is the correct usage? I shall update you or I will update you.  in short, what is the difference  between Shall and Will ?


how to prove $2^n = {n \choose 0} +{n \choose 1} + \cdots {n \choose n}$

I have studying my maths book induction chapter and I found things to solve this but I am failed, somebody help me to solve this problem by simple method of mathematical induction.  $$2^n = {n \choose 0} +{n \choose 1} + \cdots {n \choose n}$$ How to prove it by mathematical induction.


Fitting unbreakable large equation on one line in a twocolumn layout

I have an equation in my document which is unbreakable and does not fit on one line using the twocolumn global option. Am I forced to shrink the text size here? And how do I go about doing it? \resizebox does not function in math mode.    \documentclass[twocolumn]{ltxdoc} \usepackage{amsmath} \begin{document} \begin{equation} \sum_{q_\mathrm{total}=0}^{q_A+N_A+q_B+N_B-2}\left(\sum_{q_A=0}^{q_\mathrm{total}}\left(\binom{q_A+N_A-1}{q_A}\binom{q_B+N_B-1}{q_B}\right)\right)x^{q_\mathrm{total}} \end{equation} \end{document}


Want to switch to Ubuntu from Windows 10

Please help me with steps as i want to use Ubuntu and remove Windows 10 from my lappy. Thank you in advance


I have the following congruencies: $$x= 4(mod 7) $$ $$x= 2(mod 4) $$ $$x= 2(mod 5) $$ I solved for the smallest possible x that satisfies all of those conditions by breaking it up like so: $$a= 4(mod 7) $$ $$a= 0(mod 4) $$ $$a= 0(mod 5) $$ which gets a = 60 $$b= 0(mod 7) $$ $$b= 2(mod 4) $$ $$b= 0(mod 5) $$ which gets b = 70 $$c= 0(mod 7) $$ $$c= 0(mod 4) $$ $$c= 2(mod 5) $$ which gets c = 112 then I do $$ a + b + c = 242 $$ But it says the answer is 102. I tried it like this too:  and got the same answer. What am I doing wrong?


Unwanted Content Keywords registering by Google

I've been working on a site for a new company that is in the tactical gear/survival gear niche and have ran into a hitch with the keywords that Google ranks for the site.  Namely 4 of the top 5 keywords aren't content related at all, and are elements/functions of the site. The top 5 are as follows:   Tactical Cart Compare Wishlist Quick (from a quick-view function on the site)   My question is how the heck can I avoid this issue? Or CAN I avoid this issue?


What's the simplest way to join one or more arrays (or ArrayLists) in Visual Basic?  I'm using .NET 3.5, if that matters much.


How much should an amateur charge for a portrait session?

I am fairly new to photography and have done a few high-school senior sessions of friends here and there. I have been getting more and more requests to photograph families, seniors, etc. and am starting to spend quite a bit of my spare time doing this. I consider myself an amateur, but am thinking about charging money.  I am wondering what a typical price for a sitting fee is for a senior session or child/family session, and how many images people would expect from these types of sessions.


Recently I've been having to research database indexing which has led me to find a large amount of answers on the topic on StackOverflow.  However when I had  that needed asking. I was unsure of which StackExchange site it best belonged on. Although, in the end, I did opt for Database Administrators.    This Meta discussion does suggest that questions on Indexing would be on-topic for StackOverflow how ever as pointed out by gbn in the answers, the other answers are now quite out of date.  Although my assumption is that DBA is the correct place, due to the fact there is a migration path to the site, it seems Meta lacks a categoric answer currently. What is the actually the current policy?  If I had asked my question on StackOverflow, would it have been correct to flag it for migration?


How to adjust for a continious variable when the value 0 is distinctly different from the others?

Lets say I want to regress a variable on a covariate which has distinct value zero but the all other values are following some smooth function? It could be e.g. Years of beeing a mom (once you are a mom you are very different from 0 years, i.e. the effect of going from 0 to 0.0001 year should be a jump, but from 0.0001 to 0.0002 sould be smooth). Or maybe exposre is 'Time of exposure to HPV' when we study cervix cancer?  One simple thing would be to add two covariates 'Years of being mom' and 'Are you a mom (yes/no)', but then all values would be 'No' exactly when the other variable is '0'.  Any ideas? Hierarchical model? If so, how?


I saw a film when I was very young.  There were a group of people who wake up at the start of the film, one of them woke from a drug induced coma of some kind.  Everyone in the world seems dead apart from them and they discover this is because the sun is reproducing and had emitted a load of deadly rays that only seemed to kill people conscious at the time.  The people in the film have a certain amount of time before this happens again.


Why and how did sherlock fake his death?

At the end of the second season of Sherlock (from BBC 1), we see that sherlock tries to fake his death. The next session begins with an explanation of his method (using a rope and Moriarty's corpse). But there is another explanation which Sherlock reveals himself: he jumped on a crash mat, a similar-looking, dead person is brought to the pavement, and Sherlock replaces him. I'm just confused!   Which one was the real explanation? Why did he have to fake his death? Moriarty was already dead, and Mycroft had convinced the snipers to cancel their plan by phone calls. Who was Sherlock trying to fool? Why did they use the similar-looking corpse (according to Sherlock's own explanation)? When Watson got to the corpse, it had been replaced by Sherlock! There was no need to this part of the plan.


How do I show raw XML for an RSS feed in Firefox?

Internet Explorer has this option, Turn on feed reading view:    When unchecked, clicked  feeds will show as raw XML.  How can I do the same thing in Firefox?


Mysqli prepared statements without binding parameters

How do you use prepared statements without having any parameters to bind, f.ex. an SELECT query for retrieving all columns and rows within an table?  As i understand, prepared statements are good for security and efficiency, but isnt it possible to use it ONLY for either security or efficiency?  I have tried to look up answers on this, but without any luck.  Code (outputs nothing)  $stmt = mysqli_stmt_init($link); $sql = "SELECT * FROM `table`"; mysqli_stmt_prepare($stmt, $sql); mysqli_stmt_execute($stmt); $res = mysqli_stmt_get_result($stmt); while($row = mysqli_fetch_array($res)){     foreach($row as $val){        printf($val\n);        }     }


#include <stdio.h> int main() { int a=3, b = 6; printf(&a["Hi!Hello! %s\n"], &b["Mnnit/Softathalon"]); printf(&a["WHAT%c%c%c %c%c %c !\n"], 1["this"], 2["beauty"],0["tool"],0["is"],3["sensitive"],4["CCCCCC"]); return 0; }  output:  Hello! Softathalon That is C !  Why is this the output? Can anyone explain different format specifier in it?


how to store position of a player as a variable?(minecraft java)

I am working on a project in which i need position of a player at any tick. i used the command: data get entity player_name Pos[0]  data get entity player_name Pos[1]  data get entity player_name Pos[2]  but i want them to be stored as variables. how can i do that. And also if possible tell me how to display variables in scoreboard this is not the solution of my problem   this is a duplicate suggested but this question dosent deals with storage in a variable


I'm a student who is trying to build a wah pedal for a guitar. I came across this diagram for how to wire the circuit () :   Within the diagram, I am not sure what the following symbol means:   This variant of the symbol also appears in the diagram and I am not sure what to make of it either:  I'd much appreciate if anyone could explain these symbols to me as the only place I have been able to find these online was on this very circuit diagram and no context is provided as to their meaning.


When the escape velocity from EH is c, then how can Hawking radiation escapes it? Does it travel faster than c? Or, it escape from outside the EH? If so, how a BH can evaporate beyond EH?


Consider the set of integers $x_1, x_2, x_3, x_4$  Such that:  $$x_1^2 + x_2^2 + x_3^2 = x_4^2$$  How does one compute all the solutions to this system?  I have the following method in place for computing solutions given the initial condition that $$x_1^2 + x_2^2 = y^2$$ for some integer $y$.  One can make the standard Pythagorean triple reduction given this condition and then repeat the reduction again thus generating a general solution for all integers.  But what if there exists 3 square numbers such that the sum of any 2 squares in this set if not a square but the sum of all 3 squares is a square? I have no reason to rule out this possibility and no way of generating such solutions  As a side note:  Given a number and told that it is part of a Pythagorean triple (let's say it's the hypotenuse) how do you find the other squares that sum to it?


This code generates a error line 3: [: missing `]'. So why am I getting such error?  #!/bin/bash read x if [ $x == "Y" ] || [ $x == "y"] then    echo "YES" else    echo "NO" fi   Thanks in advance.


Non-static method referenced from a static context

I have two errors both the same and they follow below:  class FBox {//...} class FBPlayer {     //Initialized instances     FBox game = new FBox();     **FBPillar pillar = new FBPillar();**     **FBObjects objects = new FBObjects();**     //Lots o Properties...      public boolean get_Alive() { return this.b_PlayerAlive; }     public void set_Alive(boolean alive) { this.b_PlayerAlive = alive; }      //My Error ridden Method     public void checkCollision()     {         if(get_YPos() >= **objects**.get_Ground())                           ^My Error was incorrect name for my instance         {             set_Alive(false);         }         else if(get_Bounds().intersects(**pillar**.get_Bounds()))                                    ^My Error was incorrect name for my instance         {             set_Alive(false);         }      }  class FBPillar {     public int get_Bounds() {return 'the variable'; } }  class FBObjects {     public int get_Ground() {return 'the variable'; } }   The error is in the if statement as well as the else if statement When i run it it returns the error:  FBox.java:178: error: non-static method get_Bounds() cannot be referenced from a static context                else if(get_Bounds().intersects(**FBPillar**.get_Bounds()))   The same error for the if statement but with FBObjects.get_Ground())                                                            ^


Setting up primary and secondary dns on one server

I'm configuring a vps to be used as webserver, and everything is going well, but now I am coming to the point of DNS. The VPS has two working IP Addresses assigned to it.  Now I need to get a primary DNS running on one, and a secondary DNS on the other IP Address (I know it is better and safer to run it on two different machines, but that I don't have).  I can find loads and loads of articles on the iNet on how to configure one DNS on one machine, or two on two different machines, but nothing about how to configure two dns'es on one single machine. Anyone who can help me? I'm using Centos 6.3


We have $\alpha=2n^3-14n+2$ and $\beta=n+3$,  How can we prove that the $\gcd(\alpha,\beta)=\gcd(\beta,10)$,  and what are the possible values for this $\gcd$.


Blocking all countries except US/Canada/UK

I have a site which is only for US/Canada/UK visitors. I don't want to make it visible to other visitors.  I tried to put IP ranges in .htaccess (Deny IP) but it does not work for me. May be I have inaccurate IP lists or I am doing something wrong.


Do not install recommended packages of dependencies

Recommended packages of a package and recommended packages of it's dependencies are installed by default when installing a package (tested on Ubuntu 18.04 Beta).  How to install recommended packages of a package, but skip recommended packages of it's dependencies by a single apt command?


which give higher cooling rate , strong circulated water or thick copper plate?

imagine if I have hot metal piece I want to cool it as fast as possiple, should I put it in strong circulated water bath or just stick it between 2 thick copper plates ?  the calculated heat diffusivity of copper is :  thermal conductivity x specific heat x density = 385 x 0.385 x 8960 = 1328096 m²/s  while for water it is just : 0.6 x 4.2 x 1000 = 2520 m²/s only !!  so, the copper can transfere heat 527 times faster than water. should I expect that copper will cool the metal piece faster ? or there is something I missed make water have higher cooling power than copper plates ?


Classifying complex $2\times 2$ matrices up to similarity

I would like to prove the following proposition, which is given as an exercise in Hoffman and Kunze:     If $A$ is a $2\times 2$ matrix with coefficients in $\mathbb{C}$, then $A$ is similar either to a matrix of the form $\begin{pmatrix} a & 0 \\ 0 & b \end{pmatrix}$ or to a matrix of the form $\begin{pmatrix} a & 0 \\ 1 & a \end{pmatrix}$.   A hint directs the reader to prove that if $N$ is an nilpotent matrix (also in $M_{2}(\mathbb{C})$), then either $N=0$ or $N$ is similar to $\begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix}$. I have proven this claim (by supposing that $N \neq 0$ and showing that the transformation induced by multiplication by $N$ has matrix representation $\begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix}$ under a particular basis).  However, I'm not really sure how to use this knowledge to prove the proposition in question. Any steps in the right direction would be appreciated. Also, I'd love to see any other proofs of the proposition.  Thanks in advance!


everything shows up in render mode but otherwise, this is all I see.


I understand that calling new in C++ is equivalent to calling malloc in C, and the pointer returned by the malloc function can be freed when free is called. Array obtained by calling 'new' int[length] are stored in heap. However, what if a static array such as int x[3] = {1,2,3}; was declared? Where will such an array be stored at? Stack?


How to show that this set is compact in $\ell^2$

Let $(a_n)_{n}\in\ell^2:=\ell^2(\mathbb{R})$ be a fixed sequence. Consider the subspace $$C=\{(x_n)_{n}\in\ell^2 : |x_n|\le a_n\text{ for all }n\in\mathbb{N}\}.$$  According to the book [Dunford and Schwartz, Linear operators part I, page 453] $C$ is compact in the $\ell^2$-norm, but there is no proof. How can I show that $C$ is indeed compact in $\ell^2$ ?


How would I convert ú into u in javascript. I might possibly need it for other non-english characters too.


Suggest some freeware GUI Automation Testing tools for Windows Desktop Applications

Please suggest some tools for automated GUI Testing of Windows Desktop Application. Freeware tools which can compete with Coded UI test projects.


install apps from app store on icloud locked iphone

I'm getting started with iOS development and I need a test device to test my apps. I thought of buying an ipod but then I thought buying an icloud locked iphone 5s might be more convenient (affordable) as it will basically do the same thing as the ipod.  I have a question though. Can I install apps on a device locked to a specific icloud account?


Simple Beamer Template for Total Beginners

Is there a template that allows me to create slides with only some simple formulas at most?


Manuscript is in same 'With Editor' status for 3 months. Is it normal?

I am a researcher (doing my PhD) in Computational Biology. I have submitted a manuscript to an Elsevier journal 3 months before. One day after my submission editorial status changed to 'With Editor'. But after that no further change (change to 'Under Review') has been noticed. I already has one publication with Springer Verlag. In that case within a week of being 'With Editor' the status changed to 'Under Review'. This time this is opposite. Is it likely of being 'With Editor' status for long 3 months?


How does Faculty of Graduate Studies work?

Canadian universities have Faculty of Graduate Studies for supporting graduate programs and students. However, I do not under stand how it can operates without conflicting overlap with the technical departments/faculties.  For example, someone is a student in Department of X, Faculty of Y. His academic and official matters are normally within the Department/Faculty. Now with the presence of Faculty of Graduate Studies, how is dealing with other different academic units?   How is the role of Faculty of Graduate Studies in parallel with the technical Department/Faculty? Is there an equivalent system in the US or UK (an other European) universities too?


So I wanted to know where the source code is. I know how to get the .ISO file but how can I see or change the code? My goal is to make a Custom OS based on Ubuntu. How can I see the code of .ISO file and are there any documentation on Ubuntu source code?


CloudFlare help needed  Recently I was looking for a free CDN service. I was looking for free subscription. Someone suggested me cloudflare for this. I registered here but it seems to be complex for me to understand the matter. Please help me by telling me that how this is beneficial for me.  Sorry if any typos mistake.


Mouse freezes during installation of Ubuntu 20.04

I am installing Linux Ubuntu 20.04 Desktop on a clean no OS computer. Came up with either TRY UBUNTU or INSTALL UBUNTU screen. The mouse cursor will not move. The computer is USB ONLY for mouse and keyboard and does not have connections for PS2 MOUSE and Keyboard. Any suggestions on a work around or how to get past and install?


Why does a 'sudo -i' login shell break a here-doc command string argument?

In the sequence of five commands below, all depend on single-quotes to hand off possible variable substitution to the called bash shell rather than the calling shell. The calling user is xx, but the called shell will be run as user yy. The first command substitutes $HOME with the calling shell's value because the called shell is not a login shell. The second command substitutes the value of $HOME loaded by a login shell, so it is the value belonging to user yy. The third command does not rely on a $HOME value and creates a file in the guessed home directory of user yy.  Why does the fourth command fail? The intention is that it writes the same file, but relying on the $HOME variable belonging to user yy to ensure it actually does end up in her home directory. I don't understand why a login shell breaks the behaviour of a here-doc command passed in as a static single-quoted string. The failure of the fifth command verifies that this problem is not about variable substitution.  xx@host ~ $ sudo -u yy bash -c 'echo HOME=$HOME' HOME=/home/xx xx@host ~ $ sudo -iu yy bash -c 'echo HOME=$HOME' HOME=/home/yy xx@host ~ $ sudo -u yy bash -c 'cat > /home/yy/test.sh << "EOF" > script-content > EOF > ' xx@host ~ $ sudo -iu yy bash -c 'cat > $HOME/test.sh << "EOF" > script-content > EOF > ' bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOFscript-contentEOF') xx@host ~ $ sudo -iu yy bash -c 'cat > /home/yy/test.sh << "EOF" > script-content > EOF > ' bash: warning: here-document at line 0 delimited by end-of-file (wanted `EOFscript-contentEOF')   These commands were issued on a Linux Mint 18.3 Cinnamon 64-bit system, which is based on Ubuntu 16.04 (Xenial Xerus).  Update: The here-doc aspect is just clouding the issue. Here's a simplification of the problem:  $ sudo bash -c 'echo 1 > echo 2' 1 2 $ sudo -i bash -c 'echo 1 > echo 2' 1echo 2   Why does the first of those two commands preserve the linebreak and the second does not? sudo is common to both commands, yet seems to be escaping/filtering/interpolating differently depending on nothing but the "-i" option.


Apex Test class STANDARD_PRICE_NOT_DEFINED

I am trying to develop a test class for my apex trigger for converting opportunity products to assets when the opportunity is closed/won. My class is like so:  ERROR:     System.DmlException: Insert failed. First exception on row 0; first error: STANDARD_PRICE_NOT_DEFINED, No standard price defined for this product: []   trigger OpportunityAssetonClosedWon on Opportunity (after insert, after update) { for(Opportunity o: trigger.new){     if(o.isWon==true && o.HasOpportunityLineItem==true){         String opptyId = o.Id;         OpportunityLineItem[] OLI = [Select UnitPrice, Quantity, PricebookEntry.Product2Id, Product2.Name,                                      Product2.Family, PricebookEntry.Product2.Name                                      From OpportunityLineItem                                       WHERE OpportunityId=:opptyId];         Asset[] ast = new Asset[]{};         Asset a = new Asset();         for(OpportunityLineItem ol: OLI){         if(ol.Product2.Family=='Terminal' || ol.Product2.Family=='Gateway' ){             a = new Asset();             a.AccountId = o.AccountId;             a.Product2Id= ol.PricebookEntry.Product2Id;             a.Quantity= 1;             a.Price= ol.UnitPrice;             a.PurchaseDate=o.CloseDate;             a.status='Purchased';             a.Name = ol.Product2.Name;             ast.add(a);             ol.Converted_to_Asset__c = true;         }         }             update OLI;             insert ast;         }     } }   And my Test class is like so where the error is occuring:  @isTest public class OpportunityAssetonClosedWonTest  {     static testMethod void closedOpportunity()      {         Account testAcc = new Account(Name = 'TestAccount');         insert testAcc;          Pricebook2 p = new Pricebook2(Name = 'Testbook');         insert p;          Opportunity testOpportunity = new Opportunity(             StageName = 'Sourcing Demand',             CloseDate = Date.newInstance(2017,12,31),             AccountId = testAcc.Id,             Name = 'Test Opportunity Triggers',             Pricebook2Id=p.id         );         insert testOpportunity;           Pricebook2 pb22 = new Pricebook2(Name='testDIE');         insert pb22;          Product2 pro2 = new Product2(Name='BXCD', isActive=true ,Family = 'Terminal');         insert pro2;          PricebookEntry pbe2 =new PricebookEntry(UnitPrice=10000,Product2Id=pro2.Id,Pricebook2Id=pb22.id,                                              isActive=true,UseStandardPrice = false);         insert pbe2;          OpportunityLineItem OPplineitem2 = new OpportunityLineItem (Quantity=1, OpportunityId=testOpportunity.Id,UnitPrice=0.01,PriceBookEntryId=pbe2.Id);         insert OPplineitem2;                    Test.startTest();              testOpportunity.StageName = 'Closed/Won';             update testOpportunity;          Test.stopTest();      } }


Hi how can I make this bone for each finger  move just that finger?    I used the old parenting method.


Screen was frozen after coming back from fullscreen

When I watched a Youtube video in fullscreen it worked fine, but when I turned back from fullscreen to normal, the screen was frozen and I was unable to type anything from my keyboard. I restarted my machine to escape this issue. However, when I see video from videos app or vlc on fullscreen and come back, nothing froze.   I searched, and found some things relating to Chrome or flash, but I found nothing that helped me.  My current system is Ubuntu 16.04, Intel® Core™ i5-3230M CPU @ 2.60GHz × 4, 8GB Ram, and Intel HD 4000.    EDIT The issue happened when I upgraded OpenGL & Mesa. I tried downgrading but the issue wasn't gone. So I must reinstall Ubuntu.


How can I comment out a block of text in texmaker?

I use texmaker and some time ago I found, by chance, a way to comment many lines at once, but I can't remember it now. Can somebody remind me of that?


How to pass arguments to the power shell script from c#?/

How can i call the below PowerShell script from c# .. by passing arguments to Powershell script from c# (my arguments are  string and list types)  ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = @"powershell.exe"; //provide powershell script full path **startInfo.Arguments = @"& 'C:\powershell-scripts\call-from-c-sharp.ps1'";**  startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardError = true; startInfo.UseShellExecute = false; startInfo.CreateNoWindow = true; Process process = new Process(); process.StartInfo = startInfo; // execute script call start process process.Start(); // get output information string output = process.StandardOutput.ReadToEnd();  // catch error information string errors = process.StandardError.ReadToEnd();  ------------------------------------------------------------------------------  Function Server($x,[string]$lsstr) {   Remove-Item -Path D:\vamc\Powershell_scripts\di.txt    $server=$x   #Invoke-WmiMethod -ComputerName $server    foreach($act in $lsstr)   {               If( $act -eq 1 )       {           Remove-Item -Path D:\vamc\Powershell_scripts\di1.txt       }       ElseIf($act -eq 2)       {           Remove-Item -Path D:\vamc\Powershell_scripts\di2.txt       }       ElseIf($act -eq 3)       {         Remove-Item -Path D:\vamc\Powershell_scripts\di3.txt       }       ElseIf($act -eq 4)       {          Remove-Item -Path D:\vamc\Powershell_scripts\di4.txt       }       Else       {          Write-Host "Invalid selection"       }   } }  Server    Can you please give me the detail code explanation.  I want to call the below PowerShell script from c# by using the same code.


Isn't zero natural enough to be included in the set of natural numbers?

I always define $\mathbb{N}$ to include $0$ but some authors don't. Since the elements of $\mathbb{N}$ are used for counting, shouldn't $0\in\mathbb{N}$? $0$ is the number of cows in a classroom for example. Moreover, $0\in\mathbb{N}$ is a consequence of the Peano axioms and in fact the digit $0$ is used in writing integers ($10$,  $205$) so why on earth would anyone define $\mathbb{N}=\{1;2;3;\cdots\}$ in the twentieth and 21th century? Is he a babylonian?


Can I create folder which root cannot access?

I want to hide some information in specific folder. This information is generated from one program and apart from this program nobody can access it. Actually, even if the user is root, he also should not access it.  Access permission is not enough for me. Root also should not delete this folder. Is there any structure for it ?  I also want to do not modify Kernel modules for this operation. I hope there is straightforward path for this job.


Can you resolve this problem in context with the use of 'will'?

When I have the gems,I will tell you.      When I will have the gems,I will tell you.   The first one seems incorrect to a non-native speaker like me.But it is used by native speakers.How do the sentences differ?  An example:I will do when I have the rest.


I'm working on an email to my supervisor with feedback about department meetings. I want to say:     Our meetings have been increasingly less productive recently.   I could probably re-word it to say "The productivity of our meetings has been declining recently," but I don't want to.    :P    If increasingly means , can it be used to indicate a more and more severe reduction in a quality?


A Fermat polynomial is a polynomial which can be written as the sum of squares of two polynomials with integer coefficients. Let $f(x)$ be a Fermat polynomial such that $f(0)=1000$. Prove that $f(x)+2x$ is not a Fermat polynomial.


I have followed all the steps described on the  e-book and installed DB2 Express-C on my Mac. The installation succeeded without a problem.  I did setup OS X according to this blog post:   After the installation, I set up the DB2 instance environment as instructed and was able to start DB2 with: $ db2start  But I was unable to run db2fs. It returns the following error message:  $ db2fs sh: /Users/ivan/sqllib/java/jdk64/jre/bin/java: No such file or directory DB2JAVIT : RC = 127   What else do I have to setup in order to make it work on my system?


I was reviewing suggested edits and found lot of minor edits from . Every time, the user was just removing a few words (like "Thank you" at the end of the message). But the edits were approved by other people! I find it too minor and it looks like the user is only trying to get reputation and not trying to improve anything on Stackoverflow.  Do I misunderstand what a "too minor" suggested edit is?  Additional remark: it also looks like this user got suddenly a lot of upvotes which looks suspicious to me. Does the system automatically handle this?  The approved suggested edits:


Why is the electric field between two parallel plates uniform?

According to sources online (eg HyperPhysics) the electric field strength around a point charge is $$E=k\frac{Q}{r^2}$$ This must means that the further you get away, the electric field should decrease with the square of the radius right?   But when these charges are placed into parallel plates somehow these will produce a uniform electric field? How I currently understand the physics can be summarized in the graph below of the electric field strength vs distance (Red and black lines are the electric field strengths of each plate and the blue is the resultant).   It seems pretty clear this wouldn't be a uniform electric field. What happens such that the electric field strength is changed into a uniform field? I initially thought integration, but wouldn't that still give an inverse relationship?  In response to the proposed duplicate, my question is concerning 2 plates where as the other is about one plate (however, I can't really decipher what is being asked in the other question)


How can I prove that these sets are countable infinite?

I am very new to proofs so please excuse any trivial errors.  In lecture we were told that:     A set $\mathbb S$ is called finite if there exists a one-to-one    mapping (bijective mapping) between $\mathbb S$ and the set $\mathbb  N_n=\{0,1,2,3,...,n-1\}$ for some natural number $n$. A set is called    countable infinite if there exists a bijective mapping between    $\mathbb S$ and the set $\mathbb N=\{0,1,2,...\} $ of all natural    numbers   I want to answer the following questions:  1. Show that the set $\mathbb S=\{a,b,c\}$ is countable  Does countable mean countable infinite? An attempt from another post on this site: For all triples $(a,b,c)$ there exists an according sum $S=a+b+c \implies ...$ But wouldn't the sum be a surjection between $\mathbb S$ and $\mathbb N$ and not a bijection?  2. Show that the set of integer numbers $\mathbb Z=\{0,\pm1,\pm 2,...\}$ is countable infinite  Before I continue with this proof I have a question about mapping. The definition says that "if there exists a bijective mapping...". In this context, can a function $f(x)$ be considered a mapping? If yes, then can't I just define myself some map $$f:\mathbb Z\to \mathbb N$$  and let $\space f$ be: $$x \mapsto \lvert x \rvert$$  which would then automatically imply that $\mathbb Z$ is countable infinite? (or wouldn't it)?  3. Show that $\mathbb S=\mathbb N \times \mathbb N=\{x |x=(p,q),p,q \in \mathbb N\}$ is countable infinite.   I am not sure about this one but if my "intuition" from 2) turns out to be correct I can maybe define some sort of norm and show that it is a bijection between $\mathbb S$ and $\mathbb N$


How do I get the distance meter value between two geometries in PostGIS?

I have a simple question about calculating distances in PostGIS.  I would like to get the distance between two geometries. I am using this sid : 4269 in meters what i am doing now is this : ST_Distance((a.geom,b.geom)) FROM ... but I am getting result in degrees. I think that I should work with geography but how can I cast a geom to a geography? I tried with (a.geom::geography) but i am getting an error.  What can I do to get my result in meters?   Thank You


iPhone 7 won't charge from my MacBook Pro

My iPhone 7 which I recently bought doesn't charge with my MacBook Pro Retina 2015. It always shows for one second that it recharges but then something like lost connection and then again. and goes on and on, both ports...  Strange thing is that my girlfriend's 6S charges in the same computer flawlessly.   I have tried 5 different cables and bought 1 new one. Same result In my girlfriends Macbook air it recharges fine, also in other computers it recharges fine... The iPhone recharges okay from within the AC Charger I reseted PRAM and SMC, still the same result Other accessories work fine (Recharging camera, USB port for dock in display)   macOS Sierra, iOS 11 Golden master beta, got Xcode 9 beta installed alongside Xcode 8.  Other thing I thought about is that it could be the Xcode messing around with the USB Port. But I uninstalled it with no luck.  Q: How can I make my iPhone charge (again) using my MacBook Pro?


I've been using Chrome's  which seems to work well.  Is there a way to force Chrome to do the sync as opposed to waiting for the alloted 'sync time'?    Update: Seems to sync when I restart Chrome, so that works.  Would be nice to have a "sync button" equivalent..


I am using the XeLaTeX ucharclasses package to switch language and font features on transition into the Greek and Latin unicode ranges. Is there a LuaLaTeX compatible alternative?


Same php scripts, same mysql db, different displays or accented characters

I just copied a website to a new server (files + db) then I have the exact same php scripts and the exact same db. I have that table :  CREATE TABLE `cours` (   `idcours` int(11) NOT NULL,   `titrecours` varchar(256) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8;   And that record :  INSERT INTO `creforma_cours` (`idcours`, `titrecours`) VALUES (-1040, 'DÃ©monstration');   The HEX value for DÃ©monstration is 44C383C2A96D6F6E7374726174696F6E (checked in original and new db)  I display that value with php print without any decoding (the php file if in UTF8 no bom). On the original website, it is displayed Démonstration but on the new one it is displayed DÃ©monstration.  How can it be different ? Is there a configuration of php or mariadb-server that can prevent decoding ?


The flagging dialog should not put all the custom close reasons under the heading of "needs improvement"

Reality is that lots of irredeemable questions get asked. There are lots of questions which can't be improved in order for them to become acceptable. The flag dialog should not have been changed to put everything under the heading of "needs improvement" when that is not true for many close reasons.  Please change it to something else. Perhaps "needs to be closed".  For example: in what way should this question be improved?


Is there any other way to call constructor, other than new object creation from new operator?  I think when constructor chaining happens in inheritance then also constructor gets called but it does not create parent class object.


How are talking scenes in movies/shows filmed?

So, I've been curious about this (since taking a class dealing with filming and editing I've been taking more notice of good/bad shots and just overall more curious about film techniques) when two or more people in a show or something are talking, how do they film that?   I've tried to piece it together myself. My idea is that there is only one camera and the two characters go through the whole conversation while the camera is only showing one person and the back of one person, then the camera switches places and does the same with the other character.   Then from there, the audio would be edited in from the character who is not facing the camera. That would explain why sometimes the characters actions don't always match up, right?   Example one: I was watching a show and three ladies were having a conversation. Lady #1 said her line and lifted her wine glass to her lips. The camera then pointed to the two other ladies but lady #1 had already put her wine glass down, so that means it was filmed more than once right?   And here's also an example of them editing in the audio. I was watching another show and there were two characters talking. The camera was positioned so you could mainly see character #1s reaction while character #2 talked.   This wasn't the exact scene that I was Referring to but it's similar. The girl is character 1 and the boy is #2. In the scene, the camera was just like this, except the girl was just listening to the boy talk. The thing is, his mouth was moving but was not syncing up to what he was saying. So what's up with that?    If I confused you I'm sorry, I tried to word this as best as I could. If your understand me it'd be great to hear back from someone before I go crazy lol


As the heading says, why would Voldemort want a child? I've got the following arguments against the matter:   Voldemort was planning for immortality, so he hardly would need an heir. Thinking of an heir would be acknowledging the fact that he could die, something he always refused to do. Even if Delphi was supposed to be a follower than an heir, why would Voldemort risk having a child when he had so many Death Eaters? Voldemort has no family sentiment(murdered his paternal relatives, got Morfin framed, denied that his mother was a Muggle,etc) so what would make him think that a child of his would be useful or special? I say this because many answers would say that Voldemort wanted a new right-hand man, but Voldemort, who never trusted or got attached to anyone, was unlikely to make an exception for his child. If Voldemort did want a right-hand man, could be not put it off till he was absolutely sure he had won? After all, he still had to kill off Harry, his first priority, his obsession. Surely he would think of a child after "settling down" into his rule, rather than go for it in the middle of a war? Voldemort always wanted to be the sole object of worship for his followers. Surely having a child had the possibility of creating a new leader for his followers ( for example: "Why follow Voldy, he's so harsh, let's back Delphi in a coup, she's liberal"). It could cause unnecessary undermining of his authority and create secondary centres of power, while Voldemort likes keeping things centralized around himself. If all he wanted was a capable assistant, why would he go for a child? Pardon the similie, but isn't it like commissioning a $200000 lawnmower... to mow the lawn? Too much effort for a simple matter. Finally, he, the lone wolf, would prefer to operate alone. Surely having a child would elevate both the child and its mother to a higher level than master-servant? Wouldn't he foresee the unnecessary complications of placing them closer to himself, at least in others' view? (For example: "Bella is his favorite, grumble grumble...")   P.S.: Despite all my arguments, I welcome any answer that is logical and addresses the questions I raise.


How to achieve triggered redirect after log in so that administration interface will be available on the redirected url?

I would like to ask for an advice. Recently, I was developing a conference site with Drupal 7. The site is hosted at domain1.com. However, the conference is covered by another organization and they require that conference page will be accessible from their own domain something like.: organization.com/conference2014 Fortunately, Drupal has base_url parameter and the site is accessible from organization.com/conference2014 domain. BUt, my problem is when I want to access administration interface of Drupal through organization.com/conference2014?q=user/login I get redirected to organization.com site which is administrated by the organization admin. Moreover, when I access again organization.com/conference2014 - it still asks me for the password.  I got adviced to introduce trigger after the user successfully logs in to the site organization.com/conference2014. It does redirect me but the administration interface/overlays is not there. Any ideas how to tackle this problem?  Martin


Should I let Google index tag archives on wordpress?

I'm working on SEO for my WordPress page, and I'm having second thoughts about having my tag archive indexed. I'm not using categories at all, so I've set robots to noindex, follow for category overviews, making tags the main taxonomy.  Part of me says that having tag archives indexed is useful because those pages are full of content around one specific keywords, and they also link to more pages concerning those keywords. Also, the posts are truncated with a 'read more' link, so there's not going to be a problem with duplicate content.  On the other hand, these pages might dilute the pagerank for my actual posts. What is the use of people finding my tag archive pages if they could also find actual articles? Wouldn't it be better to just follow the links in my tag archives but not have those pages indexed?  Should I index them or just let google follow the links?


If three events are pairwise independent, are they independent "collectively"?

Three events $A, B, C$ satisfy:  $P(A \cap B) = P(A) \cdot P(B)$  $P(B \cap C) = P(B) \cdot P(C)$  $P(A \cap C) = P(A) \cdot P(C)$.  Does this imply $P(A \cap B \cap C) = P(A) \cdot P(B) \cdot P(C)$?  How to prove that it's true or not?


Inserting and correctly scaling PGF figure made with matplotlib

I created a plot in matplotlib and saved it as a PGF file.  I insert the figure into Latex with the following:  \begin{figure}     \centering     \input{test_fig.pgf} \end{figure}   With \usepackage{pgf} in the preamble.  The figure is then inserted but its to big, i.e. stretching far off the page.  I should mention that this is in a beamer document class.  Is there a method to scale the figure so that its as wide as the \textwidth?  I have tried inserting the figure with \includegraphics[width=\textwidth]{test_fig.pgf}, but I get the error Unknown graphics extension: .pgf.  Here is a MWE, with the PGF figure attached :  \documentclass{beamer} \usepackage{beamerthemeshadow} \usepackage{pgf}  \begin{document} \title{Slide Title}   \author{Author} \date{\today} \frame{\titlepage}  \section{Section 1}  \frame{\frametitle{Title} \begin{figure}     \centering     \resizebox{0.8\textwidth}{!}{\input{test_fig.pgf}} \end{figure} } \end{document}


Can Ubuntu 13.04 be loaded with a USB flash drive?

I am wanting to set up a split PC, half Windows XP, half Ubuntu 13.04.  I want to use Linux for internet surfing, YouTube, crackle, and viewing hulu videos. My PC is an older Dell C521, 1.87GHz, 1.5 GB ram, 32-bit, 80GB HD.  Will this be better than present slow slow slow Windows XP? I need it for internet mostly. I would consider dumping Windows XP later on if I get the hang of the Linux distro.


Finding density of $U = \frac{X}{X + Y}$ for $X, \ Y $ ~ $\text{Exp}(\lambda)$ i.i.d

Problem: Given $X, Y$ ~ $\text{Exp}(\lambda)$ i.i.d, find $f_U, \ F_U$ for $U := \frac{X}{X + Y}$. My approach: For a fixed $u > 0$, parameterize $\{ (x,y) | \frac{x}{x + y} = u \}$ = $\{ (x,y) | y = \frac{x  (1 - u)}{u} \}$ = $\{ (x,\frac{x  (1 - u)}{u}) | x \geq 0\}$ ($x \geq 0$ holds by $X$ ~ $\text{Exp}(\lambda)$). Then, one can compute: $$\int_0^{+\infty}f_X(x)  f_Y\left(\frac{x (1 - u)}{u}\right) \mathrm{d}x = \int_0^{+\infty} \lambda  e^{-\lambda x}  \lambda  e^{-\lambda \frac{x  (1 - u)}{u}} \mathrm{d}x = \lambda^2 \int_0^{+\infty} e^{-\lambda x  \frac{1}{u}} \mathrm{d}x = \\ \lambda^2  \left(-\frac{u}{\lambda}  e^{-\lambda x  \frac{1}{u}} \biggr{\rvert}_0^{+\infty}\right) = \lambda^2  \left(\frac{u}{\lambda}\right) = \lambda u $$ My problem: Given those computations, I arrived at the conclusion $f_U(u) = \lambda u$. Although Wolfram Alpha agrees with my computations, the master solution does not, as according to it $F_U (u) = u$ (and therefore $f_U = 1$). It'd be great to get some help on where I went wrong. Given that Wolfram Alpha indicates correct computations, I believe my mistake to be conceptual. On a general note: How would you rate my approach; are there better ways to tackle such problems?


Conditionally format a range based on the value of a single cell outside of it

I am using conditional formatting with a custom formula. I want to highlight rows in the range A2:B11 if the values in $B2 (column B starting at row 2) is greater than the value in the cell D5.  I can get it to work if I "hardcode" the value (which I presently happen to know to be 326), by using the formula =$B2>326; but if the value changes, I don't want to have to update the formula. How can I refer to the value in cell D5? I tried =$B2>D5, but that doesn't work (and I don't know why).


If I open a folder with VLC from Total Commander, with Right-Click -> Open with VLC, the selected context item stucks over my screen until restart. How can I remove it, or fix that it wont happen again. Happens in other scenarios as well.. Pretty annoying :(  OS is Windows 7 Ultimate SP1


I came home to the base at the church one day to find several NPCs arguing over whether to move to a new base or not. After that cutscene ended, I opened a dialogue with one of them, where I had the option to ask him to come and look for new home bases with me. He said he had a specific place in mind. So we went out and found this place, went inside, looked around, until I got the "potential home base cleared" message.   I have the required amount of materials and people in my group to build the new base. However, when I press down on the D-Pad, I only get the option to make this base an outpost, not a new home. I have around 150 influence.  Is the issue that I need more influence? Or does it need to be an outpost before it becomes a home? Or is it something else?


My website is 100% mysql php so it gets slowdown and sometimes server shutdown.  I'm using  (VPS Classic 4 - 4 vCores and 8GB RAM).  I want some mysql and apache optimisation for my website so it will be faster. If you have any other ways to speed up my mysql I would be greatful.


Intuitive understanding of derangements.

I can't really understand how the recursive formula for derangements is derived, i.e I can’t see how the patterns of it occur.  From Wikipedia:      Suppose that there are $n$ persons who are numbered $1, 2, \ldots, n.$   Let there be $n $hats also numbered $1, 2, \ldots, n$. We have to find the   number of ways in which no one gets the hat having same number as   his/her number. Let us assume that the first person takes hat $ i$.   There are $n − 1$ ways for the first person to make such a choice.   There are now two possibilities, depending on whether or not person $i$   takes hat $1$ in return:      Person $i$ does not take the hat $1$. This case is equivalent to   solving the problem with $n − 1$ persons and $n − 1$ hats: each of the   remaining $n − 1$ people has precisely 1 forbidden choice from among   the remaining $n − 1$ hats (i's forbidden choice is hat 1). Person $i$   takes the hat $1$. Now the problem reduces to $n − 2$ persons and  $n − 2$    hats. From this, the following relation is derived:      $!n = (n - 1) (!(n-1) + !(n-2)). $          In this particular example I do not understand why we take care of the case when person $i$ takes hat $1$ or not. When I think about derangements I see that the first person has $n-1$ choices, so the rest of the people, but, and here's another conceptual problem, how do we know that if we continue to count like this   the last person, as it's only and one choice, won’t have a hat of the same number?  Also, how would one calculate derangements with the formula above? I am a visual learner, so if you can provide some kind of mental images to help the understanding of the concept I would appreciate more.  (I've checked if this question was a duplicate but i didn't find other questions asking for some kind of intuitive argument for derangements.)


How to get color coded Quran with tajweed rule

I would like to get Colour Coded Al-Quran text with Tajweed Rules. I can write Arabic text with latex but they are not color coded. How do I get color coded text? MWE: \documentclass{book}  \usepackage{setspace}  \usepackage{fontspec} \usepackage{polyglossia,quran}  \setmainlanguage{english} \setotherlanguage{arabic}  \newfontfamily\arabicfont[Script=Arabic,Scale=1.1]{Scheherazade}  \begin{document}    \begin{Arabic} \lineskiplimit=-1000pt \setstretch{1.2} \quransurah[114] \end{Arabic}  \end{document}    Output:  I would like to get as below :


Salesforce Validation Rule Only Create 1 Record a day

Any idea how to write a Validation Rule, that prevents the user from creating more than one record a day.  I have one Object called (Stundenkonto__c) it shows a Month in Timetracking. I have a Object called (Zeiteintrag__c) it is the Master Detail of (Stundenkonto__c) So the User should only be able to create only one (Zeiteintrag__c) Record a day.


Is the Poincaré theorem valid for our universe?

Poincaré tell us (roughly speaking) that any hamiltonian system come up arbitrarily close  to the initial condition if you wait enough time.  For example, this theorem is valid for gases, and in general is one of the many key theorems that sustain Statistical Physics.  And if this theorem is valid to cosmological level , what that implies? I mean, at the end, the universe is just evolving along  the most probable line which could be one posible option of many more.


How can I secure port 25 in postfix/dovecot? Right now, I can send internal email through telnet without login. For example:  telnet mydomain.com 25 MAIL FROM:<me@mydomain.com> 250 2.1.0 Ok RCPT TO:<you@mydomain.com> 250 2.1.5 Ok   Right now, everyone can send emails without login. All I want is that, emails can only be sent when user logged in.  How can I make it something like "Relay access denied" if I am not logged in.


How to Unit test a method that calls different Private functions based on the parameter value?

[HttpPost]     public ActionResult Save(Master model, FormCollection form)     {         if (form != null)         {             if (int.Parse(form["btnFlag"]) == 2)             {                 Process(model);             }             else if (int.Parse(form["btnFlag"]) == 3)             {                 Reject(model);             }         }         return RedirectToAction("Index");      }   This is the method I am testing. I would like to know if the Process() method is called or the Reject() is called?


Am I not able to install Candy Crush game on my HTC Desire.  The telephone is not rooted and just hard reset How can I solve it?


I recently bought a 7mm SSHD . I wasn't sure if my laptop had a 9mm or 7mm so I bought 7mm just to be safe. Do I have to buy any kind of adapter to place the 7mm SSHD in my laptop?


How can I make a bluish "white" LED less blue?

I recently bought  white LED reading lamp. I like it a lot, but the "white" light produced is significantly blue; I'll guess its  is about 5000K.  I've noticed that, when this is the only source of light, printed text appears slightly fuzzy, and is more difficult to read than with a standard incandescent reading lamp. My guess is that this is  causing color fringing in my eyes, making it harder to read with this new lamp.  Is there a way to make this lamp less blue using some sort of transparent/translucent filter over the lens? This could filter out some of the blue end of the spectrum, or include a  to convert some of the blue to yellow (as  do). The fluorescence idea would be better, as there'd be less light lost. I don't want to go too far, though; a strongly yellow lamp might be worse for reading than this currently blueish lamp.


"instead of" vs. "rather than" when choosing words

A  says     teachers and test graders want to see the words trying to instead of tryna.   I understand this sentence clearly.  I just wondering whether "rather than" could be substituted for "instead of".  I  and  gives some clear rules (I modified it a little bit)     (rule#1) "Instead of" is used when you were given a plan and you want to change it.       (rule#2) "Rather than" connotes a situation where you are asked about something and you like both options and you need to choose your favorite.   I suppose most VOA articles use the correct words though, the use of words does not seem to be a plan. That is more like the rule#2.  Which rule is supposed to be used in this context? Are "instead of" and "rather than" interchangeable in the case?


One of my 2 bibliographies will not show up when I typeset

So I am editing a paper that I did not write and the paper uses 2 bibliographies, one for references and one for links and I have 2 .bib's named Links and References  This is my minimal code,  \usepackage{cite,amssymb} \usepackage[labeled,resetlabels]{multibib} \usepackage{multibib} \newcites{L}{Links}  \begin{document}  \nocite{*} \nociteL{*}  \newpage  \bibliographystyle{ieeetran} \bibliography{References}{}  \bibliographystyleL{ieeetran} \bibliographyL{Links}{}  \end{document}   in this I get only get the references bibliography and do not ever see the links


Is it possible to have 64 bit guest OSes run in Virtual PC RC on Windows 7?  I tried to install a Windows 7x64 Ultimate guest in Virtual PC, on a host PC running Windows 7x64, but got the following error:     Attempting to load a 64-bit application, however this CPU is not compatible with 64-bit mode.   From what I have read, there is no workaround for this error using Virtual PC. Does anyone know how to get around this issue?


This is exercise from Lee: Introduction to smooth manifolds.  Suppose $f \colon G \to H$ is homomorphism of Lie groups (real, finite-dimensional).  Q: Is image $Im(f) \subseteq H$ a Lie subgroup of H?  That is, is there topology and smooth structure on $Im(f)$ such that inclusion $Im(f) \hookrightarrow H$ is immersion, and such that induced operation $Im(f) \times Im(f) \hookrightarrow H \times H \to Im(f) \subseteq H$ is smooth.  The author of  says (last paragraph on the first page) that the answer is no, provides counterexample (dense line on torus), but the proof is ommited. Is it correct?  I need positive proof of that, to understand the following characterisation: Lie group admits faithfull finite-dimensional representation if and only if it is (isomorphic to) Lie subgroup of $GL(n,\mathbb R)$.  One more thing. It is easy to see that $Ker(f)$ is Lie subgroup of $G$ using nontrivial . Is there more direct proof?  Any help is very appreciated.


If else statement is giving wrong output

Im trying to add validation on my textbox in my code by using if else condition Ive added focusListener on the textbox that will check the condition  when I remove the focus from textbox Ive also created a label beside the chekbox which will display text according to the condition If the text inside the textbox is not equal to "hi" then it should print "hello" in the label beside textbox otherwise it should print "bye" import java.awt.*;   import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.FocusAdapter; import java.awt.event.FocusEvent; import javax.swing.*;  public class regframe extends JFrame implements ActionListener {          private static final long serialVersionUID = 1L;     JTextField t1,t2;     JLabel l1,l2,l3,l4;     JButton b;      regframe()     {            getContentPane().setBackground(Color.BLACK);         l1=new JLabel("Enter First Num:");         l1.setBounds(50,50,150,20);         l1.setForeground(Color.WHITE);         l1.setFont(new Font("Verdana",Font.BOLD,12));         add(l1);          t1=new JTextField();         t1.setBounds(180,50,100,20);         t1.setBackground(Color.BLACK);         t1.setForeground(Color.WHITE);         t1.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0,Color.YELLOW));         t1.setCaretColor(Color.CYAN);         t1.setFont(new Font("Verdana",Font.BOLD,12));         t1.addActionListener(this);         add(t1);                  l3=new JLabel();         l3.setBounds(290,50,150,20);         l3.setForeground(Color.CYAN);         l3.setOpaque(false);         l3.setFont(new Font("Verdana",Font.BOLD,10));         add(l3);          t1.addFocusListener(new FocusAdapter()          {             public void focusLost(FocusEvent e)             {                 if(t1.getText()!="hi")                 {                     l3.setText("hello");                 }                 else                 {                     l3.setText("bye");                 }             }         });                   l2=new JLabel("Enter Second Num:");         l2.setBounds(50,80,150,20);         l2.setForeground(Color.WHITE);         l2.setFont(new Font("Verdana",Font.BOLD,12));         add(l2);                  t2=new JTextField();         t2.setBounds(180,80,100,20);         t2.setBackground(Color.BLACK);         t2.setForeground(Color.WHITE);         t2.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0,Color.YELLOW));         t2.setCaretColor(Color.CYAN);         t2.setFont(new Font("Verdana",Font.BOLD,12));         add(t2);                          b=new JButton("Submit");         b.setBounds(100,120,100,20);         b.setBackground(Color.CYAN);             b.setForeground(Color.BLACK);         add(b);          setLocation(300,200);         setSize(700,250);         setLayout(null);         setTitle("Registration");         setVisible(true);         setDefaultCloseOperation(EXIT_ON_CLOSE);              }          public static void main(String args[])     {         new regframe();     }      public void actionPerformed(ActionEvent arg0)      {                       } }  But when I run the code, It always display "hello" even when I write "hi" inside the textbox   Please Help


the 'à' is not properly visualized on  - encoding issue

I'm building a site with the help of php and sql but when i put the code  $query="select codicec, nomec, localita from cim order by nomec";                  $risultato=mysqli_query($connessione, $query); while($riga=mysqli_fetch_array($risultato))  echo("<option value=$riga[codicec]>$riga[nomec], località di '$riga[localita]' </option>")  the 'località' became 'localit�', i've put the <meta charset=UTF-8> tag but the problem is not fixed, some helps?


Currently in trigger xxxxxxTrigger, therefore it cannot recursively update itself: []

I am working on the Custom Trigger and getting the following error:     ERROR  Error: Update failed. First exception on row 0 with id   a01c000000A8GvrAAF; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY,   XXXXTrigger: execution of BeforeUpdate caused by: System.DmlException:   Update failed. First exception on row 0 with id a01c000000A8GvrAAF;   first error: SELF_REFERENCE_FROM_TRIGGER, Object (id =   a01c000000A8Gvr) is currently in trigger XXXXXTrigger, therefore it   cannot recursively update itself: [] Class.XXXClass.XXXX: line 41,   column 1 Trigger.XXXTrigger: line 3, column 1: []   I have the following code  trigger XXXTrigger on ServiceXXXX__c (before insert, before update, after insert, after update){     XXXX.XXXX(Trigger.New) }   Here is the helper class:  public class XXXX {     public static void XXX(List<SObject> newSobjs){          List<ServiceXXXX__c> newSI = (List<ServiceXXXX__c>) newSobjs;                List<ServiceXXXX__c> testlist = new List<ServiceXXXX__c>();          Set<Id> caseIdSet = new Set<Id>();         for(ServiceXXXX__c si : newSI){             caseIdSet.add(si.Case__c);         }           Map<Id,Case> caseMap = new Map<Id,Case>([SELECT Id,Category,SubCategory                                                FROM Case                                                WHERE Id IN :caseIdSet]);                for(ServiceXXXX__c si : newSI){             if(caseMap.get(si.Case__c).Category__c == 'YYYY'){                 if(caseMap.get(si.Case__c).SubCategory__c == 'ZZZZ'){                      if(si.XXX && si.XXX != null){                         ServiceXXXX__c newSInfo = new ServiceXXXX__c();                         newSInfo.Id = si.Id;                         if(si.CCC == null){                             newSInfo.CCC = 0;                         }                          if(newSInfo.CCCC > 0 && newSInfo.CCC <=2){                             newSInfo.CCC++;                         }                         testlist.add(newSInfo);                         System.debug('COUNTER :::==> '+newSInfo.CCC);                     }                 }                  }         }         update testlist;     } }


My Minecraft account has been messed with

I opened the Minecraft launcher today and was not able to log in, so I went to Minecraft.net and was still not able to log in. I was able to change my password and email, and need to import my account into my new email. When I attempted to do so, even with my updated password, it did not work. My username must have been changed, does anyone know a way to get my account back?


SEDE calls Code Golf Stack Exchange by its old name

, 's new official name is Code Golf and Coding Challenges. However,  hasn't updated this:  I know this is a minor bug, but it shouldn't take much effort to change this.


Short story about cardboard carrion eater

I read this a long time ago - perhaps online in a newsgroup, in the 90s, perhaps in a printed collection.   What I remember is this guy was driving through the desert on a highway. Some roadside trash was blown up onto his windshield, and there was a mouth on the bottom side. Apparently these creatures/aliens/whatevers imitated roadside trash - flattened cardboard box, etc - and would eat the roadkill animals.


How to detect if skype is installed using javascript

I've seen many answers to this issue like this:  if (typeof(navigator.mimeTypes["application/x-skype"]) == "object") {      return true; }  else return false;   But it doesn't seem to work, I have skype installed in my PC and in my android, and both return false.  I tried to find, and skype doesn't have any mimetype register. Is there another way to verify?  Thanks :)


Where does the expression seat-of-the-pants come from? These dictionaries (, , ) don't give much insight.  What is the etymology of seat-of-the-pants?


I'm getting this error while installing playonlinux on my ubuntu 20.04: $ sudo apt install playonlinux  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  librdf0 : Depends: libraptor2-0 (>= 2.0.14) but it is not going to be installed            Depends: librasqal3 (>= 0.9.31) but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.  I don't have a custom playonlinux repository in etc/apt Before doing some wrong manipulations, I prefer asking ^^" How can I solve this dependency error? EDIT: I tried apt install -f playonlinux but get still get same error I don't have any hold package Tried with aptitude: apt install aptitude apt install playonlinux  So playonlinux could be installed!


How much time is too much time playing educational computer games?

I recently bought an iPad primarily for my 3-year-old daughter. I put nothing on it but educational apps and children's books. No YouTube, no Internet, no (non-educational) games. I've decided to let her use it as much as she wants, for now, and see how it goes. That was a few weeks ago.  So far she's been using the iPad maybe 2 to 5 hours each day. She still enjoys other activities -- playing outside, playing with dolls and blocks, interacting with friends, being read to, etc. And I think she might be learning a thing or two from the apps. Still, several hours a day seems like a lot. How do I know if it's too much?  I've searched the web, and there's lots of info on limiting TV time and video games, but I can't find any recommendations on limiting use if it's only educational games.  Relevant:


Unknown USB device not responding to setup address, significantly slows boot speed

When booting into Ubuntu 16.04 (even with no USB devices plugged in) I get confronted with the following:  [    1.931104] usb 3-7: new low-speed USB device number 4 using xhci_hcd [    7.043191] usb 3-7: device descriptor read/64, error -110 [   17.259287] usb 3-7: device descriptor read/64, error -110 [   17.475280] usb 3-7: new low-speed USB device number 5 using xhci_hcd [   22.587338] usb 3-7: device descriptor read/64, error -110 [   32.803433] usb 3-7: device descriptor read/64, error -110 [   33.019425] usb 3-7: new low-speed USB device number 6 using xhci_hcd [   33.020984] usb 3-7: Device not responding to setup address. [   33.224987] usb 3-7: Device not responding to setup address. [   33.427426] usb 3-7: device not accepting address 6, error -71 [   33.539431] usb 3-7: new low-speed USB device number 7 using xhci_hcd [   33.540989] usb 3-7: Device not responding to setup address. [   33.744991] usb 3-7: Device not responding to setup address. [   33.947431] usb 3-7: device not accepting address 7, error -71   I tried booting in a Live session as well, same problem (no USB devices connected).  I have no idea where to begin to debug because this error pops up even with no USB devices connected to the computer. Here's my lsusb output (with some USB devices connected):  $ lsusb Bus 002 Device 002: ID 8087:8001 Intel Corp.  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:8009 Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 008: ID 1af3:0001   Bus 003 Device 003: ID 5986:066d Acer, Inc  Bus 003 Device 002: ID 0582:012f Roland Corp. QUAD-CAPTURE Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  $ lsusb -t /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M     |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M     |__ Port 1: Dev 2, If 1, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M     |__ Port 1: Dev 2, If 2, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M     |__ Port 1: Dev 2, If 3, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M     |__ Port 1: Dev 2, If 4, Class=Vendor Specific Class, Driver=snd-usb-audio, 480M     |__ Port 6: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M     |__ Port 6: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M     |__ Port 9: Dev 8, If 0, Class=Human Interface Device, Driver=usbhid, 12M /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M   Anything else I can provide for you guys?


I start off with the default project and when I open in the shaders tab, it looks like its transparent.


I have a round trip ticket from Mexico to London, this flight has a connection in Paris, we are currently in Paris.  Do we need to go back to London or would we be able to board in Paris and just not use the first flight.


Moving one object causes other to move another (already tried unlinking)

Problem:  I have situation like this:     When I move The highlithed object the green human object moves its component as well and it shoudln't.      Objects are in no parent-child relationship.  Linked - maybe?  I thought that object may be linked. SO I tried unliking: - I highlithed the object (but not green human) - I pressed U --> Object - Is that all you have to do to unlink objects?  Can you point me in what I am doing wrong?  Side question: How can I check if an object is linked with another object?


how to use user defined library the same way we use pre-defined libraries

i mean while using user defined libraries in c we write:  #include "libname.h"   but for predefined libraries we use angular brackets instead of quotes.  #include <libname.h>   I want to include my library in predefined libraries and want use them in the same way we use predefined libraries.


I've seen quite a few users have this on their profile description.    It looks an image format of the user with his rep and badges. So, what is it exactly? How can I add this to my profile?


I have been working on my server, from which I export one directory using NFS. Of course over the week or so of server reboots, I multiple times forgot to umount the export filesystem in my workstation (which gets mounted from /etc/fstab on boot). In between I was able to umount after the fact and remount (I am not using autofs):  umount -fl /data0 mount /data0   But this no longer works.  I cannot mount the exported directory from the server on a different directory (mount hangs), but I can nfs mount that exported dir on a virtual machine running on my workstation.   What I tried is removing (rmmod) the nfs and nfsv3 module (which would not work: Resource temporarily unavailable). lsof hangs. mount doesn't show anything mounted via nfs. This is all probably a result of using 'umount -l' multiple times, but the first two times this worked without a problem.  I have restarted the server in the mean time, after not being able to mount without that making any difference. I also used service nfs-kernel-server restart. I suspect everything would be back to normal if I restart the client workstation.   Is there a way to recover from this and reinitialise the nfs client side on my workstation without a reboot? If I cannot fix this without reboot, would this not reoccur if I start using autofs?  lsof -b hangs with as last lines:  lsof: avoiding readlink(/run/user/1001/gvfs): -b was specified. lsof: avoiding stat(/run/user/1001/gvfs): -b was specified. lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1001/gvfs       Output information may be incomplete.   in the lines preceding that, there is no /data0.  The entry in /etc/fstab:  192.168.0.2:/data0 /data0  nfs  defaults,auto,nolock,user 0 2


Why am I not getting power to outside outlet?

Not getting power to outside outlet but have one outlet that has power on the outside checked the breaker it has not been tripped don't know what to do.  How do I fix it to work again? Maybe one month ago I had power, now only my front of the house works and back outside plug don't work both run on same breaker.


Huffman Encoding Proof Probability and Length

If the frequency of symbol i is strictly larger than the frequency of symbol j, then the length of the codeword for symbol i is less than or equal to the length of the codeword for symbol j.  I attempted to solve this by using Induction.  Basis Step: When we have two symbols, A with prob 0.6, B with prob 0.4, then we can assign A with encoding 0 and B with the encoding 1. This is clear.  Induction Step: Assume that it works correctly for k symbols.  How to show it works for k+1?  Is using induction the right thing to do here?


Let the  be defined by the following integral:  $$\frac1{1+\Omega}=\int_\mathbb R\frac{\mathrm dt}{(e^t-t)^2+\pi^2}$$  How does one go about showing that $\Omega$ is the real solution to  $$1=\Omega e^\Omega$$  I tried starting by considering a semicircle contour and taking residues,  $$e^z-z=\pi i\\\implies z=-W_k(1)-\pi i$$  This has imaginary part greater than $0$ when $k\ge1$ where $W_k(z)$ is the Lambert W function, hence,  $$\int_\mathbb R\frac{\mathrm dt}{(e^t-t)^2+\pi^2}=2\pi i\sum_{k\ge1}\operatorname{Res}\limits\limits_{z=-W_k(1)-\pi i}\left(\frac1{(e^z-z)^2+\pi^2}\right)$$  But I haven't the slightest clue how I would go from here.  Any simpler ideas?


iptables drop packet by hex string match


Ubuntu 14.04 - resolution stuck on 640x480 running in virtual box 4.3.10 ver on windows 7

I am using virtual box 4.3.10 updated version and it caused my Ubuntu 14.04 to be stuck on small resolution. Can anyone help me to fix this issue? I was read on the internet you can resolve this by installing the " insert guest additional image". When I do this it gives me an error message saying you cannot mount it this image or force it to mount . If I select force nothing really happens. I have downloaded the "guest image" to the vbox in guest account. but it doesn't let me install it cause I am not the su . I am new at Linux. Please advise what steps to take. Thanks   I fixed it 2 min ago see link below


Debugging with command-line parameters in Visual Studio

I'm developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the arguments I need (like this program.exe -file.txt) , but this way I can't debug. Is there somewhere I can specify the arguments for debugging?


Bounty custom message disappears after the bounty has been awarded

Probably not an issue (and hopefully not a duplicate question), but I just noticed that bounty custom message disappears after the bounty has been awarded. Perhaps it could be still accessible as a tooltip on the awarded bounty icon? Also there is no bounty-note/bounty[-custom]-message/bounty-remark tag. What's the actual name for it anyways?


Is it possible to guess encrypted data if we have multiple ciphertexts of it?

If we have an array of ciphertexts based on the same data encrypted with different keys (e.g. sharing the data with different persons using different 128 bit keys), then is it easier to an attacker to guess the data without knowing any of the keys? If so, then is there a way to harden this kind of encryption? (To be more specific the data is a 128 bit group key encrypted with the personal key of each person.)


Minecraft: Invalid Credentials - Cannot login on home network

I have had this problem for several days so far. I cannot log into my Mojang account. I know to log in with my email address and I know for a fact my password is correct. I have even changed it multiple times. I have also tried my brother's account and that doesn't work either. I have also tested this on three different computers. The weird part is. It only doesn't work on my home network. I brought my laptop to a friend's house and was able to log in to both accounts successfully. I have tried logging in through the launcher as well as Mojang.com and Minecraft.net. I am almost positive it has to do with the internet connection at my house. I have tried updating the router but I have yet to reset it. Does anyone have any suggestions on fixing this problem?


How do I put character &#8226 ::before an element?

I want to put a circle/dot ::before an element  &#8226  •  nothing I am doing is visible!  .line ::before{     content:'&#8226';     }   and  .line ::before{     content:'•';     }   (I see nothing)  I can't get this to work even with just text  I know content only accepts text, but I still don't see anything if I do:  .line ::before{     content:'xxx';     }   How do I get css ::before to show up?  (note: the css rule is in the default style sheet on page load so it should be applying to any new element ...)  How do I display this dot in ::before?