<?xml version="1.0"?>
<!-- name="generator" content="blosxom/2.0" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN" "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
  <channel>
    <title>e dot dot dot 9 04 2025</title>
    <link>http://www.jamesraposa.com/index</link>
    <description>e dot dot dot - a mostly about the Internet weblog by James Raposa</description>
    <language>en</language>

  <item>
    <title>Universal JS Download Modal Triggering Code</title>
    <link>http://www.jamesraposa.com/index/2025/04/09#Universal_JS_Download_Modal_Triggering_Code</link>
    <description>This handy javascript programming takes two incoming arguments, and invokes the download dialogue modal for any text supplied to it. Just provide it with a fileName (to be used when saving the &quot;file&quot;), and fileContents, and see for yourself.&lt;br /&gt;&lt;br /&gt;Highlight and copy the Javascript code below, starting with the &quot;function&quot; line, and ending with the very last right-squiggly-bracket that's followed by a semi-colon.&lt;br /&gt;&lt;br /&gt;#########################################################&lt;br /&gt;JS Programming Below&lt;br /&gt;#########################################################&lt;br /&gt;function createAndDownloadFile(fileName, fileContent) {&lt;br /&gt;&lt;br /&gt;// Create a Blob from the content (assuming it's text data)&lt;br /&gt;const blob = new Blob([fileContent], { type: 'text/plain' });&lt;br /&gt;&lt;br /&gt;// Create an object URL for the Blob&lt;br /&gt;const url = URL.createObjectURL(blob);&lt;br /&gt;&lt;br /&gt;// Create an anchor element&lt;br /&gt;const a = document.createElement('a');&lt;br /&gt;&lt;br /&gt;// Set the download attribute with the specified file name&lt;br /&gt;a.download = fileName;&lt;br /&gt;&lt;br /&gt;// Set the href attribute to the Blob URL&lt;br /&gt;a.href = url;&lt;br /&gt;&lt;br /&gt;// Append the anchor element to the document body (required for Firefox)&lt;br /&gt;document.body.appendChild(a);&lt;br /&gt;&lt;br /&gt;// Trigger a click on the anchor element to start the download&lt;br /&gt;a.click();&lt;br /&gt;&lt;br /&gt;// Clean up by removing the anchor element&lt;br /&gt;document.body.removeChild(a);&lt;br /&gt;&lt;br /&gt;// Optionally, release the object URL after use to free memory&lt;br /&gt;URL.revokeObjectURL(url);&lt;br /&gt;};&lt;br /&gt;#########################################################&lt;br /&gt;JS Programming Above&lt;br /&gt;#########################################################</description>
  </item>
  <item>
    <title>Apple's 4-day slide puts Microsoft back on top as most valuable company</title>
    <link>http://www.jamesraposa.com/index/2025/04/09#auto___apple_s_4_day_slide_puts_microsoft_back_on_top_as_most_valuable_company</link>
    <description>Furnished content.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Among the tech megacap companies, Apple has been the hardest hit by President Donald Trump's tariffs. &lt;br /&gt;&lt;br /&gt;Read more &lt;a class=&quot;sw_sl&quot; href=&quot;https://www.cnbc.com/2025/04/08/apple-slide-puts-microsoft-back-on-top-as-most-valuable-public-company.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;</description>
  </item>
  <item>
    <title>Elon Musk ratchets up attacks on Navarro as Tesla shares slump for fourth day</title>
    <link>http://www.jamesraposa.com/index/2025/04/09#auto___elon_musk_ratchets_up_attacks_on_navarro_as_tesla_shares_slump_for_fourth_day</link>
    <description>Furnished content.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;With shares of Tesla plummeting on tariff concerns, CEO Elon Musk is taking to social media to slam top Trump trade advisor Peter Navarro.&lt;br /&gt;&lt;br /&gt;Read more &lt;a class=&quot;sw_sl&quot; href=&quot;https://www.cnbc.com/2025/04/08/elon-musk-steps-up-attacks-on-navarro-as-tesla-shares-slump-fourth-day.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;</description>
  </item>
  <item>
    <title>DOJ ends crypto enforcement team, shifts focus to terrorism and fraud</title>
    <link>http://www.jamesraposa.com/index/2025/04/09#auto___doj_ends_crypto_enforcement_team__shifts_focus_to_terrorism_and_fraud</link>
    <description>Furnished content.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The memo, sent by Deputy Attorney General Todd Blanche, outlines a decentralized approach for digital asset cases.&lt;br /&gt;&lt;br /&gt;Read more &lt;a class=&quot;sw_sl&quot; href=&quot;https://www.cnbc.com/2025/04/08/doj-ends-crypto-enforcement-team-shifts-focus-to-terrorism-and-fraud.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;</description>
  </item>
  <item>
    <title>Pixel Watch's most important update yet is finally rolling out in the US</title>
    <link>http://www.jamesraposa.com/index/2025/04/09#auto___pixel_watch_s_most_important_update_yet_is_finally_rolling_out_in_the_us</link>
    <description>Furnished content.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Google's FDA-cleared Loss of Pulse Detection Feature is rolling out to Pixel Watch 3 users. Here's what it does and how to opt in.&lt;br /&gt;&lt;br /&gt;Read more &lt;a class=&quot;sw_sl&quot; href=&quot;https://www.zdnet.com/article/pixel-watchs-most-important-update-yet-is-finally-rolling-out-in-the-us/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;</description>
  </item>
  </channel>
</rss>