Suppose $\lim_{j\to\infty} a_j=L$  then show that   $$\lim_{j \rightarrow \infty}\frac{a_1+a_2+a_3+\cdots+a_j}{j}=L$$  How would you show this I am entirely certain.  Is this because when you add up all your terms in the sequence and divide by how many you have you have an average, and the limit goes to this "average"


What happens if a question asker never marks or hints that an answer as correct?

What would happen? They would have no indication of it being what worked for them, unlike .


Probability of winning in a die rolling game with six players

There are 6 players numbered 1 to 6, 1 Player, Player 2, ..., Player 6.  Player 1 rolls a die , if he gets a 1 wins and the game ends, otherwise the die passes to the player whose number matches the number that presents the die and the player makes a second pitch, if is obtained the number of the player who has thrown, he wins and the game ends, otherwise the given passes to the player whose number matches the number rolled, the player rolls the die, if is obtained the number of the player who has thrown, he wins and the game ends, otherwise the die passes to the player whose number matches the number that presents the die in this third release, and so on.  Calculate the probability that player 1 wins.


Problems with saving changes in layerproperties (Qgis)

I have problems with layerproperties in Qgis. I load a shapefile, edit textsize and color and do labeling some points with text. After i saved the layer as shapefile again and open it......all changes as edited color and textlabeling are gone. Do someone know what exactly the problem could be?  Regards Prospekteur


show that every irreducible polynomial on $\mathbb{F}_q[x] $ is separable

I have already been able to show that if the irreducible polynomial $ f $ has degree n, then its roots are $ a, a^q \ldots, a^{q^{n-1}}$, where $ a $ is a roots of $ f $ to some extent.  How can I show that they are all different?


Why average incoming spins and sum over outgoing spins?

The book by Griffith on elementary particles reads:     A typical experiment starts out with beam of particles whose spin orientations are random, and simple counts the number of particles in a given direction.In this case the relevant cross section is the average over all initial spin configurations and sum over all final spin configuration.   I do not understand this explanation. If we do not know the spins of both initial and final particles shouldn't we take average for both? Why do we sum for final particles?


Prove that $\triangle ABC$ is equilateral, If $(a+b-c)^{a}\cdot (b+c-a)^{b}\cdot (c+a-b)^{c}\geq a^a\cdot b^b\cdot c^c$

If $a,b,c$ are the sides of a $\triangle ABC\;,$ such that $$\left(1+\frac{b-c}{a}\right)^{a}\left(1+\frac{c-a}{b}\right)^{b}\left(1+\frac{a-b}{c}\right)^{c}\geq 1,$$ then proving $\triangle$ is equilateral.  $\bf{My\; Try::}$ We can write it as $$\left(1+\frac{b-c}{a}\right)^{a}\left(1+\frac{c-a}{b}\right)^{b}\left(1+\frac{a-b}{c}\right)^{c}\geq 1$$ So $$\left(\frac{a+b-c}{a}\right)^{a}\cdot \left(\frac{b+c-a}{b}\right)^{b}\cdot \left(\frac{c+a-b}{c}\right)^{c}\geq 1$$ So $$(a+b-c)^{a}\cdot (b+c-a)^{b}\cdot (c+a-b)^{c}\geq a^a\cdot b^b\cdot c^c$$ Now how can i solve after that, Help required, Thanks


Prove that there exists N ∈ (N) such that $a_n$ > 0 for all n ≥ N.

Let $(a_n)$ be a convergent sequence. Suppose that $\lim_{n\to\infty}$ $a_n$ > 0. Use the definition of a limit to prove that there exists N ∈ (N) (naturals) such that $a_n$ > 0 for all n ≥ N. Use definition of a limit ($|a_n-L|$<$\epsilon$) and definition of convergence of sequences. I have no idea how to even start this proof, or what I should be doing with it. I know I'm trying to solve that $a_n$ > 0, but I don't know how to get there. Not looking for a full proof, just some help of what I should be doing, what I should choose N to be, etc.


"Why couldn't" vs. "why couldn't you have"

Reading Harry Potter 2, I came across the following, and I wonder if the use of couldn't have is the equivalent of couldn't in this context?  "I have got a question, Oliver," said George, who had woken with a start. "Why couldn't you have told us all this yesterday when we were all awake?"  If we change it to the following, how does it change the meaning of it?  "I have got a question, Oliver," said George, who had woken with a start. "Why couldn't you tell us all this yesterday when we were all awake?"  And what is the difference between the following?  If you couldn't do it, you should have told us yesterday. If you couldn't have done it, you should have told us yesterday.


I am Indian Citizen. I having Valid Malta Visa. Now My flight is from India to Istanbul and from Istanbul to Malta. I having Halt in Istanbul for around 3-4 Hours. So please let me know can I have to obtain Transit Visa for Istanbul


Find the number of n-digit numbers whose sum of the digits is 11.  How do I go about approaching this question, using P.I.E?  This is what I tried.   n = 11, when  1 + 1 + 1 + ...  + 1 n = 2 when  5 + 6


I was following a fire tutorial () on YouTube and got to the part where I have to bake the simulation and I noticed that I don't have a bake button at all. I have tried to change it to cycles from Eevee to workstation and still don't have the bake button. I have even tried it on a different Pc and on 2.82/3 I would appreciate it if someone could help Thanks Here is the screen shot of the menu.


Reading double data in cpp with 'e' sign

I have strange problem with reading double data in my c++ program, why is c++ adding nines and how can i make him not to?  When i gave him 8.62400e+02 he save it as 862.39999999999997726 not 862.4    Thank you for any help!


How to set the default format in text_format and hide the select?

/**  * Implements hook_form_alter().  */ function MODULE_NAME_form_alter(   &$form,   \Drupal\Core\Form\FormStateInterface $form_state,   $form_id ) {    if ($form_id == 'node_article_form') {     $form["body"]["widget"][0]['#allowed_formats'] = ['full_html']; // Your default format     $form["body"]["widget"][0]['#after_build'][] = 'MODULE_NAME_hide_format';   } }  function MODULE_NAME_hide_format(   &$element,   FormStateInterface $form_state ) {   if (isset($element["format"]["format"])) {     $element["format"]["format"]["#access"] = FALSE;   }    return $element; }


Why my reputation doesn't increased on an answer upvote

I answered  a few hours ago.  I saw an upvote on my answer, but there was no change in reputation.  Is it a bug?  My reputation was 912 points and even after the upvote it is same.  I didn't get any downvote there  I earned 20 reputation in today morning. so it is not matter of limit capping.  If this is a bug, where do I find help correcting my reputation?


Search for text strings inside a directory and then replacing them, via ssh

Is there any way to search for a text string e.g Hello and replace it with e.g Hi in all the text files in a directory structure with MANY sub directories? I'm running Ubuntu 17.04 x64 server.


Buying a "blender" that can purée a potato

My wife had a "smoothie" made by a co-worker that is based on green apples and raw red potatos.  Our smoothie maker can't do that and leaves unchopped bits and a gritty feel.  Her friend uses a Vitamix blender, and looking up the model number not only induced sticker shock, but reviews raised concerns with the item leaving bits of teflon in the food etc. And the price for just a replacement pitcher is so high that it appears overpriced.  What is it about a blender that allows it to make a good purée rather than just mixing things easily?  I think it might be the design of the blade and base, not just raw power: even a modest powered blender doesn't stall or run out of power; but it doesn't chop any finer no matter how long it is left running.  It might also involve speed vs torque usage of power.  Does anybody know what makes a machine capable of making a good purée as opposed to just blending, especially when both kinds are sold as “blenders”.  Should I be looking for ones with different options for blades like a food processor, to make it well suited to different purposes? E.g. I have seen blades just for milkshakes.  In general, how do you shop for one when the only information a seems to be total power and the number of presets?


Currently I'm storing timestamps in the database like such 1378852898   How can I check this against the current time() to see if it's within the last 10mins with PHP?


Can't Add Answer to Questions from Android App

The "Add an Answer" button is not visible in this  in the android app. The question can be answered from the website from Nexus 10 in which I am running the SE app.   I am running Android 5.0.1 an SE Android App v 1.0.54. I am linking a screen shot. I think this is a bug. Maybe because there are already 11 long answers?


In the paper "Beautiful Code Compelling Evidence", by J.R. Heard -- Code is formated in a particular way which includes margin comments. I am looking for a way to do this as I think it is a very clear way to comment comment code in a literate programming style.


With tabular or tabularx environment, when dealing with numbers , percentages and other math symbols per se, do we need to use the math mode ( $$ for instance ) with every number/symbol.   Is there an option to enable math mode by default in tabular or tabularx ?


I have new flat bars and grips. What's the easiest way to slide the grips onto the bars?


Disadvantages to using Lubuntu on a modern PC?

I understand Lubuntu was designed to be run on slow (older) PC's - but are there disadvantages in using it on modern/fast PC's - eg. it not being able to take full advantage of modern/fast hardware?


Electrons in the quantum mechanical model of the atom

according to bohrs atomic model, the orbits of electrons are quantized and cant have an arbitrary radius, the electron revolving around the nucleus in this orbit, but when I was taught the quantum mechanical model of the atom we were introduced to the concept of orbitals $(s,p,d,f)$ which had different shapes like a sphere, dumbell, double dumbell, and triple dumbell I am unable to comprehend how an electron revolves around the nuclei in these orbits(if it even does because many a time I have been conveniently told that it's merely a cloud of probability of finding an electron and if it is so how does it satisfy $mvr = n\frac{h}{2\pi}$.)


In my understanding of modular arithmetic, any number $x \bmod{1}$ should be zero since any number is divisible by 1.  I'd also like to understand what is meant by "almost all real numbers $\theta > 1$".  If you can explain either one, I'll accept the answer.    You can see both expressions in context in the image below.    This passage is taken from Donald E. Knuth's The Art of Computer Programming, volume 2, seminumerical algorithms, chapter 3, page 152.


Discrete Mathematics Distribution Problem

There are $4$ people that they going to split $50$ gold between them. They got one extra gold that they can pay for punishment. All person makes a proposal that how can share the gold. Of the remaining players in the game, including the bidder If more than half (half is not enough) accepts the bid, the gold will be distributed accordingly and the game will end. If the offer is not accepted, the player who made the offer will be removed from the game and the extra gold that the players have the beginning of to game going to be taken away to be given to the player who has the most gold at the end of the game. the bid will move to the next player and the game will continue with the remaining players. All players trying to get as much gold as possible at the end of the game and considering all the possibilities Since the players perform without any mistakes, who is the player who gets the most gold at the end of the game and how much gold does the player get?


Out of curiosity, I tried to solve the eqation $$x = \tan x$$ but it was harder than I  first thought. Eventually I built an algrothim to solve this eqution using the bisection method.  But, is there any way to arrive to an exact solutions? I tried using taylor series of both $\frac{\sin(x)}{\cos(x)}$ and $\tan(x)$, but in both cases, excpet for $x = 0$, all the solutions were complex (I only try to find real solutions), and every time I tried to use euler's formula, I reached a dead end.


Question about normal subgroup that contains Kernel of a homomorphism

Let $G$ be a group, $H$ be an abelian group, $\varphi:G \to H$ be a homomorphism onto $H$. Let $N$ be a subgroup of $G$ that contains $\operatorname{ker}(\varphi)$. Show that $N$ is a normal subgroup of $G$.   I don't understand the word "contains", if it says $N=\operatorname{ker}(\varphi)$ then I write:     Let $n \in N$, and $g \in G$ be arbitrary, then $\varphi(gng^{-1})=\varphi(g)\varphi(n)\varphi(g)^-1=\varphi(g)\varphi(g)^-1=e$, so $N$ is normal.   But in this question, there can be a $y \in N$ and also $y$ is not an element of $\operatorname{ker}(\varphi)$. Or should I prove first that $N=\operatorname{ker}(\varphi)$? Thanks for any help in advance.


My issue is that I am getting an error statement that states the following:       row[0] = row[2] / row[1] * 100      TypeError: unsupported operand type(s) for /: 'NoneType' and 'float'   Here is the script I'm using to run the operation  #variables  fieldname1 = "acres2"  fieldname2 = "ac_std2"  fieldtype = "DOUBLE"  where_clause_calc = """"acres2" IS NOT NULL"""   #newfields   arcpy.AddField_management(fc, fieldname1, fieldtype)  arcpy.AddField_management(fc, fieldname2, fieldtype)    #float  with arcpy.da.UpdateCursor(fc, ["StatedAcre", "acres2"]) as cursor:     for row in cursor:         try:             row[1] = float(row[0])             cursor.updateRow(row)         except:             row[1] = -999             cursor.updateRow(row)   del cursor    #calculate  with arcpy.da.UpdateCursor(fc, ["ac_std2","acres2","Area"], where_clause_calc) as cursor:     for row in cursor:         if row[1] > 0.00:             if row[1] < row[2]:                 row[0] = row[1] / row[2] * 100                 cursor.updateRow(row)             else:                 row[0] = row[2] / row[1] * 100                 cursor.updateRow(row)          else:             row[0] = -999    del row  del cursor   When I create both fields being used to calculate, I set the field type to DOUBLE. When I open the table in ArcMap the field properties reflect this. What's especially odd is that the updates are performed for about 1/4 of the rows in the table. My questions are why is this error occurring while both field types are DOUBLE, and what can I do to fix this issue?


Why my images get pixelated when I scale them up?

I'm a photographer, I usually edit photos through photoshop, lightroom. But when I try to scale the images it looks pixelated. I can't use the images for large banner or publishing. My camera model is Canon 1100D.


Rate at which a Gaussian random variable is the maximum in a set of independent Gaussian random variables

Assume a random vector $X = [x_1, x_2, ..., x_n]$ where the random variables are independent and Gaussian distributed. At the same time, they are not identically distributed; they can have arbitrary means and variances.   What is the probability that $x_k > x_i \forall i \neq k$? In other words, what is the probability that a realization of the random vector will yield $x_k$ as the maximum value in the vector? I'm looking for a closed form solution if one exists.   Here's as far as I got addressing this problem. Assume $k=1$ without loss of generality.  $P\left(x_1 > x_i \forall_{i > 1}\right) = \int_{-\infty}^\infty p(x_1)P\left(x_1 > x_i \forall_{i>1}|x_1\right)dx_1$   $P\left(x_1 > x_i \forall_{i > 1}\right) = \int_{-\infty}^\infty p(x_1)\prod_{i=2}^n P\left(x_1 > x_i|x_1\right)dx_1$  $P\left(x_1 > x_i \forall_{i > 1}\right) = \int_{-\infty}^\infty p(x_1)\prod_{i=2}^nF_i(x_1)dx_1$  where $F_i(x)$ is the cumulative distribution function for $x_i$.   I'm honestly not sure where to go from here. Any suggestions on whether there is a way forward or whether there is a better approach? Numerical integration is an option to move forward but I'd prefer a closed form solution if possible as it would open up other options for investigation in a larger problem I'm attacking.  Thanks!  UPDATE: The previous question-answer pair marked as providing an answer to this question is not for two reasons. (1) The question is seeking the probability that $x_k$ is the minimum, not the maximum and (2) no closed form solution is offered. If a closed form solution was derived, there might have been a similar approach in the answer that could have been leveraged here. But that is simply not present.   UPDATE-2: There is now a  proposed to the related problem for the minimum that provides the basis for solving the question posed here.


We have PBX controlled via http. When I send http://10.20.30.11:8888/switch?name=lukas&destination=84022&source=84021  in address line Firefox, command is working correctly (tel. line is conected from line 84021 to line lukas 84022. I try send the command via vbs: Set http = CreateObject("Microsoft.XmlHttp")  On Error Resume Next  URL = "http://10.20.30.11:8888/switch?name=lukas&destination=84022&source=84021"  http.open "GET", URL, False http.send   Set http = Nothing  Bat this script isn't working. Could you help me, please? Thank for your answer.


I am level 10 in Pokemon GO and I caught two of the same Pokemon very recently, both of which can be evolved three times.   One Pokemon has a CP of 210 with a moveset of power (10,15). I also have another of the same Pokemon with CP 140 with a moveset of power (10,25).   I need to decide what to evolve. Some people tell me go with CP and the others tell me look at the "bar" (which I do not understand how I can derive implications on what to derive by looking at the Bar above the Pokemon's head because the bar is same for all of that type of pokemon except it is further down for the one with higher CP). Moreover, others tell me I need to evolve both first to see which one is better.   What should one consider before evolving and when should I use the power up button?


Playing around with Google's Ngram viewer, where you can see how many times a word is used in books, I stumbled on this:    It shows how often  have been used in books.  I think it's somewhat interesting that around 1630 the use of these terms took off, and at 1750 there was a switch.   Anyone hazard any guesses to what happened around those years that caused the trends?   EDIT: It looks like the 1750 capitalization issue is more about the search data because the same phenomenon occurs for lots of terms. So maybe just what inspired the use of the word to take off around 1630.


How do you disable Pocket on Firefox 38 and up with GPO?

Firefox announced that their new version would be integrated with Pocket. I would like to disable this for my users in my domain.  What is the best way to do this?


What was the reason to call Star Wars actually Star Wars?   I am not a native English speaker and in the first years as a child/teenager I only heard/spoke about the german translated movie titles:      Krieg der Sterne   what literally translated to English should be      War of (the) stars.   But what should a war between stars emphasize?   Is Star Wars just a good sounding synonym for epic space battles or does it have a deeper meaning? And did George Lucas invented the name?


What is the significance of angular frequency $\omega$ with regards to wave functions?

What is the physical significance of $\omega$ in a function like  $$ f(x) = A\sin(kx + \omega t). $$  The only place that I am familiar with angular frequency is when dealing with circular motion, but when it comes to waves I am not clear how the analogy holds. I am familiar with the idea of a reference circle when dealing with simple harmonic motion, I am still a bit unclear on how this extends to waves. What exactly is this quantity measuring, and why is it useful to write the function in this form rather than an alternative (but equivalent) fashion?


Few application icons not appearing in Ubuntu Dock after upgrading to Ubuntu 17.10

After upgrading to Ubuntu 17.10, Ubuntu Dock icons of some of my apps are not appearing. They appear properly in the dash. I verified the *.desktop files for the applications in /usr/share/applications and ~/.local/share/applications.  E.g. dock icon is not displaying for "Terminator". Check out the attached image.    This is how the icon for the same application appears in dash search:    Content of /usr/share/applications/terminator.desktop:  [Desktop Entry] Name=Terminator Comment=Multiple terminals in one window TryExec=terminator Exec=terminator Icon=terminator Type=Application Categories=GNOME;GTK;Utility;TerminalEmulator;System; StartupNotify=true X-Ubuntu-Gettext-Domain=terminator X-Ayatana-Desktop-Shortcuts=NewWindow; Keywords=terminal;shell;prompt;command;commandline; [NewWindow Shortcut Group] Name=Open a New Window Exec=terminator TargetEnvironment=Unity   Any pointers to debug this issue will be helpful.


How can I roll back my Ubuntu from 18.04 to 16.04?

I accidentally upgraded Ubuntu from 16.04 to 18.04. Now I can't log in to the system. But through the PE system, I can see that the previous file is still on the hard disk. Is there any way to get 18.04 back to 16.04? Or if I want to reinstall the system which paths should I save from the disk?


How to stop automatic freshclam execution

I have the latest version of freshclam and clamav installed, and in the past (when I had Ubuntu 14.10) it has only run freshclam automatically a few times a day, but has not been running all the time. Now what I am finding though that if I go to Terminal and execute:  sudo freshclam   That I get:   ERROR: /var/log/clamav/freshclam.log is locked by another process ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).   And then the only way to be able to manually run that command is to kill the freshclam process, but this is time wasting, and annoying, so I would like to fully stop freshclam from auto updating, so that I can do manual updates.  So what I tried was to install , and in the Update Assistant settings I tried to set it so that I would manually install updates, and then I clicked Apply, but this seemed, even after a restart, to have no impact on how freshclam behaved.  So really my question is, how can I get it so that freshclam does not automatically check for updates, or at least for it to do it a few times a day, but not always be there so that I have to kill it to run it? Or is there a way to fix clamtk so that it does it properly (I have got in touch with the developer of clamtk and he is looking into it, but does not know what the issue is)?    OS Information:  Description:    Ubuntu 15.04 Release:    15.04   Package Information:  ClamTk:  clamtk:   Installed: 5.18-1   Candidate: 5.18-1   Version table:  *** 5.18-1 0         100 /var/lib/dpkg/status      5.15-1 0         500 http://gb.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages   ClamAV:  clamav:   Installed: 0.98.7+dfsg-0ubuntu0.15.04.1   Candidate: 0.98.7+dfsg-0ubuntu0.15.04.1   Version table:  *** 0.98.7+dfsg-0ubuntu0.15.04.1 0         500 http://gb.archive.ubuntu.com/ubuntu/ vivid-updates/main amd64 Packages         500 http://security.ubuntu.com/ubuntu/ vivid-security/main amd64 Packages         100 /var/lib/dpkg/status      0.98.6+dfsg-1ubuntu2 0         500 http://gb.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages


We are building our application with static libraries of Microsoft Visual Studio 2012 (Update 2).  We encounter on scenario where one bug was fixed in the library ATL-based applications and released in the MSVS2012’s 3rd update. We forced to rebuild this application with Microsoft Visual Studio 2012 (Update 3) and shipped in the production.  My question is how we can avoid such situation in the future.  Does dynamic linking solve such issue? But we need to install the redistribution package on the production environment.  Our application is in C++.


Evaluating $\lim_{n \to \infty} n\left(1-\frac{1}{e}\left(1+\frac{1}{n}\right)^{n} \right)$

$$\lim_{n \to \infty} n\bigg(1-\dfrac{1}{e}\bigg(1+\dfrac{1}{n}\bigg)^{n} \bigg)$$   If I write expansion of $\bigg(1+\dfrac{1}{n}\bigg)^{n}$ it was equal to expansion of $e$ so $n-n=0$. Is limit is zero ?  Edit: Uploading screen shot of my response. They marked it correct and I don't know if answer key is wrong or not ? Please can anyone say for sure like with $100$ percent  surety if answer given is wrong.


HTTP Error 500.19 - Internal Server Error ( messed IIS )

I've looked on some of the same questions around here but couldn't find what i need. I think i messed up my IIS 7.5 ( and i don't even know how - only thing that comes to my mind is that maybe i uninstalled something but i don't remember ). A while back all was working perfectly and now not even an empty site doesn't work anymore. I just get the 500.19 internal error for every one.  Example:     Error Summary HTTP Error 500.19 - Internal Server Error      The requested page cannot be accessed because the related   configuration data for the page is invalid.      Detailed Error Information      Module    IIS Web Core      Notification BeginRequest      Handler   Not yet determined      Error Code    0x80070005      Config Error  Cannot read configuration file due to insufficient   permissions      Config File   \?\C:\Users\stalker\Desktop\BDI\Proiect\web.config      Requested URL       Physical Path C:\Users\stalker\Desktop\BDI\Proiect\Default.aspx      Logon Method  Not yet determined      Logon User    Not yet determined      Config Source -1: 0:   web.config file for the site  <configuration>     <system.web>         <compilation debug="true" targetFramework="4.0"/>     </system.web> </configuration>   This site was tested on another computer and worked. As all my other site applications. I'm thinking of reinstalling it >.< but maybe you can offer another solution.


From Coulomb's law, we know that $\epsilon_0$ means . It's unit is $\rm C^2 N^{-1} M^{-2}$ ( coulomb squared per Newton per square meter). But what does it mean physically?  For example, 1 Pa pressure means 1 Newton force applied perpendicularly on 1 square meter area. In a similar way, can anyone please describe $\epsilon_0$?


I have an exposed filter for one of my views and I added a drop-down select for the users to pick from.   In Views for Drupal 7 there was an Auto-Submit check box, but I can not seem to find it in Drupal 8 at all. Does anyone know where it may be hiding or how I can get the filter to auto-submit.


Encryption/permissions - HTG Folder and locker.bat

A couple years ago I locked away some important images/documents. I used  to hiding/locking them.  I made a text file and input the following text, and then renamed the file to "locker.bat" so that I could hide and unhide the folder by entering my password via the bat file.  cls @ECHO OFF title Folder Private if EXIST "HTG Locker" goto UNLOCK if NOT EXIST Private goto MDLOCKER :CONFIRM echo Are you sure you want to lock the folder(Y/N) set/p "cho=>" if %cho%==Y goto LOCK if %cho%==y goto LOCK if %cho%==n goto END if %cho%==N goto END echo Invalid choice. goto CONFIRM :LOCK ren Private "HTG Locker" attrib +h +s "HTG Locker" echo Folder locked goto End :UNLOCK echo Enter password to unlock folder set/p "pass=>" if NOT %pass%== PASSWORD_GOES_HERE goto FAIL attrib -h -s "HTG Locker" ren "HTG Locker" Private echo Folder Unlocked successfully goto End :FAIL echo Invalid password goto end :MDLOCKER md Private echo Private created successfully goto End :End    Everything was fine until my PC started to cark it, and I've since backed everything up and built a new PC. However, now when I open the folder, all of the files are still there, It's taking up the same amount of space, but all of the images and files have a lock on it (as seen in the files attached.)  Is there any way at all of accessing these again? I assume this is an issue with encryption and permissions. I no longer have the old PC, but I just thought because it was a backup, that my new account would be able to access it too.  I've tried setting permissions and copying the files out of the folder onto another computer but it says i do not have permissions. I have tried sharing them but it will not allow me to do it.  Any help would be much appreciated! Have been dealing with this for a long time now.   EDIT: All "Authenticated Users", "SYSTEM", "Administrators", and "Users" have full control. Also, when trying to take ownership of a specific file that is locked, it says that the file could not be decrypted.


Automate logging into PuTTY and running commands

I regularly login to PuTTY and run the following commands to complete a task.  1st Command :     cd/u01/app/oracle/user_projects/domains/COLLECT/EOD/bin_arm   2nd Command :     ./FileUpload.sh   3rd Command :     cd/u01/app/oracle/user_projects/domains/COLLECT/EOD/bin_arm   4th Command :     ./execute_eodarx.sh   How can I automate this with the help of batch or other scripting?  I need to run these commands synchronously. (The next command is to run after the completion of the previous command.)


Sum of series $\sum_{n=0}^\infty \frac{1}{n!(n+2)}$

I'm sure that this sum we should calculate with telescoping, but what algebraic conversions I must do?   $$\sum_{n=0}^\infty \frac{1}{n!(n+2)}$$


I am converting some module from d5 to d7, and in old code there is an update query like this:  <?php db_query("UPDATE {a_table} SET count = count + 1 WHERE field1 = %d", $some_value);   As we see, it is incrementing a field value (AFAIK it is a mysql feature). But, if I use new style of update it won't work.  <?php db_update('a_table')     ->fields(array('count' => 'count + 1',))     ->condition('field1', $some_value)     ->execute();   Are there any workaround within new style of db update without running an extra query to get existing field value to increment it?


How to have an existing Ubuntu installation overwrite a Windows partition?

I am getting used to Ubuntu 18.04, and when I first installed Ubuntu I set it so that I could still run windows 10. Now I want to switch to just be Ubuntu. I would like my Ubuntu partition to destroy my existing windows partition and expand so that my ubuntu partition is the size of both my existing windows partition & existing ubuntu partition.   While I would love to keep the existing file structure of Ubuntu, I do have a back up of the entire file system.


I need to set up dual screen. I've tried countless of ways but failed. Right now, I have re-installed x server so everything is at it's default. How do I switch to dual monitor with one being portrait (and left of) the other, the main screen?


How to randomly generate biome with perlin noise?

I want to generate a procedural world using perlin noise. As expected, my terrain is generating with a repetitive patern. I'd like to add biomes, zones separated with higher or lower amplitude to simulate mountains or plain. I first thought I could randomly select rectangles of verticesof random sizes and then give them bigger amplitude to simulate mountains. The problem with that is that It wont seem natural, since I will only have rectangle biomes and also I don't know how to make it so the mountains would connect with the plain to avoid things like this Here is my script: public int size = 10; public float amplitude; public float frequence; void GenerateTerrain(float amp, float freq) {     Mesh meshy;      MeshRenderer meshRenderer = GetComponent<MeshRenderer>();     meshRenderer.sharedMaterial = new Material(Shader.Find("Standard"));     MeshFilter meshFilter = gameObject.GetComponent<MeshFilter>();      List<Vector2> uv = new List<Vector2>();     Vector3[] vert = new Vector3[size * size];     List<int> tri = new List<int>();     List<Vector3> norm = new List<Vector3>();     meshy = new Mesh();       for (int i = 0, x = 0; x < size; x++){         for(int z = 0; z < size; z++){             float y = Mathf.PerlinNoise(x * amp, z * amp) * freq;             vert[i] = new Vector3(x, y, z);             i++;}}       for (int i = 0; i < vert.Length; i++){         norm.Add(-Vector3.forward);}       for (int x = 0; x < size - 1; x++){         for (int z = 0; z < size - 1; z++){             int i = size * x + z;              tri.Add(i);             tri.Add(i + 1);             tri.Add(i + size);             tri.Add(i + size + 1);             tri.Add(i + size);             tri.Add(i + 1);}}       for (int i = 0; i < vert.Length; i++){         uv.Add(new Vector2(vert[i].x, vert[i].z));}      meshy.vertices = vert;     meshy.triangles = tri.ToArray();     meshy.uv = uv.ToArray();     meshy.normals = norm.ToArray();     meshFilter.mesh = meshy; }  void Update() {     if (Input.GetKeyDown("u"))         GenerateTerrain(frequence, amplitude); }


A website has more than 5000 404 Errors, is this a problem?

I have a website of one of my clients that allows the user to delete pages by themselves with a form. When a page is deleted the website generates a 404 Error.  The deleted pages total about 5000, and the URLs deleted are still in the Sitemap submitted in the Search Console.   Are these 5000 404 Errors a problem? Should I use a 301 redirect pointing to a page with the message, "This page has been deleted"? Do I have to delete these deleted URLs from the sitemap?


Why does elimination method for random variables work?  Elimination method:   Let $f$ be p.d.f. supported on $(a,b)$ with $0<f<c$. Pick $x$ in $Unif(a,b)$, $y$ in $Unif(0,c)$. If $y < f(x)$, accept $x$. Else reject $x$ and pick new $x,y$.   Particularly I don't understand why step 3. suggests that $x$ is a random variable, since it seems to compare "is $Unif(0,c) < f(x)$" basically, which to me reads like comparing two separate things.


Is there a way o changing user's avatar without plugins? Why there's no "Avatar Upload" section in Users > Your Profile?  I can't use a plugin. Am I blind or being forced to use Gravatar? ;/


Why does everybody ask me whether I'm sick in Skyrim?

I've just started playing Skyrim and I've noticed that everyone is asking me whether I'm sick. I don't get this. Is this something connected to the skin color I have?


Is it possible to detect outliers in two related columns

I have pandas data frame which has some related columns, like let's say I have a column that showing housing sale prices and other column shows total area of that house. If I look for outliers alone it's showing really expensive houses but some of them makes sense because they have huge area, what I want to find is cheap houses with huge areas.  I can spot them by eye if I plot scatterplot and filter them out manually, but is there any way to do this without visual analysis?


Test batch on data volume greater than 200

I have a batch class that I want to test (with a test method) on a high data volume, higher than 200. I get a "Too many SOQL queries: 201", on a line which calls Messaging.renderStoredEmailTemplate() which is made several time for 1 record process.  So I'd like to limit the number of SOQL queries in 12 transaction.  In the documentation I see the optional 'scope' parameter of the database.executeBatch() method to limit data processing.  It looks like it doesn't work like explained:   If I use 200 or 199, I fall into the "Too many SOQL queries: 201" error -  If I use a lower value for scope like 100 or 150 and even 1, I get the following error:       No more than one executeBatch can be called from within a test method.  Please make sure the iterable returned from your start method matches the batch size, resulting in one executeBatch invocation.    making believe that it tries but can't recall the execute() method of my batch. This message also makes think that the scope parameter has no influence on the batch size.  How does this parameter 'scope' work? How can I get control on the Batch size ? Is it possible to perform Tests with Test methods on high data volume (> 200 records)?  Thank you for your help


Is there any physical matter which won't appear on x-ray i.e. invisible matter? I think I learnt at university that all phsyical matter appears on x-ray and there is no matter that can be invisible. Is this true? For instance, does dark matter and antimatter appear on x-ray or what technology is used to prove that there is something instead of nothing?


Which server and hosting for streaming video and images?

We are looking for suggestions on which hosting and server to use for our app that allows us to upload content (images/videos) which is viewed by our users on their smartphones. The videos are in MP4 format and 10 seconds on average to a minute long.   This is the first time we've done something like this and we need suggestions on a which hosting to use and also which dedicated server   We are planning on using a CDN like Amazon Cloudfront to deliver the multimedia so we dont have to worry about using a lot of server resources streaming the videos or images.   The server will be mainly used to   Upload and store images and videos  Host a mysql database Be used as a backend (PHP) Upload the content to the CDN as required    I'm thinking of this set up for the server    Ubuntu nginx  PHP 7 Mysql 5.7   I have a $150/month budget for a server. This is the first time I've done something like this so suggestions are welcome and apperciated.   We had a beta test that had thousands of users download our app so we believe we will initially have about 25,000 users and double that by month two.   Most of our users are from North America and Europe


I would like to implement an intelligent bot for Quake-3. I downloaded the and built the code successfully under Linux. My problem is that I couldn't find any complete tutorial telling me how to build an agent; telling which files to use( as there are many files in the source code).  Can you give me a website or piece of source code telling me how to start? Or something like an example source code for a bot.


how to split string base on "\r\n" in c# when string value have "\r\n\r\n"

i have this string   var str="\r\nFeatures\r\nWins\r\n\r\n";   i want split on "\r\n" but between two "\r\n\r\n" have value null or whitespace  i want get result 3 items = Features Wins nullorwhitespace  i write this code but get 2 items =  Features Wins  var val = str.TrimStart('\r', '\n', '\t').TrimEnd('\r', '\n', '\t').Split("\r\n");


Android - Concatenated Strings aren't detected by if condition

Probably this will be so stupid to be asked, but I can't find the way to make it works and even to find the solution on Internet.  I need to concatenate 2 strings (variable STR_Prefix and string "TA+") to create a new one ("ATA+" or "BTA+"), then I have to check the value in an if-statement, but it fails, the if-statement doesn't detect the "ATA+".  But if I set the value of "STR_Action" directly to "ATA+" it works perfectly.  public void Test(boolean ok) {     String STR_Action = "";     if (ok) { STR_Prefix = "A"; }     else    { STR_Prefix = "B"; }      /* I have tried some ways to concatenate */     STR_Action = STR_Prefix + "TA+";    // Not working with the if-statement     // STR_Action = new StringBuilder(STR_Prefix).append("TA+").toString();    // Not working with the if-statement      /* But if-statement only works when I set STR_Action directly with = "ATA+" or "BTA+"; */     // STR_Action = "ATA+";    // This assign is detected by the if-statement      if (STR_Action == "ATA+")     {         Toast.makeText(getApplicationContext(), "ATA+", 0).show();     }     else if (STR_Action == "BTA+")     {         Toast.makeText(getApplicationContext(), "ATA-", 0).show();     }     else     {         Toast.makeText(getApplicationContext(), "Code not found", 0).show();     } }   Please, help :'(  Thanks in advance


How can the read/write speed of a partition or drive be measured?

How can I preferable from the terminal measure the read and write speeds of /dev/sdx?


Why are laptop computers usually powered around 20V DC?

Most electronic devices use 3.3V, 5V (all USB devices), 9V or 12V (very often for electronic music gear), and we usually all have dozains of such wall adapters at home. Even desktop computers have usually 5V and 12V power supply ().  Is there a historic reason (or electronic reason) why laptop computers are usually around 20V?  Why don't they use a quite standard 12V?  Linked question:  but here a bit different, I'm not looking for the reason about the voltage being different from the laptop's battery, but rather why it's different to the standard 5V / 12V  used in desktop computers.


Inverse of a diagonal matrix plus a constant

I am looking for an efficient solution for inverting a matrix of the following form:  $$D+aP$$   where $D$ is a (full-rank) diagonal matrix, $a$ is a constant, and $P$ is an all-ones matrix.   gives a solution to the special case where all diagonal entries of $D$ are the same.  The  formula is also capable of providing a solution to this problem by setting appropriate $u$ and $v$, but it loses efficiency ($O(n^3)$ time complexity to compute) at high dimension. I am hoping to get a result in the same form so the space and time complexity are both $O(n)$.


Do python have syntactic sugar "condition?c:d"

Java, c, c++ both have syntactic sugar like this:  int a = condition ? c : d// if condition is true , a = c, else a = d   Do python have similar syntactic sugar?


Cannot Delete Item "Could Not Find This Item" issue

A friend sent a long a file (a .rar) he wanted me to check out for him before he installed it.  I downloaded it and unrared it with no problems, but it was full of .exe's instead of the intended contents (fonts) so I advised him to delete it immediately and not use.  I then proceeded to do the same, but the folder simply will not delete. Oddly the files went fine, and I never ran anything, but this is what I'm seeing:   Could not find this item  This is no longer located in C:\Users\This_User\Desktop. verify the item's location and try again.   I've tried the following things with no help:   Using "Unlocker" to Unlock and delete Using move on reboot and rebooting Using PendMoves (from sysinternals) and rebooting Elevating a cmd line, doing a dir /x to get the short name of the folder, and then del 'shortna~1' Moving the folder to a new folder and then trying to delete the parent folder   I'm on Windows 7 RTM, very fresh install. Any thoughts?  Update: Just to confirm, I've run Hijack this and half a dozen other malware detectors, and everything came back clean (no extra processes, no other obvious badness). Rebooting in safe mode didn't help either.


What security/encryption is used in an iCloud screen sharing session?

Does anybody have some pointers or information when it comes to the technical and security implementation of Apple's built-in screen sharing feature, the one where you start the Screen Sharing app and type in an Apple ID? I can't seem to find any solid info on it. I'd like to make a security assessment on this for my org, with the possible goal of using it for remote assistance. Catalina or newer versions of MacOS.


I want to make VLC my default player on Mac OS X 10.10.3

I have seen people say to click get info then do something with the 'open with' but when I go to get info there is NO open with option, no options to change at all. I cannot drag the files into VLC like I could before the upgrade either. Please help me out! I am not real tech savvy, but I can do basics and follow instructions. Thanks.


Unable to locate package python-pip on live system

I am trying to install electrum on my Ubuntu live USB. Please forgive me because I am very new to this OS. I have also made a persistence 4GB space for installing software.     How can I get past this error? I tried using   sudo apt-get update   first, but I still get   E: Unable to locate package python-pip   when I try to install.


Axiomatization of $\mathbb{Z}$ via well-ordering of positives.

Though I've seen several cool axiomizations of $\mathbb{R}$, I've never seen any at all for $\mathbb{Z}$.  My initial guess was that $\mathbb{Z}$ would be a ordered ring which is "weakly" well-ordered in the sense that any subset with a lower bound has a minimal element.  However, after seeing  of a discrete ordered ring, I'm less sure. I made that guess under the impression that the fundamental characteristic of $\mathbb{Z}$ is that every nonzero element has exactly one representation of the form $\pm (1+1+\dots+1)$, but that seems to be shared by every DOR.   Presumably, this definition wouldn't exist if every instance of it was isomorphic to $\mathbb{Z}$, so can someone give me an example of another discrete ordered ring? More to the point, what is a sufficient characterization of $\mathbb{Z}$? (and a proof sketch of uniqueness would be nice)  I'm aware that $\mathbb{Z}$ is pretty easily constructible from $\mathbb{N}$, but I want to use this for a seminar and given the audience I am expecting, I would rather not deal with Peano. (And I guess it feels like cheating to say "$\mathbb{N}$ is a well-ordered rig")


I need to execute my python code on raspberry pi 4 automatically, in Every per minute

I entered this command to execute: * * * * * python/home/pi/Desktop/sensor.py >> /var/log/gasdetails.log 2>&1    but it gives an info: Dec 22 21:08:01 raspberrypi CRON[2070]: (CRON) info (No MTA installed, discarding output)


Environment variable specifying preferred terminal

Is there a canonical way to specify a (per-user, or system wide) preferred terminal emulator, just like the EDITOR environment variable specifies the preferred text editor?


How can I take a screenshot of a whole web page?

I have been testing various Firefox extension for screenshot grabbing, but none of them suited my needs.  Then I have found Shutter (0.86.3), and it is really nice. I use exporting to imageshack and FTP a lot.    The only thing I miss is grabbing the whole web page area (not just the part currently visible on the screen). Is there any Shutter extension for this or similar app with such a feature?


If $G$ is a group, $H \leq G$ and $K \leq G$, then $HK \leq G \iff HK = KH$.

PROBLEM     Let $H$ and $K$ be subgroups of a group $G$.  Prove that $HK = \{ab | a \in H, b \in K\}$ is a subgroup of $G$ if and only if $HK = KH$.   WHAT I KNOW  (1) If $H = \{e, \alpha, \alpha^2\}$ and $K = \{e, \beta, \beta^2\}$ are subgroups of $S_4$, one can show that $HK \neq KH$.  We can compute $HK$ and $KH$ to verify that:  In general, the product of two subgroups of a group $G$ is not a subgroup of $G$.  (2) If $H = \{h_1, h_2, \ldots, h_r\}$ and $K = \{b_1, b_2, \ldots, b_p\}$ are subgroups and one of $H$ or $K$ is normal in $G$, then (a) $HK = KH$, and (b) $HK$ is a subgroup of $G$.  (3) If $H$ and $K$ are normal subgroups of $G$, so also is $HK$.  QUESTION     How do I then solve the problem at hand, given that what I know seems to require that at least one of $H$ or $K$ is normal in $G$?  That is, how does one prove the statement in the PROBLEM section in full generality (without requiring that one of $H$ or $K$ is normal in $G$)?


How could a statement be true without proof?

Godel`s incompleteness theorem states that there may exist true statements which have no proofs in a formal system of particular axioms. Here I have two questions; 1) How can we say that a statement is true without a proof? 2) What has the self reference to do with this? Godel sentence "G" can say that SUB(a,a, no prove) but could be this just arbitrarily judgement about non-provability of "a" because it may simply has a proof which is not yet revealed or discovered?


Existential import: in logic, do propositions default to true or false when objects in them do not exist?

In this hypothetical:  Firefighters always tell the truth, while politicians always tell lies.  Suppose three people, who are either a mix of firefighters and politicians, all politicians, or all firefighters, surround you and say "every politician in this circle will have a firefighter to their immediate right."   So is the instance where all three are firefighters possible? It would seem if "every politician in this circle will have a firefighter to their immediate right" defaults to true if there's no politicians it would be, otherwise it wouldn't. Which is it?   Edit for clarification in comments: The proposition "every politician in this circle will have a firefighter to their immediate right" cannot be proven, as there are no politicians in the circle. So if the proposition defaults to true, the firefighters were telling the truth and this specific scenario is possible, otherwise it is not, as this would mean the firefighters lied.


What is the result/effect of the lack of a strong gravitational pull on the moon?   In this question, which is correct, result or effect?   Thanks in advance.


If I have a sentence like   "Hello, I am going for a walk. I will be back home in an hour!"   How do I tokenize the string in C++ so that I get this output:  Hello , I am going for a walk . I will be back home in an hour !   The tokenizers I've looked at removes special signs like period, comma etc. But in this case I want to treat these special signs as "words" as shown above.


Proving $((A \to B) \to B) \to B$ is a tautology

Working on P.D. Magnus. forallX: an Introduction to Formal Logic (pp. 154, exercise D. 7). It is the last exercise of Chapter 16. This is what I got so far.   Is my $IP$ strategy correct ?  $\def\fitch#1#2{\quad\begin{array}{|l}#1\\\hline#2\end{array}} \fitch{}{  \fitch{¬(((A \to B) \to B) \to B)}{    \fitch{¬((A \to B) \to B) }{      \fitch{¬(A \to B)}{        \fitch{B}{          \fitch{A}{            B           } \\           A \to B \\           \bot         }       }     }   } }$  P.S: Here is a link to the open-source book:


What raster smoothing/generalization tools are available?

I have a DEM that I would like to smooth or generalize to remove topographic extremes (chop off peaks and fill-in valleys). Ideally, I would also like to have control over the radius or level of "blurriness". In the end, I will need a set of rasters that range from slightly blurry to really blurry. (Theoretically, the blurriest would be a constant raster of the arithmetic mean of all values).  Are there any tools or methods I can use (based on Esri, GDAL, GRASS)?   Do I need to home bake my own  routine?   Could I use a low-pass filter (e.g. ArcGIS's ), and if so, would I need to run it a bunch of times to get the effect of a large radius?


Show $(p − 1)!=−1 [p] \iff p \text{ is prime.}$

Let $p ∈ \mathbb N, p ≥ 2$, show that :   $$(p − 1)!= −1 [p] \iff p \text{ is prime.}$$    Hint : For one direction, use the fact that $\mathbb F$ is a field and pair each element with its inverse.   I'm not sure where to start with this problem. Any help appreciated. Thanks!


What are the different widely used RAID levels and when should I consider them?

This is a  about RAID levels.    What are:   the RAID levels typically used (including the RAID-Z family)?  deployments are they commonly found in? benefits and pitfalls of each?


Should I provide a button in case users don't think to press enter?

On my site I have a search bar like this:    The user types something in and presses enter. There is nothing they can click on to submit the search. I could make the icon on the right clickable but it certainly doesn't look like a button now and I quite like the way it looks. I could add something to the placeholder, e.g. "Search and press Enter" but again I like how minimal it is now and this will only help if they think to read the placeholder before typing something in.  Can I assume that the vast majority of people on the Internet have figured out when pressing Enter is likely to work?  The site aggregates search results from multiple online stores (linking directly to them) so the users already need some web proficiency to be able to accomplish anything.


Harvard Citation Styles "et al." and hyperlinking citations to references

I am using the Harvard package and a Journal of Finance bst file (downloaded from the ) in a LaTeX document. Here's my code:  \documentclass{report} \usepackage{harvard}  \begin{document} Citation one from \citeasnoun{Kozhan}, and also citation two from \citeasnoun{Kozhan}.  \bibliographystyle{jf} \bibliography{references}  \end{document}   With sample references.bib file:  @inproceedings{Kozhan,   title={The Skew Risk Premium in Index Option Prices},   author={Kozhan, R. and Neuberger, A. and Schneider, P.},   booktitle={AFA 2011 Denver Meetings Paper},   year={2011} }   This prints as:     Citation one from Kozhan, Neuberger, and Schneider (2011), and also citation two from Kozhan, Neuberger, and Schneider (2011).   I would rather have it as      Citation one from Kozhan, Neuberger, and Schneider (2011), and also citation two from Kozhan et al. (2011).   The guide on the Harvard citation styles (http://tex.loria.fr/bibdex/harvard.pdf) says:      [...] where there are more than two authors, all authors are   listed in the first citation and in subsequent citations just the first   author's name followed by `et al.' is used.   However, as can be seen by the example above, this does not seem to be the case. Why? Finally, how can I hyperlink my citations to the relevant entry in the references section?


Changing the number of figure or equation automatically in text by changing the places of figures and equations

Is it possible to automatically reference a figure and equations in text? I meant sth like bibliography references. Moreover, by changing the place of the figures or equations relevant figure or equation number can be changed automatically in text. Exp.:     In remote sensing Equation 1. is applied widely.      Equation 1.                     x= a+b


How  to test  whether subgroup mean differs from overall group that includes the subgroup?

How can I test whether the mean (e.g., blood pressure) of a subgroup (e.g., those who died) differs from the whole group (e.g., everyone who had the disease including those that died)?  Clearly, the first one is a subgroup of the second one.    What hypothesis test should I use?


Deleting your profile from one community

Is it possible to delete your profile from one community and stop being a member of it?   I don't want to delete my full stackEchange account, just my profile in one community.  I found this:  but I'm scared to delete my profile completely.


Is it possible to Block An Application from Accessing the Internet with cmd?

Normally, I would use FireWall to . But I don't want to setup my FireWall system for just an application.   What I want is: create an bat file to start an application. The bat file similar to .  If I run the bat file, the application is blocked from accessing internet. If I run the application directly, the application can access internet.   Is it possible to do that?


ArcGIS Python Script Tool Field Name Drop Down?

I have a python script that checks file path names for corresponding files in a drive location. All of the inputs were originally hard coded, and it works well enough:      import arcpy     import os     shp = r"C:\Users\dotwell\Desktop\Locations.shp"     fields = ["ZdriveLoc"]     f = open (r"C:\Users\dotwell\Desktop\ValMapsTest.txt", "w")     cursor = arcpy.da.SearchCursor (shp, fields)         for row in cursor:             Roll=str(row[0])             if not os.path.exists(Roll):             f.write(Roll + os.linesep)       f.close()   I'm trying to create an ArcGIS script tool from this, and I've only had partial success. I can use   shp = arcpy.GetParameterAsText(0)   to allow the user to select the shapefile. I'd like to then have a drop down list of the fields in that shapefile for the user to select the field that contains the path names, but I can't get it to work. Can someone show me how to generate the drop down? Here's my latest try. It works, but requires the user to type in the field name. It would also be nice for the user to designate the output text file name and location.   import arcpy import os shapefile = arcpy.GetParameterAsText(0) field = arcpy.GetParameterAsText(1) f = open (r"C:\Users\dotwell\Desktop\ValMapsTemp.txt", "w") cursor = arcpy.da.SearchCursor (shapefile, field) for row in cursor:     Roll=str(row[0])     if not os.path.exists(Roll):         f.write(Roll + os.linesep)   f.close()   Here are the parameters in my ArcGIS script tool:


Can a tikzcd arrow be replaced with another symbol?

I'd like to put other symbols than arrows, e.g. a + sign, between the nodes of a tikzcd diagram. Is this possible?


Computer starts up seconds after shutting down

Edit/Summary: I will not have physical access to the computer for the next month (it's at my parent's house and I live abroad), but from reading the comments, I believe a deep cleaning of the internals is a great suggestion, and I will as soon as I get back. I will also replace the MB battery, though the latter seems fine (read below for details). But if you have any proposed solutions that don't require physical access, please express them as I do have Teamviewer access.  I'm having a very weird issue where my computer instead of shutting down will blink for around 3-5 seconds (the sleep-state slow blink) and then it will start up/wake up again on its own. The same happens when I choose to "Sleep".  Things I have tried:   Resetting Windows 10 using the Troubleshoot at boot Resetting BIOS settings to default (disabled wake on LAN) Updating all drivers. BIOS last official update Dec. 2015. Installed since early 2016 Disallowing Wake Events to wake PC. Disabling Hibernate/Hybrid Sleep Checked all devices in Device Manager and disabled Allow device to wake computer when available (only the LAN driver had such an option). Removed all cables except mouse/keyboard/monitor. (no wifi) Checked the physical Power Button Disabled Windows Maintenance Activator and manually ran the maintenance tasks powercfg waketimers returns nothing powercfg -DEVICEQUERY wake_armed returns NONE Unfortunately I had System Restore disabled so I cannot restore to a previous point Threw away my very weak UPS and connected directly to power strip Cleaned the graphics card because its position seemed kind of odd. Rest of the insides have been last cleaned in December Checked condition of motherboard battery: it's fine (after draining the capacitors and cutting power to the PSU for a minute, system time is still correct (50ms ahead)). I will replace it anyway when I get back.   The issue still persists.  When I run powercfg /lastwake I get nothing useful (no wake source), and when browsing Event Viewer, I get Wake Source: Unknown.  Now I'm simply out of ideas. Could it be some kind of motherboard issue? This computer is 10+ years old (battery works fine), but it has been running Windows 10 fine since it came out, and the BIOS was last updated 2015.  Edit: I believe this question is not a duplicate of the one suggested because of two reasons: - I have already read the whole post and the proposed solutions did not help my case. - The duplicate answer suggested has no mention of shutdown issues: only sleep is mentioned. - My issue occurs only seconds after sleep/shutdown regardless of time, suggesting that a scheduled task is not the issue. Therefore I believe that a different answer/solution is applicable.


Are New York pedestrians allowed to use bike lanes?

In NYC, some street bike lanes (specifically, one on 8th avenue in midtown) are typically full of walking pedestrians.  Is this legal? (e.g. are the pedestrians doing it actually jaywalking or violating some other law?)  If it is not legal, is there any evidence that NYC enforces this law in any way?


On the Android app, when I got the new privilege to edit questions and answers instantly, the privilege icon is missing in the "Achievements" tab in the topbar:    The is supposed to be a picture there, which is an up and down arrow picture like this screenshot on my computer:    So can we add the privilege icon back into the "Achievements" tab in the topbar please?


Integrating this complex function, using Residue Theorem

I am having a massive amount of trouble integrating this, I really have no clue how to get the answer in the book:     $$\int_{-\infty}^{\infty} \frac{x^4}{1+x^8}dx$$   I know I need to find the poles on this function, which is basically the value of $x^8 = -1$ or I could split it up like the following: $$x^8 +  1 = (x^4 + i)(x^4 - i)$$ With this I got the following poles (looking at $x^4 - i$), all have an order one: \begin{array} & x_1 = e^{\frac{i\pi}{8}} \\ x_2 = e^{\frac{3i\pi}{8}} \\ x_3 = e^{\frac{5i\pi}{8}} \\ x_4 = e^{\frac{7i\pi}{8}} \end{array} Now to calculate the residues I am trying to make use of the result that given a rational function $\frac{F}{G}$ such that both of them are analytic on a disk of radius $r$ with $G(z_0) = 0$ but $G'(z_0) \neq 0$ then we know that: $$Res(\frac{F}{G};z_0) = \frac{F(z_0)}{G'(z_0)}$$ With that I am having difficulty getting results that are useful, I maybe calculating wrong and I am not sure but I have been spending a long time on this one question. The solution in the book is $\frac{\pi}{4}[sin(\frac{3\pi}{8}]^{-1}$. I would like a step by step solution to this or at least some guidance because I really need to learn this and I am not sure how to do this properly. Thank you!


List all packages that synaptic calls "local or obsolete" using command line

I seek a command line solution to list all packages that synaptic displays as "local or obsolete".  This  to  this  gives the command  aptitude search ~o which gives a partial list.  I suspect that other options after the ~ might help, but haven't found them documented.  Synaptic's list:   Output of aptitude search ~o:  $ aptitude search ~o i   hexen2-data                     - Hexen II commercial data files             i   hexen2-portals-data             - Hexen II Mission Pack: Portal of Praevus   i   libdvdcss-dev                   - library for accessing encrypted DVDs - dev i   libdvdcss2                      - library for accessing encrypted DVDs       i   quake2-full-data                - Quake II data files                        i   quake2-groundzero-data          - Quake II Mission Pack 2: Ground Zero data  i   quake2-reckoning-data           - Quake II Mission Pack 1: The Reckoning dat i   scangearmp2                     - ScanGear MP for Linux.                       Note that the packages 'orphaned' when Canonical pulled updates to them out of the repos are not listed by this command. Neither is pcmanfm which I installed using gdebi.  What's a command I can run in the terminal to give me the same list as synaptic produces?


I'm quite new to Ubuntu and has just had this error when trying to use the update command. Would anyone be be able to help me solve this?  Thank you!  ~$ sudo apt-get update [sudo] password for alastair:  Ign:1 http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu bionic InRelease Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease               Hit:3 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu bionic InRelease Err:4 http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu bionic Release                  404  Not Found [IP: 91.189.95.83 80] Hit:5 http://gb.archive.ubuntu.com/ubuntu bionic InRelease                      Hit:6 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease        Hit:7 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease      Hit:8 http://archive.canonical.com/ubuntu bionic InRelease Reading package lists... Done                       E: The repository 'http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.


Transformations from n-sphere coordinates to cartesian coordinates.

I was wondering how one would proceed to convert between coordinate systems in $ \mathbb R^n $.  For $ \mathbb R^2 $ the conversion is easy and just basic trigonometry. Given $(r, \theta)$ we can convert these polar coordinates to cartesian coordinates to $(x=r\cos\theta, y=r\sin\theta)$  The same follows for $ \mathbb R^3 $. Given $(r,\theta_1,\theta_2)$ in spherical coordinates we can convert the spherical coordinates to cartesian coordinates with the following transformation $(x=r\cos\theta_2\cos\theta_1,y=r\cos\theta_2\sin\theta_1, z=r\sin\theta_2)$, just so my point of reference is clear:$\theta_1$is the angle lying in the x-y plane, and  $\theta_2$ is the angle the vector makes with the x-y plane.  So what about for four dimensions and up? For the sake of simplicity we can define the n-sphere vector as $(r,\theta_1,\theta_2,...,\theta_n)$ and the cartesian vectors $(x_1,x_2,...,x_n)$ and maintain the same reference of $\theta_1,\theta_2$ as before.  How do we define a transformation in $ \mathbb R^4 $?  A look into this wikipedia page under the  gave me something that I don't believe is quite right.  As according to the section  $(x_1=r\cos\theta_1,x_2=r\sin\theta_1 \cos\theta_2,x_3=\sin\theta_1 \sin\theta_2\cos\theta_3,...)$ which is already in contradiction to my statement about $ \mathbb R^3$ transformations.   What is the general transformation rule? Am I missing something that I should know from linear algebra that I might be forgetting because my linear algebra is rusty? If so, please let me know what I should review or point me in the right direction.


How to check two strings are equal in JSP?

how to check whether these two strings are equal in Java using if...else block.              String passw1=(String)request.getParameter("pass");             System.out.println("value of passw1"+passw1);             String passw2=(String)request.getParameter("pass1");             System.out.println("value of passw1"+passw2);             //String a=passw1;//String b=passw2;             if(passw1.equals(passw2))             {             out.println("Password matches");


How to remove the ribbon and command bar in Windows 10

I've tried removing the ribbon bar according to  guide, using Winaero's Remove Ribbon tool. Instead of just removing it, it replaces the ribbon with the command bar, containing tools that I either have no use for or  that I can access by right clicking inside the folder. Google gives me no answers so I come to you.  How can I remove the ribbon in Windows 10 without replacing it with the command bar, or anything else for that matter?


Correlation between continuous data and count data

Suppose we are dealing with this data set $(X_i, N_i)$ where $X_i$ is continuous variable (for example Exponential) and $N_i$ is discrete distribution (for example Poisson) for $i=1,...,n$. Let's say that $\rho$ is the correlation between $X$ and $N$. How can someone define $\rho$?


"Data at the root level is invalid" error when adding ResourceDictionary

While attempting to load a MS standard resource dictionary, "Luna.Metallic.xaml", the following error is thrown during compile:  Data at the root level is invalid. Line 1, position 1. XML is not valid.  I tried both the Notepad++ as well as vim solutions to no avail.  What am I doing wrong?  Many Thanks!  <Application x:Class="test.App"              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"              StartupUri="MainWindow.xaml">     <Application.Resources>         <!-- Resources scoped at the Application level should be defined here. -->         <ResourceDictionary Source="Luna.Metallic.xaml" />     </Application.Resources> </Application>   => Here is a VIM hex display of "Luna.Metallic.xaml", showing no non-displayable characters  0000000: 3c21 2d2d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d  <!--============ 0000010: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d  ================ 0000020: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d  ================ 0000030: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d  ================ 0000040: 3d3d 3d3d 3d0d 0a43 6f70 7972 6967 6874  =====..Copyright 0000050: 2028 4329 204d 6963 726f 736f 6674 2043   (C) Microsoft C 0000060: 6f72 706f 7261 7469 6f6e 2e20 2041 6c6c  orporation.  All 0000070: 2072 6967 6874 7320 7265 7365 7276 6564   rights reserved 0000080: 2e0d 0a0d 0a54 6865 6d65 2053 7479 6c65  .....Theme Style 0000090: 7320 466f 7220 5769 6e64 6f77 7320 5072  s For Windows Pr 00000a0: 6573 656e 7461 7469 6f6e 2046 6f75 6e64  esentation Found 00000b0: 6174 696f 6e20 5665 7273 696f 6e20 0300  ation Version .. 00000c0: 0000 200d 0a3d 3d3d 3d3d 3d3d 3d3d 3d3d  .. ..=========== 00000d0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d  ================ 00000e0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d  ================ 00000f0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d  ================ 0000100: 3d3d 3d3d 3d3d 3d2d 2d3e 0d0a 0d0a 3c52  =======-->....<R 0000110: 6573 6f75 7263 6544 6963 7469 6f6e 6172  esourceDictionar 0000120: 7920 786d 6c6e 733d 2268 7474 703a 2f2f  y xmlns="http:// 0000130: 7363 6865 6d61 732e 6d69 6372 6f73 6f66  schemas.microsof 0000140: 742e 636f 6d2f 7769 6e66 782f 3230 3036  t.com/winfx/2006 0000150: 2f78 616d 6c2f 7072 6573 656e 7461 7469  /xaml/presentati 0000160: 6f6e 220d 0a20 2020 2020 2020 2020 2020  on"..


Why is no moderation required before banning a user from asking questions? Poor question ban system

It's striking to me that people can be banned from asking questions so seemingly trivially by an apparently dumb algorithm with no review, yet other, less important moderation functions need several actual humans to agree to the action.  I know that the Stack Exchanges are originally a programmers' site, and programmers think programming solutions are great, but I'd like to put forward that certain permanent moderation actions (such as banning users from participating) should be done by actual humans, especially since the post-ban algorithm is broken (as explained below).  A much more sensible solution is use some sort of pre-question ban queue.   A user passes a threshold which bans them from posting for a week or what have you.  They are put into a moderation queue. Other users have a week to vote / agree to make the ban permanent.     After a week is past, the user is banned or not.   As for why I think the question ban algorithm sucks, it has blocked me from asking questions on SuperUser after only two questions--one with no votes, another question with a single downvote, and my answer to my own question with a single downvote on it (after noone answered it).  By any reasonable tally, I think that a user being banned after 3 posts with two single downvotes on them is outrageous.


Proposition: $\sqrt{x + \sqrt{x + \sqrt{x + ...}}} = \frac{1 + \sqrt{1 + 4x}}{2}$.

Proposition: $$\sqrt{x + \sqrt{x + \sqrt{x + ...}}} = \frac{1 + \sqrt{1 + 4x}}{2}$$  I believe that this is true, and, using Desmos Graphing Calculator, it seems to be true.  I will add how I derived the formula in a moment, if you would like.  Working  I will be honest; all that I did was use the Desmos Graphing Calculator, and let $y = \sqrt{x + \sqrt{x + \sqrt{x + ...}}},$ let $x = 1, 2, 3, ...$, looked at the point at which the two graphs meet, and searched for the number in Google.  It turned up an interesting website, which you may access , which seemed to show a pattern.  I used this pattern to derive the formula that I stated earlier.


KL-Divergence to evaluate regression model performance

Would it make sense to use KL-Divergence to measure the difference in predictions versus ground truth for a regression problem? I've tuned four models and serve the average as a prediction in the production environment. I plotted the ecdf and kde for each model's prediction versus the ground truth, and I want a way to capture the closeness of the distributions in one number that I can track over time. I use an evaluation metric for MAE for assessing performance, but I also wanted a way to capture how similar or different the shapes of the distributions for prediction and ground truth are in a single number.


Where can I find a good resource which can tell me more about any installed DLL on my Windows machine?


How to access a module from outside your file folder in Python?

How can I access modules from another folder?  Here's the file structure:  /<appname>     /config         __init__.py         config.py     /test         test.py # I'm here   I wanted to access the functions from config.py from test.py . How would I do this? Here is my import:  import config.config   When I run the test.py script, it will always say:  ImportError: No module named config.config   Did I do something wrong?


Is it possible to identify what the parent program/app is from a running process?

I'm able to find processes using top or ps. That's no problem.  Sometimes I find that some processes are taking up a lot of memory or cpu and I'm trying to identify what the root program is.  For instance, the process sort sometimes just ends up taking 2-3 gigs of memory over like 4 hours. I'd like to know what program initiated the sort process so I can try and fix it.


How can I import external data into HealthKit?

I have a few apps that may not be updated to support iOS 8 and HealthKit, but they do offer CSV export of data they have stored.  Is there any way to import historical data into HealthKit and Health.app?


Performing test for homogeneity of variance without samples

I'd like to perform a test for homogeneity of variance in r, but I don't have samples available to test.    I have the sample mean of each group, the sample deviation of each group, and the sample size of each group(100).  Brand    ybar_i  s_i    n_i --------------------------- LowTar   9.64    .291   100 A        10.22   .478   100 B        10.77   .372   100 C        11.57   .352   100 D        13.59   .469   100   I'm thinking I should use the Levene test from Lawstat package, but that requires samples to test.  Or I think I could use the Fmax test. but that also requires samples.


How to properly code a TeX file, or at least avoid `badness 10000`

I'm coding a TeX file and although the .pdf is correctly rendered, I'm using "stone age" tools to code it. As some examples, I use \\ to leave a line space between two paragraphs, or \noindent in every paragraph I start. Basically, I'm just using the basic TeX data I have to code a paper, but I'm sure there are things that can be replaced with much better and appropriate codes, since I get badness 10000. This is the console:  *geometry* detected driver: pdftex ("C:\Archivos de programa\MiKTeX 2.9\tex\latex\amsfonts\umsa.fd") ("C:\Archivos de programa\MiKTeX 2.9\tex\latex\amsfonts\umsb.fd") Underfull \hbox (badness 10000) in paragraph at lines 10--11 [1{C:/Documents and Settings/All Users/Datos de programa/MiKTeX/2.9/pdftex/conf ig/pdftex.map}] Overfull \hbox (10.8009pt too wide) detected at line 49 \OML/cmm/m/it/14.4  [] \OT1/cmr/m/n/14.4 + 1 = [] [] \OML/cmm/m/it/14.4 x \OT1 /cmr/m/n/14.4 + [] [] \OML/cmm/m/it/14.4 x [2] Overfull \hbox (26.66542pt too wide) in alignment at lines 80--82  [][][] [] [3] Overfull \hbox (23.60692pt too wide) detected at line 90 \OML/cmm/m/it/14.4  [] \OMS/cmsy/m/n/14.4 ><C:/Archivos de programa/MiKTeX 2 .9/fonts/type1/public/amsfonts/symbols/msbm10.pfb>   How could I clean up these errors, which I'm guessing are basic?


How to Find Folders (Directories) That are empty (Not Containing Any Files) and Delete Them By Using Terminal Command or Another Method.  Filtration (Finding Directories or Files) Less than 'N' bytes not Safe Because There are files which is only of 50 bytes but should be kept.  I Want to Find only Empty (sub)Directories in Prticular Folder.


I cloned a non Advanced Format drive (W7 64bit) to a new hard drive (Seagate) that was AF, the software I used supposedly does not support 4k very well (Todo Backup Free 3.5).   Is there a Windows utility to check alignment? I know of the Western Digital tool but not sure if it works on Seagate brand drives. If the partitions are not aligned, Am I better to clean install W7 64bit or do the partition alignment procedure? If so, Why?   It seems to be running fine so far. From what I have read Seagate drives use  technology to help with misaligned partitions on the fly, might explain why it runs well for me, but would still like to have the partitions aligned properly.  EDIT: Here is the diskpart output for my disk partitions  DISKPART> list partition    Partition ###  Type              Size     Offset   -------------  ----------------  -------  -------   Partition 1    Primary            188 MB    31 KB    Partition 2    Primary            698 GB   188 MB


I'm stuck with a revision question from a lab. The question is: Write a static method to initialize an array of integers called numList. The size of the array should be passed as an int to the method and the array should be returned. Each odd index position should contain the value -1 and each even numbered position should contain the index value. Thus, such an array might contain {0,-1,2,-1,4,-1,6,-1}.  My code is currently :   public class initializeArray{   public static void main (String [] args) {        int [] numList = new int [6];        alterArray(numList);     }  public static void alterArray (int [] numList)    {     for( int i = 0; i<numList.length; i++)      {       if (i == 0)      {         numList[i] = i;      } else{         numList[i] = -1;     }    } System.out.println( "The array is: " + numList);} }   The return that I'm getting is : "The array is: [I@1ef856c" Thanks.  Updated to:  System.out.println(Arrays.toString(numList));   Error now occuring: "Cannot find symbol - variable Arrays"


EM algorithm gaussian mixtures- derivation

I'm trying to make sense of a derivation I'm following from the lecture notes of Stanford's ML course.  Specifically the notes are here:   I'm particular I'm interested in the step where they are optimizing the lower bound of the log-likelihood by finding the derivative of that function w.r.t the mean (top of page 7). I'm a bit stuck on going from line 1 to line 2 in that sequence.  To copy here (using abbreviated notation for space):  $$ \nabla \mu_s \sum_{i=1}^{m}\sum_{j=1}^{k} w_j^{(i)}\log\frac{\alpha_j \exp\psi_{j}^{(i)}\phi_j}{w_j^{(i)}}  \qquad(1) $$ $$ \nabla \mu_s \sum_{i=1}^{m}\sum_{j=1}^{k} w_j^{(i)}\psi_{j}^{(i)}\qquad(2) $$ where $\psi_{j}^{(i)} =-\frac{1}{2}(x^{(i)}-\mu_j)^T\Sigma^{-1}_{j}(x^{(i)}-\mu_j)$ and $\alpha_j=\frac{1}{(2\pi)^{n/2}|\Sigma_j|^{1/2}}$.  The quantity $\mu_s$ is the mean (of a multivariate gaussian distribution) for class $s$.    In short, I'm not sure how they get from (1) to (2).  From just changing the log of (1) I see:  $$ \nabla \mu_s \sum_{i=1}^{m}\sum_{j=1}^{k} w_j^{(i)}\log \left(\alpha_j \exp\psi_{j}^{(i)}\phi_j\right) - w_j^{(i)}\log w_j^{(i)} \qquad(1) $$  To get to their form (2) my impression is that they take pre-emptively discard terms that would contain derivatives of $w_j^{(i)}$ (w.r.t. $\mu_s$).  At least if you assume that much, you get to (2).  However, as they show earlier in that PDF,  $$ w_j^{(i)} = p(z^{(i)}=j | x^{(i)}) =\frac{p(x^{(i)}|z^{(i)}=j)p(z^{(i)}=j) }{\sum_j p(x^{(i)},z^{(i)}=j) } $$ i.e. this quantity is the posterior distribution of the class labels.  Intuitively, it seems like $\partial w_j^{(i)}/ \partial \mu_s$ should be non-zero.  After all, changing the location of the mean $\mu_s$ would change your posterior probability for a particular class given the same data.  (Right?).  Just from a mechanical point of view, $\partial w_j^{(i)}/\partial \mu_j$ would seemingly have some non-zero terms since $p(x^{(i)}|z^{(i)}=j) \sim \mathcal{N}(\mu_j, \Sigma_j)$.  If I work through the algebra, I get  $$ \frac{\partial w_j^{(i)}}{\partial \mu_j} = w_j^{(i)}(1-w_j^{(i)})\frac{\partial \psi^{(i)}_{j}}{\partial \mu_j} $$  What am I missing here?  If I take the log-likelihood (without even thinking about EM algorithm),    $$ \ell = \sum_{i=1}^{m}\log \sum_{j=1}^{k}p(x^{(i)}|z^{(i)}=j)p(z^{(i)}=j) $$ and differentiate w.r.t $\mu_s$, I correctly get  $$ \mu_s^* = \frac{\sum_{i=1}^{m}w_s^{(i)}x^{(i)}}{\sum_{i=1}^{m}w_s^{(i)}} $$  so I'm comfortable with the eventual result, just not the intermediate steps.


Here's a minimal working example to illustrate the issue. Suppose we make a document like this  \documentclass[12pt]{article} \begin{document} 11111111111111111111111111111  \vspace{5mm}  22222222222222222222222222222 \end{document}   Then crop it with pdfcrop in two ways  pdfcrop 1.pdf a.pdf --margin="0 0 -5 -530"   and  pdfcrop 1.pdf b.pdf --margin="0 0 -5 -560"   Then make a second document  \documentclass[12pt]{article} \usepackage{graphicx} \begin{document} \includegraphics{a.pdf}  \vspace{5mm}  \includegraphics{b.pdf} \end{document}   Here's a screenshot of what results:     The line of twos which was supposed to be cropped is still visible when highlighted!  Is there a way to definitively crop a pdf, without content remaining in this way? Either using pdfcrop or not.  In the past I've succeeded in removing such leftovers by converting to ps and back with pdf2ps and ps2pdf, but for more complex situations it tends to rasterize certain parts of vector graphics, which is what I'm trying to avoid.


Create dynamic triggers based on user selection from managed package

I have a requirement where I need to create two triggers inside a managed package. So, when the package is installed, the admin has a choice to either use the default objects available in the package or configure 2 different objects for further process. I have to create two triggers that will work on either case (either the admin chooses to go with default objects or admin chooses two of it's own SObjects). I want my trigger to work either way. How can I achieve this?


How does social syncretism work when a wizard or witch marries a Muggle?

In the Harry Potter universe, we see huge differences between wizarding culture and Muggle culture. The differences are so huge that one culture is almost alien to  the other.  We also see marriages between wizards/witches and Muggles, as well as lots of half-bloods.  I am curious to know how social syncretism works after such marriages, on average. Do their kids follow wizarding culture or Muggle culture or an amalgamation of both? Do we have a close picture of such families?


Let $X$ be a normed space and let $Y \neq X$ be its vector subspace. Prove that Y does not contain any nonempty open set in X.  Could someone help please with the proof? Thanks in advance! :)


What is the impact of a 'Coming Soon', holding page while redesigning the website?

We're in the middle of redesigning our company website.  A request has come in from management to put in a holding page with basic contact info while the site is redeveloped.  Is this a good idea from an SEO standpoint?   What's the best way to implement this? I believe the temporary, simple HTML and CSS page would be uploaded to the server?


Orcs were the most commonplace villains serving the Dark Powers in all of Tolkien's Legendarium, a race of sentient beings bred by the evil Vala Melkor (Morgoth) during the time of the Great Darkness.  If Orcs were made by Melkor (by breeding Elves he had captured and corrupted) then are they immortal?


If $f$ is convex then $f\left(\sum_{i=1}^n\lambda_i x_i\right) \leq \sum_{i=1}^n\lambda_i f (x_i)$

Show by induction that if $f:\mathbb{R}\to\mathbb{R}$ is convex, then for any $x_1,\dots ,x_n$ and $\lambda_1,\dots ,\lambda_n$ with $\sum_{i=1}^n\lambda_i = 1$,   $$ f\left(\sum_{i=1}^n\lambda_i x_i\right) \leq \sum_{i=1}^n\lambda_i f (x_i) . $$   I think this is similar to the Jensen's inequality, but am not sure how to formally proof this.  Thank you so much!


Can't open a separate usbdrive when booting from a liveusb install 12.10

My problem is using a separate flash drive when running from my live usb of ubuntu 12.10. The problem is that when I choose to Try Ubuntu from this usb drive it no longer lets me access my other flash drive. It automatically sets it to part of the live usb but it's a completely separate flash drive.Ubuntu loads fine and everything but when I go to access my other flash drive nothing happens. When I try to open it from the home folder it gives me  Unable to mount 3.5 volume  Adding read ACL for uid 999 to media/ubuntu failed: Operation not supported message.  My live usb is on a 8gb flash drive and my other flash drive is 4g.


Is it possible to get or display the line number in TextEDit in macOS Big Sur? As I am using the editor for HDL (Hardware Descriptive Language) coding. If it's not possible, could you point me to an editor that supports line numbers that I could use with HDL files?


Please add the ability to add comments to the Android app. Currently I cannot flag comments as being obsolete, too chatty, etc, as I run into them.  This isn't a feature in the mobile site view either, but you have the capacity to add it on the app at least, I hope!


It is secure to upgrade the RAM of a 32-bit Server?

I'm a new I.T. guy in my company, and while I was checking the servers,  I found that, to my surprise, the server is using a 32-bit version of Ubuntu, but is using almost all of the installed 8GB of RAM.  I remember from my "Computer Architecture" classes that only 64-bit operating systems can use more than 4GB of RAM.  The question that follows is: Will it be able to use 16GB of RAM if I were to upgrade it?  (I can't test, because this is the core production server)  uname -a:  Linux bachue 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:19:42 UTC 2013 i686 athlon i686 GNU/Linux   Output from top:


How can a predictor be significant, only on the presence of non-significant ones?

I am performing  longitudinal mixed modelling. What does it mean when a regressor (predictor) alone is not significant for the model (P>0.05) but when I add another predictor, which turns out to be non-significant, the first one is suddenly significant?: e.g.  In the following model age is not significant  Test_performance ~ age + sex, random=(~1 | subjects)  But when I add another variable (e.g. brain size), age is suddenly significant, event though brain size is not.   How is this possible and what does it mean?


How can City-sim simulate hundreds of characters?

My games usually start lagging quite easily when there are a couple hundred of boxes representing possible characters. While games like SimCity or even Anno have hundreds of characters.   I realized that those games don't update everything at every tic, the needs are handled in intervals and it's not a render problem, but all of those tiny creatures have individual path-finding etc. I simply can't understand how they can pull that off for thousands of characters even on old machines. How do they do this?  This question was updated to refer to huge Numbers where individuals don't really count and are simply simulated for immersion and aesthetics.   (Related if referring to individual characters: )    (Different question but maybe related?: )


How do I prove: the posterier is proportional to the product of the prior distribution and the likelihood function?

In the book of pattern recognition and machine learning equation (1.66) says:   Using Bayes’ theorem, the posterior distribution $\bf{w}$ for is proportional  to the product of the prior distribution and the likelihood function.    $$ p(\bf{w}|\bf{x},\bf{t}, \alpha, \beta) \propto p(\bf{t}|\bf{w},\bf{x}, \beta) p(\alpha|\bf{w}) $$  I do know that Bayes's theorem is $P(A,B)=P(A|B)P(B)=P(B|A)P(A)$ but I don't quite know how to derive this so many variable case. Besides, what is the proportion constant, why the remaining is a constant?


Baby Rudin ("Principles of Mathematical Analysis"), chapter 3 exercise 3

If $s_1=\sqrt 2$, and $$s_{n+1}=\sqrt {2+\sqrt{s_n}}$$  Prove that ${s_n}$ is converging, and that $s_n<2$ for all $n=1,2\ldots$  My attempt to use mathematical induction: if $s_n<2$ then I use $s_{n+1}=\sqrt {2+\sqrt s_n}$, to prove $s_{n+1}<\sqrt {2+2}=2$. I guess $s_n$ is an increasing sequence, I can use the $s_n$ is bounded and increasing, and then prove that $s_n$ converges.


I have the following URL hack but it is not working any ideas? The Asset.Account is a lookup field, is that the issue?  /02i/e?CF00NW0000000mpDu={!Asset.Account}&CF00NW0000000mpDu_lkid={!Asset.AccountId}


As you see, I create the graphics in the same document. I would like that Figure one and Figure two are written in the same line and not one more upwards.  \documentclass[english,12pt,oneside, a4paper]{article}  \usepackage{graphicx}    \usepackage{tikz}  \begin{filecontents}{innovation.tex} \begin{tikzpicture}   [node distance=.8cm,   start chain=going below,]      \node[punktchain, join] (intro) {Buyer a};      \node[punktchain, join] (probf)      {Multiple  dddddddddddddddddddddddddd$e_i$ in R\&D};      \node[punktchain, join] (investeringer)      {Multiple  bids $(y_i,p_i)$};      \node[punktchain, join] (perfekt) {Buyer s};      \node[punktchain, join] (perfekt) {Supplier};         \end{tikzpicture}   \end{filecontents}    \begin{filecontents}{supply.tex} \begin{tikzpicture}   [node distance=.8cm,   start chain=going below,]      \node[punktchain, join] (intro) {Buyer announces $V(y)$};      \node[punktchain, join] (probf)      {Multiple };      \node[punktchain, join] (investeringer)      {Buye};      \node[punktchain, join] (perfekt) {Su      \node[punktchain, join] (perfekt) {Su};         \end{tikzpicture}   \end{filecontents}   \begin{figure}     \centering     \begin{minipage}{0.45\textwidth}         \centering         \input{innovation} % first figure itself         \caption{first figure}     \end{minipage}\hfill     \begin{minipage}{0.45\textwidth}         \centering         \input{supply} % second figure itself         \caption{second figure}     \end{minipage} \end{figure}   \begin{document}  \begin{figure}     \centering     \begin{minipage}{0.45\textwidth}         \centering         \input{innovation} % first figure itself         \caption{first figure}     \end{minipage}\hfill     \begin{minipage}{0.45\textwidth}         \centering         \input{supply} % second figure itself         \caption{second figure}     \end{minipage} \end{figure}  \end{document}


Distinguishing definitions from equivalences.

I'm used to people using the symbol $\equiv$ when defining quantities. I might see expressions like  $$\frac{df}{dx} \equiv \lim_{\delta\to 0} \frac{f(x+\delta) - f(x)}{\delta} = 2x \,.$$  where the first part is what is meant by the symbol $df/dx$, whilst the second is an equality that holds in the specific case being considered. On the other hand, what I understand the symbol $\equiv$ to actually mean is 'equivalent to'. A good example of such a usage would be  $$ \sin^2 \theta + \cos^2 \theta \equiv 1 \,. $$  The two usages to me seem rather different. The statement above is not a definition of $\sin$ and $\cos$, and certainly not a definition of $1$! Rather it is a statement with content. The first usage of $\equiv$ that I gave is, on the other hand, content-less, for it only serves to define a symbol.  So what I'm wondering is this:  Are the two meanings I've outlined above in fact not all that different? Or if they are, why is it common to use the same symbol for both? Do we need a new symbol for 'defined to be'? I believe I have seen before the symbol  $$ \stackrel{\mathrm{def}}{=} $$  but it is used very rarely. It is not possible that the different usages of the symbol could cause confusion among students? Or would most people agree that meaning is clear from context?  Thank you.


Iptables firewall rules not restoring on server restart

I am setting up iptables on a new instance of Ubuntu 14.04 server. So far I have:   put iptables rules into a file /etc/iptables.firewall.rules created a script /etc/network/if-pre-up.d/iptablesload.sh and put the following code in it   #!/bin/sh iptables-restore < /etc/iptables.firewall.rules exit 0   The firewall rules work, e.g. if I manualy  run the command from a prompt  $ iptables-restore < /etc/iptables.firewall.rules   the iptables rules get applied. But when I reboot the server the firewall is not up - how can I fix this?


Struggling to understand headlines that use ellipsis

I have trouble understanding headlines because they abuse ellipsis. Two examples:   ""  ""   In both cases, I don't understand what is happening. What are Romney and Ryan doing for the next three months? What does high five have to do with it? Are they going to hug each other? Did they hug already? I thought The Onion, being a satirical newspaper, was trying to make the most unreadable headline possible to mock the way other papers usually write. But then I came across the example from NY Times and noticed journalists really write that way. Who or what is scoring dead? What does is it mean to "score dead"? I get the feeling the phrase is wrong and that it should be something like "Fire scores dead as it sweeps through nightclub".  I try to read newspapers everyday and I've even checked the answers for a  before asking, but I still can't get used to the style of headlines.  So, what do those two headlines mean? And what can I do to improve my reading ability in this specific area?


How high is the maintenance for roads (outside of your territory)?

Regarding road costs in Civ5,  :     Based on experience, it appears that   you only have to pay 1G for each hex   of roads that are inside your   cultural borders. That means that you   don't have to pay to maintain a long   road to a city-state if it goes   through neutral land   Is this correct? Do I only pay for roads that are inside my borders?  (I think this factor is pretty important when settling a new city further off to get a luxury resource, isn't it?)


Name for setup and reversal style of writing?

What is the name of an expression where two noun/verb sentences are reversed in the second half of the expression?  Here's an example:     People were created to be loved.   Things were created to be used.   The reason the world is in chaos is because   things are being loved and   people are being used.


Imagine a perfect vacuum devoid of all matter and radiation. Irrespective of whether such a space can even exist, my intuition tells me that time would not exist within such a space. What this thought experiment tells me is that the human concept of time is basically that it's a measure of motion. Whether its a car speeding down a highway, skin on your face as the years go by, or photons, it's really all about motion. Now what about something like a gravitational field? Could that also be excluded from acting within a perfect vacuum?


Retrieve formatted manual page from command line

I try to export  the manual page of grep to grep.txt      $ man grep > ~/desktop/grep.txt   It displayed in garbled code:              GREP(1)                   BSD General Commands Manual                  GREP(1)              NNAAMMEE                  ggrreepp, eeggrreepp, ffggrreepp, zzggrreepp, zzeeggrreepp, zzffggrreepp -- file pattern searcher              SSYYNNOOPPSSIISS                  ggrreepp [--aabbccddDDEEFFGGHHhhIIiiJJLLllmmnnOOooppqqRRSSssUUVVvvwwxxZZ] [--AA _n_u_m] [--BB _n_u_m] [--CC[_n_u_m]]   How to get a formatted manual page from command line?


For $D$ a GCD domain , let $a,b,x \in D \setminus \{0\}$ , then is it true that $\gcd (ax,bx)=x \cdot \gcd (a,b)$?

Let $D$ be a , and let $a,b,x \in D \setminus \{0\}$. Then is it true that $\gcd (ax,bx)=x \cdot \gcd (a,b)$ ?    Let $c=\gcd (a,b)$ and $d=\gcd(ax,bx)$, then as $cx|ax$ and $cx|bx$ so $cx|d$. We would be done if we could show $d|cx$, but I am unable to show that. Please help me to solve this problem.


Gmail Id, phone number and clash of clans account lost

I played this account about two years back. I want to continue this account now, but I have lost my Gmail Id, my old phone, and the phone number I made the Gmail with. I managed to get a screenshot of my profile from a COC friend, so I know my player name and tag.    Since I lost Gmail Id and the phone number too(which I could otherwise have used to find my gmail account) , I have no idea what to do. I also can't disconnect and reconnect Google play account since I'm using a new phone.       So is there any way I could get back my COC account with my player name, player tag and basically my player profile but no Gmail Id?(The account wasn't connected to supercell, only Gmail).    Thanks.


My son received an asus tablet for his birthday last year and has now told me the screen does not work completely (some areas are dead to the touch). I have told him we will send it for repair but he is worried that when it comes back they will have reset it and he will have lost all his apps, videos, photos, programs etc. Can anyone tell me how I back it up so that when it comes back I can just put all the information back on so that it is exactly as it is now. Please can any answers be as easy to understand as possible


I need help with this Aura of statement. How to write an if statement if field one cannot be equal or greater than field two?

I need help with my Aura if statement.There are two time fields that the Start time can not be equal to or greater than the end time? I tried to write out the aura if statement but I am getting stuck if someone can explain it to me in detail. thank you


I'm attempting to transfer a 1.4 GB file to a USB flash drive, and I'm getting speeds of only around 600-700 kbps. I've tried it in every USB port I have available, and I've also changed the setting in the "policies" page of the device manager to optimize for speed. The file is stored locally on the drive, and I'm not noticing anything odd with disk or CPU activity. I'm not entirely sure if the port I've got it plugged into (which is directly on the MB and not on a front header/panel) is 2.0 or 1.1 but even with 1.1 shouldn't I be seeing speeds of at least 10 MBps?   What could be the bottleneck here? I note that pretty much every question similar to this one has gone unanswered on SU.