Why are my flash game saves getting erased?

After installing stand-alone flash games such as , , and  (all of which are great games by the way) I find that my game saves keep disappearing.  I have read how cleaning programs like CCleaner can   . I have CCleaner installed, but do not have it set to run automatically. I have found that whenever I start and then quit IE, my saves disappear. I also run Firefox, but it seems to have no effect on my saves.  My question is: How can I stop IE from deleting these local Flash caches?  As a side note: Do any other browsers have this sort of behaviour by default?


How does the Master Sword differ from other swords in the game?

I just got the Master Sword, and I'd like to know how it EXACTLY works. Can anyone tell me?


What the difference between +x/+x on some Cards, and how does it effect the ability "Undying"

What is the difference between cards that say   Card A: "Put a +1/+1 "Counter" on each Creature you control." Card B: that say "Each creature you control gets +1/+1 and gains Flying"    Does card B also has a counter? Card A states that it has a "+1/+1 Counter" Does the +1/+1 in Card B still count as a counter or not?  If the cards are different between +1/+1 Counters and +1/+1 abilities are different.  Will the +1/+1 ability cause Undying not to trigger, or will it still trigger.


I have downloaded some original fonts from Adobe (Helvetica, Times and others), they are all otf, I installed them on Windows and I can use them with no problem with Indesign and other softwares. However I am now trying to use them in LaTeX (I am a beginner) with no success.  In particular I load the package helvet for example, but it is used a font that resembles helvetica, but is not helvetica. Since I have the original one, I'd like to use it.  So, how to make LaTeX recognize and use my otf? Do I have to set them up manually or is there a package that can do it?


When taking control of a creature, does it gain summoning sickness?

Let's say I have a creature in play that doesn't have summoning sickness anymore. My opponent then takes control of this creature (with for example ). Will this creature have summoning sickness again until next turn? Or will it not, because it was already on the battlefield?


How to modify the description of an edit?

I edited  to add a long update but forgot to add a description of the edit before hitting 'Save Edits'. In revision view, the edit is described as "added 1232 characters in body". Clicking "edit" for this revision will lead to a new revision which I do not want.  Is there any way to edit the description of a revision?


How to put transparent images on to textures

I'm trying to put a PNG image on top of another texture on my cube, I'm following along this tutorial  but I'm getting a different result, my nodes are set up as demonstrated using a image node and mix shader. What am I doing incorrect?


Lost the workspace menu...how to get it back?

Using blender 2.80 stable on Linux with openbox / nvidia. Once in a sudden the top menu with all my workspace was gone. Restarting blender does not help. Blender without the related file shows the menu. As soon the file is loaded it is gone. How can I get it back?


Is "The Lord Of The Rings" really Sauron?

The Lord Of The Rings appears to be the "One Ring" not Sauron! Sauron himself can't control any ring without one ring. Sauron appears to have no power over the elven rings! If anyone who has enough power to use the One Ring he can control all the other rings and become the lord of the rings. There are many many examples that proves this. I am not sure why people think Sauron is the Lord of the Rings. It appears to me it's the ring of power itself and not Sauron that is the Lord of the Rings. So is it Sauron or the Ring itself that is Lord of the Rings?


How to duplicate an object in 2.8 via the Python API

I know how to successfully duplicate an object by using  bpy.ops.object.add_named(name = 'TemplateObjectName')   If the template object named 'TemplateObjectName' has animations, particle systems and modifiers attached to it, the previous call will create a duplicate object that also has those components. However, if I duplicate an object using   template_object = bpy.data.objects['TemplateObjectName'] new_object = bpy.data.objects.new('NewObjectName', template_object.data) collection.objects.link(new_object)   how do I attach the template object's animation, modifiers, particle systems...?


Watching the original "Star Wars" ("Ep IV" to anyone who didn't see it in '77) last weekend, it occurred to me that the Stormtroopers -- a highly trained government army -- were very poor shots. Evidenced by the scenes where Han rounds a corner ten feet away from a large group (including the ones he was chasing, so there was no element of surprise), and several other scenes that left me thinking as bad an aim as I am, I could have done better. It's not like a laser gun has a recoil.  Of course the good guys had to live, and the Stormtroopers represented an endless supply of cloned cannon fodder, so it didn't matter how many of them were shot.


Improvements on citations as footnotes in Biblatex

I'm using the code of  , and I would like to ask how to make some changes.   Is there a way to modify it in such a way that citations appears as [1] instead of 1? Is there a way of shifting the citations from superscripts as shown in^1 to in-line as shown in [1]? How to deal with footnotes? In the current code they are again indexed numerically starting from 1, which goes in conflict with citation 1. Should I use symbols?


Multiple conditions for new field return NULL value in QGIS when using field calculator

I have a field with building height in levels. I want to create a new field that returns 'low-rise' if buildinglevels < 4. That returns 'mid-rise' if building level is 4-9 and that returns 'high-rise' if building level > 9.  I can do this for one condition   If( "buildingle" > 9, 'high-rise' ,pass)    But when trying the others, they overwrite the previous to NULL. How to solve this?


I'm using the AMS package in LaTeX and I added a \section{} line, but I want it to be in the center instead of aligned to the margin. How do I do that?


Print stops in HP LaserJet M1126nw MFP with Ubuntu 18.04 LTS

I'm installing a new USB printer HP LaserJet Pro M126Nw on a laptop. The printer is installed but when I print a document it's getting stopped.


I need Create a VF page and controller to allow user to create 5 contacts (as soon as user land on page, show 5 empty contact rows where user can input) for given account ID in url and save them to that account. Also allow user to add more contaact rows if needed using a button.


wrong distribution of an even number of dots

Working on my answer to  I've found that the distribution of a number of consecutive \bullet (or \cdot) is different if the number is even or odd. Space between two last elements in an even list is shorter. Why? How could it be corrected?  \documentclass{article} \usepackage{pgffor}   \newcommand{\mydots}[1]{$\foreach\i in {1,...,#1}{\bullet}$}  \begin{document} \foreach\i in {1,...,15} {\noindent\mydots{\i}\\} \end{document}


Does it make sense to write $ a \bmod n$? Most pages I see write $ a \equiv b \bmod n $, meaning two numbers leave same remainder when divided by $n$. I am trying to understand the meaning of the first, does it simply mean remainder of $a$ when divided by $n$? If the above is correct, then which is the correct notation $ 3 \bmod 2= 1$ or $ 3 \bmod 2 = 1 \bmod 2$?


What's the name of this theorem ($f>g$ given $f'>g'$ and initial value)?

I need to use this theorem as part of a proof. Basically it goes as follows:  If $f(x_0) > g(x_0)$ and $\frac{d}{dx} f(x) > \frac{d}{dx} g(x)$ for all $x \geq x_0$, then $f(x) > g(x)$ for all $x\geq x_0$.  What's the name of this theorem, if it has one? Or if it doesn't, is there a simple way to prove it that I could include in my proof? Thanks.


Is the buyer's agent fee assessed on a real estate sale if there is no buyer's agent?

state that the typical real estate agent fee is 6% of the sale price of the home and that this is divided into 3% for the seller's agent and 3% for the buyer's agent. What happens typically if there is no buyer's agent? Does the seller's agent get 6% or just 3%?  For example, let's say I find a house I want to buy and go directly to the seller's agent and I have no agent myself. Will the seller's agent get the full 6% in that case?  If so, it would appear that the seller's agent would be strongly motivated to sell to an independent buyer, because in that case they would receive double the commission than if they sold to a buyer that had an agent.


Getting a basic screen for app store, and not showing further updates

I don't know how to fix this, it is a friend's 2017 Macbook Air running High Sierra, thought I would update it to Big Sur finally. There is an issue with my mac running High Sierra. Now that I need to update, it is showing this.


What's the point of hand-filled immigration forms?

Whenever you enter the US, you are required to fill out , which asks for your personal details and whether or not you're bringing in any restricted goods. Whenever you are entering the UK, you are required to fill out a  and passengers entering Canada fill out an . As far as I can tell the immigration officers usually completely ignore whatever details you wrote in those forms and simply scan your passport to enter your details into their computer. It therefore looks like a complete waste of time, as the majority of passengers have no goods to declare anyway and therefore the immigration forms get thrown away right after you get your passport stamp.  So what's the point of these forms/declarations? Why require absolutely everyone to fill them out? As a bonus question explain why car passengers are spared from this obligation and are instead asked verbally if they have something to declare.   Update: no more landing cards in the UK! Now just waiting for US and Canada to remove their outdated practices.


I'm a novice photoshop user, i stumbled upon the designs of the awesome mike of creativemints, and i noticed how his backgrounds are really beautiful and smooth, i tried to recreate it and failed miserably so my question is, how do you achieve such effect??     and thank you so much!!


From an SEO perspective, does Google treat these 2 URL formats equally, or is one better than the other?


Can I delete /var/log files because of low root space in Ubuntu?

Is it possible to have 64.5GB log files in Ubuntu? Can I delete those files? My laptop is dual booted and the Ubuntu partition is only 100GB.


Which of the following is true for a metric space?

Let $(X,d)$ be a metric space. Which of the following is possible?    $X$ has exactly 3 dense subsets.  $X$ has exactly 4 dense subsets. $X$ has exactly 5 dense subsets. $X$ has exactly 6 dense subsets.    I've absolutely no clue as to how to tackle this problem.


How can I replace a string with a string that contains a special character, using sed

For example replace keystore=".  with keystore="./


Logged and CheckIn As different user Subversion

Im working on a project that under SVN. i need to logout from svn and logged in as a new user to checkin files to the subversion.  i tried  $ svn co svn://hostname/myproject myproject --username user_name no luck  Thanks Roshan.


Difference between dict.clear() and assigning {} in Python

In python, is there a difference between calling clear() and assigning {} to a dictionary? If yes, what is it? Example:d = {"stuff":"things"} d.clear()   #this way d = {}      #vs this way


convergence of the series $\sum^\infty_{k=1}kx^k$

The series $$\sum^\infty_{k=1}kx^k$$converges to $$\frac{z}{(1-z)^2}$$ Could anyone give me a hint on how this convergence can be proven? I am especially puzzled as the $k$ on the left seems to disappear completely in the process of convergence.


How to show that $\int_0^1 \left(\sqrt[3]{1-x^7} - \sqrt[7]{1-x^3}\right)\;dx = 0$

Evaluate the integral: $$ \int_0^1 \left(\sqrt[3]{1-x^7} - \sqrt[7]{1-x^3}\right)\;dx$$   The answer is $0,$ but I am unable to get it. There is some symmetry I can not see.


How to prove that both $\mu_0$ and $\epsilon_0$ don't depend on any frame of references?

Based on my previous question , lets us step back a little bit. The speed of light $c=1/\sqrt{\mu_0\epsilon_0}$ is assumed as a value that does not depend on the observer because it is just a product of two constants. I am still wondering why Maxwell assumed that $\mu_0$ and $\epsilon_0$ are constant that do not depend on the frame of reference. In my understanding both these constants are obtained from experiments. Both these experimental constants are not like $\pi\approx3.14\ldots$ or $e\approx 2.71828\ldots$ which are constants obtained theoretically or geometrically. So I think the derivation of Maxwell's electromagnetic wave equation  should start by assuming that $\mu(x,y,z)$ and $\epsilon(x,y,z)$ first and then prove that both do not depend of any frame of references. Question How to prove that both $\mu_0$ and $\epsilon_0$ do not depend of coordinate system of choices?


Prevent macOS from bringing all windows to front when switching to an app?

I have 2 windows of Google Chrome open, one on each display. Switching to Google Chrome puts both the windows on top of the rest of the apps on both the displays.  This is annoying as I write using one display, and use the other to view reference material. Switching apps often causes the windows on other display to get inadvertently covered.  I have set displays to have separate Spaces.  Is there any way to prevent macOS from bringing all the app windows to front, or, to prevent the app windows shown on the other display from  switching too?


I want to customize my sections to look like the following but I don't know how to do it. Can somebody help ?


Does a magnetic field (moving relative to the charge) act on a stationary charge?

Does a magnetic field moving relative to a stationary charge act on it?


Using Powershell to create wiki pages from an xml file

I'm trying to batch create wiki pages from an xml file, and have found a few posts that I'm trying to combine, such as  one. There's some problem with my code (Sharepoint isn't creating the pages), but it's not giving me an error message. I'm pretty sure this code is over-complicated, but I'm not sure which parts are necessary, and which are extraneous. Thanks for the help.  CODE:   Add-Type -Path 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\Microsoft.SharePoint.Client.dll' Add-Type -Path 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\Microsoft.SharePoint.Client.Runtime.dll'  function CreateTestWiki() { [CmdletBinding()]     Param(     [Parameter(Mandatory=$true)]     [string]$SiteUrl,     [Parameter(Mandatory=$false)]     [string]$PageTitle,     [Parameter(Mandatory=$false)]     [string]$PageUrl,     [Parameter(Mandatory=$false)]     [string]$PageContent,     [Parameter(Mandatory=$false)]     [string]$PageLayout,     [Parameter(Mandatory=$false)]     [switch]$CheckIn,     [Parameter(Mandatory=$false)]     [switch]$Publish,     [Parameter(Mandatory=$false)]     [switch]$CreateFromXml,     [Parameter(Mandatory=$false)]     [string]$XmlInput,     [Parameter(Mandatory=$false)][System.Net.NetworkCredential]$credentials     ) #Region CreateFromXml if ($CreateFromXml) { # Read in list of pages from XML [xml]$pagesXML = Get-Content $($XmlInput) if ($pagesXML -eq $null) { return } # Get publishing web $site = New-Object Microsoft.SharePoint.SPSite($SiteUrl) $psite = New-Object Microsoft.SharePoint.Publishing.PublishingSite($site) $web = $site.OpenWeb() $pWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web) $templateRedirectionPageMarkup = '<%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=14.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Reference VirtualPath="~TemplatePageUrl" %> <%@ Reference VirtualPath="~masterurl/custom.master" %>';  $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($webUrl) $ctx.Credentials = $credentials   $wikiPages = $ctx.Web.Lists.GetByTitle("Pages") $load = [Microsoft.SharePoint.Client.ClientContext].GetMethod("Load")  $listLoad = $load.MakeGenericMethod([Microsoft.SharePoint.Client.List])  $listLoad.Invoke($ctx,@($wikiPages,$null))  $ctx.ExecuteQuery()  # Loop through each page node to extract filename $pagesXML.Pages.Page | ForEach-Object {     $PageTitle = [string]$_.PageTitle     $PageUrl = [string]$_.PageUrl     $PageLayout = [string]$_.PageLayout     $PageContent = [string]$_.PageContent     $ctype = $psite.ContentTypes[$PageLayout]     $layouts = $psite.GetPageLayouts($ctype, $true)     $layout = $layouts[0]     Write-Host "Creating $($PageTitle)"      # Create blank page     $pages = $pWeb.GetPublishingPages($pWeb)     $page = $pages.Add($PageUrl, $Layout)     #$newPage = $pWeb.AddPublishingPage($PageUrl,$PageLayout)     $page.Update()      # Update the filename to the one specified in the XML     $item = $page.ListItem     $item["Title"] = $PageTitle;     $item["Page Content"] = $PageContent;     $item.Update()     # Check-in and publish page     if ($CheckIn){$item.File.CheckIn("")}     if ($Publish){$item.File.Publish("");} } #End ForEach Loop # Dispose of the web $web.Dispose() } #End CreateFromXml #EndRegion CreateFromXml  }


If most universities in the U.S are non-profit, why are they so expensive?

Tuition can easily get in the tens (if not hundreds) of thousands of dollars for a 4-year degree. This is unarguably many times over what the university needs to cover the costs of offering their services. Why is this the case if they are usually run under a non-profit architecture?  Where is all this money going?


Why results of map() and list comprehension are different?

The following test fails:  #!/usr/bin/env python def f(*args):     """     >>> t = 1, -1     >>> f(*map(lambda i: lambda: i, t))     [1, -1]     >>> f(*(lambda: i for i in t)) # -> [-1, -1]     [1, -1]     >>> f(*[lambda: i for i in t]) # -> [-1, -1]     [1, -1]     """     alist = [a() for a in args]     print(alist)  if __name__ == '__main__':     import doctest; doctest.testmod()   In other words:  >>> t = 1, -1 >>> args = [] >>> for i in t: ...   args.append(lambda: i) ... >>> map(lambda a: a(), args) [-1, -1] >>> args = [] >>> for i in t: ...   args.append((lambda i: lambda: i)(i)) ... >>> map(lambda a: a(), args) [1, -1] >>> args = [] >>> for i in t: ...   args.append(lambda i=i: i) ... >>> map(lambda a: a(), args) [1, -1]


How can I remove duplicate rows from one SQL Server database table?

I want to delete the duplicate entries from one table of database (SQL). I don't understand how do I do this?  Please help me to write a query for this problem.  For e.g.-  Name | mobileno | address  abc  | 99xxxx01 | India  abc  | 99xxxx01 | India  def  | 98xxxx02 | USA


Proving that the Fourier Basis is complete for C(R/$2*\pi$ , C) with $L^2$ norm

Let $H$ be the inner product space = $\{f: \mathbb{R} \to \mathbb{C} \mid f \text{ is continuous and has period }2 \pi\}$ where the inner product is: $$\langle f,g \rangle = \int_{0}^{2\pi}f(t)\overline{g(t)} dt $$  How do I prove that for $n \in \mathbb{Z}$ and $e_n(t)=\dfrac{1}{\sqrt{2\cdot\pi}} e^{i n  t}$, $(e_n)_{n \in N}$ is a basis of $H$ (that it is orthonormal is easy).


I am getting the below error during execution of archydro. "system runtime interoperservices com exception (0x80004005): error HRESULT E_FAIL"  I tried all options available on internet to solve this but no luck.  What is the cause of these type of issues? Is this related to application or os ? What is the perfect fix if it is caused by arcgis/hydro or os ?  I am using windows7, 64-bit, Arcgis10.


I am trying to open a simple executable using Mono, as Wine told me to install Mono for .net applications, and this is the error I get      mono yt.exe  ** Message: Unknown heap type: #GUlD    ** Message: Unknown heap type: #Blop      ** (yt.exe:2508): WARNING **: The following assembly referenced from /home/austin/Downloads/yt.exe could not be loaded:       Assembly:   System.Windows.Forms    (assemblyref_index=0)       Version:    4.0.0.0       Public Key: b77a5c561934e089  The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/austin/Downloads/).      ** (yt.exe:2508): WARNING **: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.    ** (yt.exe:2508): WARNING **: Missing method EnableVisualStyles in assembly /home/austin/Downloads/yt.exe, type System.Windows.Forms.Application    Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.  File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'   Thanks for any help, i've looked everywhere and can't figure out what's wrong.


Button click event not firing after ajax call

I am working in wordpress and my ajax function result showed one button whose html is mentioned below. Now I want to run a click event on that button but when I click it nothing happens. Below is the html and jquery code of the button I am using and kindly note that this button is shown as a result of an ajax operation. thanks !!  html  <input style="background-color:purple" id="readmore" type="button" value="Readmore!!" name="mybutton">   jquery  jQuery("#readmore").on('click', function(e){     e.preventDefault();     alert("you clicked the button");     jQuery("#bodytext").css("display","block"); });


Scenario is  public interface IRow {     int Id { get; set; }     string Name { get; set; } } public class ARow : IRow { ... } public class BRow : IRow { ... } public class RowCollection<T> : Collection<T> where T : IRow {    }  public interface ITable<T> where T : IRow {     RowCollection<T> DataRows { get; }     int Id { get; set; }     string Name { get; set; } }  public class ATable : ITable<ARow> {     public RowCollection<ARow> DataRows     {         get;         set;     }  }  public class BTable : ITable<BRow> {     public RowCollection<BRow> DataRows     {         get;         set;     }  }   When i do something like this           List<ITable<IRow>> lt = new List<ITable<IRow>>();         ITable<IRow> ads = new ATable();   I get error, i know its something to do with covariance and contravariance if someone can help me overcome this error will be much appreciated.  For sure i need to learn more on this topic but expecting a quick help on fixing this issue/scenario first.  Regards, San


Elysia cron module does not execute cron job automatically

I have installed the elysia cron module and setup the cron job. My module has a cron function test_cron() which inserts some data into a table.  This function lists in the elysia cron status page. I have setup the the default scheduled rule to */1 * * * * to run the cron after every minute.  When I click on the run infront of the test_cron() the cron runs and some data inserts into the database.  But this the manual method, I want to execute the cron after every minute therefore I defined the scheduled time for the test_cron(),  but it does not executed automatically after every minute.  What should I do? Is there any other configuration which I should do to run the cron automatically?


I am a bit confused about the intern function. I have the following code:  public class InternTest{      public static void main(String args[]){             String s1 = "ANEK";             String s2 =  new String("ANEK");             String s3 = s2.intern();             System.out.println(s3 == s1); // True              String s11 = "ANEK".concat("SINGH");             String s22 = s11.intern();             System.out.println(s11 == s22); // True              String s4 = "nat".concat("ive");             String s5 = s4.intern();             System.out.println(s4 == s5); // True              String s33 = "ma".concat("in");             String s44 = s33.intern();             System.out.println(s33 == s44); // false              String s331 = "ja".concat("va");             String s441 = s331.intern();             System.out.println(s331 == s441); // false     } }   My question is regarding the output. In the third case it gives me true, but in the fourth and fifth case it gives me false. Can I known what is reason behind those output? I could not come to the conclusion that it gives false for java reserved word or key word because when I tried with en um it gives true but with by te it gives me false. Can any one tell me why?


What is the sign of $-1^{\frac{2}{3}}$? I thought it was positive 1 because it involves squaring, but that doesn't seem to be the case. Why?


Understanding why $\frac{\partial (F_{\mu \nu} F^{\mu \nu})}{\partial (\partial_\lambda A_\beta)}=4 F^{\lambda \beta}$ in Maxwell's Equations

In trying to derive Maxwell's equations from $$S=\int d^4 x\left(-\frac 1 4 F_{\mu \nu}F^{\mu \nu}\right)$$ Where $$F_{\mu \nu}=\partial_\mu A_\nu-\partial_\nu A_\mu$$ I'm trying to show that $$\frac{\partial (F_{\mu \nu} F^{\mu \nu})}{\partial (\partial_\lambda A_\beta)}=4 F^{\mu \nu}$$ But there seems to be something wrong with how I'm going about doing this. My work currently: $$\frac{\partial F_{\mu \nu}}{\partial(\partial_\lambda A_\beta)} = \frac{\partial F^{\mu \nu}}{\partial(\partial_\lambda A_\beta)}=\delta_{\lambda \mu}\delta_{\beta \nu}-\delta_{\lambda \nu}\delta_{\beta \mu}$$ Where $\delta$ is the Kronecker-Delta function. From this we find that $$\frac{\partial}{\partial(\partial_\lambda A_\beta)}\left(F_{\mu \nu}F^{\mu \nu}\right)=(F^{\mu \nu}(\delta_{\lambda \mu}\delta_{\beta \nu}-\delta_{\lambda \nu}\delta_{\beta \mu}))+(F_{\mu \nu}(\delta_{\lambda \mu}\delta_{\beta \nu}-\delta_{\lambda \nu}\delta_{\beta \mu}))=(F^{\lambda \beta}-F^{\beta \lambda})+(F_{\lambda \beta}-F_{\beta \lambda})$$ Asserting that $F^{\mu \nu} = -F^{\nu \mu}$ and renaming the dummy indices we get $$\frac{\partial}{\partial(\partial_\lambda A_\beta)}\left(F_{\mu \nu}F^{\mu \nu}\right)=2(F^{\mu \nu})+2(F_{\mu \nu})$$ Which is a bit off target. Did I go off course somewhere in my current work or am I just missing a few final steps?


How to transfer data from Sybase to SQL Server database?

url reference   Please tell me how to transfer data from sybase to sql server database.


I am trying to run a Python program, and when I run python ldbb.py, I get the following error:  root@dell-OptiPlex-3050:~/refractiveindex.info-scripts-master/ldbb# python ldbb.py Traceback (most recent call last):   File "ldbb.py", line 29, in <module>     from scipy import constants ImportError: No module named scipy   What should I do now?


Questions with tags containing accent marks break those on editing

Few days ago I was editing  in Spanish.SE using the mobile site. It has three tags: ,  and  and, as you can see, all of them contain accent marks.  When I was about to submit the edit, I noticed that the tags were completely broken:    I thought that I would not have any problem while submitting the revision, since the tags had not been changed. But no, even that was impossible, since the system would see those as wrong tag names.  What I had to do is to remove all the tags and start typing them from scratch, so the system would understand them.  I also reported this happening on Stack Overflow en español almost one year ago:   This is the full view:


what sci-fi story features an experimental FTL drive which triggers destination (and origin) sun to go nova?

In my memory this story has a golden age feel but might be more recent.  The crew of an experimental ship reaches the destination system only to find it is going nova, discover an unknown effect of their new drive has triggered the nova, and realize at the end that they have already destroyed earth.


Proving $P(n) =n^{\phi(n)} \prod\limits_{d \mid n} \left(\frac{d!}{d^d} \right)^{\mu(n/d)}$

Actually, I posted this long ago in MO but did not get a reply as it was unfit.   Now this is an exercise in some textbook (I think Apostol), and I would be happy to receive some answers.  Let $P(n)$ be the product of positive integers which are $\leq n$ and relatively prime to $n$.  Prove that $$ \displaystyle P(n) = n^{\phi(n)} \prod\limits_{d \mid n} \left(\frac{d!}{d^d} \right)^{\mu(n/d)}.$$


Can I optimize a left join for a single match?

Consider a join A LEFT JOIN B ON A.id = B.a_id:   B.a_id is nullable -- most but not all B records point to an A record. A can, at most, only have one matching B record (business logic). Not all A records have a match in B.   Is there a way to tell MSSQL that there will never be more than one A:B match, thus allowing it to shortcut the join once a match is found for a given A record?  I would think that such an optimization could happen if B.a_id had a unique index, but that's not possible since it's nullable.  Complicating the issue: A and B are in different databases (same MSSQL instance).  If it matters, I'm using SQL Server 2008 R2.


GPG KEYEXPIRED error in when updating repositories

Since yesterday afternoon I'm getting some GPG key expired errors from the official repositories (I checked my sources.list and the only sources are the official ones).  The URL I'm getting the error from:   And the KEYEXPIRED errors:  KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   KEYEXPIRED 1473479811   I don't know how to officially report this error. Could you help me to report it?


I have installed  Seaborn  in my machine. The Seaborn is working fine. I need to find the version of Seaborn installed. What command do I use to find the version of the Seaborn?


How to check who owns the Slack's workspace?

I'd like to check who owns (or at least some kind of public profile page) some workspace based on its subdomain (e.g. xyz.slack.com).  Is it possible?


Generalized Union and Intersection Problem

Can anyone help me with this question? I would greatly appreciate it!


What is the spectrum of $\hat x \hat p + \hat p \hat x$?

In quantum mechanics we know that the canonical position $\hat x$ and momentum operator $\hat p$ satisfying  \begin{align} [\hat x,\hat p] = i \quad (\hbar = 1) \end{align} have continuous spectrum.   We also know what the spectrum of the operator \begin{align} H = \frac{1}{2}\left(\hat p^2 + \hat x^2 \right), \end{align} is discrete, nondegenerate,  and it has equal spacing between the eigenvalues.  Is something known about the spectrum and eigenkets of the operator \begin{align} \hat O = \hat x \hat p + \hat p \hat x~? \end{align}


Verify my proof of the irrationality of $\sqrt{6}$.

Here's my proof for the irrationality of $\sqrt{6}$: Proof: Let $\sqrt{6}$ be a rational number. Then $\frac{a}{b}$ = $\sqrt{6}$ , where $a$ and $b$ are coprime. Therefore,  $a^2 = 6 b^2$. Here $a^2$ is divisible by both $2$ and $3$. Which means, $a$ too is divisible by both $2$ and $3$ (fundamental theorem of arithmetic). Thus, $6b^2=(3\cdot2\cdot k)^2$ ; where $k$ is an integer. $6b^2=36k^2$ or $b^2=6k^2$. Here $b^2$ is divisible by both $2$ and $3$. Which means, $b$ too is divisible by both $2$ and $3$. Therefore, $a$ and $b$ have common factors, which is a contradiction. Therefore $\sqrt{6}$ is not rational.  Is the above proof correct? Is there an easier way to prove this?


Office - Fully maximized is not 100% of height

My Office 2013 applications (Word, Excel and Outlook) are maximized, but somehow there is a gap of like 1 or 2 pixels above the minimize, maximize and close buttons. When I try to minimize an Office application, I move my cursor to the top of my screen thinking I will hit the minimize icon, but I hit the minimize button of the application behind. Quite annoying.    Is there a way I can fix this? Thank you!   Office 2013 x64 (French)  Windows 7 Enterprise x64 (French)


It seems there is a relatively recent trend of using expression "〈verb〉 off of":  https://www.google.com/search?q=%22*+off+of%22 https://books.google.com/ngrams/graph?content=off+of&year_start=1800&year_end=2000&corpus=15&smoothing=3   Is this really a new trend or my illusion (English is my second language)? Is there some explanation of the two peaks in the Google n-gram popularity plot?  UPDATE: Typo in the first URL corrected.


Resize an existing LVM partition and add the space to another LVM partition

I'd like to resize an existing LVM partition and add the space to another LVM partition.  [root@dckapstaging ~]# df -h Filesystem                           Size  Used Avail Use% Mounted on /dev/mapper/vg_dckapstaging-lv_root   50G   50G     0 100% / tmpfs                                3.9G     0  3.9G   0% /dev/shm /dev/sda1                            485M   91M  369M  20% /boot /dev/mapper/vg_dckapstaging-lv_home  215G   93G  111G  46% /home   I want /dev/mapper/vg_dckapstaging-lv_root to be extended to another 15 GB from /dev/mapper/vg_dckapstaging-lv_home; how can I do it?


these organizations or those organizations?

Consider a hypothetical quote:     Each day we gather information from manufacturers, distributors,   Russian and foreign vendors, research centers. The reliability of the   sources is ensured by our contacts with employees in those   organizations.   Those is  objects that are more distant, either physically or in the abstract sense. But could we say "these organizations" here, since they have been introduced in the first sentence and hence made somewhat "closer" to the reader? Or would that be a mistake?


Required display service (X server) for Debian init script

I'm on Debian 9.11 with the MATE desktop (pinebook pro) I've an Init script /etc/init.d/customMapping that remaps some of my keys using both setxkbmap and xmodmap. Here it is #! /bin/sh  ### BEGIN INIT INFO # Provides:          customMapping # Required-Start:    $local_fs x11-common xserver display # Required-Stop:     $local_fs x11-common xserver display # Default-Start:     2 3 4 5 # Default-Stop:      0 1 6 # Short-Description: Custom keyboard mapping # Description:       This is a simple Init script #                    Custom keyboard mapping ### END INIT INFO #  # Some things that run always echo "customMapping script"  # Carry out specific functions when asked to by the system case "$1" in   start)     echo "Starting script customMapping "     echo "start" >> /opt/test.txt      # Make Caps Lock a Control key     setxkbmap -option ctrl:nocaps > /opt/logs 2>&1      # Swap Left Control with Left Alt     setxkbmap -option ctrl:swap_lalt_lctl > /opt/logs 2>&1      # Make Pause/Break an End key     xmodmap -e "keycode 127 = End" > /opt/logs 2>&1      # Make Screen Lock a Home key     xmodmap -e "keycode 78 = Home" > /opt/logs 2>&1      ;;   stop)     echo "Stopping custom Mapping"     ;;   *)     echo "Usage: /etc/init.d/customMapping {start|stop}"     exit 1     ;; esac  exit 0   As you can see I've tried several kind of keywords in the Required-Start section but this doesn't work and when I check in the /opt/logs file I see the following error messages  Cannot open display "default display" Cannot open display "default display" xmodmap:  unable to open display '' xmodmap:  unable to open display ''  What value should I set in Required-Start in order for my script to access display (X server)? Also is the Default-Start values correct? Thank you


Is that true that if A - B is positive definite, then A's eigenvalues are larger than B's

Suppose that $A$ and $B$ are two Hermite matrices and that $A - B$ is positive definite. Denote the eigenvalues of these two matrices by $\lambda_1(A) \ge \lambda_2(A) \ge \dots \ge \lambda_n(A)$ and $\lambda_1(B) \ge \lambda_2(B) \ge \dots \ge \lambda_n(B)$. Then can we derive $$\lambda_i(A) > \lambda_i(B)\ \ \forall i?$$  It seems to me this is true but I don't know how to prove it. I'd appreciate any help. Thanks in advance!


I was doing graph theory homework. I was counting the spaning trees of graph G. Such that G is two complete graphs on n vertices connected by two edges. I got to this expression: $$2n^{2\left(n-2\right)}+2\left(n^{\left(n-2\right)}\sum_{i=0}^{n-2}\binom{n-2}{i}\left(1+i\right)^{\left(i-1\right)}\left(n-i-1\right)^{\left(n-i-3\right)}\right)$$ I know that this expression gives the correct result, however, I was told by my teacher that it is possible to express that number in closed form e.g. without the summation. However, I have yet to find a solution.


Changing CRS in QGIS due to pop up window: "CRS warning! Warning: Input layers have non-matching CRS. This may cause unexpected results.”

I'm using GIS to map the movement of animals and their speed and density in different habitat types using shape polygons.  When I got to the step ;Count points in polygon' a pop up window appeared saying:"CRS warning! Warning: Input layers have non-matching CRS. This may cause unexpected results.” I clicked ‘ok' however this meant that the attributes table that I then opened had no GPS speed values.  I'd like to know how to convert the CRS for this habitat shape polygon from 'Selected CRS (EPSG: 4326, WGS 84)' to 'Selected CRS (EPSG: 7405, OSGB 1936 / British National Grid)'.


, which prevents up/down votes, comments, answers and close votes.  It would be nice to have a less draconian lock, that only locked the question text (and tags) but permitted up/down votes, comments, answers answers and close votes.  It would assist against:   Edit wars on the question.    This would normally be handled by putting the question on hold until it is resolved. With this new lock, at some point the mod could make a final decision, and lock the question down, letting people actually start answering it.   Frequent, deliberate bumping.   If an OP keeps making trivial changes to the question for the sake of getting it back to the front page - but you aren't ready to suspend them for it - the question text could be locked. (Bounties would still be possible.) If people have an answer to provide, it should be open to that. Once answers are provided, people should be allowed to vote on them - it isn't the answerer's fault.


(NOTE: I am an 8th grader, so I may not be capable of perfectly elaborating my point by scientific measures.  Also, English is not my first language)  I have read that the speed of light is constant, and does not decrease unless under certain circumstances (such as going through dense and/or thick material.)  When a ball hits the wall and rebounds, it has momentum, except for the moment that it hits the wall, since the speed would be 0 there.  How about light?  How can light maintain a constant speed upon hitting something?  Shouldn't the speed of the photons be zero when they are neither moving forward nor backward when they have hit the wall?


Converting an Overleaf document to a Wordpress post

Good morning! I have a document (math operations) made in Overleaf and I need it as a Wordpress post. Does anyone know if it is possible to perform some sort of conversion with a minimum number of errors? Some tools, anything...  Edited by Paulo: I took the liberty of rewording the question a bit in order to make it clearer, and translated the title as well. The original question was written in Portuguese and can be seen by browsing the edit history.


I recently installed Ubuntu however I ran into a problem. I can’t seem to find the network driver and I can’t connect to the WiFi. Is there possibly a way to fix this?


USGS has been moving towards serving data through .  They have several WMServices through their website that serve elevation data to the public (hillshade & DEM).  The problem is that geoprocessing tools in ArcToolbox won't accept these layers as inputs.  Where can I download (free) DEM gis data that I can use in analysis?  I'm specifically interested in the 1/3 arc second (~10m) or the 1 arc second (~30m) data.  Currently I'm going through the USGS NED Tile download tool, which has ~4 files per county.  My areas of interest cover about 50 counties -- I don't see myself manually downloading these files one by one.


Is a -rw-rw-rw- file really inaccessible inside a drwxrwx--- directory?

Say I have a directory with these permissions:  drwxrwx---   Inside this directory, a file with these permissions:  -rw-rw-rw-   Is the file readable/writable by everyone or not ?  If not, how secure is this access restriction?  What if a random user makes a link to my file inside his home directory? Could he access the file then?  Or could he access the file by guessing its inode number and using some system calls on inodes?


I have a HP Dv6. I have had Ubuntu installed on the dual boot for some time. Its along side windows 7. I have not booted Ubuntu for quite some time as I have not needed it. Today I decided to boot it, up and I'm stuck on this purple screen. This has not happened before.   After reading some posts I'm sort of confused. Upon boot I hold the Shift key a menu comes up the second option is recovery mode. I enter and then some lines of code run for a while near the end this is the output:  BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs)   whatever I do I do not wish to loose anything from my windows 7 or Ubuntu as I have stuff in both places.  My laptop has a Radeon Graphics card, I've read some posts that the graphics card can be the problem


Fix the Help Center Privileges duplication

On the  are two categories: "Reputation & Privileges" and the seemingly redundant "Privileges". Both have a small entry count and were likely intended to be merged.  They probably should be merged or the first should be renamed to "Reputation".  Showing the word "Privileges" twice looks like a mistake.


I know, the question seems to be strange. Programmers sometimes think too much. Please read on... In C I use signed and unsigned integers a lot. I like the fact that the compiler warns me if I do things like assigning a signed integer to an unsigned variable. I get warnings if I compare signed with unsigned integers and much much more. I like these warnings. They help me to keep my code correct. Why don't we have the same luxury for floats? A square-root will definitely never return a negative number. There are other places as well where a negative float value has no meaning. Perfect candidate for an unsigned float. Btw - I'm not really keen about the single extra bit of precision that I could get by removing the sign bit from the floats. I'm super happy with floats as they are right now.  I'd just like to mark a float as unsigned sometimes and get the same kind of warnings that I get with integers. I'm not aware of any programming language that supports unsigned floating-point numbers. Any idea why they don't exist?  EDIT: I know that the x87 FPU has no instructions to deal with unsigned floats. Lets just use the signed float instructions. Misuse (e.g. going below zero) could be considered undefined behaviour in the same way as overflow of signed integers is undefined.


Java string code snippets. Explanations for output please?

1. -->     String s1 = "Rishi";  String s2 = "Ri" + "shi"; System.out.println(s1==s2);  // true  String s3 = "Ri".concat("shi"); System.out.println(s1==s3);  // false   Why while using '+' operator its coming as true but not in case of concatenation?  2. -->     String s1 = "Rishi";  String s2 = "Ri" + "shi"; System.out.println(s1==s2);  // true  String s3 = "Ri"; String s4 = s3 + "shi"; System.out.println(s1==s4);  // false     Why the output varies even if using the same literal value?


PHP Code optimisation - Best way to escape strings for SELECT queries to prevent javascript/XSS injection

I want to know if the way I'm escaping quotes is the best or if it can be enhanced.  Visitors can submit text which is stored in database and then displayed in another page. Simple enough. I use  to store in a database:  $sql = "INSERT INTO inscriptions (             name,             surname,             comments             )             VALUES (                 :name,                 :surname,                 :comments             )";       $req = $db->prepare($sql);  $req->execute(array(     ':name' => $name,     ':surname' => $surname,     ':comments' => $comments ));   This, I got it, it's the following part that cause me questionning:  Then to display it, I use htmlentities to prevent quotes and javascript to interfer with the code. I also use array_walk_recursive (or array_map depending on the case) to automise the escaping.  <?php function escaped(&$item) {     $item = htmlentities($item); }  $sql = "SELECT *         FROM master_table"; $req->execute();  $req = $db->prepare($sql); while($row=$req->fetch()){     array_walk_recursive($row, 'escaped'); ?>
<?php echo $row["comments"]; ?>
     <form action="supp.php" method="post" onsubmit="return confirm('Do you want to delete <?php echo $row["surname"].' '.$row["name"]; ?> comment ?')">         <input type="hidden" value="<?php echo $row["id"]; ?>" name="idcom" />         <input type="image" alt="Delete" src="trash.png"/>     </form>     <?php } ?>   (This code is used to delete a comment with an alert before doing so, hence the importance of escaping because the name is used in the alert)  This code works fine, but I wanna if I'm doing escaping the right and secure way.  If something seems unclear in my post, please comment it so I can modify it.  Thanks !  Edit: Not asking about SQL Injection but Javascript,  tag and quotes users could put on a field.


Can't do "yum update" in Fedora running in VirtualBox

I just made a clean install of Fedora 20 as a VM in VirtualBox. I set up the VM to use NAT as part of the network configuration in VirtualBox.  At first I could ping google.com, but could not browse using Firefox. And when I tried to execute yum update I got the following error:  Loaded plugins: langpacks, refresh-packagekit Error: Cannot retrieve metalink for repository: fedora/20/x86_64. Please verify its path and try again   Then I disabled IPv6 in the network settings, and I also disabled this option in Firefox. As a result I was able to browse using Firefox, but I still keep getting the error when doing yum update.  When I do URLGRABBER_DEBUG=1 yum check-update I get:  2013-12-20 11:33:35,612 attempt 1/10: https://mirrors.fedoraproject.org/metalink?repo=fedora-20&arch=x86_64 2013-12-20 11:33:35,612 opening local file "/var/cache/yum/x86_64/20/fedora/metalink.xml.tmp" with mode wb * Adding handle: conn: 0x1c896d0 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 9 (0x1c896d0) send_pipe: 1, recv_pipe: 0 * Could not resolve host: mirrors.fedoraproject.org * Closing connection 9 2013-12-20 11:33:45,169 exception: [Errno 14] curl#6 - "Could not resolve host: mirrors.fedoraproject.org" 2013-12-20 11:33:45,169 retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising Error: Cannot retrieve metalink for repository: fedora/20/x86_64. Please verify its path and try again   But when I do ping mirrors.fedoraproject.org I get:  ping mirrors.fedoraproject.org PING wildcard.fedoraproject.org (209.132.181.16) 56(84) bytes of data. 64 bytes from wildcard.fedoraproject.org (209.132.181.16): icmp_seq=1 ttl=63 time=104 ms 64 bytes from wildcard.fedoraproject.org (209.132.181.16): icmp_seq=2 ttl=63 time=115 ms 64 bytes from wildcard.fedoraproject.org (209.132.181.16): icmp_seq=3 ttl=63 time=135 ms   The result of nslookup mirrors.fedoraproject.org is:  Server:     192.168.0.1 Address:    192.168.0.1#53  Non-authoritative answer: mirrors.fedoraproject.org   canonical name = wildcard.fedoraproject.org. Name:   wildcard.fedoraproject.org Address: 209.132.181.16 Name:   wildcard.fedoraproject.org Address: 67.203.2.67 Name:   wildcard.fedoraproject.org Address: 213.175.193.206 Name:   wildcard.fedoraproject.org Address: 140.211.169.197 Name:   wildcard.fedoraproject.org Address: 152.19.134.146 Name:   wildcard.fedoraproject.org Address: 80.239.156.215 Name:   wildcard.fedoraproject.org Address: 66.35.62.166 Name:   wildcard.fedoraproject.org Address: 66.135.62.201 Name:   wildcard.fedoraproject.org Address: 85.236.55.6   I tried using the bridged adapter option in VirtualBox, but I got the same errors.   I followed the suggestion of enabling the DNS proxy in NAT mode, but the same problem persists (I can still browse in Firefox, but yum cannot resolve the host mirrors.fedoraproject.org). Now the ifconfig commands shows this:  p2p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet 10.0.2.15  netmask 255.255.255.0  broadcast 0.0.0.0         inet6 fe80::a00:27ff:fea4:a4c6  prefixlen 64  scopeid 0x20<link>         ether 08:00:27:a4:a4:c6  txqueuelen 1000  (Ethernet)         RX packets 723  bytes 695639 (679.3 KiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 628  bytes 77437 (75.6 KiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0         device interrupt 19  base 0xd020    An the cat /etc/resolv.conf shows this:  nameserver 10.0.2.3   And finally, I tried "Using the host's resolver as a DNS proxy in NAT mode" and the issue was finally fixed.


In $\epsilon$-$\delta$ continuity over an interval, $|x-c|<\delta$ implies $|f(x)-f(c)|<\epsilon$. Since both $c$ and $x$ vary, what's the difference?

If a function $f$ is continuous at every $c$ point in $[a, b]$ then we have for every $\epsilon$ we can find a $\delta$ such that whenever $|x-c|<\delta$, we have $|f(x)-f(c)|<\epsilon$.      Now, in this definition, $c$ varies in the interval $[a, b]$, and also $x$ varies in $[a, b]$, then what is the difference between $x$ and $c$?


1970s or 1980s movie about where a guy uses telekinesis to stop a train

I remember a scene from a movie or TV show where a guy is walking on the train tracks and sees a trapped turtle.  He bends to rescue the turtle and gets his foot stuck in the switching mechanism for the tracks as a train approaches. He uses his telekinetic powers (maybe for the first time?) to stop the train and get away.  What was that show?


I am in dilemma about my derivation for finding Electric Potential for a point charge and I know it is asked before but I didn't get the answer. So I am posting here.I asked this question conceptually previously but the answer didn't satisfied me. Any described detailed answer would be appreciated


Why do circuits mostly run on a DC current? I understand that electric motors use AC but things like my laptop operate on DC.  Are there another advantages to AC current that made it the standard besides the big one, that voltage can be more easily changed?   Thanks


Unable to format Micro SD card which is already partioned

I've got a MicroSD card which I believe I used as a bootable Raspberry Pi disk many year ago which I now want to reformat. Everything I've tried - disk utility on OSX, Disk Management Windows, Command line, terminal, EaseUS, etc has not worked in either removing partitions, erasing contents or formatting drive. I've also checked and it's not set to read only. Not sure what else to do now!


Transit visa requirements at Narita Airport

I am an Indian citizen and currently staying in United States on J-1 Exchange Visitor visa. I will be traveling from Dallas Fort Worth (DFW) to New Delhi (India) on 19th July. I have a layover of 22 hours at Narita Airport. I do not plan leave the terminal, both my incoming and departure flight are from Terminal 2 at Narita airport. I have booked the flights through Japan Airlines.    Will I be requiring a transit visa?  I have heard of some rules change at Narita Airport, hence asking this as a separate question.  Also, if the visa is required is it possible to get it at on arrival at NRT or do I need to apply for visa at the Japanese Embassy at Houston?


#include <iostream> using namespace std; class A{     public:     A(){         cout << "Hello World";     } }; class B:public A{     public:     B(){         cout << "World";     } }; int main(){     B obj1;     return 0; }  Why does this program print Hello WorldWorld, shouldn't it print World because I have created object of class B, so why is the constructor of A being called?


Maximizing chance of winning in dice game

Player $A$ rolls three $6$-sided dice and sums the outcome and player $B$ rolls a   $20$-sided dice. The player with the highest score wins. Which player   do you wish to be?   This question was asked to me in an interview. I was wondering if there's a quick way to solve the problem. Obviously you can compute $P(A > B)$ but this takes a lot of time. It's sort of hard to reason through this quickly since if $B$ rolls $1, 2,$ or $3$ then  $A$ is greater than or equal to $B$ with probability $1$. On the other hand if $B$ rolls $19$ or $20$, they're guaranteed to win.  I was wondering if there is some quick way to do this without enumerating all possibilities. Also, their expectations are the same, so that doesn't help much.   Thanks


Most efficient implementation of a large number class

When doing calculations on very large numbers where integral data types such as double or int64 falls short, a separate class to handle such large numbers may be needed.    Does anyone care to offer an efficient algorithm on how best to do this?


How can I pivot the following SELECT statement:           SELECT sc.CID,                 sc.CodeName     as OverviewText,                 scRAG.CodeName  as RAGStatusText             FROM StatusCode      sc LEFT OUTER JOIN ProjectOverview po               ON sc.CID          = po.ProjectOverviewCID              AND po.ProjectId    = 180 LEFT OUTER JOIN StatusCode      scRAG               ON po.RAGStatusCID = scRAG.CID           WHERE sc.SCID         = 18   Such statement yields the result set that follows:  CID OverviewText    RAGStatusText --- ------------    ------------- 153 Cost            Green 154 Requirements    Yellow 155 Schedule        NULL 156 Technical       NULL 157 Testing         NULL   But, I want it to return one single row with 10 values, as shown bellow:   ----------------------------------------------------------------------------------------------  | Cost | Green | Requirements | Yellow | Schedule | NULL | Technical | NULL | Testing | NULL |  ----------------------------------------------------------------------------------------------   Can I pivot on CID?


Why can gravitational potential energy be expressed both as $mgh$ and $-GMm/r$?

In these two different equations for the same (?) thing, not only is one directly proportional to height and one is inversely proportional to height, but they contain completely different variables, and this is my confusion. Additionally, in the second equation, we can see that the $U$ will decrease to 0 as the distance between the objects increases to infinity. This also confuses me, because my thinking would be that if you took two objects and separated them very far in empty space, they would come together because of gravity and they would both be moving pretty fast at the end of their journeys, but for this to happen we would need a high starting $U$.


Evaluation of limit at negative infinity is wrong

$$\lim \limits_{x \to -\infty} \frac{x}{\sqrt{x^2+1}}$$  I tried to raise $x$ to the square and get:  $$\lim \limits_{x \to -\infty} \sqrt\frac{x^2}{{x^2+1}}$$  afterwards, as I divide the numerator and denominator by $x^2$ I get  $$\sqrt{\frac{1}{1+\frac1{x^2}}}$$  now after I set $x$ to minus infinity I get $1$. The answer is wrong though.It should be $-1$ as written in the answers.  Any guidance on how to solve it or directions to where I am mistaken will be appreciated.


Algebraic Tensor product of Hilbert spaces

Let  $E$, $F$ be complex Hilbert spaces. The algebraic tensor product of $E$ and $F$ is given by $$E \otimes F:=\left\{\xi=\sum_{i=1}^dv_i\otimes w_i:\;d\in \mathbb{N},\;\;v_i\in E,\;\;w_i\in F \right\}.$$  In $E \otimes F$, we define  $$ \langle \xi,\eta\rangle=\sum_{i=1}^n\sum_{j=1}^m \langle x_i,z_j\rangle_1\langle y_i ,t_j\rangle_2, $$ for $\xi=\displaystyle\sum_{i=1}^nx_i\otimes y_i\in E \otimes F$ and $\eta=\displaystyle\sum_{j=1}^mz_j\otimes w_j\in E \otimes F$.  The above sesquilinear form is an inner product in $E \otimes F$.     Why $(E \otimes F,\langle\cdot,\cdot\rangle)$ is not a complete space?   Thank you!!


Working with LiDAR data using other than Esri software?

I will be working with LiDAR data soon and I am wondering what the alternatives to using Esri software to do this are, including open source solutions?


Why doesn't recombination occur in male Drosophila?

"Males do not show meiotic recombination, facilitating genetic studies."   For a while I have known that this phenomenon occurs, this quote comes from the , and I frequently use this feature of Drosophila in constructing hemiclones for my own research in quantitative genetics.   But, until now, I have never asked why doesn't recombination happen? Why would this feature evolve?   Further, why is the absence of recombination sex-limited to males, why do females have recombination?


How to apply alternate row coloring in a longtable in LyX?

In attempting to apply an alternate table row coloring (using xcolor) in a longtable, one confronts, sooner or later, problems in compiling a PDF.  In xcolor's  it is clearly stated, under Known Issues, that \rowcolors[\hline]... does not work with longtable.  Within tex.SE, various solutions address the issue of alternate row coloring of normal tables, i.e.   A nice way for auto-alternate row-coloring every table is posted at  (see Addendum in the end of the post).  However, there is no direct question & answer referring to the combined use of xcolor's \rowcolors command & longtable.  Moreover, searching the web for work-arounds, at least one solution, involves the use of .  Is there a way to use, within LyX, the \rowcolors (set of) command(s) provided by xcolor within longtable?


Difference between byte vs Byte data types in C#

I noticed that in C# there are both a byte and Byte data type. They both say they are of type struct System.Byte and represent an 8-digit unsigned integer.   So I am curious as to what the difference if any is between the two, and why you would use one over the other.  Thanks!


Followup to "12V Constant voltage regulator for Car?"

I have a problem similar to Suresh @  (I want to power an electric dog fence from my car battery), and like Trevor_G suggests, I probably don't have the smarts to do a DIY solution. I get that you can't get 12v output if you only have 10v input. Trevor_G suggests instead an "off-the-shelf automotive 12v power supply." I'm not sure what type of device Trevor_G is recommending - one of those 12v rechargeable lithium battery "portable power supplies" that are supposed to power your 110v shaver while charging 6 cell phones simultaneously? The 110v AC-12v DC power supply that came with the dog fence provides 12v DC at 750mA. Assuming the unit draws 750mA, how big of a battery (watt/hours?) do I need to power it for 12 hours on one charge? (I get confused witht he math) Is this even practical? How long would I have to run my car to recharge the unit? Manufacturers don't give any data on this. Thanks. Forgive me for being an electronics pre-schooler.


Way to find which program uses the internet

is there any way to find which program uses the network and the bandwidth consumed. System monitor shows only ram ,cpu usage and overall bandwidth usage. i want fr individual program


It has been claimed that at U.C.L.A. at least 40% of the students live on campus. From a  sample of 250 students, 90 live on campus. Does the evidence support this claim at a  = 0.01 .  What i did is   Ho: P is greater or equal to 0.4  Ha: P is less than 0.4  The critical value comes out to be -2.33 from the table  Now how to calculate the test statistics? Also is my critical value correct?


I can't find the settings in Ubuntu 19.04

This is a bit weird as I cannot find the settings window at all. I don't know the exact name of the default settings app, so I am unable to install it from apt or snap.  EDIT: running   apt policy gnome-control-center   in the terminal gave me output  gnome-control-center: Installed: (none) Candidate: 1:3.32.2-0ubuntu1.1 Version table:  1:3.32.2-0ubuntu1.1 500     500 http://np.archive.ubuntu.com/ubuntu disco-updates/main amd64  Packages  1:3.32.1-1ubuntu4 500     500 http://np.archive.ubuntu.com/ubuntu disco/main amd64 Packages   EDIT: My problem was not with settings not working, but it being non-existent. It is solved now.


Does variable separable method give the complete set of solutions to a PDE?

Several of the common partial differential equations encountered in physics are mentioned as easy to solve using the variable separable method. However I do not understand how does one guarantee that the solutions generated using this method is the complete set of solutions. I am finding it quite hard to believe that such a method can produce the entire set of solutions.  Can anyone explain if it indeed does generate the complete set of solutions to a PDE. If not, a counterexample would work. Also, I would like to know if we use this because it is consistent and easy to work with?


How do I include a .bbx file in my .tex file?

How do I set a .bbx file that contains some customisations inside my actual .tex file? I want to move all the changes I've made to the "numeric" biblatex behaviour somewhere outside of my main .tex file.


If $g \circ f$ is the identity function, then which of $f$ and $g$ is onto and which is one-to-one?

Say $f:X\rightarrow Y$ and $g:Y\rightarrow X$ are functions where $g\circ f:X\rightarrow X$ is the identity. Which of $f$ and $g$ is onto, and which is one-to-one?


My WiFi adapter is not working at all, how to troubleshoot?

On this site I see hundreds if not a thousand questions being asked about issues with a Wireless LAN adapter not being detected/recognized by Ubuntu. Some mainstream adapters appear to be utterly broken in Linux support, while others just require some simple steps to get it to work.  The options to get it to work appear to be infinitely huge and I have no clue where to get started!  What is considered 'best practice'? What order of things to try is most efficient in terms of time, effort and imposes minimal risk to my Ubuntu installation? Please help me save time and guide me what to do, step by step.


Write down the assumptions in a form of clauses and give a resolution proof that the proposition                               $$\Big((p \rightarrow q) \land ( q \rightarrow r) \land p \Big) \rightarrow r$$  is a tautology.


How to I get a reference to the endpoint method handling current request (not the current method)

I have a controller class  @RestController public class Controller {      @GetMapping("endpoint")     public void endpoint() {     } }   and need the reference to the method handling the request i.e. Controller#endpoint().   I'm not looking for obtaining a reference to the current method but rather assume I'm in a filter or service for example and I need a reference to the endpoint method.   (The ultimate goal is to then assess wheter @SomeRelevantAnnotation is present or not deep inside my custom spring security stack but that's out of scope for this question.)  I think I could use the RequestContextHolder instance which embedds the request instance that I can then use in HandlerMapping#getHandler(request) to get a reference to the method.  Is there an easier way?


Designing User & its Sub User Database Diagram Problem

There are some business category e.g. Travel Agency, Hotel, Car Rental etc. Roles:   Management rolesSuper Admin, Staff Customer side roles are Owner, admin and sales counter May be etc. customer side roles will be added   Status i.e. On-Hold, Active, In-Active, Blocked, Deleted etc. Scenario:   Each user in the database has its role and status with other credentials Super Admin or Staff creates a customer (USER) with category e.g. "Travel Agency" and provide owner details Now this Travel Agency (USER) has its own SUB_USERS that may be one or many  Now I am confused between user and sub users.  The work that I done so far is as following in shape of ERD:  Please put me on the right path as to how can I create a USER with its SUB USERS? Thanks in anticipation


How to undo accidental RAID initalization operation (recover data)?

Summary of the problem:  I have two disks re-configured as RAID 1. instead of copying the data to the empty disk, it deleted the data from the non-empty disk.  Here's what happened:  1. In the last few days, I reinstalled Windows 8 twice.  2. I had 2 disks configured as RAID 1 and 1 SSD contained the OS.  3. While reinstalling Windows 8 (1st time) on the SSD, I might have removed the RAID configurations from BIOS.  4. I made changes to the RAID disk.  5. I reinstalled Windows 8.  6. I noticed I see 3 disks (1 SSD, RAID-disk1, RAID-disk2)  7. RAID-disk1 was updated to my last changes (done after installing Windows 8 for the 1st time)  8. RAID-disk2 was updated to BEFORE installing Windows 8.  9. I formatted RAID-disk2  10. I set SATA configuration to RAID in BIOS.  11. After restart, the disks was automatically configured as RAID and with status rebuild.  12. In Windows 8 I get both disks as EMPTY!  How do I restore the data?


How can I generate a unique ID in Python?

I need to generate a unique ID based on a random value.


Prove that there are not two matrices 2x2 such that: $AB-BA=I_2$

I tried this question by multiplying explicitly the matrices but I think I'm not getting anything, so I think, well let's suppose false so $C(AB-BA)=C$ and find a contradiction but also I'm not getting anything.


Reducing current in a circuit without reducing voltage

I didn't find a solution in the other similar posts or maybe I don't understand them.  Here is my problem : I've got power supply with an output of 5V and 8A to feed 128 leds drawing 5V and 50mA each. At maximum effort they will draw 6.4 amps from the power supply so, I'm seeking a solution to reduce the output current by at least 1.6 amps.   In the first part of my project I'll only use 42 leds wich would draw 2.1 amps from the power supply, this mean that I have to divide the current by nearly 4 times.   In both situation keeping the voltage as near as possible to 5V is very important.  Thanks for your attention.


What is the difference between embedding in pure math and embedding in ML?

In ML the term "embedding" gets tossed around a lot and the term basically means the construction of a function that takes a high-dimensional vector to a low-dimensional vector in such a way that the high-dimensional vector can be recovered by the low-dimensional vector. (...at least in the case of autoencoders, not sure if word embedding cares about reconstructing the word.) Embedding was also a word that I encountered in topology and differential geometry.  Does there exist any correspondence between the usage of these terminologies between math and ML?


Why do things vibrate with resonant frequencies.  Why are there multiple frequencies from one impulse?  ammendment:  Why do chimes from bells have overtones? How to drums have overtones?   What is producing more than one frequency?


I want to use Tikz bar chart, but want to avoid showing it as 1.8*10^5. How can i do it?   % Bar charts % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[title  = Contributions per category                       at LaTeX-Community.org, xbar, y axis line style = { opacity = 0 }, axis x line       = none, tickwidth         = 0pt, enlarge y limits  = 0.2, enlarge x limits  = 0.02, symbolic y coords = {LaTeX, Tools, Distributions, Editors}, nodes near coords, ] \addplot coordinates { (180000,LaTeX)         (190000,Tools)                      (2193,Distributions)  (11106,Editors) }; \addplot coordinates { (14320,LaTeX)         (1615,Tools)                      (560,Distributions)   (3075,Editors)  }; \legend{Topics, Posts} \end{axis} \end{tikzpicture} \end{document}


non static to static method from another class

Class1.java  public List<UMRDTO> getDocumentationList(Session session) {     List<UMRDTO> documentationList = null;      try     {         Query query = null;         query        = session.createQuery(UMRSQLInt.DOCUMENTATION_LIST);         documentationList = query.list();     }      return documentationList; }   I need to use the documentationList that is returned to a static method in this like but getting error like non static method cannot be refrenced from static context  class2.java  static { UMRMetadataSupportDAOImpl d=new UMRMetadataSupportDAOImpl();     listDocuments= d.getDocumentationList(); //error here     for (UMRDocumentationDTO listDoc: listDocuments)     {         if(listDoc.equals(MMTConstantsInt.DOMAIN_NAME))             domainDocumentationMap.put(listDoc.getId().getObjectName(), listDoc.getDocumentationLink());         else             domainComboDocumentationMap.put(listDoc.getId().getObjectName(), listDoc.getDocumentationLink());     }


What's the batched Refactor Fields tool "field mapping" syntax in QGIS?

In QGIS, there is this nice tool "Refactor Fields" in the Processing Toolbox :    Using it on a single layer is fairly straightforward.  However, when you plan on using it in a batch mode, one can see the "Fields mapping" textbox. I'm looking for an example of the syntax to be used there.  I haven't found any specific documentation yet.


Properly delete data forever and free up the space it was using?

I've been having issues finding a real answer to this question as the response is always "Don't do this, it's a bad idea, that space was obviously needed and it will just get used up again in quick order." But that response doesn't apply to me - I have a copy of the production database that I am using solely for developmental purposes - my read/write activites to be limited to a small amount of the database, but I will need to constantly restore the database to overwrite my changes, so I want to reduce the size of the database - I can achieve this by deleting the data in a handful of tables. Here is what I have done so far:  Made sure database was in simple recovery mode Ran DELETE FROM TABLE_NAME queries Tasks > Shrink > Files > File Type: Log, Release Unused Space - this step was successful and reduced the .ldf to its initial minimum size. Tasks > Shrink > Files > File Type: Data, Release Unused Space - this step did not do anything. It "executed" in half a millisecond and the .mdf is just as big as it was before running the DELETE queries...  Any input appreciated.


Why is my model flickering when rendering?

I created a model in SketchUp and exported it as a .dae file.    Then I imported the .dae file into Blender and created an animation with it.     However, when I render the video, the model looks like it is flickering (as can be seen in the top-left window below). Does anybody have any suggestions on how to fix this? Your help is greatly appreciated!


How to prevent figure from splitting itemize list

I have inserted a floating figure in my text using [htb]. A part of the text is a list, generated by itemize.  The list is, by chance, placed at the bottom of the page, and consists of three items. Two of the items are at the end of page 1. On the next page, the figure is placed at the top, followed by the last item.  Is there a way to keep the list together, without being split by the figure? I am aware of \FloatBarrier, but I don't care if the figure comes before or after the list, as long as it doesn't split it. I want the figure to float as it pleases, without splitting the list.


I downloaded a blender file from online, and all the menues like "view" "select" "pose" options are at the bottom, when they were normally at the top. Is there a way to reset all these UIs? Thanks


What should I consider when purchasing a macro lens?

What should I be aware of when buying a macro lens (other than that it will fit my camera)?  What features should I look for?  What specs should I pay close attention to?  What factors affect macro lens price (beyond than the brand name)?  Are there special accessories that are needed or recommended for a macro lens?


Can you call Directory.GetFiles() with multiple filters?

I am trying to use the Directory.GetFiles() method to retrieve a list of files of multiple types, such as mp3's and jpg's.  I have tried both of the following with no luck:  Directory.GetFiles("C:\\path", "*.mp3|*.jpg", SearchOption.AllDirectories); Directory.GetFiles("C:\\path", "*.mp3;*.jpg", SearchOption.AllDirectories);   Is there a way to do this in one call?


Probability of having at least one coupon out of N types

I'm facing a question regarding random variables:     A coupon website has N distinct kinds of coupons. Each selection of a   coupon is equally likely and selections are independent. Let $T$ be a random variable representing the number of   coupons, $n$, that one should collect until he has at least one coupon   of every kind.   I need to determine the probability function $P(T=n)$. How should I approach this question?


How can I subtract a list from a list for its value inside the list?

So I want to be able to subtract a list to another list. For example, if I had two lists: x = [0,8,10] y = [1,7,9]  I would like to be able to basically subtract y[i] - x[i] using a FOR LOOP. So ultimately, inside the loop, it would go 1-0, 7-8, 9-10, and so on if the list is longer. Additionally, would there be any way to check if all or only one of the differences are equal to each other? Thank you.


Find and replace text within a file using commands

How can I find and replace specific words in a text file using command line?


Singular or Plural after plural subjects

In the following sentence, which should I use, singular phone or plural phones?  Most people have (a) smartphone(s) nowadays.  I think singular is correct, because using plural makes it sounds like most people are possessing two or more phones, which is obviously not true. What happens if I use “the” instead of “a”, in reference to a specific type of smartphone (iPhone12, for example), or if I use singular “Everyone” instead of plural “Most people”?


Need to remove unwanted characters from string

i have string which contains characters like   TrÃ  Hoa Viá»‡t   the want to Convert like this  Trà Hoa Việt   already tried by php   iconv("UTF-8", "ISO-8859-1//IGNORE", "TrÃ  Hoa Viá»‡t")  but unable to remove the and get original format that i wanted. please help in this  Thank you.


Is there any way to compare Strings lke the "like" in sql?

I want to remove all html tags from the String edit. For example "<h1> Hello World </ h1>" to "Hello World" but with my present replaceAll java transform "<h1> Hello World </ h1>" to "".  I would appreciate if someone knows an better and correct way. Maybe theres an similar to the like function in sql?   public void entfTags(){     String edit = file.getOriginal();     edit=edit.replaceAll("<br>","\n");     edit=edit.replaceAll("<\?.*?>", "");     file.setEdit(edit); }


I was reading Xanathar’s Guide, and the Celestial Warlock subclass is able to choose a unicorn for their patron. However, in the Monster Manual, unicorns only have a CR of 5. So that raised the question: What happens if a warlock kills their patron? Are they unable to level up, do they lose their powers. Or is this another one of those things where nobody from the actual D&D lore has ever been dumb enough to actually try, so it’s just up to the DM?


If V=X+Y how to prove that there is no independent random variables X,Y make V a uniform distribution

If V=X+Y,how to prove that there is no independent random variables X,Y  (with the same distribution function) make V a uniform distribution function on [0,1]


Confusing concerning the nature of $1=0.999...?$

Let that   $\frac{1}{3}=0.333...$, then multiply by $3$:  $\frac{1}{3}\times 3=1\tag1$  $0.333...\times3=0.999...\tag2$  $1-0.999...=0.000...0001$  Here it seems that $1 \ne 0.999...$  So what is the correct view concerning $1$ and $0.999...$  Are they equal or not ?


I render the html  in php ,and use jQuery   .they have such  html code :

   In some condition , it will remove this

, and become :

   I have to judge this two situations ,I try  different  way , but the result is strange .    var selectTr  = $('.selectClass') ;     if( selectTr ){       console.log("i am undefined") ;     }   it do not print anything .    var selectTr  = $('.selectClass') ;     if( typeof (selectTr) == "undefined"  ){       console.log("i am undefined") ;     }   it do not print "i am undefined " .  so i  try  it  console.log(typeof (selectTr))  , it is object  .  My problem is that :  how to judge a empty object and why it is object instead of null  or undefined?


Having trouble writing the right code for this graph If anyone could help I'll be thankful.  y=ax^2 α={-2.4,-2.1,...2,4}


Let $p,q$ be prime numbers , Find all the solutions to the congruence $x^2\equiv (p+q)x \pmod{pq}$

Let $p,q$ be prime numbers , find all the solutions to the congruence $x^2\equiv (p+q)x \pmod{pq}$ Attempt: $$x^2\equiv (p+q)x \pmod{pq} \Longrightarrow \cases {x^2\equiv (p+q)x \pmod{p}\\x^2\equiv (p+q)x \pmod{q}} $$ For $\pmod{p}$ $$x^2\equiv (p+q)x \pmod{p} \Longrightarrow x(x-(p+q))\equiv 0 \pmod{p}$$ Because $p$ is prime number then  we can write : $$x\equiv 0 \pmod{p}\space\space\space(1)$$ and $$x\equiv (p+q) \pmod{p}\Longrightarrow x\equiv q \pmod{p}\space\space\space(2)$$ For $\pmod{q}$ $$x^2\equiv (p+q)x \pmod{q} \Longrightarrow x(x-(p+q))\equiv 0 \pmod{q}$$ Because $q$ is prime number then  we can write : $$x\equiv 0 \pmod{q}\space\space\space(3)$$ and $$x\equiv (p+q) \pmod{q}\Longrightarrow x\equiv p \pmod{q}\space\space\space(4)$$ Now, we can say because $(1)$ and $(3)$ that $x\equiv 0 \pmod{pq}$. There are more solutions using $(2)$ and $(4)$ but I cannot see a legal way to solve them. Edit: note that $p,q$ can(not must) be equal to one another, which I think is another case for a solution.


When should you publish code on GitHub? Work-in-progress or after publication?

What is policy are you following about publishing data analysis code on GitHub? Do you do it after publishing or as a work-in-progress?  I developed a number of Python algorithms to analyse a large dataset, and I would like to make my work visible.


I have a lot of divs on my site.

   Now I want to select the div with jquery. But i only want the divs with the classe slide. And not the divs with the classe slide bx-clone.  How can i make that select statement?


I am not getting notifications on comment answers

Since yesterday I am not getting anymore notifications when someone replies to a comment. Before I was getting the red circle beside "inbox" tag.  Anyone knows if it's due to some reason or it's happening from time to time?  btw: even when I reload the page I don't see new notifications and the inbox isn't updated. The new received comment is visible though.


E/AndroidRuntime: FATAL EXCEPTION: main java.lang.NullPointerException:activity.RegisterActivity.registerUser(RegisterActivity.java:247)

why IDE say me EXCEPTION at the line 247 of Register Activity of my class?  this is the line code:  Register Activity:  AppController.getInstance().addToRequestQueue(strReq, tag_string_req);   I must post all code about this class?  P.S.:I have this exception when i click on button "register"


How can I make pages after the first come out correctly with fancyhdr?

I am trying to write a recommendation letter with a fancy heading at the top of the first page, using fancyhdr. I copy my code below.  The results are that the first page looks good but subsequent pages do not. Subsequent pages omit the logo (as desired) but leave enough space for it, and the text starts from the same place on every page. Starting from the second page, I would like the text to start higher.  It seems that the only code which could cause the text to appear lower is within the \fancypagestyle{firstpage}{...}, and I use \thispagestyle{firstpage} with the intent that this should only affect the first page -- but this is not what happens when I compile and view my document.  I read related posts  and , and attempted to modify my code based on what I read there, but without achieving the results I was looking for.  Thank you very much.  LaTeX code (which compiles):   \documentclass[11pt]{article} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \usepackage{color,hyperref} \usepackage{graphics} \usepackage{times} \usepackage{fancyhdr} \usepackage{datetime}   \definecolor{darkblue}{RGB}{0,0,50} \hypersetup{colorlinks,breaklinks,             linkcolor=darkblue,urlcolor=darkblue,             anchorcolor=darkblue,citecolor=darkblue}   %%%%%%%%%%%%%%%%%%date in format Sunday, October 25, 2011$$$ \usdate \def\theday {\dayofweekname{\day}{\month}{\year}} \def\mydate {\theday , \today}  %%%%%%%%%%return address%%%%%%%%%% \def\myname     {Frank Thorne} \def\mydeptname     {Department of Mathematics} \def\myaffiliation  {University of South Carolina} \def\mystreet       {1523 Greene Street} \def\mycitystatezip {Columbia,\ SC\ \ 29208} \def\myphone        {{\it Phone:} (803)404-4057 (home)} \def\office     {(803)777-4224} \def\fax        {{\it Fax:}(803)777-3783} \def\email      {thorne@math.sc.edu} \def\url        {http://www.math.sc.edu/$\sim$thornef} % NOTE: use $\sim$ for tilde %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %%%%%%%%%%%%%%%margins%%%%%%%%%%%%%%%%%% \oddsidemargin   0in \evensidemargin  0in \topmargin  -0.75in \textwidth   6.5in \textheight  6.25in \headwidth  \textwidth \parindent      0ex %controls how the indentation of new paragraphs behaves \parskip        6pt %controls the space between paragraphs \headheight     1.25in \headsep    1in %This controls how far below the letterhead the text of the letter will begin    \addtolength{\textheight}{.5in} %%%%%%%%%%%%%%%%letterhead%%%%%%%%%%%%%%%% \fancyfoot{} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}  %\thispagestyle{fancy} \fancypagestyle{firstpage}{ \fancyhf{} %%%usc logo \fancyhead[L]{\resizebox{2.5in}{!}{ %\includegraphics{USC_Linear.jpg} } \vspace{0.6in}}  %%%%%%%%%%return address on right%%%%%%% \fancyhead[R]{ \parbox[t]{3.1in}{ \footnotesize   \em \vspace{0.5in}                 \myname \\                 \mydeptname   \\                 \myaffiliation \\                 \mystreet \\                 \mycitystatezip \\                 \email \\ \\                  \mydate                 }\hspace{-1.3in} \vspace{0.2in}} }  \begin{document}  \thispagestyle{firstpage}  Blah blah blah.   Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.  Blah blah blah.    \hspace{.5\textwidth}\parbox[t]{2.95in}{             Sincerely,\\              Frank Thorne\\             Assistant Professor of Mathematics            }  \vfill      \end{document}


Is the set of surjective functions from $\mathbb{N}$ to $\mathbb{N}$ uncountable?

I want to use Cantor's diagonalisation argument to prove that the set S of surjective functions of the form $\Bbb{N} \to \Bbb{N}$ is uncountable. The normal procedure is creating a matrix and filling it with elements of S and introducing a new surjective function $p$.The problem that I'm having is that I don't know in which way to change the diagonal elements so that $p$ should, but cannot be in the matrix.  Can someone help me, or at least give me some tips?


Show that $E[x]=\int_0^\infty(1-F_X(x))dx$ The solution is as follows: $$\begin{align} \int_0^\infty P(X>x)dx &=\int_0^\infty \int_x^\infty f_X(y)dydx\\ &=\int_0^\infty  \int_0^y dxf_X(y)dy\\ &=\int_0^\infty yf_X(y)dy\\ &=E[X] \end{align}$$  I don't understand step 3 in the solution, specifically while the limit of integration changed from $\infty$ to $y$.


How is harmonic motion (specific and not a special case) different from periodic motion?

I have seen written in many books that a motion that repeats itself after a specific time period follows periodic or harmonic motion. However I know for a fact that damped harmonic motion cannot repeat the initial motion (parameters defining motion like amplitude, velocity etc. change).This clearly shows that harmonic motion does not repeat itself. How can I clearly differentiate it as a separate entity? I am probably messing myself with the meaning of the words.


If $x_1,x_2,\ldots,x_n$ are real numbers larger than $1$, prove that $$\dfrac{1}{1+x_1}+\dfrac{1}{1+x_2}+\cdots+\dfrac{1}{1+x_n} \geq \dfrac{n}{\sqrt[n]{x_1x_2\cdots x_n}+1}$$   Attempt  AM-GM doesn't work here since we will get an upper bound. I don't see Cauchy-Schwarz working either. Thus, I think a substitution might work, but I am unsure of which one to use.


I've got a directory shared on my network, using Samba. People on the netwerk use this Samba share to download files from my share to their computers. I'm interested in what files are downloaded most, and by which users they are downloaded. I'd like to see this in real time, if possible. Is there a program that allows me to do this? If yes, how can I use it?    I'm using Ubuntu 11.10.


"Will graduate" vs. "will be graduated" vs. "is going to graduate"

Which of the following sentences are correct?        He will graduate in May.   He will be graduated in May.   He is going to graduate in May.      Issue 1: Is the second one grammatical? Issue 2: There is high uncertainty that cause he may not graduate in May, like fail one course? Issue 3: In a formal letter, which one is correct?  Besides, I heard from one of my friend whose mother tongue is not English: "I have been graduated from Boston university". Is that one grammatical as well?  I know the second one is passive and not correct but  I saw somebody use it. Therefore I am confused.


Prevent AD users changing the background in Ubuntu 16.04 with Unity desktop

I run a high school computer science lab with 17 desktops running Ubuntu 16.04 with the standard Unity desktop rather than Gnome.   The users log in with Windows Active directory IDs and have standard user privileges. They do not have access to the root account and are not able to sudo.   Is there anyway of preventing them changing the desktop background or restricting the choice to the standard Ubuntu backgrounds shown in the settings menu? The previous answers I have found refer to the Gnome desktop rather than Unity and refer to previous versions of Ubuntu.  I tried to apply the advice given by @rinzwind and followed the instructions on the linked dconf System Administrator Guide.   I made a directory: /etc/dconf/db/local.d/locks  I made a file called screens with the following content.  [org/gnome/desktop/background] picture-uri='file=path to my background'   With my intended default wallpaper on the second line.  I ran sudo dconf update and rebooted but there is no change.  Does this method also work in 16.04 running Unity?


What's the standard "roadmap" to learning quantum physics?

I'm really interested in quantum physics and would like to learn more. However, I don't know where to start and in what order I should learn things. So, ideally I'm looking for some sort of roadmap of what to learn. What physics topics do I need to know to start learning about quantum mechanics? (In addition to the mathematical topics mentioned at )  My current knowledge is mostly popular science stuff, like tv shows on Discovery Science and National Geographic Channel. So I have a basic understanding of some basic principals. There's also a recent lecture from Brian Cox that I have watched which gave a bit more in-depth information.


For the first answer criterion for the Enlightened badge, is the first answer the one   that remains, excluding deleted answers; or that ever was, including deleted answers   As for the suggestion, if it were the latter, can we please make it the former?  It would make sense to exclude squatters from the equation if they later retract their answer from the question (having reached no good solution).


I need to find out how to format numbers as strings. My code is here:  return str(hours)+":"+str(minutes)+":"+str(seconds)+" "+ampm   Hours and minutes are integers, and seconds is a float.  the str() function will convert all of these numbers to the tenths (0.1) place.  So instead of my string outputting "5:30:59.07 pm", it would display something like "5.0:30.0:59.1 pm".  Bottom line, what library / function do I need to do this for me?


Find the coordinates of the points where the two circles intersect.


Sound doesn't work properly in root but does in normal user

I'm using debian 9 with gnome. When i use the root the volume control doesn' t work and doesn' t have the megaphone symbol (that is also missing in the gnome panel). I can move the bar but doesn` t affect the volume.    In Settings/Sound there aren' t any output/input devices. There aren't any system sounds like when you keep deleting in the terminal or when you using fn + the volume controls that aren' t working. Fn keys are working for the others functions but not for the audio. Except for the system sounds the audio is working and i can set the volume using alsa-mixer (that isn' t practical).  If i use a normal user everything is fine: the volume control (in the gnome panel) works and has the megaphone symbol, system sounds are working, fn keys for the audio are working and in Settings/Sound there are the output/input devices.  How can i have fix the audio for the root?  Don' t tell me that is dangerous and why i want log in as root. I really wish to do so. From the comments i can see that dirkt states:     Pulseaudio by default only works with a logged-in user, by design   Any idea to how fix pulseaudio?


I made an alias ff and sourced it from ~/.zsh/aliases.zsh.  The aliases run well themselves:  alias ff ff='firefox --safe-mode'   and it runs as expected.  But when I try to run it under gdb I get:  > gdb ff GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> ... For help, type "help". Type "apropos word" to search for commands related to "word"... ff: No such file or directory. (gdb) quit   I tried using gdb firefox --safe-mode but that wouldn't run.   Can somebody identify what is wrong?


32536 bus error ./program, due to my use recv?

I have a "bus error" in the way I program. I am learning how to make a client /server with chained list. The error bus comes only when I return parse_message (...) = NULL..   The listen_client function is in a thread, I do not know if it affects the error. If you want more details / other piece of code ask me.  Thank you and good evening.  static t_message    *parse_message(char *buffer) {     int     id;      id = atoi(buffer);     printf("ID: %d\n", id);     return (NULL); // for sample } static char     *read_message(char *data) {     static char     *buffer = NULL;     char            *message = NULL;     char            *ptr;     size_t          size;      size = strlen(data);     if (buffer)         size += strlen(buffer);     if (!(buffer = realloc(buffer, size)))         return (NULL);     strcat(buffer, data);     if ((ptr = strstr(buffer, "\r\n")))     {         size = (ptr - buffer);         if (!(message = (char*)malloc(sizeof(char) * (size + 1))))             return (NULL);         strncpy(message, buffer, size);         ptr += 2;         if (!(*ptr))             buffer = NULL;         else if (!(buffer = strdup(ptr)))             return (NULL);     }     return (message); }  void            listen_client(t_args *args) {     ssize_t     count;     char        buffer[BUFF_SIZE + 1] = { 0 };     char        *msg_str;     t_message   *msg;      while ((count = recv(args->client->s, buffer, BUFF_SIZE, 0)))     {         printf("===> %s\n", buffer);         if (!(msg_str = read_message(buffer)))         {             continue ;         }         if (!(msg = parse_message(msg_str)))         {                // bus error after continue ;             continue ;         }         handle_message();     }


How can I fix site UUID does not match error during config import?

I'm getting this error below whenever I try executing the commands drush config-import staging on the CLI. I'm basically in the process of migrating a drupal 7 DB to Drupal 8 and currently following this guide since I'm still new with migration.       Drupal\Core\Config\ConfigImporterException: There were errors validating the config synchronization. in         [error] Drupal\Core\Config\ConfigImporter->validate() (line 728 of /Applications/XAMPP/xamppfiles/htdocs/drupal-eight-iom/core/lib/Drupal/Core/Config/ConfigImporter.php). The import failed due for the following reasons:                                                                [error] Site UUID in source storage does not match the target storage. Entities exist of type Shortcut link and Shortcut set Default. These entities need to be deleted before importing. The core.extension configuration does not exist. Can not uninstall the Configuration module as part of a configuration synchronization through the user interface.     $databases['default']['default'] = array (   'database' => 'drupal-eight-iom',   'username' => 'root',   'password' => '',   'prefix' => '',   'host' => '127.0.0.1',   'port' => '3306',   'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',   'driver' => 'mysql', );  $databases['upgrade']['default'] = array (     'database' => 'drupal-seven-iom',     'username' => 'root',     'password' => '',     'prefix' => '',     'host' => '127.0.0.1',     'port' => '3306',     'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',     'driver' => 'mysql',   );   $settings['install_profile'] = 'standard'; $config_directories['staging'] = 'sites/default/config'; $config_directories['sync'] = 'sites/default/files/config_zB_DnNUK68i5Owp5a8FzTiClQfp3d3jrwcy0_HuS1hNCGv9Y_Iva2Ahm8LCH-P0j0M2jwmQAsA/sync';


How to add mouse events to textarea given by jquery using replacewith method

I am able to display textarea  using jquery but unable access id of that textarea so that i can add on mouse events to textarea.  I tried this example on stackoverflow, it's not working for me     $('#foo').on('click', function() {       $(this).replaceWith('<textarea id="copy">' + $(this).text() + '</textarea>');        $('#copy').click(function() {           $(this).select();       });   });   Below is my code.   First text will be displayed in "disp" once user want to edit,if he clicks on disp field it should turn into textarea. Here i am able to change disp to textarea, unable to add mouse events.    $( ".disp" ).click(function() {     $( this ).replaceWith( '<textarea >' + $( this ).text() + '</textarea>'  ); })   how to add mouse events on textarea which is displayed by jquery?


How to run a program as an administrator at startup on Windows 10?

We have a program that is having problem starting up on Windows 10. If the program is NOT run as administrator, it popups a "Access Denied" message right before it starts. If we run the program as an administrator, it does NOT popup any error message and loads normally. However, now the program won't run at STARTUP. So, we need to run our program as administrator and be able to automatically run the program at startup.  Update: Even though my question and the duplicate question maybe the same but the answers provided for both questions did not solve my problem. Task Scheduler only starts my application or program as a background process. Thus, my program doesn't load. However, I do see my process in the task manager under background process. That's all.


How can I rename files to match their EXIF "created date"?

I have around 3000 jpeg photos all with names like "DSC_0596". The metadata has the date the photo was created, which would be much more useful.  Is there a way to extract the date from the metadata and add it to the photo name?


To use 'to' or not to use 'to' between the verb 'is' and another verb

'What reading does is encourage comprehension and our ability to focus.'  As far as I'm concerned there's nothing wrong with this sentence. However, I'm aware that one could add 'to' before encourage. I would like to know whether any prescriptivists would say it should include 'to' or whether as a matter of style in formal English it would be better.   Thanks for any ideas on this.


Billing Information Required for App Updates

I'm trying to update 3 apps on my iPad and 3 things happen that never usually happen.   It asks me to sign in. It asks for my billing information. My card gets denied.   Now I know my card still works fine so that isn't the problem. The same thing happens when I try to install previously downloaded apps (that cloud button) or install new free apps.  I have no outstanding payments (is it even possible to have outstanding payments with Apple?) so why is this happening?  In case it's needed, I'm using an iPad Air running the latest version. 16GB Harddrive and Wi-Fi only.  I should also make it clear that "None" isn't an option for payment.


I have a bunch of points in a text file that are represented using lat long (116.3158516 39.9748016). I import them into my GIS enabled database and create trajectories using st_makeline() as geometries projected in EPSG:4326. I'm using geometry here because all the GPS data falls into an area that is 50km^2: correct me if this is my first mistake.  Now I'm doing things like calculating trajectory length (st_length) and simplifying the geometry using st_simplifypreservetopology() but according to the documentation the results for the length and the tolerance for the simplification are in the coordinate system of the data; which in my case is degrees. This obviously doesn't make sense. I need it to be in meters.  Do I need to change the way I'm storing my data or do I need to convert my trajectories and points into something else before feeding them into the st_length() and st_simplifypreservetopology() functions?  Screenshot for Mike T.