How to set custom name for Exported Excel file in Javascript I have this JS code which perfectly exports excel. I have tried various ways so that it will take custom names for the files. Currently, its always taking download.xls as default file name. Any idea on how to set custom filename in this code? Thanks in advance.  function Export()     {         var tab_text = "&lt;table border='2px'&gt;&lt;tr bgcolor='#87AFC6'&gt;";         var textRange; var j = 0;         tab = document.getElementById('TicketTable'); // id of table          for (j = 0 ; j &lt; tab.rows.length ; j++) {             tab_text = tab_text + tab.rows[j].innerHTML + "&lt;/tr&gt;";         }          tab_text = tab_text + "&lt;/table&gt;";         tab_text = tab_text.replace(/&lt;A[^&gt;]*&gt;|&lt;\/A&gt;/g, "");//remove if u want links in your table         tab_text = tab_text.replace(/&lt;img[^&gt;]*&gt;/gi, ""); // remove if u want images in your table         tab_text = tab_text.replace(/&lt;input[^&gt;]*&gt;|&lt;\/input&gt;/gi, ""); // reomves input params          var ua = window.navigator.userAgent;         var msie = ua.indexOf("MSIE ");          if (msie &gt; 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./))      // If Internet Explorer         {             txtArea1.document.open("txt/html", "replace");             txtArea1.document.write(tab_text);             txtArea1.document.close();             txtArea1.focus();             sa = txtArea1.document.execCommand("SaveAs", true, "SubmittedBilling.xls");         }         else              //other browser not tested on IE 11             sa = window.open('data:application/vnd.ms-excel,' + encodeURIComponent(tab_text));         return (sa);     }
Is there any way to specify a suggested filename when using data: URI? If for example you follow the link:  data:application/octet-stream;base64,SGVsbG8=  The browser will prompt you to download a file consisting of the data held as base64 in the hyperlink itself.  Is there any way of suggesting a default name in the markup?  If not, is there a JavaScript solution?
Windows Update Slow on Vista Update I was able to get Readiness Tool to run but not the update Now the reediness tool will not even run Security Essentials will run    I have legal Windows 7 to install Do you think that is safe bet to try?    Had some performance issue so I ran MalwareBytes and Security Essentials.     It found some malware that was successfully removed.    I was able to Update Security Essentials and I ran it again for safety and it found nothing additions.     The last successful Windows Update was 5 days ago     Checking for Updates has been running 6 hours CPU 100%  network 0%     Windows6.0-KB947821-v35-x86.mnu fails to install It is supposed to be a tool to address update problems   I fear the registry got hacked to prevent updates     What can I do?  I know Vista.  I got it free. USB is a popular standard and I was wondering whether there is some way to connect two or more computers using USB ports rather than the Ethernet ports. Steps to solve this system of equations: $\sqrt{x}+y=7$, $\sqrt{y}+x=11$ I want to solve this system of equations, I have been out of Maths for a long!!  $$\sqrt{x}+y=7$$  $$\sqrt{y}+x=11$$  Just wondering easiest step to find values for $x$ and $y$ from the above equations? Change Detection using Raster Calculator I'm currently analyzing the change detection for urban expansion over a decade starting from 2006-2016. How can I use raster calculator in order to know the changes? For example, from agriculture to urban area and etc. I already classified the images into 4 classes, urban area,vegetation,water bodies and barren land. My ListView (of my ViewFilipper) fills the parent and buttons on the bottom get hidden Blender is rendering an older version my project Blender is rendering an older version of my project, not the most recent one. I have made it using the Blender Render but it does not want to render in cycles either. A black and grey screen is rendered as if everything is transparent. Checked general camera, lighting and compute devises in case I messed something up but I can't find anything. All my textures and objects look normal, does anybody know what is wrong or what to check?  Ok added link: Radially symmetric charge distribution (dipole moment) a) There's a radially symmetric charge density $\rho(r)$ centered around the origin. Determine the dipolemoment of that charge density. b) Let $\rho(r)$ be an arbitrary charge density now. Under what circumstances does the dipole moment of the displaced charge density  $\rho '(\vec{r}) = \rho (\vec{r}-\vec{b})$ differ from the one not displaced at all.  Here were my ideas so far: a) Just thinking about the situation it has to be zero, right? I mean, since there's no real dipole. But how do I show that mathematically? I was thinking of just going like this (it may be wrong): Let the charge density be $\rho (r)=kr$, then we can get the charge q by integrating: $$q=4\pi \int_0^R kr\cdot r^2dr=\pi k R^4$$ I'm looking at the charge distribution as a spherical electron cloud with radius $R$. Then, since $p=qd$ and $d$ is zero because there are no two different charges the dipole moment is zero. Is that sufficient as an answer? b) I don't know how to approach this one. My guess is that its dipole moment is also zero because we're only looking at a displacement here. Anyone got any idea? I would appreciate any advice on this. "Delete this answered question?" when the only answer is deleted Looks like there's a small bug in the UI: I posted a question here on meta.SE which ended up being just something dumb I was doing and no use to anyone in the future. At first I posted an answer saying what the dumb thing was, but then I realized that the whole thing had no value, so I deleted the answer, and then deleted the question — whereupon it asked me:  Delete this answered question? We do not recommend deleting questions with answers because doing so deprives future readers of this knowledge. Repeated deletion of answered questions can result in your account being blocked from asking. Are you sure you wish to delete?  (Screenshot below) Probably shouldn't ask (or add to the tally) if the only answers are deleted ones... What purpose does downvoting questions serve? Exeception on After Insert, Record is read only I'm writing a trigger for new opportunity products to populate  a field Product_Category__c (on opportunity lineitem) getting the value from Product_Category_new__c (on Product).  This is my trigger:  trigger SetProductCategory on OpportunityLineItem (after insert) {      for (OpportunityLineItem opplineitem: Trigger.new) {                    opplineitem.Product_Category__c =  opplineitem.PricebookEntry.Product2.Product_Category_new__c;     }      }   I get this error message:     execution of AfterInsert caused by: System.FinalException: Record is read-only   I have tried with before insert;in this case there aren't errors but the value Product category it's not saved on Opportunity Line item.  I have found that:  In a after insert trigger is not allowed change field using trigger.new  Please can you suggest a solution for this? i would like to copy the value Product category (Product) on Product Category (Opportunity Product)  after the insert of the new opportunity products.  Thanks in advantage for any advice.  Br "You've earned (badge)" panel layouts are broken When I visit  I see this:     The "Congratulations! You've earned (badge)" section has dropped down completely beneath the tabs under it. The "You've earned a new privilege!" section has a gap at the bottom:     Shog9 says in comments how to reproduce this:     Gotta have earned a badge, not dismissed the notification, and be looking at your own profile. Superman has been exploited by Poison Ivy in Hush, and he's definitely mad in Injustice. What about Batman? Has Batman ever had to be brought to justice/stopped/killed by his fellow superheroes? (That one time when Superman dreams of Batman snapping Joker's neck doesn't count)  Edit: The Dark Knight Returns doesn't count: Batman wasn't really mad, and he wasn't wrong either. I have a question that is highly similar to this one:  However, I'm not sure how to do this when fractional powers are involved. I understand that the answer involving the binomial theorem shows this for fractions too, but I'm not sure how to go through the mechanics of it all. For example, when trying to differentiate $\sqrt{ax+b}$, I get to   $$ \lim_{h \rightarrow 0}  \frac{\sqrt{a(x+h)+b} - \sqrt{ax+b}}{h} $$  then can't get the $h$ to cancel out. I think this involves algebraic manipulation of some sort, but can't figure it out.  Thanks How do AD/AP boosts apply to abilities with long cast times, channels or animations? For example: I'm playing Janna in bot lane with Caitlyn. Caitlyn begins channeling Ace in the Hole to finish off an enemy. Will the AD buff from my Eye of the Storm apply extra damage to Caitlyn's ultimate if I cast at after she begins channeling? Similarly, if I see Caitlyn rev up to shoot Piltover Peacemaker, can I boost her AD after the animation begins? (If I remember correctly, Piltover Peacemaker has a quick cast time, but the spell animation is rather long, so it may be a different circumstance from the first example.)  Basically, I want to know if the AD is calculated at the start of a cast, at the end of a cast, or when the ability actually creates and object on the battlefield. Something has changed in server 16.04 LTS, I can't find tty1, but I need to make an auto-login on tty1 (in console mode), in 14.04 LTS I can make this work.  I can't find /etc/init/tty1.conf  How to, or a link? Other types of vector multiplication. As far as I've seen, there are only two types of vector multiplication defined, dot product/inner product which is defined in a vector space of any dimension, even infinite, and cross product, which is only defined in three dimensions. Are there more definitions of vector products? Placing items before \documentclass When looking in books or at sample code, I always see \documentclass appearing first. Is that absolutely necessary?  I have created some test code which seems to compile fine:  \def\SetClass{article} \documentclass{\SetClass} \begin{document}     This is some text. \end{document}   Is there any problem with placing other items, such as \input, \usepackage, or such details before the \documentclass? Probability that the sum of 6 dice rolls is even I've got a 32-bit Ubuntu installation running on 64-bit hardware. Now that , I would like to switch to 64-bit without having to reinstall the OS.  This is one of the :  Shawn installed his system using the 32-bit version of Ubuntu, but his hardware is 64-bit and he wants to switch over. He manually installs the amd64 versions of dpkg and apt, replacing the i386 versions and changing which architecture is used as the default; then he installs the amd64 ubuntu-minimal package; then he installs the amd64 ubuntu-desktop package. Over time the remaining i386 packages are replaced automatically on upgrade.  However, when trying to follow the instructions in there, I cannot find any 64-bit version of dpkg or apt.  Did this user story got implemented in a different way in the final spec, or do I need to do something differently?  In short, how can I switch my 32-bit installation to 64-bit? I'm confused. Running Fedora Linux, lscpu yields:  Architecture:            i686 CPU op-mode(s):          32-bit, 64-bit ...   But when I try to install a 64-bit program (Chrome) I get error like:     Package /....x86_64.rpm has incompatible architecture x86_64. Valid architectures are ['i686', 'i586', 'i486', i386']   I'm less interested in being able to install Chrome and more interested in why lscpu says that my CPU can run in 64-bit mode; clearly this can't mean I can run 64-bit programs. Can anyone clarify?