Problem while taking screenshot in Ubuntu 18.04

I am using Ubuntu 18.04 LTS. In this system, while I want to take a screenshot of my entire screen of laptop, press prt sc key, then the photo is automatically saved in Picture folder. No option appears asking for File Name and for where to Save.   But these options are available in Ubuntu 16.04 LTS. My question is that can I get the option that will ask for a File name and where to save option each time?


I came across  today. In reading the answer and the comments it turns out that the issue was just a simple typo that the OP made. So that being the case I decided that this question probably needs to be closed since this will not be helpful to any future vistors. However, in looking at the flag reasons (I don't have the close ability yet), I don't see a flag that would be appropriate.   I know some of these options might still be influx because of the . However, until a different off-topic flag description is created, how should this be flagged? Or should this not be flagged at all and just allowed to live on or wait for a user with close votes to use a custom off-topic close option?


How can I conditionally compile my C# for Mono vs. Microsoft .NET?

I need a conditional compilation switch that knows if I am compiling for the mono or MS .NET runtime. How can I do this?


What is the best way to determine if a Javascript boolean is set?  Here's an example of what I've been doing.  It seems a bit excessive but I need to determine if a value is actually set, not just if it's true:  function doSomething (params, defaults) {      params = params || {};     defaults = defaults || {};      var required = (params.required === true || params.required === false)          ? params.required         : (defaults.required === true || defaults.required === false)             ? defaults.required             : true;      if (required) {         // perform logic     } }


Change directory to the directory of a Python script

How do i change directory to the directory with my python script in? So far I figured out I should use os.chdir and sys.argv[0]. I'm sure there is a better way then to write my own function to parse argv[0].


I have the following query setup to pull videos from a custom post type by category:  $cat_name = single_cat_title('', FALSE);  $videos = new WP_Query(array(     'post_type' => 'video',     'tax_query' => array(         array(         'taxonomy' => 'category',         'field' => 'name',         'terms' => $cat_name         )     ),     'orderby' => 'date',     'post_status' => 'publish',     'order' => 'DESC',     'posts_per_page' => -1 ));   When I echo the $cat_name variable, I'm getting the correct category name. However, when I output the request for the query, what I'm getting is:  SELECT wp_posts.*  FROM wp_posts  WHERE 1=1  AND ( 0 = 1 )  AND wp_posts.post_type = 'video'  AND ((wp_posts.post_status = 'publish'))  GROUP BY wp_posts.ID  ORDER BY wp_posts.post_date DESC   With no reference to the tax_query.  Can anyone see what I'm doing wrong that is not triggering the tax query portion of the query?  Thanks!


I made some custom GNOME-Terminal settings and profiles, and I want to preserve those after reinstalling Ubuntu.  What do I have to save to backup my settings, and how do I reapply them afterwards?  This is not a duplicate of , because   Configuration systems changed since the old question, from gconf to dconf. The other question does not explain how to properly backup, and then reapply the settings.


Installation on new laptop DELL Inspiron 5491 freezes

I have a similar laptop to    But I am opening another question as the problem I face is different. The  and did not find any experience with the Ubuntu installation.  After switching from RAID to AHCI, disabling a secure boot, updating the BIOS, and play around with the BIOS option, I am trying to install Ubuntu 18.04.03.  I am not actually installing it but just using "Try Ubuntu". I pass to the bootloader the options nomodeset intel_idle.max_state=1 without which the installation stops very early. I've also played around with ipv6.disable.  Everything stops while turning on services(see attached figure). In particular acpid.service is the last thing I see, then the system freezes.  I suspect it is related to ACPI setup but don't have any clue on how to fix it. Any suggestion is much appreciated.


transfering iphone data to another computer

I have a laptop and want to give it to my sis after I bought a mac mini. Now how can I let my iphone sync with the mac mini for the following data: (I think this applies to any 2 computers)   music not bought on iTunes: copy the folders to the new computer and then sync the iphone with the folder on the new computer. (This seems the best solution, right?) photos: the same as music. Apps: I can re-download all the apps (free or bought) on the new computer and sync from the scratch, BUT: Apps Data: I found no solution so far!!!!


Error while restoring from Enterprise Edition to Standard Edition

I am restoring a database from a SQL Server Enterprise Edition onto a Standard Edition server.  I keep getting an error stating:      Database 'MyDatabase' cannot be started in this edition of SQL Server because part or all of object 'containedmemebersnapshots' is enabled with data compression or vardecimal storage format. Data compression and vardecimal storage format are only supported on SQL Server Enterprise Edition.   As a result, my database is in suspect mode.  Is there any resolution so I can restore this database onto SQL Server Standard Edition?


Why does the fundamental mode of a recorder disappear when you blow harder?

I have a simple recorder, like this:    When I cover all the holes and blow gently, it blows at about 550 Hz, but when I blow more forcefully, it jumps an octave and blows 1100 Hz.  What's the physical difference between blowing gently and blowing forcefully that the recorder suddenly jumps an octave and the fundamental mode is no longer audible?


Hyperbolic functions. Why are they named with trig functions?

I don't really get why these hyperbolic functions are named after trig functions. Can someone enlighten me?


Typo error on printed double sided flyer that client approved. Should the designer pay?

A client sent the text which was copied and pasted for a flyer design. The client approved the final file for print. The flyer is  printed but does have a typo error. Is the designer responsible for not spotting it? Should the designer have to pay?


Tracking; How to deal with tracked features that disappear and become visible again later?

I'm tracking a box in a video by tracking dots on each side, and at certain points in the animation a side of the box disappears, and then later on that side is visible again.  As a result, the dots that are on that side (which I am tracking) disappear, and then reappear.  What do I do with that time in the middle, where those dots are invisible?  Do I just stop tracking?  How? How do I get Blender to know that the time in the middle is irrelevant?  Can I get those trackers to stop tracking and restart when those tracker dots are visible again?  I'm afraid that Blender takes that time in the middle into account, thus causing the tracking of the object to totally fail. I hope this make sense.


I'm having trouble getting Derkeethus out of the cave

When I lead Derkeethus to the exit of the cave and then wak out he doesnt come out with me. Is there a different way to get him out? Or am I doing it wrong? (Console)


Proof of relation between divided difference and interpolation polynomial coefficient

Given data points $\{(x_i,f(x_i)\}_{i=0}^{m}$, if we define divided difference recursively as: $$f[x_0,\cdots,x_{k+1}] = \frac{f[x_1,\cdots,x_{k+1}]-f[x_0,\cdots,x_k]}{x_{k+1}-x_0} \text{ with the definition that} f[x_0] = f(x_0)$$ then it is true that the unique interpolating polynomial $L_m(x)$ of degree $m$ such that $L_m(x_i) = f(x_i)$ for all $i = 0\cdots m$ is given by: $$ L_m(x) = \sum_{k=0}^mf[x_0,\cdots,x_k]\omega_k(x), \text{ where } \omega_k(x) = \prod_{i=0}^{k-1}(x-x_i). $$ The question asks to show this. That is, show the coefficients of the interpolating polynomial of degree $m$ in the basis $\{\omega_k\}_{k=0}^{m}$ is exactly $a_k = f[x_0,\cdots,x_k]$, the divided differences. To tackle this problem, I've attempted to use induction. The base step is trivial as $a_0 = f(x_0)$, but I am stuck on the inductive step. I supposed the degree $m$ interpolating polynomial of some data $\{(x_i,f(x_i)\}_{i=0}^{m}$ is indeed given by: $$ L_m(x) = \sum_{k=0}^mf[x_0,\cdots,x_k]\omega_k(x) $$ and I want to argue that $L_{m+1}(x) = \sum_{k=0}^{m+1}f[x_0,\cdots,x_k]\omega_k(x)$ is the interpolating polynomial of degree $m+1$ interpolating $\{(x_i,f(x_i)\}_{i=0}^{m+1}$, with any additional point $(x_{m+1},f(x_{m+1}))$ added. Clearly, $L_{m+1}(x)$ interpolates $\{(x_i,f(x_i)\}_{i=0}^{m}$ by definition of the $\omega_k$'s, but I am stuck at showing $L_{m+1}(x_{m+1}) = f(x_{m+1})$. Hints will be extremely appreciated!


In my Grammar book I have...     She's been watching television.    Can we also say...     She's been watching the television    I just want to know if they are the same.


I'd like to know how to accomplish saving, accessing old save files, and overwriting them.


How are parentheses interpreted at the command line?

While reading up on how to set up grub, I came across an article claiming that I need to use one of the following two syntaxes,  echo \(hd0,0\) >> /boot/grub/grub.conf   or  echo '(hd0,0)' >> /boot/grub/grub.conf   because, at the command line, parentheses are interpreted in a special way. What is special about the parentheses? How are they interpreted?


When shall one write a mathematical expression as a separate line in a paper/Ph.D. thesis?

When do we write a mathematical expression on a separate line, and when do we write it inline with the text?  I believe that the answer is the same for researching papers and Ph.D. theses, or maybe even textbooks; but please correct me if I am wrong.  Here I am referring to a paper/thesis on mathematics. When one writes a mathematical paper, sometimes one writes a mathematical expression in a separate line such as in the following example:     We know that the identity   a2+b2=c2   holds true if ....   While sometimes one writes the mathematical expression inline with the text, such as in the following example:     Let f:X->Y be a one-to-one map, ...   My impression is the longer the expression is, the more likely it is written in a separate line. But is there any (possibly unwritten) rule for it?


Where do people use the "Here document" on UNIX systems?   Where is it used in reality?


How to test for equality of means for proportions? And two-sided or one-sided?

I have the following problem: two groups A and B.  The proportions of married and single are ($p_1$) and ($p_2$) respectively, and the standard deviations ($s_1$) and ($s_2$). The sample consists of  ($n_1$) A and  ($n_2$) B observations.  Now I want to test whether the proportions are equal. I use the following formula to compute the z-statistic:  z = $abs(p_1 - p_2) / \sqrt{ \frac{p_1(1-p_1)}{n_1} + \frac{p_2(1-p_2)}{n_2} }$  and test the hypothesis: h0: $p_1 \neq p_2$  An alternative approach I tried is to estimate the t-value based on the standard deviations (hence just comparing means), that is by the formula (assuming unequal variances):  t = $abs(p_1-p_2)/\sqrt{ s_1^2/n_1 + s_2^2/n_2 }$  My question are:    do you agree with my approach or; should it be two-sided or one-sided?   Thank you.


Random removal of my extensions, Laptop, Windows, Chrome Extensions Ghostery & Adware Plus

My Chrome extensions are constantly being deleted.    It happens when my laptop is in use and I reload them every time it happens for fear of my data being corrupted. I estimate they delete themselves twice an hour.   I have found forums discussing this as a Chrome fail, I have not found discussions relating this to a virus.  I have tried:   Cleaning for virus & malware Reinstalling Chrome Uninstalling suspicious programs Junkware removal tools Syncing my settings while leaving out "extensions" Removed the unwanted extension from Google Chrome Run extensions in developer Mode Remove the related registry entries in HKEY Local Machine & HKEY Current User Removed extension's files using  %LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensions & deleted all files & emptied reclycle bin.    I frequently run:   Stinger 32 AdwCleaner Msert CCleaner64 McAffee Security Scan Plus   This started after I removed a series of viruses "Buy The App" and "Cut THee Price."  I thought this might have been related to those, but now all scans have come out clean.     The extensions that delete themselves are Ghostery & AdBlock Plus.  I need help please?


Explain who command output in 2nd column

I have 2 machine setup of rhel7 , one is in terminal mode and the other is in grahical mode , when I run 'who' command on both the machines why do I get 'tty' in 2nd column output for the machine in terminal mode and 'pts' for machine in graphical mode


Allowing all/different file type uploads

I've looked through a number of previously accepted answers, but none seem to work/apply to the latest versions of WordPress.  I'm trying to allow .rfa file types to be uploaded to the media library.  This is what I've found from a previous answer;  function additional_mime_types($mime_types) {   $mime_types['rfa'] = 'application/octet-stream';   return $mime_types; } add_filter('upload_mimes', 'additional_mime_types', 1, 1);   How can I allow .rfa file types to be uploaded to the media library?


I made both of you buy the (games or game)

I had made two of my friends buy CS:GO and today, while texting in a group I said "I made both of you buy the games". My friend corrected me with "*game". Was I wrong? I tried googling but couldn't find anything.


Crossing Canadian to USA border with dried food

I have made all my own dried food ie. soups, chilli, tofu jerky. We were supposed to go to Jasper for a 7 day hiking trip but due to fires we are now going to Yellowstone.   Can I bring my dried foods?


How to update my BIOS for my Asus notebook? This is the  page for the BIOS updates. I am currently at BIOS update 216. Should do all the updates or just do the newest one? And what program should I use to do this?


Is it possible to burn a customized windows installation?

I frequently run into the issue that I need to perform fresh installations of Windows, mostly Windows 7, but it's kinda tedious to also install some "common software" every time I install the OS. By "common software" I mean programs that I need to install on every computer that I install Windows on, like office suites, graphic design software, media players, typographic files, desktop tweaks, etc.  I've seen that at some places, custom Windows images are offered with some tweaks included (even already activated).  Is there a way that I can burn a "snapshot" of an already existing installation to a disc so that I can install it on another computer and that this new installation already has the aforementioned software installed in it (as it is in the original installation)?  Thanks!


How does the parenthesis at the end of a javascript function supposed to work

I consider myself a pretty strong javascript coder and am familiar with most all of the javascript syntax. But have been puzzled by the following syntax:  function() {     return function() {      } } ();   Can someone explain what the parenthesis at the end is supposed to be used for?


After the events in Season 7 of Game of Thrones, who is the current ruler of Dorne?  In past seasons we saw how      Ellaria Sand and the the Sand Snakes killed Oberyn's brother, Prince Doran, and his son (Trystane), seizing the region of Dorne under their command.   And now after Season 7      all known trueborn members of House Martell are (presumably) dead, Ellaria Sand is Cersei's captive and the Sand Snakes are all dead   so, who is the current ruler of Dorne?


How did Rand light the pipe without channeling?

In the final Wheel of Time book, "Memory of Light", protagonist Rand Al'Thor      survives the Last Battle by switching bodies with Moridin.   Afterwards, he finds that he cannot channel, yet somehow lights his pipe.     By instinct, he reached for the One Power to light it. He found   nothing. No saidin in the void, nothing. He paused, then smiled and   felt an enormous relief. He could not channel. Just to be certain, he   tentatively reached for the True Power. Nothing there either.      He regarded his pipe, riding up a little incline to the side of Thakan'dar, now covered in plants. No way to light the tabac. He inspected it   for a moment in the darkness, then thought of the pipe being lit. And   it was.   This event is not explained further - it just happens and he thinks of it as "impossible" before smiling and going about his business. It does seem very similar to how things work in Tel'aran'rhiod, though, with thoughts manifesting as reality.  How did he light the pipe without using either saidin or the True Power? Has Brandon Sanderson or anyone else explained this action?


PostgreSQL: Generate a series of dates for each group in a table

I have a balances table in PostgreSQL 9.3 that looks like this:  CREATE TABLE balances (   user_id INT , balance INT , as_of_date DATE );  INSERT INTO balances (user_id, balance, as_of_date) VALUES   (1, 100, '2016-01-03') , (1,  50, '2016-01-02') , (1,  10, '2016-01-01') , (2, 200, '2016-01-01') , (3,  30, '2016-01-03');   It only contains balances for dates that a user has made a transaction. I need it to contain a row for each user with their balance on each date in a given date range.   If the user does not have a row for a given date in the range, I need to use their balance from the day before. If the user created their account after a given date in the range, I need to avoid creating a row for that user/date combination.   I can reference an accounts table to get users' create_date:  CREATE TABLE accounts (   user_id INT , create_date DATE );  INSERT INTO accounts (user_id, create_date) VALUES   (1, '2015-12-01') , (2, '2015-12-31') , (3, '2016-01-03');   My desired result looks like this:  +---------+---------+--------------------------+ | user_id | balance |        as_of_date        | +---------+---------+--------------------------+ |       1 |     100 | 2016-01-03T00:00:00.000Z | |       1 |      50 | 2016-01-02T00:00:00.000Z | |       1 |      10 | 2016-01-01T00:00:00.000Z | |       2 |     200 | 2016-01-03T00:00:00.000Z | |       2 |     200 | 2016-01-02T00:00:00.000Z | |       2 |     200 | 2016-01-01T00:00:00.000Z | |       3 |      30 | 2016-01-03T00:00:00.000Z | +---------+---------+--------------------------+   Note that rows have been added for user 2 for 2016-01-02 and 2016-01-03, carrying over the previous balance from 2016-01-01; and that no rows have been added for user 3, who was created on 2016-01-03.  To generate a series of dates in a date range, I know I can use:  SELECT d.date FROM GENERATE_SERIES('2016-01-01', '2016-01-03', '1 day'::INTERVAL) d   ...but I am struggling with LEFT JOINing that series with each set of rows grouped by user_id.


Is it possible to unwrap a series of connected faces and make them keep their proportions relative to each other for precise texture placement?   I have a wall structure that has rounded corners, and when I unwrap it, the faces do not keep their proportions relative to each other, resulting in distorted/stretched textures when applied.   There must be a way to make faces keep their relative size.  I attached an image that hopefully illustrates my problem:


How to typeset row operations on augmented matrix

I would like to typeset row operations on a augmented matrix, but the "gauss"-package does not seem to support the vertical line just before the last column, any way to do this?  Thanks!


How is time measured in the kittens-game?  In particular, Winter lasts 100 days, the stock tells me, how long(seconds) my supplies will last, but I've no Idea how many seconds 100 days are.


Let $\varphi: G\rightarrow G'$ be a homomorphism. Show that for each $a \in G$, $| \varphi (a) | \le | a |$.

Let $(G,*)$ and $(G',\circ)$ be groups.  The order of an element $x$ of a group is denoted by $|x|$.  Let $\varphi: G\rightarrow G'$ be a homomorphism. Show that, for each $a \in G$, $$\big| \varphi (a) \big| \le | a |\,.$$  I thought so, if $\varphi$ is a homomorphism then given $a, b \in G$, we have \begin{equation} \varphi (a \ast b) = \varphi (a) \diamond \varphi (b). \end{equation} I don't know how to use this to show that the order of an element in the image is less than or equal to the order of that element. Can someone help me please?


Create rectangle with center point , height and width ol5 API

I am trying to develop a web portal using ol5 API where user click on map and then it takes map click event coordinates as centroid of rectangle and create a rectangle of particular height and width.  Here is the to create square  image: new ol.style.RegularShape({         fill: fill,         points: 4,         radius: 30,         angle: Math.PI / 4     })   But I want to create rectangle with center point , height and width. How to achieve this?


solution :-  $21= 3 \times 7$  there is only one Sylow $3$ and Sylow $7$ subgroup  so, Sylow $3$ and Sylow $7$ subgroup are normal in group $G$  so $G$ is cyclic group of order $21$.  Am I right ?  somebody told me that group of order $21$ is not cyclic.  he gave me this .  If group of order 21 is not cyclic, then can we understand it by Sylow method ?


The question below has been asked many times here, but I need quick approach just to determine the sequence is properly divergent or not.  Question: Is the sequence $(x_n)$ where $x_n= n\sin n$ properly divergent? That is either $\lim(n\sin n)=+\infty$ or $\lim(n\sin n)=-\infty$?  My attempt: Let $x_n=n\sin n$; then clearly $(x_n)$ is unbounded above. Hence it must have a properly divergent subsequence say $(x_{n_{k}})$ such that, $lim(x_{n_{k}})\rightarrow +\infty$. Also, $(x_n)$ is unbounded below and hence it must have properly divergent subsequence say $(x_{m_{k}})$ such that $lim(x_{m_{k}})\rightarrow -\infty$. Hence, given that the sequence $(x_n)$ has two subsequences tending towards different infinities, $(x_n)$ is not properly divergent. Is my attempt correct? (Especially the part of existence of properly divergent subsequences? I did not constructed those subsequence, but I directly assume there existence. Is it fine?) Please help me...


i need a help !!  what do you suggest for my question:  I need to make a backup of a SSD 240 GB (that was with Win10). What tool do you recommend me to do on Linux (Ubuntu) in the cloud?  thank you


Dual Booted PC skips Boot Menu, directly boots Linux Mint

I couldn't find Grub Menu. It directly goes into Linux. I seriously need windows. Please help me someone.


weird yellow and red grains on my renders

I am working on a scene in blender related to Minecraft but for some reason my render image have small yellow and red spots sprinkled which are barely noticeable , is their a way to fix it. it might be a problem with cycles as it works fine with eevee.


JQuery select all check box does not work after reloading a table in a partial view

I have a table in a Partial View that is updated when a user selects an option from two different drop downs which are all a part of one form that is submitted and updates the url. Each row in the table contains a check box, and the header contains a "check all" check box so that you can perform bulk delete actions on the rows in the table. Code for my check all check box is written using JQuery on the Index page for the table (Not the partial html file) and is found below:   $('#check-all').on("click", function () {         var checkAllStatus = this.checked;         $('.task-checkbox').each(function () {             this.checked = checkAllStatus;         });     });      $('.task-checkbox').on("click", function () {         if (this.checked == false) {             $('#check-all')[0].checked = false;         }          if ($('.task-checkbox:checked').length == $('.task-checkbox').length) {             $('#check-all')[0].checked = true;         }     });   On first load of the page, the check all box works exactly as intended. However, if you select an option from one of the drop downs, the partial view is updated and the JQuery above no longer works.  After placing break points and going through lots of different sites and searches, it appears that JQuery is still bound to the old check boxes on the table, and not the new check boxes on the updated partial. Therefore, the check all box no longer works. If you reload the page completely, then the check all box works perfectly. However, I do not want to reload the page when the partial is updated. Hence the use of the partial.   Any ideas? I've tried updating the JQuery on submit of the form that updates the partial, but that triggers before the table is updated and so it still doesn't work. Thanks for any help!


What does an odometer measure? Another term for "mileage"

I'm developing a software application in which users must enter odometer values of their cars. I'm looking for the correct term for the variable/database field that stores an odometer reading.  Terms I'm not really satisfied with:   mileage: Too imperial, since I'm actually storing kilometers and not miles. And this term is a bit ambiguous because it's also used for fuel efficiency. distance: Too generic. odometerValue: Too literal.   I'm looking for the metric (or unit independent) equivalent of the term mileage, or is this term also used in metric countries?


Let $X$ be a positive random variable on the $(\Omega,\mathscr{A},P)$. Show that if $X\in L_p$ for $1<p<\infty$.   Prove $E(X^p)=\int_{0}^{\infty}px^{p-1}P(X>x)dx$   I have been thinking about this question but it does not come to my mind how should I go from $E(X^p)=\int |X|^p dP$ into a Riemann integral. I understand that $\frac{d(x^p)}{dx}=px^{p-1}$ however I cannot see how the Riemann integral appears. $\int\mathbb{1}_{X>x}dP=P(X>x)$.  Question:  How should I solve this question?  Thanks in advance!


How can I diagnose and repair missing drive space?

I have a small ext3 / partition on a 2T drive which appears to have a discrepancy in its free space. How can I determine what is causing it and how it can be fixed.   After trying everything I could think of, I forced a fsck on boot which didn't have any affect.  I have other systems configured identically which don't exhibit this condition.  # df -h / Filesystem            Size  Used Avail Use% Mounted on /dev/sda1             9.7G  8.9G  318M  97% /  # du -shx --max-depth 1 / 5.2G    /  # lsof | awk 'BEGIN {t=0} /(deleted)/ {t+=$7} END {print t}' 0  # tune4fs -l /dev/sda1 | grep -E 'state|Free|Reserve|size|Inode' Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file Filesystem state:         clean Inode count:              2621440 Reserved block count:     131029 Free blocks:              212317 Free inodes:              2487281 Block size:               4096 Fragment size:            4096 Reserved GDT blocks:      639 Inodes per group:         32768 Inode blocks per group:   1024 Reserved blocks uid:      0 (user root) Reserved blocks gid:      0 (group root) Inode size:               128   Edit:  fsck says the partition is 2% non-contiguous.  For comparison to du above (sparseness):  # du -hxs --apparent-size / 4.9G    /


Remove iTunes and QuickTime Player from macOS Mojave 10.14.5

Simply do not need these. Is there a way to remove them from my machine? sudo rm -rf QuickTime\ Player.app/ didnt work :/  MacOS version 10.14.5 (18F132)  MacBook Pro (Retina, 13-inch, Early 2015)  Edit:  Error on running sudo rm -rf QuickTime\ Player.app/ (trimmed down)  rm: QuickTime Player.app//Contents/XPCServices: Operation not permitted rm: QuickTime Player.app//Contents/Info.plist: Operation not permitted rm: QuickTime Player.app//Contents/PkgInfo: Operation not permitted rm: QuickTime Player.app//Contents/version.plist: Operation not permitted rm: QuickTime Player.app//Contents: Operation not permitted rm: QuickTime Player.app/: Operation not permitted


Where is the black hole information paradox?

If an object falls into a Schwarzschild black hole and a distant observer watches, they see the object fall slower and slower as it approaches the event horizon, until it is "frozen." (To the observer, it never stops accelerating.) The observer never sees the object cross the event horizon in finite time.  So, with this, how is information about the object lost? Shouldn't the observer have the ability to observe the object indefinitely? To them, shouldn't the object appear "on this side" of the universe indefinitely? Shouldn't the object's light, mass, and charge remain observable "on this side?"  Question: Where does information loss in this setup occur, i.e., which aspects about the object are lost; and—if it makes sense to ask such a thing—when does it occur, i.e., when (with respect to the observer) during the object's approach does the observer lose the ability to measure all of the information about the object?  (If the two questions are not related enough to be asked at the same time, please let me know so I can break this up into multiple questions, Thanks.)


Remove injected code from all php files in directory on Ubuntu

I have a site where some code was injected into a very large number of php files and removing them manually is not feasible due to the number of files.  I can search for a variable name from the injected code in all files and it gives me a list of the affected ones, but I can't put the actual code in the search as it contains double quotes, single quotes and all types of characters.  Here is what I used for the search:  grep -Ril "ljdcvhg" 'path-to-site-folder'  Is there any way to search for the entire php function / injected code and remove? Please note I'm very new to linux.  I was going to put the hack code in here, but I'm not sure if that is allowed or not.  Any help is appreciated.


Responsive design makes it impossible to select a mod message template on mobile

I just tried to select a mod message template to compose a mod message. However, since that's basically impossible without a mouse (a complaint for another time), I switched to mobile. However, I got... this:    I can't select a template, and I can't side scroll to get the options in view.


How to enter a Latin Capital Letter D With Hook (Ɗ)?

How can I insert a  into a LaTeX formula?  Ɗ


What analog circuit i should use to shifting a signal from -5..5v into 0..10v?

I want to output my circuit from -5..5v into 0..10v. My circuit generate  -5..5v. What should i do to generate that signal? what analog circuit i should use? thanks


Undo file removed by rm commend on MAC terminal

I unfortunately deleted .bash_profile file from my MAC. Accidentally I typed rm .bash_profile. Now how can I get my file back?


It's possible to fully disable windows logs?

I've configured auditpol auditpol /set /category:* /success:disable /failure:disable - the size of the logs has decreased, but I would like to know if it is possible to make them 0... For all channels: System, Application, etc.


How to pass named variables to bash script in python?

I have seen similar questions, but in all those answer, you can only get the variable by position. How can one pass a named variable to a bash script such that it is accessible by its name in the bash script? I have tried to use os.system('./script.sh --key=val')  But $key didn't have any assigned value in script.sh.


How to prevent students from having an unfair advantage on exams, when they are held on different days?

I teach a writing course to different sections, across different days of the week. From the schedule, some students will take their mid-term exam early in the week, while others will take it later in the week. Recently, I found one student who was “just checking to see what the exam was like”, but was planning to go to another session to actually take the test. I realized there might be a variety of ways that students taking the exams on Friday would have an advantage over those taking it on a Monday.  I've taken the following steps in an attempt to address this problem:   I build multiple tests, e.g. "A", "B", "C", etc., which are of similar difficulty, have the same types of problems, but different subjects. "A" is given to one section, "B" to another, etc. Provided a sample test that students can print and practice with and discuss with me in class.   Note that, there are several challenges to administering this:   The classes are large, and the school offers me no assistance in managing the exams. Many students regularly attend my lectures during sections that they did not register for, so I will not easily recognize who belongs in which time.   Are there any additional steps I should consider to make sure the test is administered fairly?


Will I get any visual benefit if I use CRF values below 17/18 in x264 (FFmpeg)?

Will I get any visual benefit if I use CRF (Constant Rate Factor) values below 17/18 in x264 (FFmpeg)? Will there be any differences other than size?  CRF 17/18 are visually lossless.  CRF 0 means, every pixel of the frame will be determined by its own data. CRF 17/18 means, every pixel of the frame will be either determined by its own data or determined from the previous frame if they are identical.  So visually both will be same. Then what the lower value CRF (0-16) encoding is good for?  I have tested most of the usable CRF values (Including CRF 0). I encoded a 1080P Blu-Ray movie using "CRF 0". The output ended up 2.5 times larger (110GB) than the Blu-Ray source.  From what I have learned, I have not seen a reason to use CRF values below CRF17/18. And I am unable to find a reason anywhere that justifies the uses of lower CRF values. So what are lower CRF values good for?  Will there be more generation loss in CRF 17/18 and less generation loss in lower CRF value encodings?


Whats the difference between mail and mailx?   I'm trying to troubleshoot a problem where I can send mail from server A with this echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS command but executing the same command  from server B throws me this error (Both servers are RHEL)  mail: invalid option -- r Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...             [-- sendmail-options ...]        mail [-iInNv] -f [name]        mail [-iInNv] [-u user]   Now... going through mail manpages to ty to understand whats happening, man mail gives me this:  In Server A   MAILX(1)                         User Commands                        MAILX(1)  NAME        mailx - send and receive Internet mail  SYNOPSIS        mailx [-BDdEFintv~] [-s subject] [-a attachment ] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops]               [-A account] [-S variable[=value]] to-addr . . .        mailx [-BDdeEHiInNRv~] [-T name] [-A account] [-S variable[=value]] -f [name]        mailx [-BDdeEinNRv~] [-A account] [-S variable[=value]] [-u user]   But in server B   MAIL(1)                   BSD General Commands Manual                  MAIL(1)  NAME      mail - send and receive mail  SYNOPSIS      mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr... [-- sendmail-options...]      mail [-iInNv] -f [name]      mail [-iInNv] [-u user]   Now... if I try man mailx in server B I get:  MAILX(P)                   POSIX Programmerâs Manual                  MAILX(P)  PROLOG        This manual page is part of the POSIX Programmerâs Manual.  The Linux implementation of this interface may differ        (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not  be  imple-        mented on Linux.  NAME        mailx - process messages  SYNOPSIS    Send Mode               mailx [-s subject] address...     Receive Mode               mailx -e                mailx [-HiNn][-F][-u user]                mailx -f[-HiNn][-F][file]   Server B has a different version of mail than Server A? Mailx and Mail are different things? I would like to use the -r option I use in server A but in server B and I don't really know whats happening.


Is there an appeals process for the automatic question rate limit?

I get this message:     It looks like you might need a break - take a breather and come back   soon!       You've asked 4 questions recently, some of which have not been   received very well by the community. Everyone learns at their own   pace, and it’s okay to make some mistakes. However, the reception your   questions have received thus far might ultimately block your account   from asking questions entirely.       It's been 4 days since you asked your last question. We ask that you   wait 2 days before asking again. Use this time to revisit your   previous questions, editing to address any issues that folks have   pointed out in comments.       Recommended reading:          tips on asking great questions as well as our guidance on    which questions are allowed here          Additional advice          Examining highly-scored questions in the tags that interest you is a great way to study how to ask better questions, that also get better   answers much sooner!    We don’t demand perfection, but please make sure you use proper grammar, spelling and capitalization, it really helps!    Improve downvoted questions rather than deleting them.    Do not delete your account, create new accounts, or otherwise attempt to circumvent these restrictions.    Do not contact us regarding these restrictions, they cannot be lifted.          Failure to heed this advice may increase the severity of these   restrictions.       For more information       See: Why won’t the system allow me to ask questions for several days?       It sometimes takes a few attempts at a good question in order to fully   learn how our system works, and what the community expects from folks   seeking answers. Just do your best to make sure you've improved the   quality of your existing questions, and we'll see you in 2 days!   It's clear the system doesn't want me here. Is there an appeal process? Is there a proxy service for asking questions so other people can take some of the heat? I didn't do anything wrong.     This question may already have an answer here:      What can I do when getting “We are no longer accepting   questions/answers from this account”? 1 answer No, my question is   different. I will edit to explain how.   I explain why it is different in the comments to this question.


On the Vulcan's home planet they have creatures known as Sehlats. As explained they are basically giant bears with 6 in. fangs. What is the logical reason for Vulcans to have these as pets? Are they like protector dogs or just pets they keep?


how sort in java8 list of lists of object by multiple properties

I know this is not a new question but I want to sort CSV file by Column preferred in java8.  The Data-structure of CSV is List<List<CsvEntity> I need to sort first by one field of the CsvEntity then by other (not must) example by: firstName then by lastName.  class CsvEntity{    private String firstName    private String lastName    private String address }   Following this -   What modifications do I need to make for supporting sort on multiple keys in Java8?


I sculpted a kind of awful model and wanted to make a little scene out of it. After retopologizing and rigging, frames from my animation look like this:   The JPEG compression is pretty bad (sorry, my original file was way too big) but the shadows follow the topology of the mesh to the point that they outline the polygons and individual ones are visible.    Why are the shadows following the mesh while the texture is mostly indifferent? I've added a subsurf modifier, but the problem only shrinks a bit and the lag grows a ton. Thanks for any help you can provide!  Edit 1    Sorry, my other image demonstrating the problem was not great... Here's another one (scaled 200% with no interpolation).


Is the clause “where are you from” grammatically correct?

One of the most fundamental sentence from the English “phrasebook” that almost every beginner will learn is this sentence, using which one can ask another one’s nationality or country/region of origin.  However, this sentence has always troubled me.    The word where is an adverb in this context, and it functions as an adverbial; from is a preposition, and it functions as part of the subjective complement in this sentence.  Id est, when responding to this clause, people may say, for example, “I am from Milan.”  Now, in that response, I is a pronoun functioning as the subject, and the rest of the sentence, am from Milan, is the predicate, which is comprised of the copula, or the linking verb, am, and the subjective complement, from Milan, which is a spatial adverbial.    What I have learned about English grammar prescribes that an interrogative/relative adverb, such as where or when, cannot follow a preposition, because an adverb alone functions as an adverbial, and the structure “preposition + noun/pronoun” ought to correspond to an adverb.  Id est, the phrase from Milan (preposition + noun) can and should correspond to that adverb where, and structures such as from where are illegitimate.    I think it is fairly common that adverbs do not follow prepositions.  People always say clauses such as where are you at is grammatically incorrect, because at is a preposition and where is an adverb, so it should simply be where are you.  Therefore, what troubles me is that why the phrase where are you at is incorrect and criticized, while I have not seen people avoiding where are you from.    In my humble opinion, the canonical form of this clause should be from which country/region are you, or at least which country/region are you from, but it seems awfully pedantic and there is a highly probable chance that the utterer will get thrashed…


If using L'Hopital's rule to show $\lim\limits_{x\rightarrow0}\frac{\sin(x)}{x} = 1$ is circular reasoning, then how do we justify it still applies?

I wrote out a proof using the definition of the derivative for the function $f(x) = \sin(\theta)$ to show that $f'(x) = \cos(\theta)$, in order to use L'H's rule to show that the limit, $x \to 0$, of $\frac{\sin(x)}{x}$ equals 1, but as one professor in my department warned me: this uses circular reasoning.   There is a factor of $\frac{\sin(h)}{h}$ when using the definition   $$ f'(x) = \lim_{h \to 0} \frac{\sin(x+h) - \sin(x)}{h},$$  and we must show that   $$\lim_{h \to 0} \frac{\sin(h)}{h} =1,$$  to continue the proof.  So, how can we still justify using L'H's rule for $\lim_{x \to 0} \frac{\sin(x)}{x}$?    We're using the result to prove the result, which is absurd.  Thanks,


How to create transportation table like this table?


How do i solve ListView NullPointerException in SearchView

i'm trying to make the search for custom listview, but i got some trouble with the NullPointerException  in there is an error in line76, logcat:  java.lang.NullPointerException                                                                               at com.aeu.mlibrary.mlibraryaeu.SearchFragment.onCreateOptionsMenu(SearchFragment.java:76)   when i check in line 76 this is the code:  @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {      inflater.inflate(R.menu.activity_main_actions, menu);      MenuItem myActionMenuItem = menu.findItem( R.id.item_search);     final SearchView searchView = (SearchView) myActionMenuItem.getActionView();     searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {         @Override         public boolean onQueryTextSubmit(String query) {             return false;         }          @Override         public boolean onQueryTextChange(String newText) {             if (TextUtils.isEmpty(newText)) {                 adapter.filter("");                 lvSearch.clearTextFilter();             } else {                 adapter.filter(newText);             }             return true;         }     });      super.onCreateOptionsMenu(menu, inflater); }   line 76 is:  searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {   and this is my menu.xml:  <item android:id="@+id/itemSearch"     android:actionViewClass="android.widget.SearchView"     android:icon="@mipmap/ic_search_white_48dp"     android:title="@string/action_search"     app:showAsAction="ifRoom" />   i need your help guys!


A solution to the equation $\frac{1}{x}=0$

The number $i$ is defined as a solution to the equation $x^2+1=0$.  How come no one has yet defined a number $j$ as a solution to the equation $\frac{1}{x}=0$?  The purpose of course is to be able to solve different equations, such as $\frac{1}{x^2}=0,\frac{2}{x}=0$, etc.  Another way to look at this, is by using $j$ in order to define different (distinct) values of $\infty$.


Categorical ordinal data: which test is better?

I have the following data:     Group very bad bad quite good good very good     A 12 20 11 29 14   B 20 10 6 11 34     Group A receives training, group B doesn't  which test is appropriate for this kind of data?  could you apply the same test to these data in a different way?  if the chi square in 1. is significant and the chi square test in 2 is non significant, how would you interpret the results?  Could you recode the data and apply a different test?  If the Mann Whitney test is non significant how would you interpret this result compared to those of chi-square tests?   I would be very grateful if anyone could help with this!


Do these three kinds of vector spaces, those with an inner-product, those with a norm and those with a metric, are the same sets of vector spaces? At least for finite dimensional vector spaces all of these coincide?   It would be great to know finite dimensional counter-examples if they exist any and if anyone can link to some lecture notes explaining this point.     Like are there examples of inner product spaces which cannot have a metric or metric spaces which cannot have a norm or various other such possible conflicts between these 3 properties.


Prove that the given set $E_0$ is measurable

Let $f_n$ be a sequence of measurable functions defined on a measurable set $E$ .Define $E_0$ to be the set of points $x$ in $E$  at which $\{f_n(x)\}$ converges .Is the set $E_0$ measurable?   My try:  Let $f(x)=\lim _{n\to \infty} f_n(x)$  $E_0=\{x\in E:f_n(x)  \mbox{converges}\}$  To show that $E_0$ is measurable consider the set $\{x:f(x)>c\}$ for any $c\in \Bbb R$.  If $f_n(x)$ converges for some $a\in E_0$ then  $f(a)=\lim _{n\to \infty} f_n(a)$ then $|f_n(a)-f(a)|<\frac{1}{n}\forall n\in \Bbb N$  So $f(a)-\frac{1}{n}<f_n(a)<f(a)+\frac{1}{n};\forall n\in \Bbb N$  Then $\{x:f(x)>c\}=\cap_{{n\in \Bbb N}}[\{x:f_n(x)>f(a)-\frac{1}{n}\}\cap \{x:f_n(x)<f(a)+\frac{1}{n}\}]$ which is measurable as $f_n$ is measurable  and measurable sets form a $\sigma-$ algebra.  Is the proof correct?


How to create "References" section without it being numbered?

I have several sections and at the end of my article if I add \section{References} I get it numbered. How to add it without number.


What is the effect of smoking before or during early pregnancy on the baby?

I assume it will be harmful to the baby if a woman smokes while pregnant. How about the situation where the woman smokes, gets pregnant and then stops? Does the smoking in the period until the pregnancy affect the baby? How long before a pregnancy does a woman need to quit smoking in order to insulate the baby from the negative effects of smoking?


I've connected a HDTV with HDMI on my Radeon 4670, using the open source ati driver. However there is "overscan" which cuts off a bit of each edge of the screen, about the size of the gnome-panel. How can I fix this so it displays the full resolution?


A 10x10 table filled with 0 to 9 numbers

I saw this question but I couldn't find the answer. Assume that we have a 10x10 table, and it's filled with 0 to 9 numbers ( 10 of each of them are in the table, 10x zero, 10x one, and ... ) By using graph, prove that we have a column or a row that we can find at least 4 different numbers in it. edit: I have found this method to create a graph from any table-matrix :  after that, I thought that it would be a good way to use coloured edges. and now the thing to prove is to have a vertex with at least four colour edges connected to it. maybe with pigeonhole, the problem can be solved but I couldn't


What's the ranges of ratios of Focal Length to Sensor Height to approximate a human eye's view?

Given  for calculating the distance to an object as long as you have a picture of the object and know the actual height of the object...  distance to object (mm) = focal length (mm) * real height of the object (mm) * image height (pixels)                           ---------------------------------------------------------------------------                           object height (pixels) * sensor height (mm)   What would be an accurate range of ratios of Focal Length and Sensor Height to approximate a human eye?  I think this question is sufficiently different from  and


In python, How to use singleton pattern?

My code is :    class Handler():          # make it static         from pymongo import MongoClient         client = MongoClient("localhost", 27017)         db = client.newsdb         news = db.news   I want to make the client variable to be static, so is above code the correct way to do that ? I also want to use singleton pattern, because maybe the MongoClient is very large element, and I want to new() this element when I really need it....  How can I do that in python ? As a beginner, maybe ask some stupid question, sorry for that in advance...


Monitor only works after turning on multiple times

I have had two monitors for my Late 2016 MacBook Pro running the latest updates, a 1080p one and now a 4K monitor. Both have had the same issue described below. When I connect my external monitor to my laptop (using HDMI to USB-C) the monitor is turned off, however, it is detected as I can move my cursor onto the other screen (though I can't see the cursor as the monitor is turned off). When I turn the monitor on it does not display my other screen as it should but turns itself off again. This cycle of me turning the monitor on and then it turning itself off happens about 5 times until seemingly randomly it displays as it should my desktop background and any windows I have open. On further experimentation if I plug a USB-C hub into my laptop and then connect an HDMI cable from the hub to my external monitor the problem does not occur at all. This is becoming very frustrating and I can't seem to solve the issue. Any help would be greatly appreciated.


Why is my network interface named enp0s25 instead of eth0?

A lot of my scripts stopped working after installing Ubuntu 15.10 and I have trouble remembering this new name as I was used to ethx and wlanx for years. Is there a reason for this change? Do I have to get used to this or can I just rename it and go back to good old eth0?  $ ifconfig  enp0s25   Link encap:Ethernet  HWaddr 77:5a:5e:a6:86:d5         inet addr:192.168.31.239  Bcast:192.168.31.255  Mask:255.255.255.0       inet6 addr: fe80::725a:b6ff:fea6:86d7/64 Scope:Link       UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1       RX packets:4833 errors:1332 dropped:0 overruns:0 frame:666       TX packets:5589 errors:0 dropped:0 overruns:0 carrier:0       collisions:0 txqueuelen:1000        RX bytes:3266446 (3.2 MB)  TX bytes:1046654 (1.0 MB)       Interrupt:20 Memory:d3500000-d3520000


Equation and then right-justified comment on same line

How can I create an equation which is centered, and then comment on it on the same line in a right-justified way? I'm looking for something sort of like this    But that I basically rigged by putting a bunch of \qquads in there to place it just right. And even there the equation isn't quite centered.  I imagine if the comment was too long I would put it in a parbox. But in the one above, I couldn't get the comment to go any farther to the right than that without it skipping a line.


How Can I draw a cube of cubes efficiently?

I've tried to draw a cube made by cubes on each side with TikZ. I mean a 3x3 cube with a little shift between each one. I've looked for an answer but the first hard step is starting with a good way to draw a cube. Then a need to put them on the edges of the 3x3 big cube. Basically, I just want to show three faces of our cube such that looks something like this:   But my pretty sad code to show it is this:  \documentclass{minimal} \usepackage{tikz} % Three counters \newcounter{x} \newcounter{y} \newcounter{z}  % The angles of x,y,z-axes \newcommand\xaxis{210} \newcommand\yaxis{-30} \newcommand\zaxis{90}  % The top side of a cube \newcommand\topside[3]{   \fill[fill=red!50, draw=black,shift={(\xaxis:#1)},shift={(\yaxis:#2)},   shift={(\zaxis:#3)}] (0,0) -- (30:1) -- (0,1) --(150:1)--(0,0); }   % The left side of a cube \newcommand\leftside[3]{   \fill[fill=red, draw=black,shift={(\xaxis:#1)},shift={(\yaxis:#2)},   shift={(\zaxis:#3)}] (0,0) -- (0,-1) -- (210:1) --(150:1)--(0,0); }  % The right side of a cube \newcommand\rightside[3]{   \fill[fill=red!50!black, draw=black,shift={(\xaxis:#1)},shift={(\yaxis:#2)}, shift={(\zaxis:#3)}] (0,0) -- (30:1) -- (-30:1) --(0,-1)--(0,0);}  % The cube  \newcommand\cube[3]{   \topside{#1}{#2}{#3} \leftside{#1}{#2}{#3} \rightside{#1}{#2}{#3} }  % Definition of \planepartition % To draw the following plane partition, just write \planepartition{ {a, b,c}, {d,e} }. %  a b c %  d e \newcommand\planepartition[1]{  \setcounter{x}{-1}   \foreach \a in {#1} {     \addtocounter{x}{1}     \setcounter{y}{-1}     \foreach \b in \a {       \addtocounter{y}{1}       \setcounter{z}{-1}       \foreach \c in {1,...,\b} {         \addtocounter{z}{1}      \cube{\value{x}}{\value{y}}{\value{z}}       }     }   } }  \begin{document}   \begin{tikzpicture} \planepartition{{1}}  \begin{scope}[yshift=1.5cm,xshift=0cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=5cm,xshift=3cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=4cm,xshift=1.5cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=0cm,xshift=6cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=-1cm,xshift=4.5cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=1.5cm,xshift=6cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=4cm,xshift=4.5cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=3cm,xshift=6cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=2cm,xshift=4.5cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=3cm,xshift=0cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=2cm,xshift=1.5cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=-1cm,xshift=1.5cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=-2cm,xshift=3cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=-.5cm,xshift=3cm] \planepartition{{1}} \end{scope}  \begin{scope}[yshift=1cm,xshift=3cm] \planepartition{{1}} \end{scope}  \end{tikzpicture}  \end{document}    If you can see, I have a little trouble to align my cubes. So   How Can I align my cubes? Is there an easier way to draw it? How can i create an efficient code to draw it?   I´m not care about another perspective of the cube or another faces.


What is a function which differs when differentiated with respect to x and then with y to function differentiated with respect to y and then x?

What is a function which differs when differentiated with respect to $x$ and then with $y$ to function differentiated with respect to $y$ and then $x$? Even if it differs at one particular point.


We have a customer server containing SQL Server 2008R2 with about 50 databases. The issue is that the CPU usage reaches 100% (or close to it) and it lasts for a couple hours. This typically happens in the morning (usually somewhere around 6am - 9am). Average CPU usage is 30%  We looked at the scheduled reports and couldn't find anything - we did decide to schedule them earlier in the morning and that didn't do anything.  I'm going to remote in tomorrow to investigate the issue. We've rebuilt the indexes and that didn't help. I have a set of DMVs to check for queries with highest worker time and longest running time.  Do the SQL Server track all the queries run so that the DMVs can access the information? What other sql snippets would be helpful to diagnose the problem?   edit: Memory usage is pretty high too - about 80-90%. Actually another server is experiencing the same issue at the same time, I believe they're both hosted on a citrix server.  We've also done an index rebuild.


For a project, I like to use 3.5mm type USB connector. This is for a closed system therefore I am not worried about USB approval but I am worried for signal integrity and insertion/removal problems.   Are there any common 3.5mm 4 contact point USB connectors that I can safely use? What is the usual practice for these connectors?


JSON: Cannot deserialize instance of date from VALUE_STRING

I'm officially breaking up with Salesforce Date parsing. This has got to be the most frustrating thing.  I have the following date in a JSON string (full JSON below):     2017-06-03T10:34:24.000Z   But when I try to deserialize the data:  Opportunity[] results = (List<Opportunity>)JSON.deserialize(res, List<Opportunity>.class);   I get the following error:     System.JSONException: Cannot deserialize instance of date from VALUE_STRING value 2016-12-05T16:19:44.000Z   I have looked at so many date parse issues before and from what I've gathered  it must be in ISO 8601 - though ISO 8601 can take various shapes:   All of the following seem to recommend exactly what I've done          How should I format this date string?  Thank you!  Full JSON string:  [{   "name":"OpportunityABC",   "CloseDate":"2017-06-03T10:34:24.000Z",   "StageName":"Pre-Engagement",   "Amount":"4810308.0", }]


Is a 2.4 GHz Intel Core 2 Duo better than a 2.0GHz dual-core Intel Core i5 with turbo Boost up to 3.1GHz?

I think my 2008 Macbook is about to bite the dust and wanted to buy a new Macbook Pro.....I noticed that I have the option to purchase a 2.0GHz processor which has a 3.1GHz "turbo boost".  Would the turbo boost make this a better/faster processor?  I will be using the Macbook mainly to run Logic Pro along with music plugins.


Meta already has a page with same title as this question: , but it doesn't answer its own question.  So, to repeat, what is an "Established user"?  Secondary question (if permitted): Of course this is a peer-reviewed site, but is it possible, on Meta Stack Overflow, to get some adult supervision? My motivation is my seven-word naive question , which got hammered.


How to connect two Dell P2415Q 4k displays to MacBook Pro 2016

What's the best way of connecting two Dell P2415Q 4k displays to the MacBook Pro 2016 with TouchBar and TouchID?  I have the monitors connected to an older MacBook Pro currently with two mini-DisplayPort cables. Can I somehow reuse those cables or do I need new ones?  Apple's support page  lets me know that:  "Note that although it uses a Mini DisplayPort connector, the Thunderbolt 3 (USB-C) to Thunderbolt 2 Adapter doesn't support connections to Mini DisplayPort displays."  So I guess reusing the cables is not the way to go?


When I was using the mobile version of an SE site I got prompted with the error:     new tags cannot be created from the mobile site. The tag 'sometag' is new.   Why is this so?


Path connectedness of the set of points $(x,y)$ where $x$ is rational or $y$ is rational

Prove that $X=\{(x,y) :x\text{ is rational or }y\text{ is rational}\}$ is path connected.   So for every $(x,y)$ in $X$, I need to find a continuous function $f$ on $[a,b]$ such that $f(a)=x$ and $f(b)=y$.   Trying to think about suitable functions, maybe one which sends everything to nearest rational. But don't think such a function exists.


In the final episode of season 6 we see that Lyanna Stark is whispering something to Ned. What is she saying?


How can I make Firefox open magnet-links in Transmission?

I can't find out how to make Firefox open magnet-links in Transmission.   There is no option to make it the standard program for magnet-links in its properties, and as I am not experienced with the filesystem so I can't add it as the standard program in Firefox either.


Does 32 bit os running on 64 bit cpu support 4Gb ram

I want to know if I have a 32 bit OS running on a 64 bit cpu, will it detect or access 4 GB of ram or more


Using Hensel's lemma is it true that $X^2-z$, for $z\in \mathbf Z$ any integer have no roots in 2-adics ?   Hensel's lemma only shows, if a root of a polynomial can be lifted to a root in $\mathbf Z_p$, so it doesn't say anything about the nonsolvability but if I look at the conditions:  If there is an $a$ s.t. $f(a)\equiv 0\mod p,\quad f'(a)\not\equiv 0\mod p$  If $p=2$, then the derivative is always zero for a polynomial of the form $X^2-z$, Is there still a root ?


Can you short rest during a long rest?  The situation is that the party needs to have a long rest. The spellcasters are pretty much all out of slots, we're low on hit die (I have none left).   There's a strong likelihood that we will be attacked if we long rest, but going back to town or somewhere else that's safer isn't really an option at this point; we have to rest in the hostile dungeon.  I'm a Fighter/Monk in this party, and I would like to have my Ki points, Second Wind and Action Surge ready for this rest-interrupting encounter when it happens (unless it happens during the first hour of the long rest, of course, but let's disregard that, because this question doesn't apply in that case).  So, would I regain the things I regain via short rests after the first hour of a long rest, so that I can use them if the long rest is interrupted later on?


How to fetch all the table name from Azure's database using php pdo and it is not like the normal Sql server?

I tried all other queries mention in this forum but none worked on Azure database. my query:  SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='dbName';   but it didn't work. I tried almost every stackoverflow solution. Please help to query all table from azure database. thanks.  my code:  <?php     try {      $conn = new PDO("sqlsrv:server=tcp:sahilpaudel.database.windows.net,1433 ;Database=dbname", "usernam", "password");     $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);      $query = $conn->prepare('SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='dbName'');     $query->execute();      while($rows = $query->fetch(PDO::FETCH_ASSOC)){     echo $rows['TABLE_NAME'];     } }  catch(PDOException $e) { echo $sql . "<br>" . $e->getMessage(); }   ?>


How to mix pairs of rows without JOIN (in a temporary table)?

I have a TEMPORARY table containing pairs of key/value as  id   col1      col2        type         pair 1    key1      key2        key          1 2    value1    value2      value        1 3    key3      key4        key          2 4    value3    value4      value        2 5    key5      key6        key          3 6    value5    value6      value        3   I want to mix the key/values as  pair    key_col1     key_col2      value_col1      value_col2 1       key1         key2          value1          value2 2       key3         key4          value3          value4 3       key5         key6          value5          value6   Since, it is a temporary table, I cannot use JOIN. How can I SELECT from this table to have pairs of key/value in each row?


When I try to upgrade firefox on Ubuntu I get this message in the terminal  E: Type '$' is not known on line 1 in source list /etc/apt/sources.list.d/brave-browser-release-bionic.list E: The list of sources could not be read. E: Type '$' is not known on line 1 in source list /etc/apt/sources.list.d/brave-browser-release-bionic.list E: The list of sources could not be read.


Find directories that do not contain subdirectories

I'm writing script is ksh. Need to find all directory names directly under the current directory which contain only files, not subdirectories.  I know that I could use ls -alR and recursively parse output for the first letter in the first field (d for a directory). I think awk is the best way to parse and find.   For example, a simple ls -al output in the current directory:     drwxr-xr-x  22 af      staff    748 18 Mar 22:21 .    drwxr-xr-x   5 root    admin    170 17 Mar 18:03 ..    -rw-------   1 af      staff      3 17 Mar 16:37 .CFUserTextEncoding    drwxr-xr-x   5 af      staff    170 17 Mar 17:12 Public    drwxr-xr-x   9 af      staff    306 18 Mar 17:40 Sites    -rw-------   1 af      staff      3 17 Mar 16:37 textd    …   There are 2 directories in this output: Public and Sites. The directory Public doesn't contain subdirectories, but Sites does. There are 3 subdirectories in Sites. So I need to echo only the directories which don't contain directories in them. In my case, this is only Sites.


How do I create files using the lines in a .txt file?

For example I have a file called fileNames.txt.  cat >fileNames returns  abet  able  abacus   How do I use fileNames to create abet, able, and abacus as .txt files?  I tried using pipes with cat and touch.


Let A and B be matrices of Mn(K). Show that if AB is invertible the matrices A and B are invertible.

Let $A$ and $B$ be matrices of $M_{n}(K)$. Show that if $AB$ is invertible the matrices $A$ and $B$ are invertible.  So i know how to find the inverse of a matrice, i know how to do the product of two matrices and i know the definition of invertibility but somehow i can't find a way to prove it.  Any help to point me in the right direction would help me alot.  Thank you.


Verizon GSM SIM card for unlocked Samsung Galaxy S2

I have an unlocked Samsung Galaxy S2. I bought it from Bangladesh. It has been working well with any Bangladeshi GSM SIM card. I just arrived in USA. Is it possible to get a Verizon GSM SIM card for my phone?


How to hide invisible parts in a translucent mesh?

It's a tricky question. I have this ghost mosquito mesh, and my goal is to only render the verticies which are currently visible from the camera view. It's an animation so cutting the invisible parts off is not an optiton. Is there a node or some masking trick what you can suggest? Thanks a lot! :)


Does anybody have PCIe (3.0) aka PCI Express module card edge connector technical drawing?

I was searching through the internet to find PCI Express card edge connector footprints / technical drawings / pin spacing / layout of the module cards that you stick in these connectors you can find on a modern PC/server motherboard.    I wasn't able to find anything so I thought I could maybe ask here? I found some for Altium Designer which I don't have access to and also I am using (Autodesk) Eagle.  If you are wondering, I wanted to create a PCIe 3.0 x8 card that could hold two M.2 NVME SSDs since I could not find this anywhere either. Everyone only sells the type that holds one NVME (PCIe) and one SATA SSD. This is not what I need.  M.2 NVME interface is basically just a PCIe x4 interface, in another form factor. Therefore I don't see a problem with making a x8 standard card for PCs/servers that could hold two of those and properly route their interfaces.  Can anyone help? Thank you!


Popup during boot up initializations: "VBoxClient: the VirtualBox kernel service is not running. Exiting"

Neither is my OS virtualized inside VirtualBox nor do I have any VirtualBox packages installed (at least no packages matching "virtual" or "vbox").  Still, on every boot up (in the end of the phase displaying the gnome foot and the 3 blinking dots) the following message pops up in the upper right corner:  VBoxClient: the VirtualBox kernel service is not running. Exiting   I believe this causes boot delays.


Split contents of comma separated cell and send to new row(s) with adjacent cell values

*Question is unique from Google sheets split multi-line cell into new rows (+ duplicate surrounding row entries) in that the parse is required in three separate columns rather than just one.  I have a google sheet that accepts order data from my online store. If the order contains one single product sale, the output looks like:      Date | Order Number | Order Name | Item | Quantity | Price   If the order contains 2 product sales, the output looks like:      Date | Order Number | Order Name | Item, Item | Quantity, Quantity | Price, Price   If the order contains 3 product sales, the output looks like:      Date | Order Number | Order Name | Item, Item, Item | Quantity, Quantity, Quantity | Price, Price, Price   And so on...  Is it possible to separate the comma deliminated contents of the cells, transpose and maintain the adjacent data like so:      Date | Order Number | Order Name | Item | Quantity | Price     Date | Order Number | Order Name | Item | Quantity | Price     Date | Order Number | Order Name | Item | Quantity | Price   For example...      9/15/16 | 1004 | Jim Johnson | Beer, Wine | 2, 5 | 20, 100   Would give...      9/15/16 | 1004 | Jim Johnson | Beer | 2 | 20     9/15/16 | 1004 | Jim Johnson | Wine | 5 | 100   Question is unique from  in that the parse is required in three separate columns rather than just one.


I am working on a project and it involves a lot of manipulating lists. I'm trying to group objects in the list together, e.g the list:   ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P"]   would become:  ["ABCD","EFGH","IJKL","MNOP"]   But I cannnot seem to find a way to do this. Please help?


Consider the vector space: $$ \mathbb{V} = \{ \ A \in M_{3 \times 3}(\mathbb{R}) \ | \ A^{T} = A \mathrm{\ and\ }\mathrm{Tr}(A) = 0 \} $$  As well as the Lie Group: $$ O(3) = \{ \ A \in M_{3 \times 3}(\mathbb{R}) \ | \ A^{T}A = A A^{T} = \mathbb{I} \} $$  Define the group action $\Phi : O(3) \times \mathbb{V} \to \mathbb{V}$ as $\Phi(A,X)= \Phi_{A}(X) = AXA^{T}$. I am to determine the group orbit$s$ of this action.  The way I am understanding this, is that I am to examine the structure of the set $$ S := \{ \ \Phi_{A}(X) \in M_{3\times 3}(\mathbb{R}) \ | \ A \in O(3), X \in \mathbb{V} \ \} $$  I know that symmetric matrices are orthogonally diagonalizable, which means that I can write $X = P D P^{T}$ for any $X \in \mathbb{V}$ (where $P \in O(3)$ and $D$ is diagonal and traceless).  This tells me that $\Phi_{A}(X) = AXA^{T} = APDP^{T}A^{T} = \Phi_{AP}(D)$, where $AP$ is just another matrix in $O(3)$. This tells me: $$ S = \{ \ \Phi_{A}(D) \in M_{3\times 3}(\mathbb{R}) \ | \ A \in O(3), D = \mathrm{diag}(a,b,c) \mathrm{\ with\ }a+b+c=0 \ \} $$  So the orbits of the whole vector space are exactly the orbits of the diagonal matrices in this subspace.  Can I narrow this down further?


How can I stack all faces of an object on top of each other in the UV Image Editor?

I've created a plane and subdivided it. Now in the UV image editor,  I want to unwrap and place all the rectangles on top of each other to share the same texture. Is it possible? If possible, please share your method.


How many rows inserted not rows executed

How can I see how many rows were actually inserted?   engine_str = 'mysql+mysqlconnector://root:mypass@localhost/mydb' engine = sqlalchemy.create_engine(engine_str, echo=False, encoding='utf-8') connection = engine.connect() query = "INSERT INTO TEST(a,b,c)VALUES(1,2,3) ON DUPLICATE KEY UPDATE B = VALUES(B), C = VALUES(C)" try:     connection.execute(query) except Exception as e:     print(e)   SQLALCHEMY just prints out this ID.  <sqlalchemy.engine.result.ResultProxy object at 0x0000000007769E80>   P.S This question is about rows insertion not row execution. So if you use rowcount it will show the number of times the query has been executed.  Rephrasing my question: Is there any way to see how many records were inserted vs updated? Ideally, I would like to know those primary keys which were updated.


Compute $\lim_{x\to 0} \frac{e^{-1/x^2}}{x}$ without using L'Hopital?

Purely out of curiosity, is it possible to compute the following limit without using L'Hopital?  $$\lim_{x\to 0} \frac{e^{-1/x^2}}{x}$$  Using L'Hopital and realizing that we cannot get what we want if we simply take derivatives of $e^{-1/x^2}$ and $x$ directly, we have that  $$\lim_{x\to 0}\frac{e^{-1/x^2}}{x}=\lim_{x\to 0}\frac{1}{x}\frac{1}{e^{1/x^2}} = \lim_{x\to 0} \frac{1/x}{e^{1/x^2}}=0$$  I am curious about whether there is a different way of computing this.


What can I do if I forgot my Windows password?

I got a brand new Windows 7 machine, installed the operating system, created one account and forgot its password. What can I do?  There is no external CD, the operating system is loaded from somewhere inside the machine.  I already tried to remember passwords and tried all candidates with all possible combinations of caps lock, num lock etc.


Would you say "case-study-rich presentation" or "case study-rich presentation"?


How can I activate an iPhone 5s locked to another person's iCloud account?

I bought a used iPhone 5s and unknowing to me it is locked to an iCloud account with a gmail address (p*****@gmail.com). I formatted the iPhone and upon activating it the iCloud prompt appears and frankly speaking I can't trace the old user of the phone. Please what can I do to activate it because i don't have a clue where the previous owner lives. Please help me because I used my savings to purchase the phone.


Let $X$ be an infinite set, i.e., there is an injection $\mathbb N \hookrightarrow X$. There is an obvious injection $X\hookrightarrow X\times X$ (just take $a\in X$ and send any $x \in X$ to $(x,a)$). Is it possible to find (explicitly) an injection $X \times X \hookrightarrow X$?  Don't know if this is helpful: $f: (m,n) \mapsto 2^m(2n+1)-1$ is a bijection from $\mathbb N \times \mathbb N$ to $\mathbb N$.


Binary data is often mentioned as a nominal sub-category, especially in such examples as female/male, smoker/non-smoker, etc. However, binary data with such values as pass/fail, correct/incorrect, absent/present, etc, seems to give some weight to its values. It's not like in the example of the gender, where both values are equal and differ primarily by the nominal and other context-related traits. Instead, this type of binary data clearly indicates that one value means something and the other means nothing.   In case of such distinction, can binary be considered ordinal? If yes, what are statistical tests that are usually used for such data? Also, are there any interesting books or papers on this case?


I've recently downloaded 7 .rar files which needs to get extracted and to output only one file. How do I to make them extract only one output and to do not extract 7 files, please?  Thanks in advance!


My 2017 13inch MacBook pro is randomly shutting down.  The battery is 82% or higher.  when I try to turn it back on I get a screen with a battery that looks like it needs charging.  I have to connect to power to turn it back on.  when I do this the battery has the same charge of 82%. Is my computer dying after only 3 years?


When I refresh my feed in the stack exchange Android app, I'll get everytime a new blog post entry about stack overflows top navigation. That's annoying and I don't think it is how it should be.     App version: 1.0.89 Samsung Galaxy S5-mini Android: 5.1.1


Changing font size of legend and adding dotted lines in pgfplots

I have the following code: \documentclass[11pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{booktabs,siunitx} \usepackage{pgfplots} \pgfplotsset{width=10cm,compat=1.9} %\usepgfplotslibrary{external} %\tikzexternalize \begin{document} \begin{center} \begin{tikzpicture} \begin{axis}[     title={$x-t$ graph model of LAB 1},     height=10cm,     width=10.2cm,     xlabel={time ($t$)},     ylabel={position ($x$)},     xmin=0, xmax=10,     ymin=0, ymax=12,     xtick={0,1,2,3,4,5,6,7,8,9,10},     ytick={0,2,4,6,8,10,12},     legend pos=south east,     ymajorgrids=true,     grid style=dashed,     legend entries={$x$,$x^2$},         legend style={             at={(1.03,0.5)},             anchor=west} ] \addplot[     color=blue,     mark=square,     ]     coordinates {     (0,0)(1.48,2)(2.76,4)(4.02,6)(5.22,8)(6.43,10)(7.76,12)     }; \addplot[     color=red,     mark=square,     ]     coordinates {     (0,0)(1.66,2)(3.21,4)(4.76,6)(6.32,8)(7.81,10)(9.47,12)     }; \addplot[     color=green,     mark=square,     ]     coordinates {     (0,12)(1.53,10)(2.94,8)(4.53,6)(5.95,4)(7.36,2)(8.83,0)     }; \addplot[     color=black,     mark=square,     ]     coordinates {     (0,12)(1.80,10)(3.46,8)(4.94,6)(6.49,4)(8.20,2)(9.85,0)     }; \legend{Trail 1 (fast and $+$), Trail 2 (slow and $+$), Trail 3 (fast and $-$), Trail 4 (slow and $-$)} \end{axis} \end{tikzpicture} \end{center} \end{document}  which produces the following:  I have two questions: How do you change the font size of the text in the legend? Also, how do I made the line segments shown dotted? I want to add a line of best fit, so I want the line segments shown to be dotted. Thanks!


When I pedal they keep shifting forward randomly but not moving the bike forward

When I try to pedal fast or hard or just put any sort of pressure to move the pedals foward they seem to give out, randomly jerking forward and not making the bike wheel move.       Does anyone know what it may be?


What is wrong with my code that creates a static data member?

I am just coding various scenarios for static, const and global variables, to see where they work and where they don't.  Following code is giving me weird collect2: error: ld returned 1 exit status.  Code:  #include <iostream> #include <string> #include <vector>  using namespace std; const static int gl = 4; class Static{     private:             int nonStatic;             const static int count = 10;             //constexpr static string str;             static vector<string> svec;     public:             static vector<string> initVector();             void printVector();             Static(int s=0): nonStatic(s){}             ~Static(){}  };  vector<string> Static::initVector() {         for(int i=0; i<5; i++)     {             string str;             cin>>str;             svec.push_back(str);     } }  void Static::printVector() {     for(auto const i: svec)             cout<<i; }  int main() {     Static state(4);     return 0; }   It shows the following ld error message:  /tmp/ccsX2Fre.o: In function `Static::initVector[abi:cxx11]()': StaticTests.cpp:(.text+0x4e): undefined reference to `Static::svec[abi:cxx11]' /tmp/ccsX2Fre.o: In function `Static::printVector()': StaticTests.cpp:(.text+0xc4): undefined reference to `Static::svec[abi:cxx11]' collect2: error: ld returned 1 exit status


Prove that $\int_{-\infty}^{\infty} \frac{e^{2x}-e^x}{x (1+e^{2x})(1+e^{x})}\mathrm{d}x=\log 2$

This integral popped up recently  $$\int_{-\infty}^{\infty} \frac{e^{2x}-e^x}{x (1+e^{2x})(1+e^{x})}\mathrm{d}x = \log 2$$  A solution using both real and complex analysis is welcome. I tried rewriting it using symmetry, and then the series expansion of $1/(1+e^{nx})$, however this did not quite make it.   \begin{align*} I & = 2\int_{0}^{\infty} \frac{e^{2x}-e^x}{x e^{3x}(1+e^{-2x})(1+e^{-x})}\mathrm{d}x \\ & = 2 \int_{0}^{\infty}\frac{e^{-2x} -e^{-x}}{x} \left(\sum_{n=0}^\infty  (-1)^n e^{-n x}\right)\left(\sum_{m=0}^\infty (-1)^me^{-2mx}\right) \mathrm{d}x  \end{align*} The first part reminds me of a Frullani integral (it evaluates to $\log 2$). However I am unsure if this is the correct path, any help would be appreciated. =)


For Python list, is append() the same as +=? I know that + will lead to the creation of a new list, while append() just append new stuff to the old list. But will += be optimized to be more similar to append()? since they do the same thing.


Why can a database table have only one primary key?

A database table can only have one primary key not two or more .. why is that so?


Remote Desktop switches to Chinese on ctrl+space

I have Windows XP on my laptop and use Remote Desktop Connection to work on a computer with Windows Vista. On my laptop I use 3 languages: English, Russian, Chinese. I switch between them by Alt+Shift, changing to Chinese with Ctrl+Space is disabled. On the remote computer there is only one Language on the Installed services list - English. For some reason, when I press Ctrl+Sapce on that computer (e.g. for autocomplete in NetBeans) it switches to Chinese (language bar at the bottom shows 'CH') and I cannot input anything. This never happened until today (before I worked on that computer from my laptop without any problems).  Does anyone know how to solve this problem? Any help is greatly appreciated.  UPD: in Advanced Key Settings there is no action for Ctrl+Space on both computers.


Conference presenting: stick to initial paper submission or include recent improvements?

I submitted a paper for a conference. While the paper got submitted for publication in the proceedings, the feedback seemed quite negative. The main criticism was that the model I have designed uses too many simplifications.  I am giving a presentation at the conference in about a week and a half. Since I submitted the original paper I have achieved a significant amount, and have been able to improve my model and deal with a number of the simplifications.  My question is: for the presentation content, do I have to stick with the work that is going to be published, or can I also present some of the more interesting, newer work?  For reference, my field is engineering (renewable energy)


I am confused why the following does not evaluate to true. How do I compare whether two objects are the same?  var x = new Object(); var y = {}; x == y // false  function Person(name) {   this.name = name; }  var p1 = new Person("Chris"); var p2 = new Person("Chris"); p1 == p2 // false


I am facing this problem on my samakal blog Google search console is showing this message "URLs for your site and alternate URLs in 'BN' that do not have return tags." How can I fix it easily?


Inequality for continuously differentiable function

Let $f\colon[0,1]\to\mathbb{R}$ be continuously differentiable on   $[0,1]$ and satisfy $f(1)=0$. Show that $$\int_0^1|f(x)|^2dx\leq4\int_0^1 x^2|f'(x)|^2dx.$$   Since $f$ is differentiable on $[0,1]$, I can use mean value theorem -- there exists  $\xi$ such that $$f'(\xi)=\frac{f(1)-f(0)}{1-0} = -f(0).$$  Unfortunately, I can't proceed further with the solution and have no clue how to use continuity of derivative. Any hints?


Are $I\otimes_{R}J$ and $IJ$ isomorphic as $R$-modules?

Let $I$ and $J$ be ideals of a commutative ring $R,$ considered as $R$-modules. The product ideal $$IJ=\left\{\sum_{i=1}^{n}a_{i}b_{j}:n\in\mathbb{N},a_{i}\in I,b_{j}\in J\right\}$$ is also an $R$-module. Question: Is it true that $I\otimes_{R}J\cong IJ?$ This seems intuitive to me, since I like to think of the tensor product $M\otimes_{R}N$ as "sums of things of the form $m\otimes n$ where $m\in M$ and $n\in N,$" and this sounds a lot like a description of $IJ.$ I came up with the following (now seen to be incorrect) argument, which originally I had posted as an answer:  Let $f\colon I\times J\to IJ$ be given by $(a,b)\mapsto ab.$ This is an $R$-bilinear map, so there exists a (unique) corresponding $R$-linear map $h\colon I\otimes_{R} J\to IJ$ with $h(a\otimes b)=ab.$ We would like to prove that this map $h$ is bijective. To prove that $h$ is surjective: the element $\sum_{i=1}^{n}a_{i}b_{j}\in IJ$ is mapped to by $\sum_{i=1}^{n}a_{i}\otimes b_{j}.$ To prove that $h$ is injective, we consider its kernel. Suppose $x=\sum_{i=1}^{n}a_{i}\otimes b_{j}\in I\otimes_{R}J$ is such that $h(x)=0.$ Letting $y=\sum_{i=1}^{n}a_{i}b_{j}\in IJ,$ we see that $$x = \sum_{i=1}^{n}(a_{i}b_{j}\otimes1) = \left(\sum_{i=1}^{n}a_{i}b_{j}\right)\otimes1 = y\otimes 1.$$ Therefore $h(y\otimes1) = 0.$ But by the defining property of $h$ we have $h(y\otimes 1)=y\cdot1=y,$ whence $y = h(x) =0.$ Therefore we must have had $x=0\otimes 1=0$ all along, so the kernel of $h$ is trivial and this completes the proof.  However, the above argument does not work, as pointed out to my by @xyzzyz, since we don't know that $1\in J$ (and indeed this is true if and only if $J=R,$ which changes the nature of the question).


I have a folder with multiple sub-folders and files. They are all similar in name but the only difference is the patient's number  Example  Analysis/Patient_01/Brain/image_patient_01_merged.nii Analysis/Patient_02/Brain/image_patient_02_merged.nii Analysis/Patient_03/Brain/image_patient_03_merged.nii . . .   and so on.  In the main folder (Analysis) I want to make a script to do the same thing for each .nii file in a loop.  example   fslstats image_patient_01_merged.nii -M fslstats image_patient_02_merged.nii -M fslstats image_patient_03_merged.nii -M . . . .   In other words, I need to do the same analysis on the nii files in each subdirectory.


What does it do exactly if I click in the window of cmd?

Suppose I run cmd.exe and ping localhost. After that I ping localhost again but I click into the window and the ping stops until I press enter.  What happens exactly when I click into the window? Does it suspend the process or something else? I attached a screenshot to clarify this issue.  Note: I do not actually click but drag using the mouse which creates a white box in the window as you can see on the screenshot.  Edit: further clarification: What I really wish to know is whether dragging the window halts the cmd process or not?  Edit: even more clarification: I know that I'm using Quick Edit and pressing enter copies the contents I selected. What I do not know is what happens in the background.


I want to be able to pull in the error log from BIOS across a network. Looking at Win32_BIOS in MSDN I did not see anything defining the error log. Would love to do this in C# with WMI, but am open to suggestions. Is it possible?  Win32_BIOS does not have a property (don't know if that is the right term) that contains the BIOS error log. Is there a library, API, etc. that I can use to pull this information locally or from the network?


How to create an ACF shortcode with Repeater Field in WordPress?

I want to create a shortcode using ACF Repeater Field and so I've found this code and when I tried to apply it on my website it doesn't work. Am using genesis frame work.   my aim is create a shortcode using ACF Repeater Field and display table in post or page.  Here is my code in functions.php:      function menu_loop () {       echo    '
'; // check if the repeater field has rows of data         if( have_rows('menu_sections') ):              // loop through the rows of data             while ( have_rows('menu_sections') ) : the_row();                  // display a sub field value                  echo '
' . get_sub_field('section_title') . '
';                 if ( have_rows('sections_items'));?>

                                 Name	                                 Description	                                 Price

                        <?php while (have_rows('section_items') ): the_row(); ?>
                             <?php the_sub_field('dish_names'); ?>	                             <?php the_sub_field('dish_description'); ?>	                             $ <?php the_sub_field('dish_price'); ?>
                      <?php endwhile;?>
 <?php               endwhile;           else :               // no rows found          endif; ?>
 add_shortcode('testimonials', 'menu_loop');


I am 14 year old I want to learn physics up to a level where I can invent stuff. I want to be an inventor so I need to learn Mechanical physics at the moment. I am comfortable with both mathematical approach and principle approach. Books I should use and how I should learn like what things to study before studying calculus. I mainly want someone to tell which thing to learn first and which to study later.


I've downloaded en_windows_10_education_version_1703_updated_march_2017_x64_dvd_10189297.iso from the Windows imagine portal. I'm reading that the image can be booted from a usb so I've tried using dd.  With the following command:  sudo dd bs=4M if=en_windows_10_education_version_1703_updated_march_2017_x64_dvd_10189297.iso of=/dev/sdc  status=progress   That doesn't work when I try to boot into the usb, so I also tried replacing /dev/sdc/ with /dev/sdc1.  My computer is setup to first boot with utfi and then legacy.  Is there something else I can try to get this working?


In granulometry, say I have a tube with an heterogeneous mix of particles of different sizes (sand and stones, by instance). The tube is vertical in the usual gravity field and is placed in the air. If I randomly  shake the tube, the smallest particles will eventually be at the bottom, and the largest ones at the top. So the particles are now sorted by size. Why?  A friend of mine considers a volume of the bottom part of the tube has a greater density (or mass) than of the top's. And denser things go downward.  I consider however, by shaking the particles, small ones can fall through the space left between larger ones.  What is the correct explanation?


Where do the timelines of X-Men: The Last Stand and X-Men: Days of Future Past lie exactly?

In X-Men: The Last Stand, we saw that Wolverine kills Jean Grey and Scott Summers was killed. Later, In The Wolverine, Logan recovers from his past. However, in X-Men: Days of Future Past, Scott Summers and Jean Grey were there (who were killed in Last Stand). This movie is the sequel of X-Men Last Stand. If this is so, then why does X-Men: Days of Future Past show Jean and Scott alive? Where does the timeline of both movies lie exactly?


jquery datepicker ms ajax updatepanel doesn't work after post back

So I did some reading of the related questions and had some interesting stuff but did not find my answer, at least did not understand the answer.  I am very new to AJAX, javascript and sclient side scripting in general.  I have been using C# asp.net for a bit and recently added some updatepanels to my side to smooth so of the user controls and bits being updated so that the page was not reloaded each time.  All works brilliantly and I was very happy with it till I decided to try and use some JQuery.  I have picked up the datepicker from ui.jquery.js which is cool and works great on a normal page.  My problem arrives when I do a postback from within an updatepanel.  The datepicker just stops working.  from what I have read I need to manually wire this back up after the post back.  1)  I don't really understand why.  on my master page I have:     which picks up my input boxes with the mydatepickerclass assigned. and all works.  Why would this stop working on the postback.  2)  How do I fix this.... how do I wire it up so that after a postback in an updatepanel it still works.  I understand that the ID might change on a postback, I think but as I am using classes I don't know what is going wrong.  edit  I have the following code in my usercontrol where the update is happening:  <asp:UpdatePanel ID="HistoryUpdatePanel" runat="server"> <ContentTemplate>     <%-- Start of Company History section --%>     <fieldset>         <legend>Activity History</legend>
             <asp:ListBox ID="listBoxHistoryTypes" runat="server" SelectionMode="Multiple" AutoPostBack="true" OnSelectedIndexChanged="listBoxHistoryTypes_IndexChanged" />             Date From:<asp:TextBox class="mydatepickerclass" ID="txtdatefrom" runat="server" />             Date To:<input class="mydatepickerclass" type="text" />             <asp:TextBox class="mydatepickerclass" ID="txtdateto" runat="server" />             <asp:Button ID="btnFilterSearch" runat="server" Text="Filter Results" OnClick="btnFilterSearch_Click" />
       </fieldset> </ContentTemplate>     Does the script inside the updatepanel not rewire it?  Thanks  Jon Hawkins


Is the function $f(x)=|x|^{1/2}$ Lipschitz continuous?

Is the function $f(x)=|x|^{1/2}$ Lipschitz continuous near $0$? If yes, find a constant for some interval containing $0$.   I think the answer is yes since I can find $L=1$ that satisfies Lipschitz continuity criteria in a interval close to $0$, am I right?


when running sudo apt install python3-tk I get the following: Building dependency tree        Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies:  gitkraken : Depends: gconf2              Depends: gconf-service  python3-tk : Depends: blt (>= 2.4z-9) but it is not going to be installed               Depends: libtcl8.6 (>= 8.6.0) but it is not going to be installed               Depends: libtk8.6 (>= 8.6.0) but it is not going to be installed               Depends: tk8.6-blt2.5 (>= 2.5.3) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).  I then run apt --fix-broken install which gives me the following message: E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?  When running sudo apt install python3-tk again I get the same result. Just to see what happens and to see if I get the same result i tried pip3 install blt which succefully installs blt but doesn't change anything about the first message I get. I'm quite new to Ubuntu and I don't know what to do. I would appreciate It very much if someone could help me out. lsb_release -a: No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 20.04.1 LTS Release:    20.04 Codename:   focal  This is all happening in a anaconda environment with python v3.6. I am using VirtualBox to run Ubuntu.


Is there any way to sort non stackable Items in minecraft?

I am making a automatic item sorter for the piglins but you get non-stackable items and i want to seperate these non-stackable items so there may be in 1 chest splash pot of fire resis but in the other chest there may be regular fire pots.


I just got my 3rd Yearling badge on SO. I have 602 points there. According to the description that means I got 200 points in a year 3 times. I have been active for 3 years and 4 months but just got my badge a few days ago when I broke 600. My question is does this mean that my 600 points were split exactly 200 points a year? How is it possible to be a user for 3 years and four months with exactly 600 points and get three badge? For example if I joined on Aug 2011 then lets say here is my point accumulation stats: Aug 2011 - Aug 2012: 200 points, awarded badge. Aug 2012 - Aug 2013: 200 points (total of 400), awarded badge. Aug 2013 - Aug 2014: 150 points (total of 550), not awarded badge. Aug 2014 - Dec 2014: 50 points (total of 600), awarded badge, why??


How do I get from the eigenvectors of the covariance matrix to the regression parameters?

I have a linear regression problem  $$    y = a x + b$$  with errors on $x$ and $y$ that are uncorrelated and unitary and I have to find $a$ and $b$. To do this, I want to use principal component analysis (PCA):   Calculate the $n \times 2$ matrix $D = ( x' y' )$, where $x' = x - \langle x \rangle$ and $y' = y - \langle y\rangle$. Calculate the covariance matrix of the transformed data $C = D^T D$. Calculate the eigenvectors and eigenvalues of $C$ using SVD.   How do I find $a$ and $b$ from the eigenvectors of $C$?


Piping find -name to xargs results in filenames with spaces not being passed to the command

Normally to remove files with spaces in their filename you would have to run:  $ rm "file name"   but if I want to remove multiple files, e.g.:  $ find . -name "*.txt" | xargs rm   This will not delete files with spaces in them.


Name of this recursively defined sequence of prime numbers?

I was wondering if the following sequence has a name:  Let $P$ be the set of prime numbers, and $p: \mathbb{N} \rightarrow P$ be the (increasing) enumerating function of the set.  Let's define $\alpha_1 = 2, \alpha_{n+1} = p(\alpha_n)$, i.e.,the $\alpha_n-$prime number.  Is there a name for this sequence? The first terms are $2,3,5,11,...$  I know they code one-branch-trees in  (in fact that's why I'm interested in them)


I've heard that the phrase If there was/were can be used in the sentences. But I don't know exactly how to use it in sentences. Although I don't know its exact usage, I've tried to use it in the sentences below:   If there was a quite a silence at the market, it wouldn't be market. If there were brotherhood between we brothers, we wouldn't have needed to live separately. If there were more employees at this company, the company would get more benefits. If there was a mistake in my writing, please correct it for me.   Could you please tell me its correct way to use this phrase? Or there's different usage of this phrase?


How can I prevent the "unable to resolve repository" apt installation failure?

How can I avoid getting the error:  Could not resolve 'us.archive.ubuntu.com'   when executing the command:  sudo apt-get install [package name]


How can I use another script from a script?

The first script is very long, and I need to use only the top of it:  using System; using System.Collections; using System.Collections.Generic; using UnityEngine;  public class mBitmap2MeshV30a : MonoBehaviour {     public Texture2D SourceTexture;      private float Pixel_vs_Unit_Scale = 1;       public float extrudeDepth = 1;      private Vector2 scanpoint;     private bool gotStart = false;     private int maxsteps = 512;      public bool invertFaces = false;     private Mesh srcMesh;     private mMeshExtrusion2.Edge[] precomputedEdges;     private List<ExtrudedTrailSectionBM3> sections;      public class ExtrudedTrailSectionBM3     {         public Vector3 point;         public Matrix4x4 matrix;         public float time;     }   I need to assign a value to SourceTexture from another script. This is the other script:  void Start () {     text2d = new Texture2D(10, 10, TextureFormat.ARGB32, false);     System.Drawing.Font myf = new System.Drawing.Font(FontFamily.GenericSerif, 12);     Image myimage =  DrawText("Hello", myf, System.Drawing.Color.Red, System.Drawing.Color.Black);     Bitmap mybitmap = new Bitmap(myimage);      MemoryStream msFinger = new MemoryStream();     mybitmap.Save(msFinger, mybitmap.RawFormat);      text2d.LoadImage(msFinger.ToArray());     filter.GetComponent<Renderer>().material.mainTexture = text2d;      mBitmap2MeshV30a bb = new mBitmap2MeshV30a();     bb.SourceTexture = text2d; }   The problem is I can't make a new mBitmap2MeshV30a bb = new mBitmap2MeshV30a();. Both scripts are attached to the same GameObject, in the hierarchy.


Use of different output files in LaTeX (pdflatex)

When I use pdflatex, I get a bunch of files:  test.aux   test.log   test.out   test.pdf   test.tex   test.toc   The .tex file and the .pdf file have an obvious use, but what do the other files do?  Thanks in advance.