How to solve "Mismatched LaTeX support files" problem permanently

Background I updated my TeX Live installation on my Mac a while ago and got the error LaTeX3 Error: Mismatched LaTeX support files detected. I found a solution at .  As far as I understand it (which isn't very far), there are system formats and local formats, and TeX Live is updating the wrong one.  The fix is to update the formats. Using fmtutil-user --all worked for me.  It spewed out a load of stuff, then output fmtutil [INFO]: log file copied to: /Users/<user>/Library/texlive/2020/texmf-var/web2c/luatex/dvilualatex.log fmtutil [INFO]: /Users/<user>/Library/texlive/2020/texmf-var/web2c/luatex/dvilualatex.fmt installed.  I don't know what this tells me, but my TeX Live preferences has TeX programs set at /Library/TeX/texbin, which seems to be a link to /usr/local/texlive/2020/bin. Problem Every time I update TeX Live, I have to apply the solution again. Question Is there a way to make TeX Live use the correct formats permanently so that I don't have to keep running fmtutil-user --all after every TeX Live update?  Extra information  to  check if you have some local formats around which hide the system formats. (with eg kpsewhich --all --engine=pdftex pdflatex.fmt)  When I did that, it output /Users/<user>/Library/texlive/2020/texmf-var/web2c/pdftex/pdflatex.fmt /usr/local/texlive/2020/texmf-var/web2c/pdftex/pdflatex.fmt  but I don't know what that's telling me.


Regarding Nested functions in Javascript

I am going through Head First JavaScript to understand nested functions. Below is the code I am failing to understand.  var migrating = true; if (migrating) {     quack(4);     fly(4); }  var fly = function(num) {     var sound = "Flying";     for (var i = 0; i < num; i++) {         wingFlapper();     }     function wingFlapper() {        console.log(sound);     } };  function quack(num) {     var sound = "Quack";     for (var i = 0; i < num; i++) {         quacker();     }     var quacker = function() {         console.log(sound);     }; }   The book says "quacker is defined by a function expression in the function quack. So its scope is the entire quack function but it’s defined only after the function expression is evaluated, until the end of the function body." So I am calling the function before its evaluated so shouldn't it throw an exception or I am not understanding the concept?


Seeking open source bulk US DEM or imagery?

I am looking to create terrain hillshading for my maps that contain a small region of the US. I intend to show about eight to ten states at a time (at about ~1:5,000,000 scale).   It has been some time since I created a map, but if I recall correctly, I believe the options are to either use imagery or a DEM.  Either way I still face a problem:    The raster data I have found (Natural Earth) is not of sufficient quality. I cannot find a bulk download option anywhere for open source DEM data or imagery such as the SRTM.    An example of the what I am trying to accomplish is below   (source: )


Arrange $m$ people in $m+r$ seats around a round table.

The answer is, according to the book: $(m-1)!\cdot \binom{m+r-1}{r}$ I get why this is true. You arrange $m$ people in their seats in $(m-1)!$ ways and then you put $r$ empty spots inbetween them.I was thinking - choose $m$ seats out of $m+r$ to put the people on => $\binom{m+r}{m}$ Arrange them once you've chosen the seats $\to (m-1)!$ So in total: $\binom{m+r}{m} \cdot (m-1)!$ This is obviously not true. What's wrong with the way I'm thinking?


Sending Document to drop off library won't kick off Content Organizer Rules. SP 2010

I would like to move 12000 documents (with attached metadata) to a cross-site library. I planned to do it by utilizing Content Organiser Rule.  My issue is when I move/copy document to the Drop Off library via a Workflow, the Rule I created won't kick off and document just stays in that Drop Off Library.  Ps: If I upload and submit a document to drop off library the rule kicks off without problems.


"Review queues" button spots an "attention badge" even while you are review banned

Possibly only during the last [your timezone - SO timezone] hours of ban, but, for obvious reasons, that's hard to verify as an end user.  Update, as I fell for an attention test with a too-short late answer again: it seems likely that this shows up when the the icon usually lights up to invite you to review because there are too many items in the review queue(s)


I would like to create a show/hide button that appears on a typeset PDF so that when it is clicked, the content appears. This is similar to the ideas here:  and here: , but I would like the option to show up in the PDF itself as a simple button that could be clicked (or something similar) Ideally, this would end up looking something like this:  \documentclass{article} \newcommand{showhide}[1]{Does what I am describing}  \begin{document}  \showhide{Displays a button, that when clicked, shows this text and when clicked again, hides this text.}  \end{document}   Anyone know how do do this, or something similar?


How big is "too big" for an airline seat? At what point will you be required to buy two tickets?

As I said in another question, I'm bringing my parents to visit me here in Sweden next year.  My mother is around 280-300 pounds and 5'6" (130-135kg, 1.67m). I am concerned that she might be asked at the airport to buy a second seat. If it's likely I would rather just buy the second seat in advance, because I don't want her to be embarassed/humiliated by some random employee. As well, I won't be there, they will be travelling alone and aren't used to dealing with airports and they won't know what their rights are.  In terms of how it will affect other passengers, it's not important, she will get a window seat and my dad will sit in the middle seat, so I don't see it affecting anybody.   She insists it's fine, "the last time I flew I fit easily!" but that was 20 years ago when she was half the size.   They will be flying BA or SAS, definitely not Ryanair.  So - where is the cutoff? Is a 300 pound 5'6" woman going to be too big to fit in a single airline seat? Or am I worrying about nothing?


@Valorum said     ...not to mention the sheer strain that comes from continually using the Force at an advanced age.   To my feeble mind, this doesn't make sense. Approaching 900 years old, Yoda is still as strong as any whippersnapper in terms of Force power and usage. Despite his old age, Obi Wan shouldn't have any problems with using his Force powers.  This got me to thinking, does the Force begin to leave you as you age? Is it a flow of Force power that goes down based on (I hate to say this) a decrease in midichlorian count as you approach your expiration date?


I'm still new to ZFS. I've been using Nexenta but I'm thinking of switching to OpenIndiana or Solaris 11 Express. Right now, I'm at a point of considering virtualizing the ZFS server as a guest within either ESXi, Hyper-V or XenServer (I haven't decided which one yet - I'm leaning towards ESXi for VMDirectPath and FreeBSD support).   The primary reason being that it seems like I have enough resources to go around that I could easily have 1-3 other VMs running concurrently. Mostly Windows Server. Maybe a Linux/BSD VM as well. I'd like the virtualized ZFS server to host all the data for the other VMs so their data could be kept on a physically separate disks from the ZFS disks (mount as iscsi or nfs).  The server currently has an AMD Phenom II with 6 total cores (2 unlocked), 16GB RAM (maxed out) and an LSI SAS 1068E HBA with (7) 1TB SATA II disks attached (planning on RAIDZ2 with hot spare). I also have (4) 32GB SATA II SSDs attached to the motherboard. I'm hoping to mirror two of the SSDs to a boot mirror (for the virtual host), and leave the other two SSDs for ZIL and L2ARC (for the ZFS VM guest). I'm willing to add two more disks to store the VM guests and allocate all seven of the current disks as ZFS storage. Note: The motherboard does not have IOMMU support as the 880G doesn't support it, but I do have an 890FX board which does have IOMMU if it makes a huge difference.  My questions are:  1) Is it wise to do this? I don't see any obviously downside (which makes me wonder why no one else has mentioned it). I feel like I could be making a huge oversight and I'd hate to commit to this, move over all my data only to go fubar from some minute detail I missed.  2) ZFS virtual guest performance? I'm willing to take a small performance hit but I'd think if the VM guest has full disk access to the disks that at the very least, disk I/O performance will be negligible (in comparison to running ZFS non-virtualized). Can anyone speak to this from experience hosting a ZFS server as a VM guest?


I am trying to select in my regex only what is between `<` and `-`

I am trying to select in my regex only what is between < and -  Regex  <(.*)-   STRING  <SM1-SRVNET-P:Sys   OUTPUT  SM1-SRVNET   Desired Exit  SM1


Find which date is missing in the results

Here is my ticks (timeclock) table:  _id_ #employee_id   created_at   This table stores, for each employee, the timestamp they tick. Sometimes some of them tick multiple times a day, some only once or none at all when they didn't come to work.  I have a query which allows me to know exactly how many times an employee wasn't at work during the last 7 days, but I would like to have in the results the days they didn't work. Which means, every employee who worked less than 6 days in the last 7 days, and which dates are missing. And I have no clue.  Here is how I query who was absent more than once during the last 7 days, and how many times:  SELECT `id`, `employee_id`, COUNT(`date`)-6 missing FROM (     SELECT `id`, `employee_id`, DATE(created_at) date     FROM `ticks`     WHERE `created_at` >= '2017-09-16' AND `created_at` < '2017-09-23'     GROUP BY `employee_id`, `date` ) ticks GROUP BY `employee_id` HAVING missing < 0   Based on that or another query, I would like to know which date is missing in that range (by the way, I can get the range from another query, there is always at least 1 tick per day, even on Sunday).  Here is an  with an example dataset. The results I'm expecting, would be:  +-------------+--------------+ | employee_id | date_missing | +-------------+--------------+ |           2 |   2017-09-18 | |           2 |   2017-09-19 | |           3 |   2017-09-20 | +-------------+--------------+


Change name on the main Stack Exchange profile

I was able to change my name on all Stack Exchange sites, but not on the main profile at  itself.  Is there a ways to do the change on  as well?


What is the correct way to handle significant figures when calculating compound uncertainties?

When processing experimental data, and calculating an uncertainty value in multiple steps, should intermediary uncertainties be used to a certain number of  or kept to the full precision allowed by the calculator/computer?  I have a number of measured values and their associated uncertainties, and I have processed this data to give me a final value and uncertainty without ever limiting significant figures in either the values or uncertainties at each step. Is this the correct way to go about this?


I am trying to format the chaptertitles in my dissertation, but titlesec doesn't seem to work...     \documentclass[12p]{report} \usepackage[T1]{fontenc} \usepackage{fontspec} \usepackage[utf8]{inputenc} \setmainfont{Times New Roman} \usepackage{newunicodechar} \newunicodechar{ő}{\H{o}} \newunicodechar{ű}{\H{u}} \PassOptionsToPackage{defaults=hu-min}{magyar.ldf} \usepackage[magyar]{babel} \usepackage[autostyle]{csquotes} \DeclareQuoteStyle{magyar}{,,}{''}{>>}{<<}  \usepackage{newtxtext,newtxmath} \usepackage[a4paper, margin=2.5cm]{geometry} \renewcommand{\baselinestretch}{1.5} \usepackage{titlesec}  \titleformat{\chapter}[block] {\normalfont\chapfnt\bfseries}{\chaptertitlename\ \thechapter}{12pt}{}  \begin{document} \title{TITLE OF MY DISSERTATION} \author{My name}  \maketitle  \include{chap1}  \end{document}   THe chap1 file: \chapter{Very very long chapter title to appear in multiple line in the begining of the chapter}  And my titles look like this:  Basically, I would want my chapter title to begin in the same line as the label, 12 point, times new roman, standard stuff, but for some reason, this code doesn't work. Any help is greatly appreciated!!


I am currently having issues with a very long tabular which I had to divide across several pages (for my purposes \table did not work) and which I now want to show up in the list of tables. Is there a good way of doing this? I tried to add \table in front of \tabular, but this turned out horrible in my landsacpe environment (with no options to fix, at least not for me). Is there a smooth way of getting this done?  I would be very very greatful for any advice, as I have been trying several things unsuccessfully.


Limit $\lim\limits_{n\to\infty}\left(\sum\limits_{k=1}^{n}\frac{1}{\sqrt{k}} - 2\sqrt{n}\right)$

Let $x_n=1+\frac{1}{\sqrt 2}+\frac{1}{\sqrt 3}+.......+\frac{1}{\sqrt n}-2\sqrt{n+1}$   I got to know form comment that $x_n$ is increasing sequence. is there any way to prove limit of sequence.   Any help will be appreciated.


From the terminal I type: ssh user@ip and then it prompts for a password.  Is there a way to specify the password in the ssh command itself?


I'm writing this in my script. It has other parts but I'm getting stuck on this part only.   if [[$# == $year $month $day  ]] ; then     cal $day $month $year fi   When I run this it give me this msg:  [[3: command not found   So what is the problem? is it a syntax or actual command?  Here's the rest of my script if that helps:  year=$(echo "$year" | bc) month=$(echo "$month" | bc) day=$(echo "$day" | bc)  if [[$# == $year $month $day  ]] ; then         cal $day $month $year fi


Books for self-studying time series analysis?

I started by Time Series Analysis by Hamilton, but I am lost hopelessly. This book is really too theoretical for me to learn by myself.   Does anybody have a recommendation for a textbook on time series analysis that's suitable for self-study?


How to remove all items containing a string in Windows registry?

I am trying to remove all reference to 'Business Objects' on my machine as my previous install was not right and doesnt give option to uninstall.    I am able to delete one by one with find next (F3 => and delete), but this takes long time.  Is there a good way to search all references and delete them all at a time?  I am on Windows 2008 Server R2.


Consider the following text (incidentally, part of a MySQL dump):   CREATE TABLE `table` (   `id` int(10) NOT NULL auto_increment,   `name` varchar(100) NOT NULL default '',   `description` text NOT NULL,   PRIMARY KEY  (`id`),   FULLTEXT KEY `full_index` (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */;   I would like to remove the FULLTEXT key, and I also want to remove the trailing comma on the line above so that the SQL remains valid.  Can anyone come up with (and explain) a sed recipe to do this?


Evaluate the integral: $\int_{0}^{1} \frac{\ln(x+1)}{x^2+1} \mathrm dx$


Why can't electric field lines intersect each other?

I just saw this on my textbook but I didn't quiet understand the thing can someone give an easy explanation.... Thanks


I need to show that if $n$ is not a prime power,then $\mathbb{Z}/\mathbb{nZ}$ admits idempotents $\neq 0,1$   I noticed this thing for $\mathbb{Z_6}$ and $\mathbb{Z_{12}}$ and few more but how do we show that there will always exists such $a$?


I have a rooted phone, and I was playing around with Terminal Emulator. I tried writing a simple shell script (test.sh) :  #!/bin/sh echo "Hello, World!"    Then I opened terminal emulator, cd'd to the directory my script was in, and typed:  ./test.sh   and I got a  "permission denied"  error. So I tried:  su ./test.sh   Somehow, still permission denied. So I tried (still as root) :  chmod 775 test.sh busybox chmod 775 test.sh busybox chmod +X test.sh   None of the 3 gave errors, but ./test.sh still gave permission denied!  As a last resort I tried  sh test.sh   That ended up working. Finally.   I'm curious why permission was denied for my own shell script chmodded to 775 when run as root. How can permission be denied for anything as root? How can I fix this and make ./test.sh work?


We can assume that A is $n{\times}n$ matrix. Prove that  $$\det(A^{-1})=\frac{1}{\det(A)}$$  We know that $AA^{-1}=I$.   If someone could provide some insight on how to prove this that would be much appreciated  Thanks,  Tuki


Anyone else experience a major slowdown in test execution?  I have approximately 300 test methods that I run daily.  What used to take 40-60 minutes now takes 2-3 hours, and the slowness is also causing inbound changesets to fail since some now exceed the time limit allowed.  I've run the "slow" tests in the sandbox and they run in well under 60 seconds, so there's no issue with the test classes themselves...  Anyone else having this issue?


Deleting question causes loss of answerers' reputation

I was quite baffled by what happened yesterday. On Worldbuilding Stack Exchange there was a line of questions, revolving around alchemists and spoons. Given that it was quite fun, these became quite popular. However,  has been deleted, probably because some people thought they'd have to exert control over the content. Well, I gave an answer which yielded me quite a lot of points... until the question was deleted, which caused me to lose all of them.  The question is this:  What is the reasoning behind punishing answerers for deleted questions? What if an additional aspect is that the question had 40 upvotes which indicates a publicly accepted good question, and was deleted by a moderator?    The points were granted, the questioneer may have gotten the answers he/she was looking for - everybody involved put in effort, and everybody was rewarded who earned it. And all of that can be undone arbitrarily at any time, as it seems (but let's ignore that).  Imagine you work 12 months, earned your paychecks, and then the business is shut down for whatever bureaucratic reason. Now the state is taking your 12 months of wage along with destroying the business - to "undo" your work.  How is this justified? Is the reasoning as simple and technical as "the system just counts existing answers and questions"?


Bash Script To Remove RAW Files Which Don't Have A Corresponding JPEG File

I'd shoot my camera in RAW/JPEG mode, and since the RAW images are huge (in file size), it takes forever to preview them so I preview the JPEGs, and delete those which I don't want.  For instance, if I have:  image1.CR2 image1.jpg image2.CR2 image2.jpg image3.CR2 image4.CR2 image5.CR2 ...   I'd like to delete the .CR2 which don't have a matching .jpg (images 3 through 5 in this example).  I came across the following code:  rm *.CR2(e:'[[ ! -e ${REPLY%.CR2}.jpg ]]':)   but it doesn't work on my machine.  I've not touched Bash in donkey's years so I'm at a loss at trying to resolve it.  I get the error:  -bash: syntax error near unexpected token `('   Can anybody point me in the right direction, please?


How is my $PATH variable built on macOS?

I've recently installed  on my Mac and it's complaining that /usr/bin occurs before /usr/local/bin in my $PATH variable, meaning that system-provided programs will be used instead of those installed with Homebrew.  My .bashrc is configured in a set of separate files, as per this . This means that ~/.bash_profile looks like this:  if [ -f ~/.bashrc ]; then   source ~/.bashrc fi   ~/.bashrc looks like this:  source ~/bin/dotfiles/bashrc   and ~/bin/dotfiles/bashrc looks like this:  . ~/bin/dotfiles/bash/env . ~/bin/dotfiles/bash/config . ~/bin/dotfiles/bash/aliases   ~/bin/dotfiles/bash/env, which is where I set my $PATH variable, looks like this:  export EDITOR="kom" export PATH=some/path/at/start:usr/local/bin:/Users/jim/pear/bin:~/bin:/Users/jim/.gem/ruby/1.8/bin:/Users/jim/bin/bashscripts:some/path/at/end:$PATH   I've added some/path/at/start and some/path/at/end for debugging purposes, since when I try echo $PATH I get this:  /opt/local/bin:/opt/local/sbin:/Users/jim/bin:/opt/local/bin:/opt/local/sbin:some/path/at/start:usr/local/bin:/Users/jim/pear/bin:/Users/jim/bin:/Users/jim/.gem/ruby/1.8/bin:/Users/jim/bin/bashscripts:some/path/at/end:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin  That is, there's a load of other stuff being loaded into the $PATH variable that I can't control in the configuration I've outlined above. Any ideas as to where this stuff is loaded from, so that I can go about changing it and moving /usr/local/bin before /usr/bin?


git: How do I undo a rebase in this case?

So I did a "git rebase interactively" in SourceTree, and the result wasn't exactly as expected.   Result:    Intended / wanted situation (ms-paint'ed):     In other words i want to   Move the branch point to after commit c4d389e Move commit 5a57dea to after c4d389e on the main branch delete commits 474e72f, b61bbf50 on the shadow branch as they will be duplicates after moving the branching point, and delete afba1b9 and 0f2b626 as they have no business on the shadow branch   I haven't pushed the commits to any remote repo.  Can anyone please tell me what steps I need to do? Iv'e seen the big -thread, but I don't really understand how to apply the answers to this particular situation.


Bang and olufsen all speakers not working

I have a HP ENVY ah0044TX having realtek alc285 sound card. I only get audio from the two back speakers and not the front one's. I researched quite a bit, hopped several distros with different kernel versions. The problems seems to be a common one with no concrete solution. Currently running Ubuntu 19.04. Please help!


i want to disable my Caps Lock key and move it to my Scoll Lock key.  The value of my Scancode Map is:  00 00 00 00 00 00 00 00 03 00 00 00 00 00 3A 00 3A 00 46 00 00 00 00 00  This worked in Windows 8, but not 8.1.  What should I do?  Thanks.


Why does Mother Nature allow bound states in arbitrarily weak attractive potential in 2D but not in 3D?  See, for example,  article, .


Formula - Get sheet name using cell values

I need to compare a value in my current sheet with a value from another sheet in the same workbook. The name of the sheet can be found by getting values from two cells within my current sheet, but I cannot create a formula which combine cell values to a sheet name?  This is what I do instead     =SUM(E25;-('0501F9011C00_1 Discard'!E25))   The value 0501F9011C00 can be found in my current sheet cell B8and the value 1can be found in my current sheet cell B10  I tried solving it using a formula as follow, but it will not allow !E25 in this formula     =SUM(E25;-(CONCATENATE(B8;"_";B10;" Discard")!E25))   Is it possible to do what I try to do without using VBA?


As  was card of the day on  the other day, it got me thinking. If you gave it hexproof, through whatever means you choose e.g. , would my opponent be unable to play spells that target a single creature?


Index of the center of a group in the group is not a prime number

The question is to prove index of $Z(G)$ in $G$ is not a prime number.    We know that $|G:Z(G)|=|G:C_G (x)||C_G (x):Z(G)|$ where $C_G (x)$ means centralizer of $x \in G$  I want to mention that we do not want to use $G⁄Z(G)$ theorem.   We may assume that $|G:Z(G)|=p$ where $p$ is a prime.


Paragraph text entered in the subsubsection

I am writing a document of class \documentclass[sigconf]{acmart}  When I create a subsubsection \subsubsection{Data1} % For HIV....  \subsubsection{Data2}  Instead of getting 1.3.1 Data1   For HIV  I am getting 1.3.1 Data1 For HIV  I tried adding new lines by \, \nointendent and some comments between but it didn't work. How to fix it ?


I do know that the probability density function of beta distribution is  $$ \frac{x^{\alpha-1}(1-x)^{\beta-1}} {\displaystyle \mathrm {B}(\alpha,\beta)}\! $$ where  $$ {\displaystyle \mathrm {B} (\alpha ,\beta )={\frac {\Gamma (\alpha )\Gamma (\beta )}{\Gamma (\alpha +\beta )}}} $$  Also, I know that support of a function is the subset of the domain containing those elements which are not mapped to zero. But I don't know how do I go about calculating the support for beta distribution.


how to navigate and select multiple files using only keyboard

I would like to select multiple files non sequentially as in the illustration below...    On  I could simply hold down the Ctrl Key, navigate with Up and Down keys and hit the Space key to select or deselect a file.  But on mac if I hold down the Command key and hit Down arrow, it opens up the file (tested on images). and ctrl + down arrow does something weird with the windows..  Is there any way to select such thing without mouse (which is way slower of course..)?


Is there a way to batch remove the same background from multiple images?

Someone asked me a Photoshop question the other day, and after some time thinking on it I couldn't come up with an answer - hoping someone here can shed some light!  Let's say I've got a batch of photos of people all standing in front of the same textured background - for example, headshots against a studio background. If I wanted to remove the background from all these photos, there are a few ways to go about it; the problem is all methods I know are manual, and large batches become pretty tedious.   Now, let's say the background in each photo was stationary (maybe a few px of wobble), and I had a photo of the complete background without any figure blocking it. Would there be a way to use the complete background as some sort of inverse/subtractive mask, so all you're left with is the person? At the heart of it, this is about automating the process of removing the same background from every image - so any alternate methods are welcome too. Thanks in advance!


Survival function for Poisson distribution

Could you please help me to find a survival function for Poisson distribution? I'm very new to this topic. Poisson distribution probability mass function: $$f(k) = P(X = k) = \frac{\lambda^k e^{-\lambda}}{k!}.$$ So, I found a general definition of survival function: $$S(t) = P(T > t) = \int_t^\infty f(u)\,du = 1 - F(t).$$ But as I understand, this one suits only continuous distributions and Poisson is a discrete one. Then I found this definition, which seems to suit a discrete case: $$S(t_j) = S_j = P(T \geq t_j) = \sum_{k=j}^\infty f(k).$$ But as I wasn't counting it earlier, I'm not sure how to apply it. I need it for my university project. Also, found that this is a survivor function for Poisson:  But don't know how to find it.


Square Root of Rational Number $\frac{A}{B}$

Let $x=\frac{A}{B}$ be a positive rational number in lowers terms (i.e., $A, B\in\mathbb{N}$ and $hcf(A,B)=1$). Prove that $\sqrt{x}$ is rational if and only if $A$ and $B$ are both perfect squares. (Remember that your proof should work for cases like $A=40$, where $A$ is not a perfect square but has a factor that is a perfect square.) I know prime factorization is involved but that's basically it. Proving that $\sqrt{y}$ (for some number y) is rational if and only if $y$ is a perfect square I can do. Applying that that to the fraction mentioned above? Not so much. Any and all help would be appreciated. Thank you.


Listing feature classes with active domains?

I have an Esri file geodatabase with  defined. I need to delete some of the attribute domains but can't because "The domain is used by an attribute rule.". How might I discover which feature class(es) are using the domains?  Executing: DeleteDomain R:\v5\YT_Canvec.gdb Permanency Start Time: Thu May 19 11:01:02 2011 ERROR 999999: Error executing function. The domain is used by an attribute rule. Failed to execute (DeleteDomain). Failed at Thu May 19 11:01:02 2011 (Elapsed Time: 0.00 seconds)   There are over a hundred feature classes in the geodatabase, interactively looking at the FC field properties for each one is a non-starter. The gdb is too large to convert to a personal gdb and go in the back door with ms-access (a dodgy method anyway).    (2011-May-26): Another way to phrase this is "which Feature Class is using domain X?"


How to run a bash script from cron without being a root?

I'm using redhat 7. My user is not a root user, and the root user can't run the commands in the bash script file. I added the command that runs the script in crontab -e but it doesn't run. However if I run the script from command line it works, what to do ?


Why is spatial conformal infinity a point

One property of spatial infinity is that all spacelike geodesics end at it. Since spacelike geodesics can have different directions, I do not understand why spatial infinity is a point. It looks more like a 2 sphere instead of a point.     I will provide more information. Let us pick a point other than the spatial infinity in the conformal diagram. Usually, people draw the conformal diagram in a plane or represent it on the surface of a cylinder. So this point on a plane represents a 2 sphere. But spatial infinity is literally a point. Why?


I am working in a navigation company, and they have purchased server license for hundreds of computers, but ArcObjects is not installed in any of the system.  So I need a loose copy of ArcObjects SDK for learning purpose.   I am not able to find it on Esri website, there is no download option for Arcobjects SDK. Instead ArcGIS RunTime SDK is available to download.  Is it available on internet freely?


How to format a partition with ext3 on Windows XP for dual-boot Ubuntu-Windows XP?

The Ubuntu dial boot tutorial says:  a GRUB boot partition 100 Mb -- formatted to filesystem type ext3 a logical partition for the / (root) folder of each planned Linux (or Mac) OS (at least 10 Gb each, but 20-50 Gb is better) -- formatted as ext3 (or ext4 if you are planning to use a newer Linux OS)  But how to format ext3 type? Windows XP doesn't offer this type. Only FAT32.


I have problems with trying to get this method to work, I am trying to use mbedtls with psk. Turns out the example they have is very hard to understand for a C novice like myself.  /*  * Parse a string of pairs name1,key1[,name2,key2[,...]]  * into a usable psk_entry list.  *  * Modifies the input string! This is not production quality!  */  psk_entry * psk_parse( char * psk_string ) {   psk_entry *cur = NULL, *new = NULL;   char *p = psk_string;   char *end = p;   char *key_hex;    while( *end != '\n' )   {     end++;   }   *end = ',';    while( p <= end )   {     if( ( new = mbedtls_calloc( 1, sizeof( psk_entry ) ) ) == NULL )       goto error;      memset( new, 0, sizeof( psk_entry ) );      GET_ITEM( new->name );     GET_ITEM( key_hex );      if( unhexify( new->key, key_hex, &new->key_len ) != 0 )     {       goto error;     }      new->next = cur;     cur = new;   }    return( cur );    error:   psk_free( new );   psk_free( cur );   return( 0 ); }   What is the expecting string formatting to get this method to work? currently, I have  char * list = "JD,4f07d80fde6469fbdbf1f154a47f27c916dba68b644ff1ffa26295e598855810";  which gets passed to the method but I keep getting a segfault when *end = ',' is trying to get added.


Why do some cameras have a higher resolution sensor even though the max resolution is smaller?

For example, the D3300 is advertised to have 24.2 megapixels, but its highest camera resolution in all types of settings including raw and full manual, the output resolution becomes 6000×4000 instead of 6016×4000 like the D3200. I was wondering if those 16 pixels are used for some sort of physical noise reduction mechanism or are just simply cropped off for whatever reason.  I've also talked with Nikon support and they don't know why that happens. They implied that the image is simply cropped, but they were unsure why it does this.


/var/log/cups/error_logs eats most of the memory

I have tried most of the suggestion given by google but I am disappointed. Still my error_log file keep increasing by unbelievable size.  I have done following exercise:   sudo systemctl disable cups-browsed sudo service avahi-daemon stop avahi-browse -a | grep Printer sudo cupsctl --no-share-printers   Also in /etc/cups/cupsd.conf (making "browsing=off") and  /etc/cups/cups-browsed.conf (making "browsing protocol=none")  Even I have tried to put it in logrotate:  cat /etc/logrotate.d/cups      /var/log/cups/error_log {     daily     missingok     rotate 7     sharedscripts     postrotate              if [ -e /var/run/cups/cupsd.pid ]; then                       invoke-rc.d --quiet cups force-reload > /dev/null                       sleep 10              fi     endscript     compress     notifempty     create 640 root lpadmin     }   error_log :  E [02/Sep/2016:13:45:31 +0530] File "/usr/lib/cups/notifier/dbus" has insecure permissions (0100757/uid=0/gid=0).      [only this error fills up whole memory !]  Nothing is working.


If $a_n>0$ converges to $a>0$, then $(a_0 a_1\cdots a_n)^{\frac{1}{n}}$ converges to $a.$

I would appreciate your help!  How can we show that if a sequence of positive real numbers $a_n$ converges to $a\in\mathbb{R}$ with $a>0$, then $(a_0 a_1\cdots a_n)^{\frac{1}{n}}$ converges to $a$.


Can I install the previous version of Codeblocks "Codeblocks 17.12" on Ubuntu 20.04 lts?

Now Codeblocks 20.03 is available. But I want to install codeblocks's previous version 17.12. Is it possible to install the previous version on ubuntu 20.04? If yes then how? Please help me to do it and If I install the previous version will it do any misbehave?


I want too make a character explicitly too shut down mages  and was curious what methods of destroying an arcane focus or component pouch exist. Getting the item away would also work. Unfortunately effects like shatter dont work on held items, is there a spell that would work for this or an item?


What is reflection and why is it useful?

What is reflection, and why is it useful?  I'm particularly interested in Java, but I assume the principles are the same in any language.


Blender Cycles - How to make particle planes to face towards the camera?

So I've been working on an explosion, with textured planes coming out of a particle system. Too bad it destroyes the whole feeling, when I can't see the texture on one of the planes, but a line, which is the plane, but not aligned to the camera. It also makes the middle of the explosion seen by the camera almost fully invisible, because there are no planes aligned to the camera. I tried to "Track To" the parent texture plane to the camera, but it only worked for that specific object, not the partices.  I couldn't find any solution not even on YouTube or Stackexchange so I'm asking you for help :)


A friend has given me his old iPhone but it still has his Apple id on iTunes and the cloud and won't allow me access. How do I erase this and input my details instead


Prove for an entire function $\displaystyle{f(z)=\sum_{n=0}^\infty a_nz^{n}}$,

Prove that for an entire function $\displaystyle{f(z)=\sum_{n=0}^\infty a_nz^{n}}$, $$\displaystyle{\frac{1}{2\pi}\int_0^{2\pi}|f(re^{i\theta})|^2d\theta=\sum_{n=0}^\infty|a_n|^2r^{2n}}$$ for any $r>0 \in \mathbb R$


Will Ubuntu run on old Dell Pentium M 512 ram

Trying to reuse this old dell laptop,,,I can't find a ubuntu or mint distro that the cpu will accept?   Is it just too old to function?  Came with xp pro 32 bit?  Thanks for help/suggestions  John in Dallas


Let $\Omega\subset\mathbb{R}^n$ be an open, bounded set with boundary $\partial\Omega$ of class $C^1$. $$\mathcal{A}:=\{u\in C^2(\bar\Omega):u=0\text{ on }\partial\Omega \}$$ endowed with the scalar product $$(u,v)_{\mathcal{A}}:=\int_{\Omega}(\nabla u,\nabla v)_{\mathbb{R}^n}\,dx.$$ I have to prove that $\mathcal{A}$ equipped with the induced norm is a normed space, but it is not a Banach space. I can't find a proper counterexample. Any help?


A complex root of unity and "dense" property of the its orbit on the unit circle

In a paper I came across, I have a complex number $z = \frac{-3+4i}{5}$. Hence $z$ lies on a unit complex circle $\mathbb{T}: = \{z \in \mathbb{C}: |z|=1\}$. It is stated that "$z$ is not a complex root of unity, so its orbit $\{z^{n}: n \in \mathbb{N}\}$ is dense in $\mathbb{T}$ ". This statement is not obvious to me.  (1). How do I show that $z$ is not a complex root of unity? (I assume in this context I need to show that $z^{m} \neq 1$ for any $m$). So this would amount to writing $z$ in polar form $e^{i\theta}$  - but how do I then show that $\theta$ is irrational?  (2). Assuming (1) is true, why does it follow the orbit $\{ z^{n}\}$ is dense?


Want to try running Ubuntu from DVD without installing - is it possible?  Trying to save some data from an old XP machine, and I am hoping to boot up with a Ubuntu disk that will allow me to go in grab files on machine, and then install XP


I am very confused with the definition  of countable sets. What I ahev come to know about a countable set is, a countable set is a set of either a finite set  or countably infinite set.ehat I understand from this is that a set having finite elements ( which we  can count like 10, 50 etc) is called a finite set and hence its countable set but iam intimidated by the countably infinite set. Honestly I don't know what it means but what I understand is that it have many elemenys which are infinite but can be counted! And that is where I get confused. Like how we can count infinite elements. I know its pretty useless to ask here but I searched wiki but I was not able to understand. So any help will be admirable. Thanks


How to correctly fix a "dirty" NTFS partition without using chkdsk

When I try to do a ntfsck to a NTFS partition I get this:  sudo ntfsck /dev/sdb1 Unsupported: replay_log() Volume is dirty. Unsupported: check_volume() Checking 161792 MFT records. Unsupported cases found.   How can I clean a "dirty" NTFS volume without having to actually use windows chkdsk tool in the NTFS volume.  I also did a ntfsfix and it said that everything was OK but it actually was not.  I also get the same "Dirty" error when trying to check the filesystem using the Disk Utility:    I am starting to think I need some powerful soap.


Quick question about curly braces not showing up

Ii am writing a short code, so I doubt anything else in the code is causing the problem. This is the problematic line of code:  \[ M_R := \max {|f(z)|: |z - z_0| = R }\le M\]   It doesn't show the curly braces. I've tried using \left{ and \right} but to no avail.  What should I do?  Thank you


In search of Probability text recommendations

The probability class I recently finished (taught at an upper-undergraduate or lower-graduate level) used the text by Grimmett and Stirzaker. I really disliked this book.   I am familiar with measure theory, so it is fine if the book is measure-theoretic. However, I want to make sure the book doesn't neglect to provide a clear explanation of a the basic concepts of probability, and provide exercises for the basic problem-solving techniques. Also, I always love texts that have good motivation and intuitive explanations for things (I guess I prefer some motivating discussion rather than a totally formal text like Rudin, or arguably Ahlfors).   I think model texts for what I'm looking for are Spivak's Calculus and Dummit and Foote's Algebra. What I love about these texts are the large amount of (enlightening) exercises.   Update: Still looking for a good probability text. Feller's text has come up as a suggestion. Does that one have good exercises?


I need to dual boot windows on internal drive and linux on external driver

I need to do a dual boot, but i dont know how to do, and, idk if i can boot linux on external drive and windows 10 on internal drive, is this possible?


How to draw a tangent line to an arbitrary `\addplot`

I am attempting to draw the following graph in tikz.   My attempt so far has gotten me to here.   \documentclass[border=3mm]{standalone} \usepackage[dvipsnames]{xcolor} \usepackage{pgfplots} \pgfplotsset{width=8cm,compat=newest} \usetikzlibrary{arrows}    \begin{document}      \begin{tikzpicture}     \begin{axis}[  xtick = \empty,    ytick = \empty, xlabel = {$t$}, x label style = {at={(1,0)},anchor=west}, ylabel = {$q$}, y label style = {at={(0,1)},rotate=-90,anchor=south}, axis lines=left, enlargelimits=0.2,                 ]               \addplot[mark=none, blue] coordinates {(1.85,1.1)(0.0,3)};  \addplot[color=red,smooth,thick,-] coordinates  {     (0.3,2.7) (1.3,1) (2.5,2) (4,0.65)  (6,0.8)};       \end{axis}     \end{tikzpicture} \end{document}   The output is;     This has taken me most of the day to draw. I can't understand how to write the coordinates to get the shape of the tangent curve I want. I am wondering is there a knack to this and can anyone offer me advice on how to shape things correctly. There must be a better way than I am currently going about things!


virtual destructor for pure abstract class

Based on what I found  and on other links on stackoverflow, we should always define a virtual destructor in the base class if we plan to use it polymorphically. I want to know if there is an exception to this rule.   I have seen production code that does not define virtual destructor for the pure abstract base classes and in one of cppcon 2014 video , around 10:06 the  BoolExp struct defined is a pure abstract class and has no virtual destructor.   So for a pure abstract class defined like this    class Base {       public:          virtual foo() = 0;          virtual bar() = 0;      }   My question is it absolutely must that we define a virtual destructor for "Base" class, even though it does have any data members? Are there any exceptions to the virtual destructor rule?  Thanks in advance.  Best, RG


i want to write a device driver but not able to find the header file can someone please help me find them?Also if someone can point out some important site links that would be really appreciated


Blender python custom UI button run custom function?

I am currently in the process of writing a project in python for Blender to simulate crowds automatically. However I would need for there to be a custom UI to allow the user to choose their settings such as min to max speed, how much they want locations to randomised by etc. But from tutorials I have watched, and links I have followed all seem to have the buttons and sliders only do what is already predefined in blender and does not allow me to make it execute a function I have wrote. I managed to find a workaround for creating a custom shape by adding it to the operator menu, but is there a way for it to save the value of a slider to a variable rather than doing a predefined Blender function.  import bpy import math import mathutils  class TargetMakerPanel(bpy.types.Panel) :     bl_space_type = "VIEW_3D"     bl_region_type = "TOOLS"     bl_context = "objectmode"     bl_label = "CrowD"         def draw(self, context) :         layout = self.layout         scene = context.scene         TheCol = self.layout.column(align = True)         TheCol.operator("mesh.make_target", text = "Add Target")         layout.label(text=" Random Speed:")         row = layout.row()         row.prop(scene, "frame_start")         row.prop(scene, "frame_end")  class MakeTarget(bpy.types.Operator) :     bl_idname = "mesh.make_target"     bl_label = "Add Target"     bl_options = {"UNDO"}      def invoke(self, context, event) :         Vertices = \           [             mathutils.Vector((-0.5, -0.5,0)),             mathutils.Vector((0.5, -0.5, 0)),             mathutils.Vector((0.5, 0.5, 0)),             mathutils.Vector((-0.5, 0.5, 0)),            ]         NewMesh = bpy.data.meshes.new("Target")         NewMesh.from_pydata \             (             Vertices,             [],             [[0, 1, 2], [0, 1, 3], [1, 2, 3], [2, 0, 3]]           )         NewMesh.update()         NewObj = bpy.data.objects.new("Target", NewMesh)         context.scene.objects.link(NewObj)         return {"FINISHED"}     #end invoke   def register() :     bpy.utils.register_class(MakeTarget)     bpy.utils.register_class(TargetMakerPanel)  def unregister() :     bpy.utils.unregister_class(MakeTarget)     bpy.utils.unregister_class(TargetMakerPanel)  if __name__ == "__main__" :     register()   In my code I would ideally like it so that the row that slider that says "Start Frame" would allow me to recognise that value and assign it to a variable called MinSpeed.... Rather than it automatically changing the frame as blender had already defined it as...


Reasoning for $\frac{\ln|x|}{2}+ C$ :  $$\int  \frac{1}{(2x)}  \, dx = \frac{\ln|2x|}{2}+ C$$   Check: By taking derivative we get $\frac{1}{x}$  Reasoning for $\frac{\ln|x|}{2}+ C$ :  $$\int  \frac{1}{2x}  \, dx = \frac{1}{2}\int  \frac{1}{x}  \, dx =\frac{\ln|x|}{2}+ C$$  Check: By taking derivative we get $\frac{1}{x}$  Question: Is  $\int  \frac{1}{2x}  \, dx $ equal to $\frac{\ln|2x|}{2}+ C$ or $\frac{\ln|x|}{2}+ C$?


So lets prove the general statement $$ \begin{align} (-a)(-b)=ab \\ \because ab + (-ab)=0 \\ \therefore (-a)(-b)+(-ab)=0 \ \land \ (-a)(-b)+(-(-a)(-b))=0 \\ \therefore -1 \cdot (-a)(-b)=-ab \\ by \ the \ definition \ of \ associative \ law \\ (-1 \cdot -a) \cdot (-b)= -ab \end{align} $$ and now i want to prove $(-1 \cdot -a) = a$ which brings me back to the question .


When writing multithreaded applications, one of the most common problems experienced is race conditions.    My questions to the community are:  What is the race condition? How do you detect them? How do you handle them? Finally, how do you prevent them from occurring?


VS Intellisense not predicting things with JavaScript libraries

When I include a JavaScript library with my normal script, is there a way to make Visual Studio (2015)'s Intellisense work?  My setup:  <!DOCTYPE html>       <title></title>     <meta charset="utf-8" />
Hello
          And in my main.js I want to use the Three library I have specified:  var scene = new THREE.Scene();   When I enter THREE. I want to see a list of available attributes as I begin typing Scene.   Is my setup wrong - do I need some sort of config file? Or does this functionality not exist with JS?


I'm trying to structure an android project for continuous integration/continuous delivery via gradle and git.  The main code will be pulled from git on the build server without various files  that contain keys.  Gradle needs these files to successfully build the project.  I will pull those files on the build server separately, but i'm looking for a common place to store these files both on my local env and on the build server. So that I can reference this location in ENVs, then point to that location in the gradle build file.  The build server runs in root mode, obviously my local is running as a user.  Where is a non-root accessible, public place in the linux file system besides /home/$USER?  The dist i'm using are ubuntu and debian.


I know this question might not belong to this site, but I have a very important decision to take. I want to buy a computer/server for rendering, but I am not sure about what would be the best...  The computer will have an intel processor with 6cores (12threas) and a rate of 3,3GHz per core. It will also have 16GB of DDR4 RAM I have to say that I have the power supply for this machine already at home.  The server will have four processors with 6cores each and a rate of 2,66GHz. It will also have 32GB DDR2-RAM  What would be the better choice?


My program contains a variable which is created locally but which I want to use in another function, is there anyway I can do this?

My program contains quite a lot so I'm not going to bore you with the details, if there are any other problems that you spot which I haven't, you don't need to point them out unless you have a serious case of OCD. Here is the parts of the program relevant to the question I'm asking.  def LettersIntoCode():     cluesFile = open("clues.txt", 'r+')     cluesLines = cluesFile.readlines()     cluesFile.close()     clues = {}     for line in cluesLines:         clues[line[1]] = line[0]     CodedFile = open('words.txt')     print()     for line in CodedFile:         ***WordsWithChanges = (''.join(clues.get(c,c) for c in line.strip('\r\n')))***         print(WordsWithChanges)     CodedFile.close()  def GameCompletion():     SolvedFile = open("solved.txt", 'r')     ***while WordsWithChanges != SolvedFile***:         MenuChoice()     SolvedFile.close()   When called upon this error pops up:      while WordsWithChanges != SolvedFile: NameError: global name 'WordsWithChanges' is not defined   Now don't worry about anything else but the Bold and Italic although you may find the other stuff useful for understanding purposes. I've tried putting inglobal WordsWithChanges but as most will know that didn't work, thanks for your co-operation, if you need anything just ask!


If a paper is accepted as a poster, must you attend the conference?

I know that submitting a paper to a conference implies a promise to present the paper if it's accepted. However, I have seen conferences where a paper that you submit could be accepted as a poster instead. I have a limited travel budget (who doesn't?), and I would rather not travel just for a poster presentation, so I haven't submitted anything to that type of conference.  However, now I'm wondering: If you submit a paper, and it's accepted as a poster, would it be perceived poorly if you decide not to present the poster? (Of course, if you do that, your abstract wouldn't appear in any proceedings.)  EDIT: By "decide not to present the poster", I mean withdrawing it. I certainly wouldn't plan on being a no-show!


Access Safari history in `~/Library/` bypassing SIP

I have a Python script which reads the Safari browser history by opening ~/Library/Safari/History.db and parsing the SQLite database.  Unfortunately, on some Macs, the System Integrity Protection  access to the ~/Library/ directory. It gives a Operation not permitted error. Users can manually go to this directory and copy the History.db file to the Desktop, and get full access to the database. But is there a way to access ~/Library/Safari/History.db using only Python or Shell scripts and without the user having to disable SIP, reboot or change any complicated configuration?


Divisor in $\mathbb{C}[X]$ $\implies$ divisor in $\mathbb{R}[X]$?

let $P \in \mathbb{R}[X]$ be a real polynomial divisible by a polynomial $Q \in \mathbb{R}[X]$ in $\mathbb{C}[X]$. How can I easily show that $P$ is also divisible by $Q$ in $\mathbb{R}[X]$?  A simple argument without using higher algebraic theorems is desirable. If I could use instruments of higher algebra, the exercise I have to do in whole would be done in two lines. But I'm not allowed to use. I think there would be an easy argument which I can't see yet because of my mental fogginess that I have sometimes.  Thank you beforehand.


I am using ubuntu 14.04 lts. Since last week I have been noticing this weird display glitch as in the image above whenever I hover or click over an icon. What can I do to fix this?  I looked up some questions like  and , and I checked if there's some issue with my graphics card but it seems fine.


I have the code below, and I'd like it to make it save as jpeg file format, instead of bmp.   Bitmap current = (Bitmap)_latestFrame.Clone();         using (SaveFileDialog sfd = new SaveFileDialog())         {             sfd.Filter = "*.bmp|*.bmp";             if (sfd.ShowDialog() == DialogResult.OK)             {                 current.Save(sfd.FileName);             }         }          current.Dispose();     }   Do you have any idea on what I should change to make it? I tried using Image.Format, but that didn't work.


Area within a given number of standard deviations from given mean

I have a variable with mean value of 18.85 and standard deviation of 1.45.   I want to define the area that is covered by 1.45 standard deviations left and 1.45 standard deviations on the right side of the mean using these statistics.   How do I do that?


From , we are given a system of equations and a restriction:     Let $a,b,c > 0$ for      $$\begin{cases}     \log_a(b^x) & = & 2 \\     \log_b(c^x) & = & 2 \\     \log_c(a^x) & = & 5 \end{cases}$$      $x =\,\,?$      $$\log_a(b^x) = 2 \iff b^x=a^2$$   We now have $$     b^x = a^2 \\     c^x = b^2 \\     a^x = c^5 $$  Adding these up and rearranging, we have  $$a^x + b^x + c^x = a^2 + b^2 + c^5$$  Now $x$ does not seem to have a consistent solution. How is this possible?  A comment suggested this might be due to  an over-determined system, but  shows that it has the unique solution $x^3 = 20$.  From the original post, we have the following question (which was not answered)     Looks to me like x is equal 2 different numbers at the same time which is strange, what am I doing wrong here?


Do top, or left aligned field labels perform better at form completion?

I have designed these two forms and would like to know which would be more effective at conversion i.e form filling up.   Here's the first one which I feel is more effective reason being the separate rectangle containers break the eye motion and when the eye focuses on the next element it will read from left to right, which would help users just fill up a form one step by step.    Here's another form that was made. The form fields differ but this is what is used by Android.   Which would perform better?  Type of user: 20-30's, mid level income, constantly in touch with farmers, has a vehicle for commute given by the company, uses phone mostly for calling and texting people. Smart phone can be in the price range of $100 to $150. Make Samsung, OPPO, Motorola.  My consensus is to user would read the text in the first image and see the text in grey realise that needs to be filled and fills it up. This goes against the top down approach of how mobile users read forms. But it really helps the user focus on the one field they're filling and that I think is worth the trade offs of material designed form field.


Where can I find a list of recipes (and their directions) that were used in Shokugeki no Soma?

I'm reading Shokugeki no Soma and at some points, I thought it would be nice to cook some of these dishes. Unfortunately, I haven't found more than the mackerel burger recipe. I know that not all recipes are published, but I would like to know if there were also other ones that were published.


I've a switch for matching different keyword lengths. Its not working in Java: for example, given a string class, with the exact character codes U+63, U+6c, U+61, U+73 and U+73 and length = 5, str != "class".  private Token filterKeyword(String str) {     switch (str.length())     {         case 1:             return null;         case 2:             return  str == "as" ? Token.AS :                     str == "do" ? Token.DO :                     str == "if" ? Token.IF :                     str == "in" ? Token.IN :                     str == "is" ? Token.IS : null;         case 3:             return  str == "for" ? Token.FOR :                     str == "new" ? Token.NEW :                     str == "try" ? Token.TRY :                     str == "use" ? Token.USE :                     str == "var" ? Token.VAR : null;         case 4:             if (str == "true")             {                 token.booleanValue = true;                 return Token.BOOLEAN_LITERAL;             }             return  str == "case" ? Token.CASE :                     str == "else" ? Token.ELSE :                     str == "null" ? Token.NULL_LITERAL :                     str == "this" ? Token.THIS_LITERAL :                     str == "void" ? Token.VOID :                     str == "with" ? Token.WITH : null;         case 5:             if (str == "false")             {                 this.token.booleanValue = false;                 return Token.BOOLEAN_LITERAL;             }             if (str == "class")             {                 System.out.println("class");             }             for (int i = 0; i != 5; ++i)             {                 System.out.println(str.codePointAt(i));             }             return  str == "break" ? Token.BREAK :                     str == "catch" ? Token.CATCH :                     str == "class" ? Token.CLASS :                     str == "const" ? Token.CONST :                     str == "super" ? Token.SUPER :                     str == "throw" ? Token.THROW :                     str == "while" ? Token.WHILE :                     str == "yield" ? Token.YIELD : null;         case 6:             return  str == "delete" ? Token.DELETE :                     str == "import" ? Token.IMPORT :                     str == "public" ? Token.PUBLIC :                     str == "return" ? Token.RETURN :                     str == "switch" ? Token.SWITCH :                     str == "typeof" ? Token.TYPEOF : null;         case 7:             return  str == "default" ? Token.DEFAULT :                     str == "finally" ? Token.FINALLY :                     str == "package" ? Token.PACKAGE :                     str == "private" ? Token.PRIVATE : null;         case 8:             return  str == "continue" ? Token.CONTINUE :                     str == "function" ? Token.FUNCTION :                     str == "internal" ? Token.INTERNAL : null;         case 9:             return  str == "interface" ? Token.INTERFACE :                     str == "protected" ? Token.PROTECTED : null;         case 10:             return  str == "instanceof" ? Token.INSTANCEOF : null;         default:             return null;     } }   In case 5:, I've debugged like this:  if (str == "class") {     System.out.println("class"); // not traced! } // prints the right character code sequence for (int i = 0; i != 5; ++i) {     System.out.println(str.codePointAt(i)); }


Multivariate Application of Slutsky's lemma

Let $(A_n)_{n \geq 1}$ be a sequence of random matrices in $\mathbb{R}^{d \times d}$ and $(T_n)_{n \geq 1}$ and $(Z_n)_{n \geq 1}$ be  two sequences of random vectors in $\mathbb{R}^{d}$. We assume that:   $\forall n \geq 1$, $Z_n = A_n T_n$ $A_n$ converges in probability towards a deterministic non singular random matrice $A$ $Z_n$ converges in distribution towards a random vector $Z$.   Show that $T_n$ converges in distribution towards $A^{-1}Z$. We do not assume that the $A_n$ are non-singular.  If the $A_n$ were non-singular it would be easy to say $T_n = A_n^{-1}A_nT_n$ and apply Slutsky's lemma to obtain the result. Without assuming non-singularity but if we could assume $A_n$ nonnegative I would use $T_n = (A_n+ \frac{1}{n})^{-1}(A_n+ \frac{1}{n})T_n$ to show the result. In the general case, I do not know how to prove it. Any hint ?


How to use Class.forName() method in Java with primitive type (int , float, double, char ...)

I have declared a method that return Class, but i don't know if it is the right way or not . When i pass int, float, double or String as parameter, i want to return int.class, float.class or double.class.     How can i do that?     Class<?> analyseType(String nameType) throws ClassNotFoundException {         Class<?> classe = Class.forName(nameType);         return classe;      }


What has the greatest chance of being in Marcellus Wallace's briefcase?

In Pulp Fiction, there is a briefcase which has contents that are kept very secret. What item is most likely to be in the briefcase?


Does it make any sense to install anti-virus on Windows XP Mode?

This is almost certainly a dumb question, but... say I have Windows 7, with some anti-virus software installed, and I am using Microsoft's  to run some legacy applications  as well. Is there any reason why I would want to install an anti-virus program in XP mode as well?


I am trying to justify the formula:  $${\rm det} (M) = e^{{\rm Tr}\;log M} $$  for any square matrix M.  My idea is that it is easy to check for diagonal matrices and since det, Tr, and log are continuous functions and the set of diagonal matrices is dense in the set of matrices it must be true for any matrix.  Is that enough?


$f'(0)$ when $f(x)=x^2\sin(1/x)$, $f(0)=0$  This is presented as an MCQ and answer is given as "$f$ is differentiable at every $ x$ but $f'$ is discontinous at $0$ "  I calculated LHD and RHD at $0$ as $0$ and $f'(x)=2x\sin(1/x)-\cos(1/x)$ which is not defined at 0 thus the answer should be "$f$ is not differentiable at $0$"  Is this a misprint or am I missing something?


What are the rules regarding usage of non-featured songs in films?

In films like Step Up, Wikipedia shows some songs as featured songs and some songs as non-featured. Even only featured songs appear on their album. So what are those non-featured songs and what are the rules regarding the usage of non-featured songs? I mean, are movie makers free to use any song as non-featured song or are there any rules regarding it? I mean doesn't they have to pay for them?


Deep Copy of Complex Third Party Objects/Classes

I'm have been working on a project to create PDF forms using PDFView4Net. While the library is generally good, the forms creator is primitive and lacking basic features (such as copy/paste, alignment, formatting, etc.) when working with form fields (i.e. text boxes, check boxes, etc.).   The problem: I have been extending the functionality for field objects and getting tripped up on copy/paste. To do this, I need a deep copy of the object with no references to the original whatsoever. I emailed the vendor, requesting information about their recommended method for copying these objects, to which they replied I needed make a copy of each property by hand, manually ... beats head on desk. These are large classes, with multiple embedded classes as properties, as well as UI elements.  The question: Are there any good methods out there that perform a deep copy for complex objects that don't require serialization, doesn't require access to or changes to the source classes and doesn't require a default constructor?  What I have tried/reviewed: I have researched various ways to make a deep copy of an object and discarded them one by one:   Manually, Property by Painstaking Property: I attempted this with the first of 7 field objects (PDFTextBoxField), but it quickly got out of hand with the multitude properties that are also different types of classes. In the end, I still had lingering references to the original object where it a shallow copy was created instead of a deep copy as intended. Serialization: The classes are not marked as Serializable, nor will the vendor change this. I asked them to and they said no. ICloneable: Would need to be implemented by the vendor. AutoMapper: This seems to be for copying data from one or more object types into another object type. The objects I'm working with are the same type. Though I'm not opposed to using this if it is the best solution. Emit Mapper: This project appears to have been abandoned. MemberwiseClone: Does a shallow copy, not the deep copy I'm looking for, though this is suggested on a ton of other posts when the questioner specifically requests a deep copy. Value Injecter: I implemented FastDeepCloneInjection from  on CodePlex but the majority of the classes that need to be injected from do not have a 0 parameter constructor which is required when creating a new instance for the copy. ValueInjecter doesn't allow skipping of certain properties, or I would just skip the items with no default constructor and leave them set to null (the default). I ran into this right away with the very first class. To attempt to get around the issue, I created a wrapper class inherited from the original and cast the original into the wrapper (and vice versa on return), but I don't think that's a good solution.   Edit: I really do not feel this question is a duplicate. I've searched extensively for a solution, including the post marked as the duplicate/original, and was unable to find a satisfactory resolution. As stated, I don't have access to change the classes that I need to copy. This discounts DataContractSerializer, BinaryFormatter, and any other type of serialization. This also discounts the reflection examples I've seen using Activator.CreateInstance, as about 95% of the classes I need to copy don't have a constructor that takes 0 arguments. This is the same issue I ran into using ValueInjecter. This also discounts using ICloneable.


Bars with same x index in stacked barplot

I'm reading data that is structured as an outer group (the x indices/rows) with different inner categories (multiple columns) that are composed of multiple values themselves again. The goal is to create a stacked barplot that reflects this and displays the categories as separate bars under one x tick.  The separation of categories is achieved by shifting the x value in relation to the current category. However, this seems to be an issue with the stacked barplot as consecutive bars with the same original x value start where the previous barplot ended.   How I would want it to look like without modifying the file or the table in this case (the real file has some dozen columns and rows):    \documentclass[11pt]{book} \usepackage{pgfplots} \usetikzlibrary{patterns} \usepackage{pgfplotstable} \pgfplotscreateplotcyclelist{mycyclelist}{     black,  postaction={pattern color=blue,     pattern=vertical lines}\\%     black,  postaction={pattern color=orange,   pattern=horizontal lines}\\%     black,  postaction={pattern color=green,    pattern=grid}\\%     black,  postaction={pattern color=red,      pattern=north east lines}\\%     black,  postaction={pattern color=purple,   pattern=crosshatch dots}\\% }  \begin{document} \begin{figure}[!htbp] \begin{tikzpicture}     \pgfplotstableread{     x   As  Aa  A1  A2  A3  A4  A5  Bs  Ba  B1  B2  B3  B4  B5     1   0   244415  0.3011  0   99.6072 0   0.0925  0   4142970 0.034   0   99.9496 0.0002  0.0162     2   0   514279  5.4288  0   93.9848 0.0016  0.5855  0   8376969 1.7197  0   98.3238 0.0001  0.0402     }\datatable      \begin{axis}[                     ybar stacked,                      bar width=8pt,                      cycle list name = mycyclelist,                      ymin=0,                      xtick=data,                      legend entries={1, 2, 3, 4, 5},                      legend columns=5,              ]          \foreach \y/\plotlabel in {0/A, 1/B} { % categories A and B             \foreach \i in {0,...,4} { % composing values inside a category                 \edef\temp{\noexpand                     \addplot%                         \ifnum\i<1% label only the first plot                         +[nodes near coords=\plotlabel]                         \fi                 }\temp                     plot table [                             header = true,                              x expr={\thisrowno{0}*2 + \y},                              y expr={\thisrowno{\the\numexpr 3 + \y * 7 + \i}}, % offset + category * sizeof(category bundle) + value-index                         ]                         {\datatable};             }         }     \end{axis} \end{tikzpicture} \end{figure} \end{document}   Does pgfplots use the original x index instead of the modified one to stack the bars or is there something wrong with my code?


Comparing two version strings (4.x.x.x, 5.x.x.x)

Is there anyone who knows how to compare two version strings in Java?  For example,  Compare : 1.0.3.1 & 1.0.4.1 Result : 1.0.4.1  Thanks in advance.


I am trying to use pdftex to lay out a document including images made in inkscape.  From inkscape I can output the images as pdfs with accompanying pdf_tex files and put these in a figure environment.  This works if the figures are in the main file. However, I have each chapter in a separate folder with all the images for that chapter. When I include images in a chapter I get the error : "Package pdftex.def Error: File 'peeling_flow_constant_width.pdf' not found."  Googling around (here: ) suggests that if I had all my images in the same folder then I could use \graphicspath. This doesn't work for my case of having graphics in each of the separate chapter subfolders.  I think the problem comes from the fact that the .pdf_tex file automatically generated by inkscape includes the command: \put(0,0){\includegraphics[width=\unitlength]{base_peeling_flow_constant_width.pdf}}%  This command doesn't have any information about the path to the pdf file.  My minimal working example is   \documentclass[12pt,chapterprefix,openright,twoside,a4paper,numbers=noenddot,DIV11,BCOR1cm]{scrbook} %\include{l_preamble} \usepackage{graphicx} % to be able to use \includegraphics \usepackage[rgb]{xcolor} % Needed by pdfcomment  \begin{document}  \begin{figure}[htb] \input{base_peeling_flow_constant_width.pdf_tex} \end{figure}  \include{chapter1/chapter1}  \end{document}   with the chapter 1 file  \section{test chapter1}  \begin{figure}[htb] \input{chapter1/peeling_flow_constant_width.pdf_tex} \end{figure}


space between volume and number with Biblatex (authoryear) does not work

I'm trying to get rid of the space between volume and number, and it actually worked with this:  \documentclass[12pt, oneside]{article}  \usepackage[backend = biber, bibencoding=utf8, style=authoryear-comp, uniquename=false]{biblatex} \addbibresource{bibliography.bib} \renewbibmacro*{volume+number+eid}{  \printfield{volume}  \printfield{number}  \setunit{\addcomma\space}  \printfield{eid}}  \DeclareFieldFormat[article]{number}{\mkbibparens{#1}}  \DeclareFieldFormat[article]{pages}{#1}  \printbibliography  \usepackage{filecontents}  \begin{filecontents}{bibliography.bib}     @Article{Ratcliff,        author  = {R. Ratcliff and G. McKoon},        title   = {The diffusion decision model: Theory and data for two-choice decision tasks},        journal = {Neural Computing and Applications},        year    = {2008},        volume  = {20},        number  = {4},        pages   = {873-922},        }  \end{filecontents}   I don't know what happened, but it doesn't work anymore. Any ideas?


How to draw linear inequalities in LaTeX

I want to draw the following inequalities in LaTeX.    This set of inequalities define a region. I want to plot this set of inequalities. How can I do this?   I want to achieve something like this.


Hello I have a few longtabu's in a document, some of those use xcolor to slightly alternate the row color. I have been using something similar as below for more than a year now, but updating my texlive distribution breaks it (on Windows). It spews alot of the following at me, refering to the line containing \end{longtabu}  Missing } inserted. \end{longtabu} Missing \cr inserted. \end{longtabu} Misplaced \cr. \end{longtabu} ...   The minimal example:  \documentclass[10pt]{article} \usepackage[a4paper,height=24cm,top=2.5cm,width=16cm,left=2.5cm]{geometry} \usepackage{xcolor}  % removing this line helps \usepackage{longtable} \usepackage{tabu}  \begin{document}   \begin{longtabu} to \textwidth{XX}  % changing to l-columns works too     This is a & Test! \\     Using xcolor together with X-columns & doesn't compile.\\     This happens on recent windows distributions of & texlive. \\   \end{longtabu} \end{document}   It works fine on my older Windows texlive installation and it works fine on a recent texlive distribution on ArchLinux. I tested everything on (scheme-full) installations. I also rebuilt the xcolor and tabu packages.  The problem seems to occur with the color-package as well.  TLDR; longtabu and xcolor/color don't work together on recent Windows texlive (13th January 2019).  Am I missing something obvious?


As a moderator, how do I handle a potentially inappropriate profile picture?

There are already at least a couple of questions (, ) about how to handle potentially inappropriate profile pictures, but the answer given in both cases (and other duplicates of those) essentially comes down to "flag it and let the moderators deal with it." Well, as a moderator, how exactly am I supposed to deal with it? As far as I can tell, Stack Exchange does not have a clear policy about what sorts of images are inappropriate. The closest thing is this clause in :  Subscriber represents, warrants and agrees that it will not contribute any Subscriber Content that [...] (d) is libelous, defamatory, abusive, threatening, harassing, hateful, offensive or otherwise violates any law or right of any third party....  but people do not always agree on what constitutes hateful or offensive content, or even on what constitutes libel or defamation (considering the prevalence of lawsuits). I don't think it's reasonable that my own opinions on the topic should be the basis for judging whether a picture is acceptable or not, simply because I'm the one tasked with handling (or not handling) the flag. I'd like to establish a more specific policy to guide moderators tasked with handling potentially inappropriate profile pictures. Certainly I'm not suggesting we set up an exhaustive list of inappropriate profile pictures, but something more than what is in the ToS would be useful. For example: "X, Y, and Z are always inappropriate; for anything else, defer to the community team," with specific details about what X, Y, and Z are. I have my own ideas, but I'll omit them to avoid influencing the responses.


Should I install Ubuntu as 32 bit or 64 bit since i have 3GB ram?

I have a Compaq Presario CQ60 with 3 GB ram and 32 bit Operating System and i don't if i should 32 bit since it say 2 GB or less ram. So should i pic 32 bit or 64 Bit.


In what class do you learn how to solve integral equations?

I was interested in knowing in what class does one learn Fredholm theory (integral equations). Any textbook recommendations for learning how to solve integral equations?


converting string 'yyyy-mm-dd' into datetime python

I have a raw input from the user such as "2015-01-30"...for the query I am using, the date has to be inputed as a string as such "yyyy-mm-dd".  I would like to increment the date by 1 month at end of my loop s.t "2015-01-30" becomes "2015-02-27" (ideally the last business day of the next month). I was hoping someone could help me; I am using PYTHON, the reason I want to convert to datetime is I found a function to add 1 month.  Ideally my two questions to be answered are (in Python):  1) how to convert string "yyyy-mm-dd" into a python datetime and convert back  into string after applying a timedelta function  2) AND/or how to add 1 month to string "yyyy-mm-dd"


How do I prove $\frac 34\geq \frac{1}{n+1}+\frac {1}{n+2}+\frac{1}{n+3}+\cdots+\frac{1}{n+n}$

How do I prove the following inequality  $$\frac 34\geq \frac{1}{n+1}+\frac {1}{n+2}+\frac{1}{n+3}+\cdots+\frac{1}{n+n}$$  without the help of induction?  Thanks for any help!!


Why do some passports change numbers when renewed?

This question is about why the passport number changes? while the  asks if the passport number changes?.  Looking at answers to , it seems that most passport numbers change upon renewal. Not all do though, as I have recently discovered. Apparently, Australian ones do change in some cases.  Why does the passport number change? Is there a rationale for this?  It seems that some organization created rules for passports to change when reissued, but again what are the advantages of this, compared to its disadvantages?


How to refresh the contents of a linked folder in Tomcat 8

I have created a Webapp that requires external images. I achieved that by creating a shortcut of the extFolder in the eclipse project folder (WebContent/Web/images/extFolder).  Now when a user tries to upload a new picture, after the upload the old picture is shown and new one won't show until I restart the webapp.  a. Is there a better way to add an external folder in Tomcat 8  b. If no then can the Webapp refresh that directory to incorporate the changes?


How can I write multi line equations with alignment in inline math mode?

Is there any way to override the fact that certain environments in LaTeX are automatically "displayed"?  One such example is the align* environment.  I want to keep my aligned equations inline.  So basically I want something like  \begin{align*} x+y&=z\\ u+v&=w \end{align*}   embedded into a line of text.


Question about MochaHost.com Hosting Plans

This is not an advertising, I've just found this website (MochaHost) that offers a great things just for 3$/m like :   2 LifeTime FREE Domains UNLIMITED Space and bandwidth SVN (subversion) support SSH access PHP 5, Perl, Python, and Rails   I need to know if any of you had taken from them a hosting plans, what do you think about it?


Looking for title of sci-fi story/book: About space travel and finding dead relatives on a planet?

I read this book years ago and from what I remember it was kind of short for a sci-fi book.  It was about a ship landing on a planet and they all found their dead loved ones living there. The so called dead loved ones explain that this place is where they end up after dying and so on. So the crew assumes this is heaven of some sort. They all happily decide to spend the night with their loved ones.  Only the captain or someone was suspicious of them.  But in the end as far as I remember everyone died. I only remember feeling my blood froze at the ending. It really left a mark. Does anyone know what this is?


How do I evaluate this limit, using Sandwich Theorem?

Using Sandwich Theorem, how can I evaluate the limit for -  $$\lim_{n\to \infty} (a^n+b^n)^{1/n}$$ where $a$ and $b$ are positive quantities and $b$ is greater than $a$.


Possible Duplicate:          Is there a command in Linux which displays when the file was created ? I see that ls -l gives the last modified time, but can I get the created time/date?


Is it worth encrypting email addresses in the database?

I'm already using  to store passwords in my database, which means that I should be immune to  attacks. I had a thought, though: what if someone does get hold of my database? It contains the users' email addresses. I can't really hash these, because I'll be using them to send notification emails, etc.. Should I encrypt them?


I'm using the documentclass beamer to make a presentation. Is there a way to start Matlab code directly from Latex? A button that I can press so that the Matlab code starts to run automatically?  Thanks in advance


Shortcut in Word or Excel for Special Paste?

If I want to paste without any formatting, I have to go to the "Paste" button on the ribbon and click "Paste Special" and then "unformatted text".  Is there a shortcut like Ctrl+V that'll automatically do that for me?


I would welcome a status such as 'I'm in Holiday' in the profile.  So for example, badges like 'Fanatic' would still be possible for people who can not visit the website for 100 consecutive days. Also, the other people would know the reason why someone is not available. Of course, this status would only be an option - maybe something like in Skype.  What do you think?


Today in my analysis class, we were preparing for the final and this question came up:     Evaluate $$\lim_{x\to0}\frac{e^{-1/x^2}}{x}$$   We tried taking the $\log$, using L'Hopitals and some other tricks but couldn't figure it out.   I thought maybe viewing this limits as a sequence in the following way might help;  $$\lim_{x\rightarrow0}\frac{e^{-1/x^2}}{x} = \lim_{n\rightarrow \infty}\frac{e^{-n^2}}{1/n} = \lim_{n\rightarrow \infty}\frac{n}{e^{n^2}}$$  But from them I'm not sure.   Thank you.


How to grab data from a class without making it static per say

So for example I have this class that outputs my detailed flight output that is in the java doc "Flight.java" :  public String toDetailedString() {     String output =         getDeparture() + " - " + getArrival() + "\n" + Airport.getAirportCity(source) + " (" +         source + ") - " + Airport.getAirportCity(destination) + " (" + destination + ")" +         "\n" + plane.getAirline() + " " + number + " * " + plane.getModel();     return output;  }   and I have an Itinerary class "Itinerary.java" and I want to pull the info from Flight.java without making toDetailedString static, is that possible? For added info, each of the variables you see "source, number, destination" are all private variables in Flight.java which I know are enclosed encapsulation. Any help is greatly valuable.   Example implementation in Itinerary.java  public String toString() {     return "The total cost is" + getTotalCost() + Flight.toDetailedString(); }   UPDATE:   In my Flight constructor I have:  public Flight(Plane plane, String number, double cost, Time departure, int duration, Airport source, Airport destination) {     this.plane = plane;     this.number = number;     this.cost = cost;     this.departure = departure;     this.duration = duration;     this.source = source;     this.destination = destination; }   In which I created the object "f1" in my ItineraryTest class:  Flight f1 = new Flight(new Plane(Airline.American, "Airbus A321"),         "495",         79,         new Time(7, 10), 100,         Airport.PHX, Airport.LAX);   Thus I linked my object to the toDetailedString() the object "f1" was renamed to "first" in my Itinerary.java and a second object was created called "f2" and moved to "second" (to avoid confusion) :  public String toString() {     return "The total cost: "              + getTotalCost()             + " "             + first.toDetailedString()             + second.toDetailedString(); }   I thought I answered my own question, but now receive an error of:     Exception in thread "main" java.lang.NullPointerException at   Itinerary.toString(Itinerary.java:117) at   java.lang.String.valueOf(String.java:2994) at   java.io.PrintStream.println(PrintStream.java:821) at   ItineraryTest.main(ItineraryTest.java:20)


Good morning,  For a homework I used a support vector machines (classification) with a RBF kernel, k-fold cross validation=10, cost of constraints violation=100, and gamma=0.001.  It works great and my predictions are very good.  However, we didn't see how to formulate the model in mathematical terms (well we are not going to cover svm in the course at all), and I believe it's important.  I reviewed Hastie's and other books, but I still don't know how to formulate this model.  Can somebody point me in the right direction?


How to set the desktop to $HOME/Desktop?

Recently I deleted the folder Desktop from my $HOME directory. When I logged in again all files and directories in $HOME were shown on the desktop. So I wanted to get the folder back. What is the recommended way to achieve this? I edited ~/.config/xdg-user-dirs.dir and added the correct variable. But I guess there must be some other (more easy?) way.


Trying to open recently viewed tab hangs iOS app for a several seconds.        Probably this occurred due retrieving too many items.   App Version: 1.6.3.6 Device: iPad Air 2 (Wi-Fi) OS Version: Version 10.2 (Build 14C92)


finding the center of a circle given 3 points

Suppose we have three complex numbers $a_1,a_2,a_3$ which are non-collinear. What is the best way to find the center of the circle that contains these three points ?


Okay, so I have this   and I can cut it so when I 3d print it I can take off the head and have something in side of it like an Arduino Uno and other stuff


Degrees of freedom in a diatomic molecule

We know that a monatomic compound can only have 3 degrees of freedom as we can consider it to be a point mass. However now that we consider a diatomic molecule, there are 3 degrees of freedom in translational movement, 1 degree in vibration and the last is in rotation. However why is it that rotation can only have 1 degree of freedom when it can rotate in an infinite number of directions?


I want to write a Hindi couplet in .tex file?

जिन खोजा तिन पाइया, गहरे पानी पैठ, मैं बपुरा बूडन डरा, रहा किनारे बैठ।   How can I write this?


How many throws of a die until every possible result is obtained?

A die is thrown until every possible result (i.e., every integer from 1 to 6) is obtained. Find the expected value of the number of throws.   How do I do that? I understand that probability for the single result is $\{1, 5/6, \ldots , 1/6\}$, but what about the expected value?


Author page doesn't change after username change

I changed my user profile name with WP-Optimize from 'admin' to 'indie' (not really 'indie', just to show you better) but author page still is available only trough example.com/author/admin - not example.com/author/indie. Is there anything I missed?  Greetings, .wired


How to insert element right after inline script tag in javascript?

In my html code I have this inline script (no src)     How can I then insert the div into the DOM with javascript such that it appears right after the script tag, so it ends up looking like this

   The main thing is I want a solution that avoids using id's, class's and attributes to try to do a lookup. Is there a way I can do something like getting the current script node and then a insertAfter method?  Thanks


Undefined citation in bibtex (from sharelatex tutorial)

First time using Bibtex. I was reading the tutorial of sharelatex on bibtex, here:   I copied the bib file they provide into a file:  @article{einstein,   author =       "Albert Einstein",   title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})                  [{On} the electrodynamics of moving bodies]",   journal =      "Annalen der Physik",   volume =       "322",   number =       "10",   pages =        "891--921",   year =         "1905",   DOI =          "http://dx.doi.org/10.1002/andp.19053221004" }  @book{latexcompanion,     author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",     title     = "The \LaTeX\ Companion",     year      = "1993",     publisher = "Addison-Wesley",     address   = "Reading, Massachusetts" }  @misc{knuthwebsite,     author    = "Donald Knuth",     title     = "Knuth: Computers and Typesetting",     url       = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html" }   Then I copied the tex file:  \documentclass[a4paper,10pt]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc}  %Includes "References" in the table of contents \usepackage[nottoc]{tocbibind}  %Title, date an author of the document \title{Bibliography management: BibTeX} \author{Share\LaTeX}  %Begining of the document \begin{document}  \maketitle  \tableofcontents  \medskip  \section{First Section} This document is an example of BibTeX using in bibliography management. Three items are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and the Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.   \medskip  %Sets the bibliography style to UNSRT and imports the  %bibliography file "samples.bib". \bibliographystyle{unsrt} \bibliography{sample}  \end{document}   Saved both files in the same folder, opened the .tex file and clicked on compile. Citations don't appear, I get a [?] instead. I get the warning "Citation 'latexcompanion' on page 1 undefined."  This works on their browser viewer but not on texmaker. What am I doing wrong?


Rearranging display order of attribute table fields using QGIS?

Using QGIS 2.10.1, I open an attribute table.  How do I rearrange the field display order?  For example, a table's default display order (from left to right) is State, County, City.  But I would like to see them displayed as City, State, County.  I'm not interested in rearranging the table's internal structure, rather just the table's display.


Needed subset draws to get all elements with a given probability

I have a set of N elements. I draw (without replacement) a subset of M elements, then replace it. What value M do I need, to have a probability greater than p to draw all N elements within X subset draws? I found the answer when M is 1, but I am not sure how to adapt that in a general case. Thin coupon problem is different from  since we do not have duplicates when we draw a subset.


What to do with an Ubuntu disk image that appears as a WinRAR file?

I've never used Ubuntu before. Just heard from some friends. "IT'S GREAT!!!", they used to say. So i decided to try it. I downloaded WUBI, and ran it but 'twas takin' too much time. So I decided to download the .ISO Image file separately. It couldn't download more after 150 mB, and got interrupted (and cancelled) itself. I just went to , and further went to , and searched for my question. After having found a related one, which told     "try the torrent way"   So I downloaded it through the torrent. And after that when I opened the .rar file, there wasn't any .ISO image file; just some folders with names like .disc, boot, ISOLINUX, etc. I searched for the .ISO file but nothin' there: ANYONE HELP ME, PLEASE!!! or this will drive me into never thinkin' about Ubuntu again.


Communicating with class in a different process

I have class named worker, I want to create new instance of this class in a new process. But I want to be able to communicate with this class after it will be open in a new process and being able to send and receive data.  What I want to do is that in any call to worker() a new instance will be open in a new process so I can see alot of worker.exe in my task manager.  I've done in before with vb com wrapper but now I want to do this only in C# and without COM, Can I do this in the most basic way?  Example to class:  public class worker {     public worker()     {         // Some code that should be open in a new process     }      public bool DoAction()     {         return true;     } }   Example to main program:  worker myWorker = new worker();//should be open in a new process bool ret = myWorker.DoAction();


I often use  on Mac OSX 10.9 to edit and display documents.  Occasionally, I want to use the live preview option with bibliography content.  The program allows you to enable a run of bibtex, makeindex, or makeglossaries, followed by 1, 2 or 3 extra runs of latex at the end.  This process is great, so long as you are using bibtex for the backend of the bibliography.  Is there any good way to get LaTeXian to run biber instead of bibtex?  I'm happy to entertain command-line hacks as well any more clean methods.


Needs to have from port, to port, and time stamps for each (arrival, departure times)  Is there a dataset with all of this, or will I need to combine some other ones?


Multiplication operator has no no eigenvalues

Statement: Let $M_x$ denote the multiplicative operator acting on $L^2([0,1], \, dx)$ by $M_x(f) = xf$. Show that $M_x$ has no eigenvalues  Attempt: Let $M_x(f) = xf$ then we should have $M_x(f) = \lambda f$  then we get $M_x(f) = \lambda f \Rightarrow xf = \lambda f \Rightarrow xf-\lambda f \Rightarrow (x-\lambda)f = 0$  Now $f \neq 0$ so that implies that $(x-\lambda) = 0$ but this is achieved when $x = \lambda$, so I don't see how it doesn't have eigenvalue, when we achieve the desired result.


I am making an FPS, in Unity. I have a player with a gun, and I have a bullet prefab. I changed the mouse pointer to look like a crosshair, but I don't know how to place the bullet where the crosshair is aiming.   The player movement is on the x and z axis. I have done lots of research on the Internet, and couldn't find anything suitable; most of what I found, I could not understand enough to change it according to my needs.  How do I set up a bullet to fire towards the mouse pointer?


I have to prove this result:      If $P$ be the power set, and $B$ and $C$ are two sets, then if $B \subseteq C$ prove that $P(B) \subseteq P(C)$.   Now, it seems obvious to me that since all the elements of B are in C, all possible combinations of the elements of C must include those that of B. But other than this straightforward argument, I'm at a loss to see what kind of proof can be given for statements like these.   Can anyone suggest something more "proper"?


Why is a temperature gradient set up in a heated rod?

Suppose a cylindrical rod is maintained at 100 degree Celsius and the other at 0 degree Celsius. My book says that after reaching "Steady State" the rod will have developed a constant temperature gradient all throughout the rod.  Why does the rod reach a steady state shouldn't the rod keep absorbing heat until it reaches 100 degrees.  Assume the curved portion of the rod is perfectly insulated.


I need to reset the root password of my local mysql installation but it woudln't let me. I've tried this:  $ sudo /etc/init.d/mysql stop  * Stopping MySQL database server mysqld                                                                                [ OK ]  [1]-  Exit 1                  sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking [2]+  Exit 1                  sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking reg@regDesktopHome:~$ sudo mysqld --skip-grant-tables & [1] 13651 reg@regDesktopHome:~$ 140627 19:02:02 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.  reg@regDesktopHome:~$ mysql -u root mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) reg@regDesktopHome:~$ sudo mysql -u root mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) [1]+  Exit 1                  sudo mysqld --skip-grant-tables   How can I get the password reset? edit 1 I got this:  $ ps ax| grep mysql 16515 ?        Ssl    0:00 /usr/sbin/mysqld 16551 pts/23   S+     0:00 grep --color=auto mysql reg@regDesktopHome:~/semios/v3upgrade$ sudo kill -9 16515 reg@regDesktopHome:~/semios/v3upgrade$ ps ax| grep mysql 16678 ?        Ssl    0:00 /usr/sbin/mysqld 16715 pts/23   S+     0:00 grep --color=auto mysql reg@regDesktopHome:~/semios/v3upgrade$ mysql -u root ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)   looks like a process is automatically restarting mysql as soon as I kill it...


I've got a 20k bounty and every guard and jarl just try to kill me so I cant speak to them to go to prison or pay it off


Linux ACL behaviour: settings the mask changes 'ls' output, but not actual permissions

It might be the time of night, but this is puzzling me. Picture the following.  [root@node1 acltest]# getfacl foo/ # file: foo # owner: root # group: testuser user::rwx group::r-x other::---  [root@node1 acltest]# ls -la . total 24 drwxr-xr-x  3 root root     4096 Feb  9 21:53 . drwxr-xr-x 25 root root     4096 Feb  9 21:54 .. drwxr-x---  2 root testuser 4096 Feb  9 21:53 foo [root@node1 acltest]# setfacl -m m::rwx foo [root@node1 acltest]# getfacl foo/ # file: foo # owner: root # group: testuser user::rwx group::r-x mask::rwx other::---  [root@node1 acltest]# ls -la . total 24 drwxr-xr-x   3 root root     4096 Feb  9 21:53 . drwxr-xr-x  25 root root     4096 Feb  9 21:54 .. drwxrwx---+  2 root testuser 4096 Feb  9 21:53 foo [root@node1 acltest]# su - testuser [testuser@node1 ~]$ cd /acltest/foo/ [testuser@node1 foo]$ ls -la . total 16 drwxrwx---+ 2 root testuser 4096 Feb  9 21:53 . drwxr-xr-x  3 root root     4096 Feb  9 21:53 .. [testuser@node1 foo]$ touch bar touch: cannot touch `bar': Permission denied   In words: I create a directory foo, with mode 0750, root as owner and testuser as the group. (testuser is the private group of testuser, but that doesn't matter.)  The getfacl command correctly shows no ACL's on this directory and there is not mask yet. The mask will be set accordingly to the group permissions if I would add a named group or user now.  If I explicitly set the mask to rwx now, the group permissions as shown by ls change too. I know it happens the other way around (the mask changes when the group permissions change), but this seems puzzling.  The more puzzling because the getfacl output does not show the group permissions as rwx but - as said - ls does.  Which one is right? Apparently, the output of getfacl is right, because testuser cannot write to foo. As expected, by the way, because I did not grant the testuser group any permissions to do so.  It goes on. I cannot allow the testuser group write permissions on foo by just using chmod. I have to explicitly set an ACL using setfacl -m g:testuser:rwx foo to allow testuser to finally touch foo/bar.   Can someone explain the rationale behind the difference in the outputs of getfacl and ls? I know it can be tricky to have normal permissions go together with ACL's, but this seems plain wrong. (Though I expect to be missing something glaringly obvious ;))  I have already seen


how can i add an image as a title, which appears in the title bar?

I want to know how to add an image logo as website title. for example if we open our gmail, it shows gmail logo in the title bar how to achieve this..  <title>  Hello user  </title>


How to apply a nuke password for cryptsetup LUKS ubuntu 20.04?

I have problem to setup nuke password, in either ubuntu 18.04, or ubuntu 20.04 i think last version of cryptsetup patch failed to be applied in ubuntu  can't we for example temporary use kali repository and install using apt-get: apt install cryptsetup-nuke-password would u help me solve this?


Why should I make a yeast starter and not just sprinkle the yeast on top of the wort like the packet says? I am sure there must be some good reason why you would do this.


I was examining my battery usage and noticed this:  I don't know what this "-5" app is supposed to be. Could it be malicious or is it just a bug? I own an OnePlus 6 with Android 10 (OxygenOS 10.3.5).