We are trying to access/play audio files stored on external system from Salesforce Lightning Component. Access to file requires a BASIC authentication with GET method and we don't want users to prompt for username/password when they click on the audio file link (Stored as URL field on Salesforce custom  object). We first tried redirecting the user to audio file but no luck. Second option we are trying is, aura component as below which takes Blob from apex controller but it's not working. Any help is greatly appreciated. &lt;aura:component&gt; &lt;audio src=&quot;{!v.audioFile} type=&quot;audio/x-wav&quot;&gt;          autoplay=&quot;true&quot;&gt; &lt;/audio&gt; &lt;/aura:component&gt;  js controller     ({     doInit : function(component, event, helper) {         var recID = component.get(&quot;v.recordId&quot;);         console.log(&quot;recordID &quot;+recID);         var action = component.get(&quot;c.makeCallout&quot;);                  action.setParams({             &quot;recID&quot;:recID         })        action.setCallback(this, function(response) {             console.log('get state'+response.getState());             if (response.getState() == 'SUCCESS') {                 debugger;                var templateData = response.getReturnValue();                 var byteCharacters = atob(templateData);                 console.log(templateData);                                  const buf = new Array(byteCharacters.length);                  for (var i = 0; i != byteCharacters.length; ++i)                 buf[i] = byteCharacters.charCodeAt(i);                                  debugger;                                  const view = new Uint8Array(buf);                                  //cast to blob                 const blob = new Blob([view], {                 type: 'audio/x-wav'                 });                var audio = new Audio(blob);                 audio.play();                                  component.set(&quot;v.audiofile&quot;, blob);                 component.set(&quot;v.callOutComplete&quot;, true);             }         });         $A.enqueueAction(action);     }, })
I have added an mp3 file as a static resource, can someone please help me to call that resource in the lightning component so when I hit the button it will play that static resource  as per the Salesforce documentation I have tried below but instead of playing the sound it is displaying the message.
What is the best way to close an ASPX page from the code-behind?    I have a button event handler that I want to close the page after the user has clicked an ASP.NET button on the page.  I have tried to programmatically add a JavaScript method that contains a window.close() command to the OnClientClick event to close the page but it does not work.  The button is also a asp:AsyncPostBoskTrigger for an AJAX Update Panel.  The application uses .NET Framework 3.5. Say I have two points. One at $A = (0, 0)$ and another at $B = (0, 10)$. I wish to derive an equation for a line that, for any point $P$ on the line, would equal a set ratio for the distance $P$ to $A$ and $P$ to $B$.  This is easy if the predetermined ratio for $A:B$ is $1:1$. I would create a line from $A$ to $B$, find its midpoint, then create an orthogonal line at the midpoint. Then at any $P$ on the line I know that the ratio distances from $P$ to $A$ and $B$ will be $1:1$.  But what if the ratio for $A:B$ is something like $11:18$?  This is for a positioning algorithm I am implementing - not for homework :)  EDIT: Note - If an exact formula is not possible, an approximation of the line out to $\pm 200$ from $A$ or $B$ is acceptable as values further from $A$ and $B$ will not be utilized anyway. A linear equation for the final result/approximation is ideal for speed in running multiple computations. Strange math notation, vertical bar with parentheses. So I was reading "Resistance Distance" (D. J. Klein, M. Randić) (Journal of Mathematical Chemistry 12(1993)81-95) when I came up with strange notation.  From the paper:  The graph adjacency matrix is defined as: $$A_{xy} = (x|A|y) =  \begin{cases} 1/r_{xy} &amp; x \sim y \\ 0 &amp; \text{otherwise}  \end{cases}$$  The graph degree matrix of a graph is defined as:  $$\Delta_{xy} = (x|\Delta|y) = \delta(x,y) \sum_{z}^{\sim x} 1/r_{xy}$$  $$ |\phi) \equiv \sum_x |x)  $$  My main question is what does the combination of the vertical bar parentheses mean. Thanks in advance. I'm using TeXLive 2014. Here's a MWE:  \documentclass{article} \usepackage{tkz-fct}         % Must appear before {thmtools}  \usepackage{thmtools} \declaretheorem{theorem}  \begin{document}   \begin{tikzpicture}     \tkzInit  % No need to even plot anything!   \end{tikzpicture}    \begin{theorem}[A Silly Theorem]     Let $a = 1$. Then $a &gt; 0$.   \end{theorem} \end{document}   The error message is:  ! Extra \endcsname. \kv@processor@default ...fincsname\@xa \endcsname                                                   \csname iftrue\endcsname \... l.12   \begin{theorem}[A Silly Theorem]   If the optional theorem name is removed, all is well. Adding \protect{} doesn't help.  Any idea how to remove this conflict?  Thanks! I have a UK Refugee passport. Do I need a visa to go to France?   I want to go for two days with my husband, but I'm not quite sure if I can go without a visa. Why would the command "ls *" generate an error about invalid options? There is a thread that talks about ls "*" not showing any files, but I actually wonder why the simple  ls *   command doesn't output anything in my terminal other than  ls: invalid option -- '|' Try 'ls --help' for more information.   while   ls   will list all the files in the current directories as    1                  ferol                      readme.txt  2                  fichier                    sarku  2018               GameShell                  Templates  22223333          '-|h4k3r|-'                 test  3                  hs_err_pid2301.log         test2  CA.txt             important.top.secret.txt   toto.text  CA.zip             JavaBlueJProject           tp1_inf1070  countryInfo.txt    liendur                   'tp1_inf1070_A19(2) (1)'  currency           liensymbolique             tp1_inf1070_A19.tar  curreny            LOL                        Videos  Desktop            Longueuil                 'VirtualBox VMs'  Documents          Music                      words  douffos            numbers                    Zip.zip  Downloads          Pictures  examples.desktop   Public   Any ideas as to why the globbing doesn't take effect here? I'm on Ubuntu, working in the terminal, I don't know if it makes a difference.  Thanks. What is the fate of the Asgardians at the start of Avengers: Infinity War? Thor: Ragnarok ends with the remaining people of Asgard aboard a refugee ship that meets Thanos' ship. Avengers: Infinity War opens with      Thanos and his minions having commandeered the ship and several bodies can be seen on the floor.   This begs the question, what happened to these characters:   Korg Miek Asguardian extra #3 Valkyrie The  spell says time stops for other creatures.  What all is affected by the spell? Is gravity affected? Air movement?  I know that the spell only does what it says, and nothing else, but just wondering.   In addition, is it saying that the other creatures are not affected by environmental effects and the like while time is stopped?  For instance, if a wind blew really hard at one of the creatures you're fighting, would it affect that foe while time stop is active? If you were to place a bear trap behind the person, and a hard wind blew enough to tip them, would they then fall over onto the bear trap and be damaged without the spell ending?  This is a very curious spell... Multiplicative order and powers Let's consider two number $a$ and $b$ such as $gcd(a,b)=1$. Can you explain me intuitively why there exist $n&gt;0$ such as $a^{n} \equiv 1 \space (mod \space b)$  ? what is the total number of distinct arrangements of $n$ oranges and $n$ apples around a round table? I have no idea how to go about. Is it a good practice to show a sign-up or registration form as seperate parts rather than in one go? I am designing a registration form for a site with multiple sets of information required from the user. I have categorized the data fields into relevant groups. Now should I present the form sections in one go or follow a wizard-like approach? What things should I keep in mind while deciding on this? How can I create documents in LaTeX using a calligraphic first letter for chapters? Books often have a special letter (often spanning two lines) at the beginning of chapters. How can I create this in LaTeX? I would like to show that $a^n \mid b^n$ implies $a \mid b$  I thought I could convert it to congruences and work backwards, but as far as I remember, $a \equiv b \pmod{m}$ implies $a^n \equiv b^n \pmod{m}$, not the opposite, unless $m$ is prime. Is that right?  So I am not sure how to approach this one. Any ideas?  Thanks! Work out the type of c# application a class contained in a DLL is being used by I can copy, move, create, and delete them. I can rename them using the REN command from a command prompt. I cannot rename folders through Windows Explorer anywhere on my machine, including on other drives.   When I try to do so, I receive an error titled "Rename Folder" that says "Can't find the specified file. Make sure you specify the correct path and file name." Then when I click Try Again or Cancel, I get another error titled "Rename" that says "The file or folder does not exist."  As far as I can tell, nothing else is wrong with my computer, but I'm pulling my hair out trying to fix this problem. I don't know for sure if superuser is the right place to ask this question, but feel free to redirect me.  Summary of Failed Attempts:   Booted into Safe Mode  Made a New User Account System Restore Point (two days ago, 9 days ago)  Deleting / Restoring / Modifying FolderDescriptions registry entries SFC /scannow  Removing windows update KB2984006  Scanned for viruses using Nod32  Scanned for malware using MalwareBytes   Details:  Tried rolling back to two different system restore points, both immediately before I observed the problem and one release prior to that.  Tried restoring FolderDescriptions registry entries as found here:   Booting in safe mode as suggested here:   SFC /scannow as suggested here:   Tried removing registry keys and windows update KB2984006 as suggested here:   Tried exporting folderdescriptions from other machine and importing as suggested here:   Compared my exported registry with other machine's exported registry for both:  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions   My FolderDescriptions branch of the registry in both cases are binary equal to those exported from my wife's Windows 8.1 laptop which works fine. Why does English spelling use silent letters? If G is not commutative, then is there always a subgroup that is not a normal subgroup? I'm currently a Combinatorics student trying to parse through this solution. I do not understand the proof currently. Any help understanding it is greatly appreciated.    Question Let the number of partitions be given by the function $p(n)$, i.e. the number of ways of writing the integer $n$ as a sum of positive integers. Prove that that if $g$ is any polynomial function in $n$, then there exists an integer $N$ such that $g(n)&lt;p(n)$ for all $n&gt;N$. Do not use the asymptotic Hardy-Ramanujan formula.    Provided Proof.    Enough to show $n^a&lt;p(n)$ for fixed positive integer $a$. (This is just saying that we want to show $p(n)$ grows faster than any degree polynomial of $n$, right?) We have that $(i_1,i_2,\ldots,i_{a+1},1^{n-i_1-\cdots -i_{a+1}})$ is a partition of $n$ as long as $i_{a+1}\leq i_a\leq \cdots i_1 \leq \lfloor\frac{n}{a+1}\rfloor$. (I really don't understand this step. What is this partition? Of the coefficients or terms of polynomial $p(n)$? And how do we know this is $\leq \lfloor\frac{n}{a+1}\rfloor$?) The number of partitions $n$ of this form is multiset binomial coefficient $$\left(\dbinom{\lfloor \frac{n}{a+1}\rfloor}{a+1}\right)=\frac{\lfloor\frac{n}{a+1}\rfloor(\lfloor\frac{n}{a+1}\rfloor+1)\cdots(\lfloor\frac{n}{a+1}\rfloor+a-1)}{(a+1)!}$$ (I'm assuming that if I can understand (2.) then I can understand this line) This means $p(n)&gt;\left(\binom{\lfloor \frac{n}{a+1}\rfloor}{a+1}\right)$ for all $n&gt;0$. Since $a$ is constant, the given fraction grows with order $n^{a+1}$, which means $p(n)&gt;n^a$ for $n$ sufficiently large. (Why does it grow with order $n^{a+1}$?)   Thanks all again in advance! Using ArcGIS 10.0, is it possible to reorder the fields in a file geodatabase, and have the order persisted to the database?  We considered exporting to XML, and writing a parser to change the field order, then re-creating a new database from the XML. This seems like a laborious process.  Another idea is to import the existing field definitionss into Excel, re-order them, export to CSV, then write a Python script to create these fields in a new Geodatabase. Does a script like this exist, before we write it from scratch?  Unfortunately the ArcGIS Diagrammer doesn't seem to support field re-ordering.  Are there any scripts or hacks we could use to simplify this process? Only Fixed and Random Options are Working in Illustrator CC 2015 Callipraphy Brushes App updated but still the same. Only fixed and random options are working in Calligraphy Brushes. I have searched but can't find a solution.