I have recently noticed these errors on startup (they occur every startup):  Jun 29 08:07:09 MATRIX kernel: [   10.773473] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun Jun 29 08:07:09 MATRIX kernel: [   10.773876] [drm:intel_set_pch_fifo_underrun_reporting [i915]] *ERROR* uncleared pch fifo underrun on pch transcoder A Jun 29 08:07:09 MATRIX kernel: [   10.773895] [drm:intel_pch_fifo_underrun_irq_handler [i915]] *ERROR* PCH transcoder A FIFO underrun   What do they mean and what should I do about them?    OS Information:  Description:    Ubuntu 15.04 Release:    15.04


CSS text-decoration underline, same width as text and underline

I have an
 with a text-decoration of underline, I was able to make it the same width as text via display: table-cell like so: #login h1 {     color: #FFF;     border-bottom: 2px solid #15b6e5;     text-transform: uppercase;     font-weight: 700;     text-align: center;     display: table-cell; }  Now I am trying to center it, I tried adding a wrapper and add display: table, it centers it but the underline is not same width as the text: #login .heading-wrapper {     display: table;     width: 100%; }  Here is the HTML

Login

  What am I doing wrong?


Matching an empty paragraph at the end of HTML text

I have written the following pattern to match an empty paragraph at the end of HTML:  But when I try the following Python code, the result is None html_desc = '

' res = re.match('(
){1}(\s)*(
|
){0,9}(\s)*(<\/p>){1}(\s)*$', html_desc)  #  returns None  I am not able to understand the issue.


why this loop generate different output when inside tikzpicture vs. outside?

I wanted to debug some tikz code by printing some values inside a loop when I noticed the output is not coming out as expected.  If the loop is inside a tikzpicture with nothing else added, the output is different when the same loop is outside tikzpicture.   I am sure there is a simple explanation to this, but I am newbie in tikz and can't see why.  Compare  \documentclass{article} \usepackage{tikz} \begin{document}  \def \max {5}     \foreach \n in {1,...,\max} {   \def \currentx {\n+\max/\n}   current x is $\currentx$  }     \end{document}   Which gives when compiled using lualatex gives expected output    But with this MWE same as above, with only difference is that now the loop is inside a tikzpicture  \documentclass{article} \usepackage{tikz} \begin{document}     \def \max {5}  \begin{tikzpicture} \foreach \n in {1,...,\max} {   \def \currentx {\n+\max/\n}   current x is $\currentx$  } \end{tikzpicture} \end{document}   The output is     Why is the output different? And what do I need to change in the second MWE above to make it give the same output?   Again, I just needed to do this inside a loop inside a tikzpicture just for debugging, to print some values as the loop is running.  TL 2019


How do you manually change the 'log_reuse_wait' status in SQL Server?

I'm in the process of moving several databases to a new server. All the databases have SIMPLE recovery mode, as they are backed up once/day.  It seems that the easiest way to move the databases is to just restore from the .bak files on the new server. I've tested that this works, aside from the fact the logs of the restored databases are locked waiting for a replication that no longer exists.  This query:  USE master; GO  SELECT     DB.name [DATABASE],     DB.recovery_model_desc [RECOVERY MODE],     DB.log_reuse_wait_desc [LOG WAITING ON],     CAST(CAST(MF.size AS decimal) * 8 / 1024 / 1024 AS DECIMAL(10,2)) [FILE SIZE GB],     CASE UPPER(REVERSE(SUBSTRING(REVERSE(MF.physical_name), 0, 4))) WHEN 'MDF' THEN 'DATA' WHEN 'LDF' THEN 'LOG' ELSE NULL END [FILE TYPE],     UPPER(REVERSE(SUBSTRING(REVERSE(MF.physical_name), 0, 4))) [FILE EXTENSION] FROM sys.databases DB INNER JOIN sys.master_files MF ON MF.database_id = DB.database_id ORDER BY     [FILE TYPE] DESC,     [FILE SIZE GB] DESC   produces LOG WAITING ON = REPLICATION for the restored databases.  Since the replication no longer exists, I can't just delete the publications on the new server.  Question. Do I need to delete the snapshot replication on the databases before moving them across? Or can I change this log_reuse_wait status to NOTHING manually?  Some more detail:  Server A has replication enabled. DB A.a is marked for snapshot replication. This rep is run occasionally. Database A.a is in SIMPLE recovery mode, with a full backup taken nightly.  Server B is new and doesn't have replication enabled yet. I have found when I restore A.a to B.a, the restoration works. But the log file is still being held for replication.  I would like the log file on B.a to NOT be marked for replication...


This works:  int main() {           char *t = "Hello";     t = "World";     printf("%s", t); }   But this gives segmentation fault:  int main() {        char *t = "Hello";        strcpy(t, "World"); // the only difference     printf("%s", t); }   Why?


Term for catchy tune that stays in your head

Is there a term for a catchy tune that stays in your head after you hear it? The Germans call it an earworm.


My regular expression matches too much. How can I tell it to match the smallest possible pattern?

I have this RegEx:  ('.+')   It has to match character literals like in C. For example, if I have 'a' b 'a' it should match the a's and the ''s around them.  However, it also matches the b also (it should not), probably because it is, strictly speaking, also between ''s.  Here is a screenshot of how it goes wrong (I use this for syntax highlighting):   I'm fairly new to regular expressions. How can I tell the regex not to match this?


I'm new to LaTeX and currently trying to write myself a report template that I can use for future work.  Anyway, here is a MWE showing the error:  \documentclass[12pt,twoside,a4paper]{article} \usepackage{graphicx}  \begin{document} \begin{figure}[ht]   \centering   \includegraphics[width=\linewidth]{epsFig}   \caption{This is where a caption would go. Include the image in the folder of the project, the image must have a .eps file format.}   \label{fig:example} \end{figure} \end{document}   And the output ends up looking like this:    That is, there's not enough space on the previous page to place the image so it is moved on to the next page, but it ends up at the bottom left of the page covered by the caption.  The image was created using MatLAB, I use TexnicCentre with Miktex2.9. Can anyone help?  edit: The file extension for the image is .eps The image is at this


Ubuntu 16.04 - Couldn't find any package by glob and regex [VPS]

I keep getting this error:    I only started using Ubuntu 2 days ago and I am not exactly sure what it means. Can someone please help me?   I am trying to turn it into a VPN.


help with some Hilbert style proofs in a propositional logic axiom system.

I'm very new to classical propositional logic, and my lecturer is using a system with the following axioms:  A1. X→(Y→X)  A2. (X→(Y→Z))→((X→Y)→(X→Z))  A3. (¬Y→¬X)→(X→Y)  Use uniform substitution and Modes Ponens (MP) as rule of inference. Deduction Theorem also allowed.  I'd like to deduce the following:  (a) X, Y ⊢ ¬(X→(¬Y)) (conjunction, but expressed in terms of NOT and IMPLIES)  (b) X→((X→Y)→Y)  (c) (X→Y)→(((¬Y)→X)→Y)  (d) (((¬Y)→X)→Y)→(X→Y)  Remark: The last two are to show that the axiom (A3) can be replaced with a different axiom:  B3. (¬Y→¬X)→(((¬Y)→X)→Y).  Solution: Bram28 proves (b) and (c) below. I demonstrate (a) and (d).  (d) is alright; first, I claim that X, ((¬Y→X)→Y) ⊢ Y.  Axiom (A1) gives ⊢X→(¬Y→X) so that ((¬Y→X)→Y)⊢X→Y by Hypothetical Syllogism (HS), which Bram28 shows to be valid.  Now that we have ((¬Y→X)→Y)⊢X→Y just apply the deduction theorem to get what we want: ⊢((¬Y→X)→Y)→(X→Y).  (a) is slightly trickier. Axiom (A1) gives ⊢ Y→(X→Y) so that X, Y ⊢ (X→Y).  Next, by part (b), we have as a theorem that ⊢X→((X→¬Y)→¬Y).  Therefore X, Y ⊢(X→¬Y)→¬Y.  But ⊢(¬¬(X→¬Y))→(X→¬Y) by DN Elim, which Bram28 shows to be valid.  By HS, X, Y ⊢(¬¬(X→¬Y))→¬Y.  By Axiom (A3) and MP, X, Y ⊢(Y→¬(X→¬Y)).  Also, rather trivially X, Y ⊢Y.  Finally by MP we conclude X, Y ⊢¬(X→¬Y) as required.


I have Android 5 on my HTC One M8. Only have a guest user and my own user. still there are apps - partly restored by titanium backup - listed in my app manager. They're marked as "not installed". They stay there even when I uninstall them. any idea? br Tom


A few months back I met a celebrity and seeing his glamour I felt that I have/had no past or future.  Which is to be used, had or have ?


What exactly is a hypothesis space in machine learning?

Whilst I understand the term conceptually, I'm struggling to understand it operationally. Could anyone help me out by providing an example?


How can I run a program on startup, minimized?

I just want Telegram to be run and I have added it to startup apps. The point is that I need it to be minimized. Any commands?


Where to find a Win 10 product key after upgrade?

I just upgraded from Win 8.1 to Win 10 and I was trying to find the product key for the new Win 10 OS.  I found product ID but I am not completely sure whether "product ID" and "product key" is the same thing. The link "change product key" suggests that it is but I would like to have it confirmed.    Can anyone please confirm or clarify?  Thanks!


System crashed - After reboot logs contain "^@"


Suggested textbook for Multivariable Calculus

I have just finished single variable differential/integral calculus (with a little bit of infinite series).  I'd like to jump right into the multivariable stuff; given that I intend to major in engineering (definitely not pure mathematics). Which textbook would you recommend that covers integral/differential calculus of several variables?  I am more interested in the computational stuff than the "proofs" if that makes sense.  Some I've heard of are  Stewart / Spivak - Calculus on manifolds/ Anton/ Howard/ Edwards  Thank you very much!


Why is this list slice treating 0 and 1 as the same in Python?

I'm a bit confused about slicing a list and the numbering here.   Python tends to start from 0 instead of 1, and it's shown below to work in that way well enough. But if we're starting from 0, and going until 3, why am I not getting exam instead of exa? After all, 0 - 3 is 4 numbers.  >>> test = "example string" >>> print test[:3] exa >>> print test[0:3] exa >>> print test[1:3] xa


What do you call superfluous filler words like 'So' 'Anyhow' 'Anyway'?

Examples:  Anyway, after that I went home and went to sleep. Anyhow, do you want to go for a drink? So then, I was chatting to this girl and... Now, Bob was a nice guy, but socially inept. Her cooking was, well, terrible.  These words are distinct from fillers like 'umm' and 'err' because they are often used intentionally in written, usually informal, English, such as writing expressing a conversational tone.


Bash function not parsing arguments when in defined in variable

I'm facing some strange behabiour in my bash script. I have a simple script parser.sh, wich is really simple: #!/bin/bash  for arg in "$@" do      echo ARGUMENT: "$arg" done  This script is called from another script in the same directory, lets call this one test.sh #!/bin/bash  `pwd`/parser.sh "ARG1=FIRST" "ARG2=TESTING SPACES"  The script shown above really works, and outputs the arguments as expected: ARGUMENT: ARG1=FIRST ARGUMENT: ARG2=TESTING SPACES  However, if I change the test.sh as follows: #!/bin/bash  ARGS="\"ARG1=FIRST\" \"ARG2=TESTING SPACES\"" `pwd`/parser.sh $ARGS   This simple modification, makes the code to fails when iterating over arguments: ARGUMENT: "ARG1=FIRST" ARGUMENT: "ARG2=TESTING ARGUMENT: SPACES"  Why is that happening? What am I missing? Thanks in advance


Proof that more predictor variables will lead to less SSR

Say I have a multilinear model $y = X\beta - \varepsilon_1$, let's call this A. I also have another multilinear model $y = X_i\gamma - \varepsilon_2$, let's call this B. Where $X_i$ is a subset of $X$, meaning that all the variables in B are also found in A. According to some readings, as we increase the number of predictor variables, the SSR will almost always decrease. Can we prove this mathematically by showing that that $SS_{res}(A) \le SS_{res}(B)$.


how to make bootable windows iso on kali linux? error

sudo dd if=/home/user/Downloads/windows10.iso of=/dev/sdb sync  I followed this method but when I plug in the pendrive to install windows 10  I  get an error " boot device not found insert cd/usb and click or enter...." What do I do?


I noticed that $***$ produces spaces between the stars while $**$ does not. Is this behavior documented somewhere?


Find $E(S)$ and $Var(S)$ of a mixture of distributions

A class of 60 students has three sections. Summary statistics for   scores on a quiz:           Section 1: 25 students, mean $\mu_1$ = 23, SD $\sigma_1 = 3$     Section 2: 20 students, mean $\mu_2$ = 25, SD $\sigma_2 = 2$      Section 3: 15 students, mean $\mu_3$ = 27, SD $\sigma_3 = 4$         Let $S$ be the quiz score of a student picked at random from the   class.   Found this problem in a textbook. The question was looking for something else, but I want to find $E(S)$ and $Var(S)$. How would I do that? This is what I think so far:    Let $\mathbb{I}_x$ be the event that Section $x$ is picked from the 3 sections with probability $p$, where $p$ is the $\frac{\text{number of students in that section}}{60}$ and $x \in [1,2,3]$.    Then, $$ E(S) = E(E(S|\mathbb{I}_1) + E(S|\mathbb{I}_2)+ E(S|\mathbb{I}_3))   $$  $$ = \frac{25}{60} \cdot 23 + \frac{20}{60} \cdot 25 + \frac{15}{60} \cdot 27  $$    Then, to find $Var(S)$:    $$ Var(S) = (\mu^2_1 + \sigma^2_1)\frac{25}{60} +(\mu^2_2 + \sigma^2_2)\frac{20}{60} + (\mu^2_3 + \sigma^2_3)\frac{15}{60} - E(S)^2 $$    $$ = (23^2 + 3^2)\frac{25}{60} + (25^2 + 2^2) \frac{20}{60} + (27^2 + 4^2) \frac{15}{60} - E(S)^2 $$    Does this look correct?


How can I detect items without NBT Tags?

I'm working on a map where it clears normal droppers from your inventory and gives you ones with a tag. But it's detecting the droppers with tags as well.


How to cross reference between different beamer presentations

for my lectures I am preparing beamer presentations.   I would like to include sections (possibly more than one in a single beamer presentation) and to be able to have continuing numbering of definitions, theorems etc in the next beamer presentations.  I know how to number them in a single presentation but then in the next one the numbering begins from 1 again and I can't refer to a theorem from a previous beamer presentation.  Is there any way of doing this? Help is much appreciated


I have Amazon fire tablet. I want to install fresh android 4.4 or above. Is there any step by step instruction available somewhere or how do I do this?


SHOWPLAN permission denied when including execution plan in Data Explorer

If I select the "Include execution plan" checkbox in the Data Explorer, the query fails:     SHOWPLAN permission denied in database 'StackOverflow'.     I see that  following maintenance. I don't know whether there was any recent maintenance. It's been several days since the data was updated and longer since an update was deployed, if that's related.


How do I cost out a homebew magic item: Mutex Bag Of Holding?

For the Pathfinder RPG, the costs and limits of a  are defined pretty clearly. Though it comes in four different types, I'll take a Type I Bag of Holding as an example.  The Type I bag weighs 15 pounds, has a Contents Limit of 250 pounds., a Contents Volume Limit of 30 cubic feet, a Market Price of 2,500 gp, and a Cost To Create of 1,250 gp.  The creator needs the Craft Wondrous Item feat and the spell Secret Chest. Caster Level is 9.  The bag of holding opens into a nondimensional space.   For my campaign I've created a Mutex Bag of Holding. A Type I Mutex Bag of Holding is actually two different bags (A and B). Both bags open on to the same nondimensional space. Only one bag may be open at a time. If Bag A is already open, Bag B refuses to open and cannot be opened.    The advantage here is that Bag A can be across the globe from Bag B; it provides a way of resupplying a party from across vast distances, passing notes or potions or rations or whatever. Picking up and holding the bag does not provide any sort of identification, location nor communication with the owner of the other bag, but there's aways  spells. Passing notes through the bag is permitted.  EDIT   In case it is relevant, the Player Characters in my campaign currently have only one of the two bags and don't know who possesses the other bag: friend, foe, or absent-minded wizard who left Bag B open.   Does something like this already exist?  I have not found it in my searches to date.  How do I figure out the Cost To Create for this item?  I treat the two bags as one set.  I plan to put a premium on this because the pair allows some new creative uses over a single Bag, but I'm not sure how to cost this out, as it approaches the convenience of a  that is both permanent and portable.


Italic correction fails when putting \textit into a custom command

I am currently writing my PhD thesis (genetics) and I encountered the following problem: The text contains a lot of gene names (italic) with mutations indicated as superscripts. So, rather than typing the whole command each time, I defined custom commands to make things easier. But the automatic italic correction does not work if it is wrapped up in an custom command (MWE below). Putting "\ " inside the command helps but messes things up, when making an enumeration.  Is there a workaround for this?  MWE:  \documentclass{article}  \newcommand{\test}{\textit{gene\textsuperscript{mutation}}}  \begin{document} Example where spacing problems with \test show up.  Putting \textit{gene\textsuperscript{mutation}} directly into the text works perfect. \end{document}


Why isn't using magic on the train considered "Underage Magic"?

Many students used magic on the train. In Goblet of Fire, Hermione used "Reparo" on the train; In Half-Blood Prince, Ginny used "Scourgify" in the train when there was "Stinksap" all over the compartment. Why didn't the Ministry of Magic consider this as underage magic when students are constantly reminded that they cannot use magic outside SCHOOL?


I want a tool that offers tail-like functionality for large files. (which are in a remote server and mounted on my system, for what that matters).  I am aware of  but I am having issues with auto reload on Ubuntu 16.04.01 as I describe .  Incorporation of custom coloring schemes is also needed.  I would like to avoid terminal based solutions such as multiline and


I have a long running python script that keeps getting interrupted by battery issues or my own stupidity. I can use (CTRL-Z) to stop the process and then fg to restart it, but as far as I can tell that will only work if I am in the same session and it hasn't been logged out.   Is there a way to deep stop the process so I can restart it at a later time after a logout without having to start from the beginning?


Show that the vector space of real functions is not finitely spanned

Here's what I've come up with. Let $\mathcal B$ be a generating set of $\mathcal F(R)$. Let us assume that $\mathcal B$ is a finite set, thus: $\lt  \mathcal B \gt = \lt \{b_1, ..., b_n \}\gt, n \in N$. Let  $\mathcal f \in F(R).$ Thus: $\mathcal f = \alpha_1 b_1 + ... + \alpha_nb_n,$ where $ \alpha_1,..., \alpha_n \in R$ are not all zeroes.  If  $\mathcal F(R)$ is a vector space, so there can be a function  $\mathcal g \in F(R)$ such as  $\mathcal g \neq \lambda f, \lambda \in R$. Thus  $\mathcal f+g \in F(R)$  but  $\mathcal f+g \neq \alpha_1 b_1 + ... + \alpha_nb_n$. If is $\mathcal g$ is to belong to $ \lt \mathcal B \gt$ we must add a new vector to $\mathcal B$.  Repeating the above mentioned procedure, we can find a function $\mathcal g\in F(R)$ such as $\mathcal h \neq \mathcal\lambda g$. Thus, we can find infinite functions and thus need infinite base vectors.  Is this proof right?


What are the pros/cons of the Dark Sigil and Hollowing?

Yoel of Londor is at Firelink Shrine now, and offering me free levels. Some basic research indicates to me that if I accept them, I'll get a Dark Sigil, which causes me to Hollow on death. And possibly other things.   I've also seen some ways I can rid myself of the Dark Sigil.  I'm curious what the pros/cons are to going down this path. Are they basically free levels if you get the Dark Sigil, level up, and then cure yourself after maxxing out the free levels? Is there an upside to keeping it, or being Hollowed? What are the downsides to be Hollowed?


Unequal Variances: Satterthwaite vs Welch

I'm currently working on a statistics analysis that has a small study population, n=50. I've segmented the population into two groups and want to perform some t-tests to compare differences between some of the measures we used during data collection.  I know I need to assume unequal variances and Stata gives me two options, Satterthwaite and Welch. My question is, which is more appropriate to use in this situation?


If $A|B$ and $B|A$ then prove $A=\pm B$   So far I have $A|B \iff AX=B$ and $B|A \iff BY=A$ with $X,Y \in \mathbb{Z}$  Not sure how to finish, any help.


Error when trying to use Xorg: Only console users are allowed to run the X server?

So when i try to use the Xorg command as a normal user, this is the error that it gives me :   /usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server   but i don't understand, what are the "console users"?  and when i switch to root it gives me another error :   _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running (EE)  Fatal server error: (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)  (EE)  Please consult the The X.Org Foundation support       at http://wiki.x.org  for help.  (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE)  (EE) Server terminated with error (1). Closing log file.   So what is going on and what are the reason for each of these errors?   UPDATE: and the output of the command netstat -ln | grep -E '[.]X|:6[0-9][0-9][0-9] is :  unix  2      [ ACC ]     STREAM     LISTENING     18044    @/tmp/.X11-unix/X0 unix  2      [ ACC ]     STREAM     LISTENING     47610    @/tmp/.X11-unix/X1 unix  2      [ ACC ]     STREAM     LISTENING     18045    /tmp/.X11-unix/X0 unix  2      [ ACC ]     STREAM     LISTENING     47611    /tmp/.X11-unix/X1


How to get all gallery blocks in wp_query like get_post_gallery()?

before Gutenberg I could query for all galleries in my blog with this:  $the_query = new WP_Query( $args );  while ( $the_query->have_posts() ) :     $the_query->the_post();       echo get_post_gallery(); endwhile;   But this does not output Gutenberg galleries. How do I output Gutenberg block galleries?


Stackoverflow design has changed on chrome but not on Opera or FF

When I open stackoverflow with chrome, it looks as follows    this is just on Chrome, but on Opera and FF it looks like it was before. So what could be the problem?


How do i set a bone as active in pose mode by scripting

I want to run a command that needs an active bone and I want to change the active bone in a script so after I finish the command I dont have to select another object to run the command again


I have a string var x = 2019-02-14T21:06:06.400Z  Another string y = 2019-02-14T21:06:06.44500Z  I need to remove content after the dot i cant slice it because the dot might come after 4 or 5 or 6 or n characters


SSH Allow Password For One User, Rest Only Allow Public Keys

Is it possible with ssh to allow passwords from a certain user, but deny using passwords for everybody else?  Basically I want to allow password auth for user justin but everybody else must use public keys.  PasswordAuthentication no   Seems to be global though, no way to specify by user.


How to stop git auto-update when switching branches?

I have two branches:  ----master   |   |----lf   I developed some new feature in branch lf and get some output. Then, I tried to switch back to master (through git checkout) and execute the program to compare the result. Unfortunately, git checkout master will update what I did in lf:  M   Makefile M   src/mainloop.c M   src/threadpool.c M   src/threadpool.h Already on 'master' Your branch is up to date with 'origin/master'.   As a result, I get the exact same project in two branches. This is not what I want. I don't want master auto update what I changed in lf.  My question are:   How to recover the code in master before I do branch (git branch lf)? How to switch between different branches with no auto-update?


How important is the academic reputation of a graduate school to its Ph.D students when they are looking for jobs in North America?

When academic committee consider an applicant for postdoc or tenure track positions, how much do they care about where the applicant got his Ph.D? Suppose two applicant have similar accomplishments in their research, will the one who graduated from a more prestigious school gets the offer first?


How do I install Firefox 52 ESR on 16.04?

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


Can blend files be queued for animation rendering?

I would like to be able to render several files one after the other, when I am not using my computer, e.g. at night. Is there a way of doing this?


When I am changing the value of a copy of the original variable the original variable is getting changed.  The code below  function test(){   var original= ['','','','1',''];   var copyy=original;   copyy[3]="2";    console.log(original); }   The console output is    ["", "", "", "2", ""]   Not able to wrap my head around this.


Will my game restart if I join a friend's game?

I am further in Borderlands 2 than my friend and I was wondering if I join his game, will it make me restart the missions I have already completed? Or affect my storyline in any way?


Can we use integer pointer in command line arguments

main(int argc,char *argv[]) { ......; ......; }   Here argc is an interger variable and indicates the number of parameters passed. argv is an array of pointers to characters My doubt is I seen an program using   main(int argc, int*argv[]) { ......; ......; }   is it valid can we use argv as an array of pointers to integers?


Hot Network Question's icon should go its community front page

Why not have the icons to the left of each of the 'Hot Network Questions' go to that community's front page? Seems logical.


Bluetooth headset connects, but provides no audio input option

I have a bluetooth headset that I would like to use with Skype. It used to work perfectly a few Ubuntu versions ago. Then one day it stopped working, and it seems there were kernel bugs or something. I gave up on it for maybe half a year or more.  Recently, I thought I'd give it another go. On the upside, my headset seems to connect to my computer without any trouble:    However, when I open Skype, it does not see the headset at all. There is only one Pulseaudio option, which is network sound server, not my headset.     The bluetooth headset also does not seem to appear anywhere in my sound settings.    How do I get Skype to recognize my bluetooth headset?


I've never quite understood the original purpose of the Hibernation power state in Windows. I understand how it works, what processes take place, and what happens when you boot back up from Hibernate, but I've never truly understood why it's used.  With today's technology, most notably with SSDs, RAM and CPUs becoming faster and faster, a cold boot on a clean/efficient Windows installation can be pretty fast (for some people, mere seconds from pushing the power button). Standby is even faster, sometimes instantaneous. Even SATA drives from 5-6 years ago can accomplish these fast boot times.  Hibernation seems pointless to me when modern technology is considered, but perhaps there are applications that I'm not considering.  What was the original purpose behind hibernation, and why do people still use it?    Edit:  I rescind my comment about hibernation being obsolete, as it obviously has very practical applications to laptops and mobile PCs, considering the power restrictions. I was mostly referring to hibernation being used on a desktop.


Does a falling creature provoke Opportunity Attacks on the way down?

I'm in a D&D4e game right now, and in the current combat there are some flying creatures which may soon be knocked prone by PC #1.  As part of being knocked prone, a flying creature falls to the ground.  As they fall, the creatures may pass within melee range of PC #2 who is currently on the ground.  Would PC #2 get an Opportunity Attack in this scenario, as a creature leaves a square adjacent (elevated by one square) to him?  For reference, here's the "Moving Provokes" clause of the Opportunity Attack rule:     Moving Provokes: If an enemy leaves a square adjacent to you, you can make an opportunity attack against that enemy. However, you can’t make one if the enemy shifts or teleports or is forced to move away by a pull, a push, or a slide.   Are there any other rules that apply to this scenario, which one should be aware of?


My mobile phone has been stolen and I have blocked my number and bought a new sim with same mobile number. When I reset password and followed the instructions, it shows at the end of page: Google could  not verify your account.  Please help me.


Installing 32-bit Wine 1.7.19 on 64-bit Ubuntu 14.04

I'm having a bad time trying to install 32-bit version of Wine 1.7.19 on a 64-bit version of Ubuntu 14.04. I've got through all the questions related to that on AskUbuntu but I haven't found a working solution probably because I did a big mess with Wine (tried to compile/install it in many ways, winetricks won't work until I use ent WINE="path" winetricks, etc). I would like to make a cleanup of everything that's related to Wine (and its components like winetricks) and perform a clean install. I tried to install Wine through the Software Center but there's only an old version of Wine, then I uninstalled it with Software Center as well. Then I used this tutorial to compile Wine:  - I compiled it in "/home/kamil/Pobrane/wine-1.7.19" but it made a 64-bit version of Wine. So basically I have two questions:   How do I clean all traces of Wine to perform a clean install? How do I install/compile a 32-bit version of Wine 1.7.19?


Recently I saw a phrase that sounds like that:      Hurts even with the vest, don't it?   So, the question is: Why there is "don't" instead of "doesn't"?   I've found a lot of usages like that, so it doesn't seem like a grammar mistake.


How can Cobb use Mal's totem for a reality check?  Isn't this defeating the whole idea of totems.  That totem belongs to Mal so how can Cobb use that to check for reality. Wouldn't that give inaccurate result??


Self-complementary graph with 4k+1 vertices, which is 2k-regular

Prove that ∀k∈N, k≥1, there is a self-complementary graph with 4k+1 vertices, which is 2k-regular.  I think that the best way to prove it is by induction.  Any helpful suggestions?  (I know that this post: "Prove every self-complementary graph with 4n+1 vertices has at least one vertex of degree 2n" exists and I do not think that I am asking the same question. However, if you disagree with me I am willing to remove my post.)


Can anyone provide me a source to learn algebraic number theory via solving problems which has solutions available too?


Is it possible to find out reason of suspension for another user?

A user on Stack Overflow was recently temporarily suspended.  Out of curiosity I read through their posts (both questions and answers) and found them to be of decent quality.  They answer far more than they ask (about a 10 to 1 ratio) and always provides lots of sample code in their replies.  They're polite too.  I can't see a reason for suspension.  So, now I'm curious, and maybe I can even learn something from their experience.  Can I find out why they were suspended or is that strictly between the moderator and the user?


Python/Pandas: Filtering Rows using Regex

I am trying to filter this DataFrame by excluding any rows where the Amount contains a ? or - symbol like shown below:    table = table[~table['Amount'].str.contains('-|?', na=False)]     Date        Description                               Amount   AutoNumber 0  3/17/2015        WW120 TFR?FR xxx8690                 $140.00     49246 1  3/16/2015        PHO HOAN PASTEU                     ?$27.83?     49246 2  3/16/2015        Millennium Card FEE                 ?$44.00?     49246 3  3/16/2015        SSV TO: xxxxxxx8690                 ?$3.00?      49246 4  3/16/2015        HUSKY RIVERVIEW                     ?$15.97?     49246 0  03/16/2015       Payroll DepositDOLLARSDIRECT         $200.00     49248 1  03/14/2015       POS PurchaseFPOS LEO'S ESSO LONDO    $-3.59      49248 2  03/14/2015       ABM Withdrawal                       $-103.00    49248 3  03/14/2015       Service Charge                       $-1.50      49248 4  03/13/2015       LoansLibro Credit Union              $155.84     49248   The output I am looking for is this:      Date        Description                               Amount   AutoNumber 0  3/17/2015        WW120 TFR?FR xxx8690                 $140.00     49246 0  03/16/2015       Payroll DepositDOLLARSDIRECT         $200.00     49248 4  03/13/2015       LoansLibro Credit Union              $155.84     49248   However, I am getting the following error:     File "C:\Python27\lib\re.py", line 251, in _compile     raise error, v # invalid expression sre_constants.error: nothing to repeat


Binvox not working on a headless Linux server

I'm trying to run Binvox () via web server, on an Amazon EC2 server with Nvidia GRID K520 GPU and running Ubuntu 14.04. I'm using the system(binvox, $ret) function call in my PHP script. However, Binvox uses an X11 window to display its processing, and thus fails to run.   According to the documentation, the -pb option should make it work on a headless server, however, that did not work for me. I tried using Xvfb to run it but I get the following error:     Xlib:  extension "GLX" missing on display ":99". freeglut (./binvox): OpenGL GLX extension not supported by display ':99'    Note that applications like firefox and xclock work fine with Xvfb, but I get a similar error with glxinfo. I tried the suggestions/solutions given  and , but it did not work for me. I'm not sure where should I start looking to fix it.


How to disable automatic indentation on new paragraphs?

I'm using a template that I can't/shouldn't modify. This template forces that every time a new paragraph begins, there is an indentation added. In some rare cases this is just looking really ugly and that's why I'd like to avoid this indentation. Is there any way to do this without changing the template?


I'm reading an example bash shell script: #!/bin/bash  # This script makes a backup of my home directory.  cd /home  # This creates the archive tar cf /var/tmp/home_franky.tar franky > /dev/null 2>&1  # First remove the old bzip2 file.  Redirect errors because this generates some if the archive # does not exist.  Then create a new compressed file. rm /var/tmp/home_franky.tar.bz2 2> /dev/null bzip2 /var/tmp/home_franky.tar  # Copy the file to another host - we have ssh keys for making this work without intervention. scp /var/tmp/home_franky.tar.bz2 bordeaux:/opt/backup/franky > /dev/null 2>&1  # Create a timestamp in a logfile. date >> /home/franky/log/home_backup.log echo backup succeeded >> /home/franky/log/home_backup.log  I'm trying to understand the use of /dev/null 2>&1 here. At first, I thought this script uses /dev/null in order to gracefully ignore errors, without causing the script to crash (kind of like try catch exception handling in programming languages). Because I don't see how using tar to compress a directory into a tar file could possibly cause any type of errors.


Why can't sudo redirect stdout to /etc/file, but sudo 'nano' or 'cp' can?

Why does redirection, using sudo give me an error for the following commands?   $ sudo printf "foo" >/etc/file bash: /etc/file: Permission denied  $ sudo printf "foo" ~/file; cat ~file >/etc/file  bash: /etc/file: Permission denied   ...yet I have no such problem when I use an editor, or cp. I don't think I've ever tried this before, so I don't know if there is something haywire on my system, or if this is normal. It seems a bit restrictive to be normal, but(?) maybe it is intended to be restrictive...  (using Ubuntu)


I would like to typeset text (a link) at the end of the current line, like this  1 Text.                                                  [Link]  2 More text, that is unfortunately too long to fit the link.                                                            [Link]  3 Text that goes over two lines just places the link at the end   of the last line, if it fits.                          [Link]  4 If it doesn't fit into the second line, because the text is   just too long, put it flushright on the next line, as in 2.                                                          [Link]   I don't want to break the [Link] into two lines.    Update. Thank you for all your answers. The code from the  on the "duplicate" question works best:


Can I use my laptop as a second monitor if the desktop is using a ethernet

I recently fixed my old laptop and I was wondering if I can use it as a second monitor for my PC, even though my PC is using an ethernet cable, as my motherboard doesn't support wifi.


Why do card processing companies discourage "cash advance" activities

I've been curious about something for a few days now, but I couldn't find out the reason elsewhere.   Reading through, for example, the Square terms and conditions (), they state      ... you will not (a) ... (b) provide yourself a cash advance from your   credit card ...   But what is the reason they don't allow this to happen via their services? Note, I am definitely not asking if using Square, or other services, to do this sort of thing should be something I should be doing, but what's in it for Square to refuse this type of transaction? Wouldn't they get a piece of the transaction like any other and profit from this? Or is there pressure or deals with the credit card companies they accept, stating that they will do their best to refuse this behavior?


How can I install Ubuntu in dual boot on a separate internal hard drive?

I have Windows XP on my first hard drive, and have installed a second empty hard drive.  When I load the Ubuntu 14.04 installation disk and try to install, I chose Something Else to mean that I want to install Linux on the second empty hard drive.   When I click install I get a message saying that I haven't specified a root and should use the partition table.   Every time I indicate repartition, I get the same message ("no root").   The 14.04 installation disk is unclear about how to install on an empty second drive. If I select the side-by-side option for installation, then it wants to install Linux on the same drive as XP, which is not what I want.  The empty hard drive is NTFS. Do I have to find some way to reformat it for ext4 without the Ubuntu installation disk, and then try to install?? The menus on the 14.04 installation disk are very poorly written.


...2 to 5 questions answered correctly, out of 20 of them? Each question has 5 choices. Probability of getting one right is 1/5. Probability of getting exactly 1 right is ${20 \choose 1} p^1  q^{19}$, with $p=P(\mathrm{right})$ and $q=P(\mathrm{wrong})$  (which I managed to understand and calculate). However how do I calculate for the problem above?


Why don’t objects approaching the speed of light form a black hole?

Although I’m rather new to physics and this site, I wanted to ask a question because it’s been sitting on my mind recently and I can’t figure it out... Forgive me if I’m missing something but here goes. It is said that when an object approaches the speed of light, it’s mass increases very, very much. However, If an object travelling nearly light speed is also not a black hole seen as how it is not a black hole in its reference frame, what happens to the mass gained by the object due to this speed? What I mean is, although it is not a black hole in its reference frame, thereby not allowing it to be a black hole in any other reference frame, it will still be a very heavy object when seen in its own reference frame, with tons of mass relative to volume due to the approaching of light speed. Doesn’t this mean that, in the object’s frame of reference, it will become a black hole, thereby allowing it to become a black hole in all frames of reference.. Provided I’m not missing anything, this means that objects approaching near light speed will produce a black hole in all frames of reference. I say this because: A.) if we say that the object isn’t stationary because of how heavy it is, this means that the near light speed velocity of the object is absolute because, in the object’s own reference frame, it has a definite velocity that is non-zero, thereby meaning that the object can become a black hole at near-light speeds; B.) if the gained mass is of the object in its own reference frame is seen as “not there” due to the lack of velocity of the object in the current reference frame, that means that mass is as referentially dependent as velocity, which doesn’t make sense to me. I apologize if this didn’t make sense, I tried my best and please forgive my lack of experience with this information.


How do I generate a list of n unique random numbers in Ruby?

This is what I have so far:    myArray.map!{ rand(max) }   Obviously, however, sometimes the numbers in the list are not unique. How can I make sure my list only contains unique numbers without having to create a bigger list from which I then just pick the n unique numbers?  Edit: I'd really like to see this done w/o loop - if at all possible.


Azure Data Out metric. View data source / destination

I have an app service that has been running for a while with steady usage. We noticed that late last night / early this morning there was a large spike in data out. Our website has an authenticated user area and we are concerned that there may have been a breach or something unauthorized happening on the site.  The site has consistently always had below 5MB/15 mins out. But the sudden spike was over 180MB then instantly back down again.    Is there a way using Azure (Metrics or Security Center) to determine what caused the massive spike in Data Out? What data was sent, who it was sent to etc? Is there anything we can enable to be able to view this data if it was to happen again? (e.g. Azure Sentinel)  Looking at other metrics, there was no obvious spike in 4XX or 5XX errors or number of requests, so we don not suspect a brute force or DoS attack.   Update: It happened again last night. This time the spike was 600MB and in a 15 minute window the Average CPU time spiked to over one hour. Response time, number of requests and 4xx/5xx errors all remained steady.


How to fill a device with zeros, without overwriting the bytes that are already zeros?

I have a USB flash drive usb 3, the reading speed is much more than the writing speed.  Let's say that 99% of the flash memory is already full with zeros, and I would like to fill it with zeros until 100%, by overwriting all the memory flash with zeros dd if=/dev/zero of=/dev/FLASH.   This process is going to be long, and it will minimize the life expectancy of the flash drive.   I thought, maybe it would be much quicker to check which areas are non-zero, and overwrite only those non-zertos areas with zeros?   Are there anyways of doing this? If it is interesting, I would need all this for security reasons.


What can you do with UART ports in Microcontroller?

In my Microcontroller there exist UART ports. But I have not understood well how they can be used. Can I use them for TTL or RS232 communication? And would it be also possible for me to use them to receive DVP signal from CMOS image sensor like OV7670?   Thank you


RTW ticket - complicated visa/passport issue

my family is travelling on a One World RTW trip which includes South Africa and Sri Lanka. Because we have both British and NZ passports and South Africa only has a visa waiver for British we booked our tickets on our British passports.  We now need to get long stay visas for Sri Lanka as we are travelling there for longer than 30 days. And it turns out it is much cheaper to get a visa for NZ passport holders than British!  Question is - can we show our NZ passports on arrival in Sri Lanka but leave on our British passports? Or is there another option I haven't thought of?  We once got stung by Air NZ when we were travelling on our British passports but our ESTAs for transit in the US were in our NZ passports and they removed us (including two small children) and our baggage from the flight until we could gain ESTAs on our British passports. So I am very sensitive about this!  Any help welcome thanks


Why are nonsquare matrices not invertible?

I have a theoretical question. Why are non-square matrices not invertible?   I am running into a lot of doubts like this in my introductory study of linear algebra.


What does "curly (curved) less than" sign $\succcurlyeq$ mean?

I am reading Boyd & Vandenberghe's Convex Optimization. The authors use curved greater than or equal to (\succcurlyeq)  $$f(x^*) \succcurlyeq \alpha$$  and curved less than or equal to (\preccurlyeq)  $$f(x^*) \preccurlyeq \alpha$$  Can someone explain what they mean?


How can I install pdftk in Ubuntu 18.04 and later?

Is there any chance of getting pdftk working in Ubuntu 18.04? I need this for creating PDF files with a watermark in shell.   Or, does anybody know a working alternative to pdftk to generate a PDF with a watermark in shell?  I already check/try out all of them:  sudo apt list pdf* Listing... Done pdf-presenter-console/bionic 4.1-2 amd64 pdf-redact-tools/bionic,bionic 0.1.2-1 all pdf.js-common/bionic,bionic 1.5.188+dfsg-1 all pdf2djvu/bionic 0.9.8-0ubuntu1 amd64 pdf2svg/bionic 0.2.3-1 amd64 pdfcrack/bionic 0.16-1 amd64 pdfcube/bionic 0.0.5-2build6 amd64 pdfcube-dbg/bionic 0.0.5-2build6 amd64 pdfgrep/bionic 2.0.1-1 amd64 pdfminer-data/bionic,bionic 20140328+dfsg-1 all pdfmod/bionic,bionic 0.9.1-8 all pdfmod-dbg/bionic,bionic 0.9.1-8 all pdfposter/bionic,bionic 0.6.0-2 all pdfresurrect/bionic 0.14-1 amd64 pdfsam/bionic,bionic 3.3.5-1 all pdfsandwich/bionic 0.1.6-1 amd64 pdfshuffler/bionic,bionic 0.6.0-8 all pdftoipe/bionic 1:7.2.7-1build1 amd64   But did not find a working tool.


I am using the document class article. Once I place a part in the document, all subsequent sections belong to the part automatically. How can I reset a section such that it does not belong to a part?  The following sample demonstrates what I want to achieve:  \section{Introduction}  \part{Part 1} \section{Section 1 belonging to part 1} \section{Section 2 belonging to part 1}  \part{Part 2} \section{Section 1 belonging to part 2} \section{Section 2 belonging to part 2}  % should not belong to Part 2 \section{Conclusion}


How to compute the size of a union with embedded struct

#include <iostream> union xxx {   uint64_t f5;   char f4;   struct   {     char f1;     uint32_t f2;     char f3[3];   } abc; };  union xxx2 {   uint64_t f5;   char f4; };  struct xxx3 {     char c;     uint32_t c2; };  struct xxx4 {     char c;     uint32_t c2;     char c3; };  int main() {     std::cout << sizeof(union xxx) << std::endl;  // 16     std::cout << sizeof(xxx::abc) << std::endl;   // 12     std::cout << sizeof(union xxx2) << std::endl;   // 8     std::cout << sizeof(xxx3) << std::endl;   // 8     std::cout << sizeof(xxx4) << std::endl;   // 12      return 0; }   Question> The size of a union is sufficient to contain the largest of its data members. The largest data member inside xxx is abc which is of size 12 bytes. Why the sizeof xxx is 16 instead of 12?


Is there a way to hide certain Stack Exchange sites from your feed?

I am just wondering if I could hide, for example, Inter-Personal Skills questions from appearing in my feed?  Note on tag: I think feature-request is the closest to the right tag, because there is the implicit request for the feature if it does not already exist. I can change that if it is the wrong tag though.  As clarification, I mean this feed:    (I looked around a bit (probably not enough) for a similar question, but I couldn't find it.)


How to sort multidimensional array in php?

I have to sort the given array on date key in PHP. I have tried it using array_multisort but not able to sort it. which one is more appropriate usort or array_multisort?  Array (     [165953] => Array         (             [0] => Array                 (                     [wallet_transaction_id] => 165953                     [wallet_currency_id] => 2                     [description] => updating SC Dollars by 100.00 from PSM product transaction.                     [amount] => 100.00                     [date] => 2013-11-13 08:08:05                 )              [1] => Array                 (                     [wallet_transaction_id] => 165953                     [wallet_currency_id] => 3                     [description] => updating Spy Points by 50.00 from PSM product transaction.                     [amount] => 50.00                     [date] => 2013-11-13 06:08:05                 )          )      [165952] => Array         (             [0] => Array                 (                     [wallet_transaction_id] => 165952                     [wallet_currency_id] => 2                     [description] => updating SC Dollars by 100.00 from PSM product transaction.                     [amount] => 100.00                     [date] => 2013-11-13 05:02:11                 )              [1] => Array                 (                     [wallet_transaction_id] => 165952                     [wallet_currency_id] => 3                     [description] => updating Spy Points by 50.00 from PSM product transaction.                     [amount] => 50.00                     [date] => 2013-11-13 08:02:11                 )          ) )


High Memory (~8GB) pay per compute time server requirement

I'm looking for an AWS Lambda replacement in order to generate map tile images in parallel. Unfortunately Lambda has a memory limit of 1.5GB and some of my source images sizes are 80MB, using around 7 GB in memory at it's peak loading into memory before starting cropping actions into lots of smaller tiles.  I'm really looking for something that only charges me for the compute time since I'll only be using around 20 hours of compute time a month max, and it needs to be easy to startup and shutdown programmatically (preferably automatically like AWS Lambda).  Does anything like this exist?


Programmatically stop execution of python script?

Is it possible to stop execution of a python script at any line with a command?  Like  some code  quit() # quit at this point  some more code (that's not executed)


What are the light blue lines on my imported objects

So recently, I have been noticing neon light blue lines on objects I import, in place of the the normal orange selection lines. Maybe I was supposed to be getting this variant of line before hand or maybe I just somehow haven't noticed it till now. But assumptions aside, I'm wondering what this line is for and how can I get rid of the light blue lines? Also Along with this my objects that are imported seem to  have their faces turn from gray to white.


Programmatically insert hierarchical terms & set terms for post causes glitch?

I am inserting an array of terms into my custom taxonomy programmatically. Some terms have parents/children. After each term has been entered, I then insert an array of posts into my custom post type. After inserting each post, I then set each post to it's proper taxonomy terms (parent terms and child terms).  After that entire sequence completes, when I navigate to the custom taxonomy management page. (Ex: ./edit-tags.php?taxonomy=my_custom_taxonomy&post_type=my_custom_post_type) It only shows the parent terms, with the number of posts in those parent terms.  None of the child terms show up.   If I edit a post from the custom post type, it shows that it has the proper parent/child terms selected.  Here's the strange part. If I edit one of the parent terms from the taxonomy management page and don't change anything, just click update. All of the sudden, all of my parent and children terms show up correctly.  It seems like WordPress should be flushing all these cached items automatically when these tasks are executed, but it's not.  Is this a WordPress bug? Am I doing something wrong, or forgetting to do something?


I have a quasi-poisson regression model for analysing the correlation between academic prestige and bulic visibility.  I have a set of independent variables - continuous and dummies in this model. I would like to create scatter plots which describes this model and maybe indicate of an interaction effects. I understand that poisson models are log-linear models, so I tried to plot scatter plot in which the dependent variable is in log transformation. However,  I don't know which line to choose- should it be a linear regression line or  loess line (I'm using ggplot2 plots). for example, in the model, the economics department seem to be more visible then the sociology department. However, in the the plots it seem to be the opposite.      How can I make a reliable plot?


How to remove all same or Common value from array..it is different ..?

Array (      [0] => 1      [1] => 2      [2] => 3      [3] => 4      [4] => 2      [5] => 3 )   This is my Array, I want to Remove all common value like 2,3 from this array.and to get Result like this.   Array (       [0] => 1      [2] => 4 )


Conservation of energy when ball rebounds

Consider a ball that strikes a stationary box and has momentum $mv$. If the ball rebounds with the same speed it had before the collision, its momentum is $-mv$. Therefore, the box must have a momentum of $2mv$ in order for momentum to be conserved. However this would mean the kinetic energy after the collision is more than the kinetic energy before the collision. Where would this energy come from, or is the situation I described impossible?


Event card timings during epidemic in Pandemic 1st Edition

Can you play an event card when you have drawn the epidemic card? Example If you draw an epidemic card, 1.can the quiet night card be played? ( so that you still infect the bottom card city but skip the turning over of the intensify city cards) Or 2. The forecast card after reshuffling and placing reshuffled cards on the top


How to design the capacitors used with Crystal Oscillators?

I have seen circuits involving crystal oscillators connecting two capacitors between each of the crystal legs and ground. I would like to know how to design the value of these capacitors for different crystal frequencies.


"No such file or directory" when trying to remove a file, but the file exists?

I am trying to remove a png image that was uploaded to my server via a PHP script. Whenever I try to delete it both through ftp and terminal, I get the error   No such file or directory   However, when I ls in the dir, the file is listed and it is also listed in my ftp client. I have tried creating a file with the same name and I end up getting two files with the same name.   I can open the file that supposedly does not exist, but I still can't remove it. I have also tried rebooting my server. Any ideas what may be the issue? I am running a 64 bit version of Ubuntu, but I don't think its a 32/64 bit issue. I should also note I have removed many other png files uploaded by the same PHP script.  Output for ls -l  total 224  -rw-r--r-- 1 www-data www-data 222838 May 13 04:14 qyxdshyikfr_fishing_timeout.png  -rw-r--r-- 1 root root 272 May 14 06:54 upload.php   Output when trying to rm  rm: cannot remove ‘qyxdshyikfr_fishing_timeout.png’: No such file or directory   upload.php:


If you have a single atom in a box, what state of matter would it be in?

If the walls of the box were made of a completely inert material, what state of matter would the atom be in? Or would it not have one? I realized this is a duplicate of several other questions.


In a programming site, someone just wrote:     I cannot seem to get them both to find their relevant objects.   It seems I've heard something similar before, say:     I cannot seem to find it.   With my simple-minded mind, I would think that what they really mean is:      It seems I cannot find it.   ... because what they really want is not to seem to find X but really find it.   My question is: is it common to say "I can't seem to do it" when one really means "It seems I can't do it", and is it "correct" (in whatever sense that makes sense)?  [edit] There is another question on ; however, my interest is a bit different. I would like to know how native English speakers perceive the "I can't seem..." expression: for example, if someone is looking for something for quite some time, would they rather say (1) "I can't seem to find it" or (2) "It seems I can't find it"? Would (1) seem (even slightly) illogical or is it just a natural way to say it?


Action economies, two-handed weapons, and spells with Somatic components

This is a follow-on to   So, I have a spell, say Sanctuary, that is cast as a bonus action, yet requires Verbal and Somatic (and in this case Material, but that is taken care of by my character's holy symbol) components to cast.  Can my character take their off hand off their two-handed weapon (light crossbow) to cast this spell as the bonus action, then regrip the weapon with both hands in order to use it as the turn's regular action?  Or do they lose their regular action in order to regrip the weapon?


Proof of sandwich/squeeze theorem for series.

I am interested in proving a theorem, which I suppose one may call a sandwich or squeeze theorem for series.  Suppose we have three series: $\sum^{\infty}_{n=1}a_{n}$, $\sum^{\infty}_{n=1}b_{n}$ and $\sum^{\infty}_{n=1}c_{n}$. We know that $\sum^{\infty}_{n=1}a_{n}$ and $\sum^{\infty}_{n=1}c_{n}$ converge; furthermore, let us assume that for all $n\in\mathbb{N}$, the following inequality holds: $a_{n}<b_{n}<c_{n}$. Then, the series $\sum^{\infty}_{n=1}b_{n}$ will also converge.  The only way that I can think of to approach the proof of the above would be via the Cauchy criterion, i.e. showing that  $$\forall_{\varepsilon>0}\,\exists_{n_{\varepsilon}}\,\forall_{m>k>n_{\varepsilon}}\quad|b_{k+1}+...+b_{m}|<\varepsilon.$$  As I understand, in order to show that, we would have to somehow bound $\left|\sum^{m}_{n=k+1}b_{n}\right|$ by $\left|\sum^{m}_{n=k+1}c_{n}\right|$ and/or $\left|\sum^{m}_{n=k+1}a_{n}\right|$. If we assume nonnegativity of the terms of $\sum{}b_{n}$ and $\sum{}c_{n}$, the task becomes trivial. However, without this assumption, I am having problems with finding the right bound.   I would be thankful for some hints on how this could be done, or possibly advice on a different approach to the proof. Thank you in advance.


Updating a clock whilst being able to input c# console

I'm trying to create a console application that gives me an updating clock in the corner with the ability to give an input.  I've tried using multiple threads but it gives me weird errors.  My clock function:  public class Work {     public void Count()     {         for (int i = 0; i < 100; i++)         {             DateTime date = DateTime.Now;             Console.SetCursorPosition(0, 1);             Console.Write(new string(' ', Console.WindowWidth));               Console.SetCursorPosition((Console.WindowWidth - 8) / 2, 0);             Console.Write(String.Format("{0:HH:mm:ss}", date));             Console.WriteLine();             if (i == 90)             {                 i = 0;             }             else             {                 // Continue             }         }     } }   My main function:  class Program {     public static void Main(string[] args)     {         Console.CursorVisible = false;         Work w = new Work();         Console.WriteLine("Main Thread Start");          ThreadStart s = w.Count;         Thread thread1 = new Thread(s);         thread1.Start();         int i = 2;         Console.SetCursorPosition(0, i);         i = i + 1;         Console.WriteLine("Input:");         string input = Console.ReadLine();         Console.WriteLine(input);     }  }   Does anybody know how I can achieve this, is there any possible way that I can write to a clock with a different cursor or something along the lines of that?


What is the difference between static and non-static nested class?


Show that the complex limit $\lim_{z\to 1}\frac{\log z}{z-1}$ exists.   There is no other information given, so I am not sure what method I can use. I wanted to use L'Hopital's rule to show the limit is $1$, but is there anything I need to show before I can do this method? Possibly continuity? Any advice is appreciated!


I recently got this puzzle, cant seem to prove it, i have manage to prove that for large enough N there is no solution, but not for 10.  the puzzle asks to prove that using 10 coins is enough to cover any 10 points in a plane (no overlapping coins of-course)  the only direction i have is starting from the densest packing of circles in the plane (bee's honeycomb) and trying to prove it can cover all 10 point configuration (that are dense enough)


$f(x) = x + \int_{0}^{1} (xy^2 + x^2y) f(y) dy$. Find $f(x)$   I've tried taking $\int_{0}^{1} (xy^2 + x^2y) f(y) dy$ to be $k(x)$ since it comes out to be a function of $x$. That transforms our equation to $f(x) = x + k(x)$.  $f(y) = y + k(y) \implies (xy^2 + x^2y)f(y) = (xy^2 + x^2y)y + (xy^2 + x^2y)k(y)$ Now I tried integrating on both sides against $dy$ from $0$ to $1$ in an attempt to find $k(x)$   $\int_{0}^{1} (xy^2 + x^2y)f(y).dy = k(x) = \int_{0}^{1} ((xy^2 + x^2y)y + (xy^2 + x^2y)k(y)).dy$  But I got stuck trying to integrate the right hand side. Any solutions or ideas are appreciated.


How can I write my chapter headings in LaTeX like this?


As the title says I am just wanting to know if anyone knows anything about Ubuntu servers for the raspberry pi4.


Why not C++ (not C++0x) support enum forward declaration?

I use enum type but declare it under the use, compile fail.  Then I add a forward declaration, but still compile fail.  I search exists questions about enum forward declaration, found c++ (not C++0x) does not support enum forward declaration.  Can somebody explains why ?   I found similar questions on SO, but nobody explains why.


Do I have any chance now to get a beta badge for stack overflow

As per these responses:        Beta tag can be earned only participating in private beta. So do I have any chance of getting this badge for Stack Overflow, in future?


Imagine one has to give a presentation to explain something to an audience which already knows very much about that topic.   Is that correct to say in such a situation that one is teaching fish to swim? Can I share the idiom with the audience?  E.g., "I'm afraid I'm teaching fish how to swim, but.."  And, are there any other expressions like this?


Why does my subject's skin have such a red cast — did my auto white balance fail me?

I have close to two hundred images where the subject looks like he just walked out of a sauna. It was 36 degrees with humidex, but he was not that red.   For comparison, attaching another picture, same camera, same lens, auto white balance, next day.       So, two questions, 1) how did that happen?, and 2) how do I fix it? I can bring down the red, but then I have to manually bring back the lip color in 200 pictures.   And next time when I deal with an older guy at 36 degrees C I will be shooting indoors.   *Edit: The camera is Olympus EPM 2. I am now guessing that he may have been THAT red, but my eyes tricked me. The last picture is from the beginning of the shoot before he got very hot and had two glasses of wine AND the background worked better for his skin and clothes. I do not have colour management setup, but I will get on it.


Sun is giving new energy everyday. Then how does this phrase make any sense: "Energy is never created nor destroyed, only transformed"?

If sun is the source of energy on earth, then this means that the sun is providing new energy everyday. Then how does this phrase does make any sense: "Energy is never created nor destroyed, only transformed"?  Because if all the functions of earth is going on by a fixed energy, only transforming one into another, then what about the new energy coming everyday from the sun?


If a druid casts longstrider, does the speed increase also apply to swimming or burrow speeds?  For example, in badger form, would the character's burrow speed go from 10' to 20', as well as increase standard movement?    Longstrider reads:     You touch a creature. The target's speed increases by 10 feet until the spell ends.


I want to automate multiple rsync commands like below:   Execute rsync1 Display output of rsync1 in the terminal Ask confirmation if want to continue rsync2 Execute rsync2   Can someone help?


There is this program called de4dot which basically reverse obfuscates almost any assembly, such as .NET reactor protected assemblies, etc. Is there really an effective method of protecting your .NET code?


I performed a fresh install of macOS Mojave 10.14. Immediately after that I installed Xcode Version 10.0 (10A255) from the Mac App Store.  Now, I wish to install Homebrew which requires Xcode Command Line Tools to be installed. My understanding is that installing Xcode also installs the Command Line Tools. Or not?  As per , I checked if the Command Line Tools are installed by running:  xcode-select -p  which printed the path for the Developer directory as follows:  /Applications/Xcode.app/Contents/Developer   As suggested in the answer, I also verified the return value by running:  echo $?  which retuned 0.  I also ran, gcc and make and bash was able to locate and execute them.  Thus far I am convinced that the Xcode Command Line Tools are installed. Now when I execute:  xcode-select --install  I get this alert:    What's the probable reason for this disparity? Will this install Xcode Command Line Tools twice? Or overwrite the existing installation?  As I understand, Xcode Command Line Tools can be installed without installing Xcode. Also, from my previous experience, if the Command Line Tools aren't installed separately from Xcode (by running xcode-select --install), they are not detected by Homebrew, i.e. when running brew config, the value for CLT: is shown as N/A.  Here's the complete picture (pardon the pun):    Although I am talking in context of macOS Mojave, the question remains the same with regard to previous versions of macOS.  What is the advisable approach to take here?  Note: After installing Xcode, I launched it, accepted license agreement and let it finish its run of installing additional tools (which is a one time activity).


Installing MacOS 11.3 creates a Relocated Items.nosync with changes to private/etc/group

I just installed MacOS 11.3. I now have a folder on my desktop called Relocated Items.nosync. It contains a file called group.system_default inside Configuration/private/etc which the docs says is the default Apple would normally have installed but it left my modified file in place. I compared the two files. The difference is that the system default file Apple would have installed includes one additional line: _trustd:*:282:_trustd I have read that this process relates to security certificates and so this causes me a little concern. Does anyone have any insight what the best course of action is? Install Apple's recommended file including the trustd line? Or leave my modified file without that line in place? Do something else? Related thread on MacRumors:


I have an array and i want to create an independent copy of it. Changes in one of those should not impact the other at all.   Currently everything i tried just created two references on one object. The default clone() method did not work aswell.  JButton[][] old = game.getFields().clone(); // getFields() returns a two dimensional array


How to correctly install libpng12-0 on the Ubuntu 19.10?

For  I need to install libpng12-0 package on the Ubuntu 19.10 system.  I know that it is available .  So I have decided to download this package manually and install it by hand.  On previous Ubuntu versions (such as 18.04 LTS) this trick ends with success, but here on 19.10 it fails in very strange way:   wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb sudo apt-get install ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/116 kB of archives. After this operation, 285 kB of additional disk space will be used. Get:1 /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb libpng12-0 amd64 1.2.54-1ubuntu1.1 [116 kB] Selecting previously unselected package libpng12-0:amd64. (Reading database ... 212864 files and directories currently installed.) Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...  dpkg: error processing archive /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--unpack):  unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory No apport report written because the error message indicates an issue on the local system                                                                                Errors were encountered while processing:  /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   What is wrong here? How can I get libpng12-0 installed on Ubuntu 19.10 system?    Note: the same happens on 19.04, but it is near EOL.


How to determine the Jordan form and give a Jordan base for a matrix?

given is  $\begin{pmatrix} 3&0&-1&0&0 \\ 1&3&0&1&0 \\ 0&0&3&0&0 \\ 0&0&0&3&0 \\ 0&0&0&0&-3 \end{pmatrix}$  I have to determine the jordan form and also give a jordanbase.  I got this so far:   Eigenvalues are $l_1 = 3, l_2 = -3$ whereas $P_A(x) = (x-3)^4 * (x+3)$. Eigenvectors are for $l_1 = 3$: $(0,1,0,0,0)$ and $(-1,0,0,1,0)$   for $l_2 = -3$: $(0,0,0,0,1)$   This means, that we still need two vectors. How can I get them? How can I get then the jordanbase?


How to draw "graphs of posets" in LaTeX?

Any idea on how to draw the following graphs?    The black dots mean the two elements are comparing. Graphs of posets is a collapsed version of a decision tree.


The above definition was given to me by a friend of mine who introduced me to $\aleph$, and infinite sets. The argument he gave me was (paraphrased how I understand it).        While the set of natural numbers is infinite, each number has only a finite number of digits.   Each real number as an infinite number of digits. (The rest is filled up with 0s).   We can represent each real number using binary numbers.   Map each bit of the real numbers to an element of $\mathbb N$.   The cardinality of $\mathbb N$ is $\aleph_0$.   There are $2^{\aleph_0}$ possible combinations of the bits.   There are $2^{\aleph_0}$ real numbers.        He then sort of defined $2^{\aleph_0}$ as $\aleph_1$. I'm guessing the cardinality of the real numbers is taken to be $\aleph_1$?  Said friend also said he has a proof that $\aleph_0^k = \aleph_0$. I haven't yet read his proof as at the time of writing, and may update this question with it when I do. I've been told here that        you can't claim $2^{\aleph_0} = \aleph_1$         which surprised me, but I can't be so sure of the definition myself, so.   My question is:        Is $\aleph_1 = 2^{\aleph_0}$?


What is the Mathematics behind the folding an A4 sheet in 3 equal parts??

This is an extension question of .  They have given a plenty nice way to fold a A4 sheet in 3 equal parts.   What is the Mathematics behind the foldings? Can we use the same way for $A5,A6,\ldots$?


What's the difference between a gerund and a participle?

What is the difference between a gerund and a participle?


Grid-like lines appearing after using Curvature tool

I have been attempting to use the Spatial Analyst Curvature tool with mixed results.  I originally tried to use it with a raster that was projected using a 1983 Teale Albers projection and the results were black, indicating the lowest values.  I then transformed the raster into UTM projection and ended up with grid-like lines on the raster which have values that are obviously not accurate.  Does anyone know why these lines have appeared or what I'm doing wrong.  Thanks.


Java ConcurrentModificationException using Iterator

I get the ConcurrentModificationException when I try to remove entries while looping over a hashMap. I thought if I used the iterator approach it would make the exception go away. Here is my code:        HashMap<String, Flight> flight_hm = new HashMap<>();     ...      Iterator<Entry<String, Flight>> it = flight_hm.entrySet().iterator();     while (it.hasNext()) {         ...         if ((curMinutes - arrivalTime) > MINUTES_15) {            it.remove();         }   This is my runtime error:  java.util.ConcurrentModificationException: null at java.util.HashMap$HashIterator.remove(HashMap.java:1456) ~[na:1.8.0_181]


Can you play Black Ops 3 multiplayer cross platform on Xbox One and Xbox 360?

My friend is going to get Call of Duty: Black Ops 3 but the problem is that he has a Xbox 360 and I have a Xbox One. Could we still play together on the game in multiplayer?


Suppose $F$ is a field and there is a ring homomorphism from $\Bbb Z$ onto $F$. Then show that $F$ is isomorphic to $\Bbb Z_p$ for some prime number $p$.  I am facing difficulty to do the proof. I think that we have to make a map so that the kernel of the homomorphism goes to class $0$ of $\Bbb Z_p$.


Does the Levi-Civita connection determine the metric?

Can I reconstruct a Riemannian metric out of its Levi-Civita connection? In other words: Given two Riemannian metrics $g$ and $h$ on a manifold $M$ with the same Levi-Civita connection, can I conclude that $g=h$ up to scalars?  If not, what can I say about the relationship between $g$ and $h$? How rigid is the Levi-Civita-Connection?


i keep getting the good bye response no matter if i input yes or no, how would i change that so responses are correct

I keep getting the 'good bye' response no matter what I enter, 'yes' or 'no'. How would I change that so responses are correct.  import java.util.Scanner;  public class SimpleQuiz1 {   public static void main(String[] args){      Scanner userInputScanner = new Scanner (System.in);      System.out.println("Are you ready to take this NBA quiz?");     String answer = userInputScanner.nextLine();      if(        answer == ("yes")){     System.out.println("Then lets get started!!!");      } else{         answer = ("no");       System.out.println("Goodbye, come again soon!");       }     }   }


How can I install Kindle app on an iOS 9.3.5 iPad?

How can I get a download a copy of Kindle App for a iOS 9.3.5 iPad 3rd generation?  The one in the app store requires ios 10.


Prove that if $A$ is an infinite set then $A \times 2$ is equipotent to $A$

I want to prove that if $A$ in an infinite set, then the cartesian product of $A$ with 2 (the set whose only elements are 0 and 1) is equipotent to $A$.  I'm allowed to use Zorn's Lemma, but I can't use anything about cardinal numbers or cardinal arithmetic (since we haven't sotten to that topic in the course).  I read a proof of the fact that if $a$ is an infinite cardinal number, then $a+a=a$, which is something similar to what I want to prove.   Any suggestions will be appreciated :)


Is the Pauli Exclusion Principle the Cause of Normal Force?

I'm currently studying about Dynamics in my physics class. I was looking up where the normal force comes from, and I thought that the normal force comes from Newton's third law. However, going through the internet I've seen that Newton's third law actually doesn't apply to the normal force, and it actually is caused by the Pauli exclusion principle. I was wondering if the Pauli exclusion principle is the only cause for normal force? And why is it the cause of normal force?


Sometimes LaTeX will give the warning like  Missing character: There is no <xxx> in font <xxx>!   How to test it (I mean a macro like \IfCharExist)? And how to replace this missing character with something else like \rule?


How can I prevent apt-get/aptitude from showing dialogs during installation?

I'm trying to build an Ansible Playbook to deploy some Ubuntu 12.04 servers on Linode, but my problem seems to be an Ubuntu one. When I run different combinations of apt-get or aptitude I always get the following dialog that I have to respond to.     I'd like this to be answered from the command line so that it doesn't interrupt the automatic deployment. Any ideas?  My current commands are below. Note that I'm trying to set DEBIAN_FRONTEND:  #!/bin/bash  echo 'DEBIAN_FRONTEND="noninteractive"' >> /etc/profile echo 'DEBIAN_FRONTEND="noninteractive"' >> ~/.profile  source /etc/profile source ~/.profile  # This next line is the one that pops up the dialog sudo aptitude -y install iptables-persistent  # Need this to fix an issue with the package post-install (this works fine.) sudo sed \     -i 's/\(modprobe -q ip6\?table_filter\)/\1 || true/g' \     /var/lib/dpkg/info/iptables-persistent.postinst; \ sudo aptitude install iptables-persistent


What is the significance of the "squared" in $E =mc^2$?

If $c$ is just an arbitrary constant, why don't we say $E=mc$ and define the value of $c$ to be $\sqrt{299 792 458} \approx 17314$ meters per second? Or, why not use $E=mc^3$?


I am applying my UK visit visa and i have maintained good bank balance since a month which is enough for my trip. $6000 CAD and my trip cost $$2200 as i have my relatives for accommodation. My question here is, whether one month bank statement is ok? I need guidance as i dont have anyone who can help me here.  Secondly, i am submiting my application online on 6th july, do they start processing my application before my biometrics date or processing time is calculated after i give my biometric date? And does anyone have idea how long i have to wait for biometric date in toronto?  Thank you all


Why rubber part of Shuttle Cock always ends up in badminton racquet not the feather part?

So whenever I play badminton, I always think why Rubber Part of shuttle is ending up on racquet not feathers. So, can anyone explain me why this happens?


What ciphers need to be enabled to install and run SQL Server 2014 SP1 on Windows 10?

Our organization is trying out Windows 10 and our distribution had some modifications to the ciphers in use due to recent security concerns.    As it stands SQL Server 2014 Developer SP1 fails to install properly. The services fail to start. I have tried enabling TLS 1.0 trough TLS 1.2, this led to me being able to start the SQL Engine using Local Service Account. But not SQL Agent or Browser. Nor could i connect to the server locally with SMSS all logins fail (sa or the current windows user).  Disabled SSL/TLS: SSL 3.0 / TLS 1.0 / TLS 1.1 Enabled TLS: TLS 1.2    Disabled Ciphers: DES 56/56 NULL RC2 128/128 RC2 40/128 RC2 56/128 RC4 40/128 RC4 56/128 RC4 64/128 RC4 128/128 Enabled Ciphers: AES 128/128 AES 256/256 Triple DES 168/168    Hashes: MD5 (Disabled) SHA (Enabled) Diffie-Hellman (Enabled) PKCS (Enabled)    Ciphers are then sorted from most secure to least secure.  Setup Bootstrap Log:    Feature:              Database Engine Services   Status:               Failed: see logs for details   Reason for failure:   An error occurred during the setup process of the feature.   Next Step:            Use the following information to resolve the error, uninstall this feature, and then run the setup process again.   Component name:       SQL Server Database Engine Services Instance Features   Component error code: 0x851A0019   Error description:    Could not find the Database Engine startup handle.  ERRORLOG when trying to start SQL Server Engine during setup:  Error: 17190, Severity: 16, State: 1.   Initializing the FallBack certificate failed with error code: 1, state: 20, error number: 0.   Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.   Error: 17182, Severity: 16, State: 1.   TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.   Error: 17826, Severity: 18, State: 3. Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.   Error: 17120, Severity: 16, State: 1.   SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.  My next course of action is to try to enable the most likely culprits like SSL 3.0 and then move on to enabling ciphers.  But if anyone can shed some light as to the requirements of SQL Server 2014 SP1 or if i am looking in the wrong place, please let me know.


How do I change the photo that appears when hovering over my name?

Other people see a different photo than I do when hovering over my name. How can I change this?   I already changed the photo in the settings, and tried the contact list changes. What can I do to solve this problem?


Is it possible for a Droid or a Cyborg to be sensitive to the force and ultimately train to become a Jedi/Sith?  I was thinking General Grievous might be but I can't remember how he got his lightsabers. Are there any other examples in the canon?


SQL statement to hide all system databases in Server from a server login

I want to create a Windows authentication server login and make it cannot see any system databases e.g.master, model.  I know that we can control view definition in database level e.g. database user, database role but I don't want to configure them to all system databases.  Therefore, I started by:   Create Windows authentication login Create custom server role Deny view definition to a custom server role Add an login to a role   I hope the login shouldn't see all system databases but it still can see master and tempdb under System Databases node.  This is the screenshot of the result.    and these are my SQL statements.  -- Create login from Windows User USE MASTER GO  CREATE LOGIN [domain\web_user] FROM WINDOWS WITH  DEFAULT_DATABASE = MyTestDB GO  USE MyTestDB GO  CREATE USER web_user FOR LOGIN [domain\web_user] WITH DEFAULT_SCHEMA = dbo  GO  EXEC sp_addrolemember @rolename = 'DB_DataReader',  @membername = 'web_user' GO    --Create custom server role, deny view definition and add login to role USE master GO  CREATE SERVER ROLE junior GO   DENY VIEW ANY DEFINITION TO [junior] GO  ALTER SERVER ROLE junior ADD MEMBER [domain\web_user]  GO


Is there any better deep clone methods for list?

So I needed a method to deep clone. I wanted one list of cards to equal another list of cards, but then I also wanted to modify one of the clones.  I made a method to copy the list like this:      public List<Card> Copy(List<Card> cards)     {         List<Card> clone = new List<Card>();         foreach (var card in cards)         {             clone.Add(card);         }         return clone;     }   and use it like this:          _cards = new List<Card>();         _thrownCards = new List<Card>();          _cards = Copy(_thrownCards);         _thrownCards.Clear();   I'm not experienced in C#, but somehow my gut feelings tells me my copy method could be made simpler. Isn't there any other way you could deep copy a list? I tried using , but that just created references to the same object, not cloning it(maybe I misinterpreted the MemberWiseClone method).  Do anyone have any tip how simply clone a list object?


Trying to use duplicity on ubuntu 16.04 with Anaconda 2 installed, raise the following  Traceback (most recent call last):   File "/usr/bin/duplicity", line 61, in <module>     from duplicity import log ImportError: No module named duplicity   Removing the Anaconda folder from my $PATH solve the issue (it uses vanilla python, which python yields /usr/bin/python).  How to solve this issue without tampering with environment variables every time?


Unable to install MikTex on Ubuntu 20.04

I uninstall MikTex because texstudio can't update package automatically. I want to install it again. But I got this error instead when I launch sudo apt-get update: Hit:1 http://pl.archive.ubuntu.com/ubuntu focal InRelease Hit:3 http://pl.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                Hit:4 http://ppa.launchpad.net/sunderme/texstudio/ubuntu focal InRelease                                                                                Hit:5 http://pl.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                                Hit:6 http://download.opensuse.org/repositories/Ubuntu:/debbuild/Ubuntu_20.04  InRelease                                                                                Hit:7 http://deb.playonlinux.com trusty InRelease                                                                                Hit:8 https://download.docker.com/linux/ubuntu focal InRelease                                                                                Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                                Ign:2 https://ftp.gust.org.pl/TeX/systems/win32/miktex/setup/deb focal InRelease            Err:11 https://ftp.gust.org.pl/TeX/systems/win32/miktex/setup/deb focal Release   Certificate verification failed: The certificate is NOT trusted. The certificate chain uses insecure algorithm.  Could not handshake: Error in the certificate verification. [IP: 158.75.62.5 443] Ign:10 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod InRelease Hit:12 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod Release Reading package lists... Done E: The repository 'http://miktex.org/download/ubuntu focal Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  I tried sudo apt install ca-certificates but it failed. This also doesn't work  The result from there: ~$ sudo ppa-purge ppa:mc3man/trusty-media Updating packages lists E: The repository 'http://miktex.org/download/ubuntu focal Release' no longer has a Release file. Warning:  apt-get update failed for some reason  ~$ sudo apt-get update Hit:1 http://pl.archive.ubuntu.com/ubuntu focal InRelease Hit:2 http://download.opensuse.org/repositories/Ubuntu:/debbuild/Ubuntu_20.04  InRelease Hit:3 http://pl.archive.ubuntu.com/ubuntu focal-updates InRelease               Hit:4 http://ppa.launchpad.net/sunderme/texstudio/ubuntu focal InRelease        Hit:5 http://deb.playonlinux.com trusty InRelease                               Hit:7 http://pl.archive.ubuntu.com/ubuntu focal-backports InRelease             Hit:9 https://download.docker.com/linux/ubuntu focal InRelease                  Ign:6 https://ftp.gust.org.pl/TeX/systems/win32/miktex/setup/deb focal InRelease Hit:11 http://security.ubuntu.com/ubuntu focal-security InRelease               Err:10 https://ftp.gust.org.pl/TeX/systems/win32/miktex/setup/deb focal Release   Certificate verification failed: The certificate is NOT trusted. The certificate chain uses insecure algorithm.  Could not handshake: Error in the certificate verification. [IP: 158.75.62.5 443] Ign:8 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod InRelease              Hit:12 https://cvmrepo.web.cern.ch/cvmrepo/apt focal-prod Release Reading package lists... Done E: The repository 'http://miktex.org/download/ubuntu focal Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  Now I can't install it again. Help?


What are the requirements for Russian citizens to leave Russia?

If they already have the documentation, visa, passport and air tickets, can they be stopped at the Moscow airport by their own Customs agents and be made to show proof of funds before being allowed to board?


Can there be such a thing as positive and negative complex numbers? Why or why not?   What about positive or negative imaginary numbers?   It seems very tempting to say $+5i$ is a positive number while $-2i$ is a negative number. On an Argand diagram (complex plane) $+5i$ would be represented by a point above the horizontal axis while $-2i$ is a point below the horizontal axis.


Is standard deviation always larger than mean deviation?

If yes why is it the case that it have this property? There must be some mathematical proof or intuitive understanding in that case.


recevering data from broken screen on micromax yureka having broken screen

MY screen of Micromax Yureka is broken and I can't see anything, Plus my usb debugging is off. Is there any way to recover data?


Centering polygon on specific coordinates using QGIS

I need to place a set of polygons onto a set of points, so that each polygon is centered on its corresponding point. How do I do that? In MapInfo I can just manually edit the coordinates of the center, but there does not seem to be an equivalent in QGIS.


Can I prevent a landscaping contractor from publishing photos of the work they performed in my yard?

A landscaping contractor is using photos of my yard on their website as part of its portfolio of services.  Nothing in my legal agreement speaks to whether it is okay for the contractor to do so. I asked the contractor to remove the photos from the website.  The company declined, saying that they had a right to do so under federal law. What are my options?  Is the contractor correct?  Legally, can they publish the photos over my objection? Thanks, Sam


Dynamically create CLR object from the string

As a result of some service action I'm getting in the result property string with value "MyNamespace.Models.Car"  How can I dynamically create the object (empty) from this string value? Or how else can I dynamically recognize clr type from this string?  var result = service.getSomeData(req); result.CustomVal holds the value of "MyNamespace.Models.Car";   Note that I cannot change the service.


const function parameters in prototypes but not declarations (in C)

When writing code in C, I often include const in function parameter declarations in the function's definition, but not its declaration:  int func(int arg);  ...  int func(int const arg) {     return arg + 1; }   This has always compiled for me without issue using GCC and Clang, but Microchip's C18 compiler is claiming a type mismatch.  What does the standard have to say about this? Have I been relying on a non-standard extension?  Edit: I am not asking about the benefits of this and I am not asking about C++ as in the supposed duplicate question (). I am asking about the C standard: Is this legal ANSI C, C99, or C11?


Does an official set of production rules (formal grammar) for English exist? Something along the lines of:  Sentence -> Clause EndPunctuation Clause -> Subject Predicate Subject -> NounPhrase NounPhrase -> Determiner Noun             | Adjective Noun EndPunctuation -> EndPunctuation EndPunctuation                 | .                 | !                 | ?   If so, where can it be found?


Java Null Pointer Exception, how can i fix that?

I'm in trouble with that thing.  public class Money {           String girl ;           Money mon ;       public void sorry (){           mon.girl = "Isabel" ; //I want to do that (here is basic part) but...                                 //..I get Null Pointer Exception       } }   How can i fix that problem? I really need the solve, if you'll help me I appreciate that guys.


Installing chrome-gnome-shell for Firefox snap

After a fresh install of 18.04, I've installed  rather than the APT package.  Now I'm trying to tweak GNOME extensions at , and it's showing me:    This is because of the way snaps are sandboxed, it doesn't have access to the system version of chrome-gnome-shell. I assume it's a similar problem to those in these threads:     Does anyone know if there's a solution to getting chrome-gnome-shell to work with the Firefox snap?    I found the same question has already been asked , but there's no answer there yet either.


Cant send large attachments from iOS using Exchange 2013

Some of my users are having issues sending emails with attachments from iOS devices but the same works fein from desktop versions. There seems to be a link to the size of the attachment, as an example 8mb files are causing an issue where 1mb files are fine.  I have checked maxRequestLengths in config files and they look to be well over the 8mb size. I'm just looking for a little guidance to point me in the right direction.  Any help is much appreciated.  Environment is Exchange 2013 SP1 running on Windows Server 2012 R2.


Is the derivative of a differentiable function always continuous? My intuition goes like this: If we imagine derivative as function which describes slopes of (special) tangent lines to points on a curve given by $f(x)$, then that slopes must be gradually bigger or smaller, but also I am not sure if this is true. I can't find counter example; $(x^2)' = 2x, (\sin{x})'= \cos{x}, (e^x)' = e^x,$ etc. This derivatives are all continuous functions. Examples, intuition, proofs  - all are welcome.


Difference between Casting, Parsing and Converting

I have been working on some code for a while. And I had a question: What's the difference among casting, parsing and converting? And when we can use them?


Photoelectric smoke alarms leds harmful?

Hi I needed some serious information for the safety of mine and my family’s, I just moved into a new house and I’m removing the smoke detectors because they are really yellow and look old. I was wondering I wanted to put photoelectric smoke alarms because they are better for fires but they haven’t been around for long and I wanna know is the infrared led dangerous in there and can it affect my eyes or my kids because I want my kids to grow up safe and I just don’t want to not be educated on what I buy. Someone please help


I have 10 roles of exposed b&w film (Kodak Plus-X (ISO 125) and Kodak Tri-X/Ilford XP1/HP5 (ISO 400) from the late-1970's/early 1980's which have been stored in a cool, dry basement.  Is there a chance there will be viable images on the roles when I get them developed?  Thanks, John


Photoshop automatically scaling down image on PNG export, how to export at full ratio?

How to export an image from Photoshop CC with dimensions (15300 x 10500) to one PNG without scaling down?  I have multiple images at 15300 x 10500 pixel and created them at this size. However, I can not export it at this ratio to PNG. No matter which way I try "export as ...", "For Web" or "Fast export", I can not put the scaling to 100%. At "Export as ..." maximum is 78%, at "For Web" it is 53,54%. Different images (at the same original pixel dimensions) give the same maximum.  There is a white background and many areas with the same color, so file size is not an issue. The actual file size on the smaller ratios is <2MB.  If i "export layers" the background layer is at its full size, but if I create a merged layer and try to export that single layer it is scaled down, too.  At Illustrator I don't have trouble exporting to full size.  Any help appreciated!


My laptop runs Ubuntu 16.04 and has the following specs:    SSD 256  i5 7200u  8 gb RAM nvidia Nvidia GeForce GTX 950M   So ... it properly plays 30fps 4k video on YouTube, but it freezes when I try to play 60fps 4k video though there was no such an issue with it on Windows 10.  I tried different drivers ... and even different browsers ... but it still works properly only on Windows ... but I don't want to go back to Windows!  Further Info: After having a conversation with NVIDIA support - it was found out that upon YouTube 4k play - Ubuntu highly uses CPU like on this System monitor screenshot:


Sum of two expressions that return a number

I have a list and a query simply defined as this:  var list = new List<int>();  for (var i = 0; i < 4; i++) {     list.Add(i); }  var query = list.AsQueryable();   Now I have an Expression which returns the square of the number:  private static Expression<Func<int, int>> Square() {     return i => i * i; }   and the third power like this:  private static Expression<Func<int, int>> Third() {     return i => i * i * i; }   What I want is to be able to select the sum of these in the Select expression with a code similar to this pseudocode:  var result = query.Select(Square() + Third()).ToList();   I expect the result to be  0 2 12 36   Is there a way to easily achieve that or I should do it some other way?  P.S. keep in mind, the methods are simplified to stress for ease of defining the issue.  P.S. I am using expressions because this is oversimplified example of the Linq-to-entities issue and I understood that I can only use IQueryable as of .


What is the grammatical name and function for "doing this" in the following sentence?

Before interview read through your CV first. Doing this will help you answer personal questions.   What is the grammatical name and function for doing this in the sentence above?


How to redefine a command using \DeclareMathOperator

I'd like to declare some new operators using \DeclareMathOperator and some of the names are already taken by other commands (that I do not want to use). Is there an equivalent to the \renewcommand command for \DeclareMathOperator or a different way to overwrite the commands using \DeclareMathOperator?