<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Samuel Haddad</title>
    <link>https://samuelhaddad.com/</link>
    <atom:link href="https://samuelhaddad.com/feed.xml" rel="self" type="application/rss+xml"/>
    <description>Technical fixes, snippets and the occasional random thought, by Samuel Haddad.</description>
    <language>en</language>
    <item>
      <title>RX 7900 XTX freezes from Windows Modern Standby</title>
      <link>https://samuelhaddad.com/2026/11/03/rx-7900-xtx-modern-standby/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2026/11/03/rx-7900-xtx-modern-standby/</guid>
      <pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;My dual monitors would freeze. Sometimes red pixels showed up, the machine beeped, and I had to hold the power button. After a reboot the AMD card was often disabled and only one screen came back. Overnight it started throwing a real bugcheck: &lt;code&gt;VIDEO_SCHEDULER_INTERNAL_ERROR&lt;/code&gt; (&lt;code&gt;0x119&lt;/code&gt;) while Connected Standby was in progress.&lt;/p&gt;
&lt;h2 id=&quot;the-machine&quot;&gt;The machine&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Alienware Aurora R15 AMD&lt;/li&gt;
&lt;li&gt;AMD Ryzen 9 7900X&lt;/li&gt;
&lt;li&gt;Dell OEM AMD Radeon RX 7900 XTX&lt;/li&gt;
&lt;li&gt;Two Dell S2725DS monitors on HDMI&lt;/li&gt;
&lt;li&gt;Windows 11&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Driver updates and a BIOS flash did not stop it. Sleep in Windows Settings was already set to Never. The machine was still going into a laptop-style sleep path.&lt;/p&gt;
&lt;h2 id=&quot;what-modern-standby-is&quot;&gt;What Modern Standby is&lt;/h2&gt;
&lt;p&gt;Modern Standby is &lt;strong&gt;S0 Low Power Idle&lt;/strong&gt;, also called Connected Standby. The PC looks asleep, but it stays in a low-power S0 state with the network up instead of using old S3 sleep. Laptops like that. A desktop with a 355 W discrete GPU often does not. The 7900 XTX was failing on that power transition.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;powercfg /a&lt;/code&gt; showed S0 was available even though S3 was not:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;powercfg /a&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You want to see &lt;code&gt;Standby (S0 Low Power Idle)&lt;/code&gt;. If that line is there, Windows can still park the GPU when the screens turn off.&lt;/p&gt;
&lt;h2 id=&quot;turning-it-off&quot;&gt;Turning it off&lt;/h2&gt;
&lt;p&gt;Run an elevated Command Prompt or PowerShell, then:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;reg &lt;span class=&quot;token function&quot;&gt;add&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;HKLM&#92;SYSTEM&#92;CurrentControlSet&#92;Control&#92;Power&quot;&lt;/span&gt; /v PlatformAoAcOverride /t REG_DWORD /d &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt; /f
reg &lt;span class=&quot;token function&quot;&gt;add&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;HKLM&#92;SYSTEM&#92;CurrentControlSet&#92;Control&#92;Power&quot;&lt;/span&gt; /v CsEnabled /t REG_DWORD /d &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt; /f&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Reboot. Check again:&lt;/p&gt;
&lt;pre class=&quot;language-bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;powercfg /a&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;Standby (S0 Low Power Idle)&lt;/code&gt; should be gone. The box can stay awake or hibernate. It should not sneak into Modern Standby anymore.&lt;/p&gt;
&lt;p&gt;PowerShell does the same thing:&lt;/p&gt;
&lt;pre class=&quot;language-powershell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;&lt;span class=&quot;token function&quot;&gt;Set-ItemProperty&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Path &lt;span class=&quot;token string&quot;&gt;&#39;HKLM:&#92;SYSTEM&#92;CurrentControlSet&#92;Control&#92;Power&#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Name PlatformAoAcOverride &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Type&lt;/span&gt; DWord &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Value 0
&lt;span class=&quot;token function&quot;&gt;Set-ItemProperty&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Path &lt;span class=&quot;token string&quot;&gt;&#39;HKLM:&#92;SYSTEM&#92;CurrentControlSet&#92;Control&#92;Power&#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Name CsEnabled &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Type&lt;/span&gt; DWord &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;Value 0&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Reboot after that too.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Moving this site off WordPress</title>
      <link>https://samuelhaddad.com/2026/11/03/moving-this-site-off-wordpress/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2026/11/03/moving-this-site-off-wordpress/</guid>
      <pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;This site was WordPress. I wanted a folder of markdown that turns into HTML, with nothing to log into and nothing loaded from someone else’s server.&lt;/p&gt;
&lt;p&gt;Claude designed the first version of that. One stylesheet. A light theme and a dark theme. An orange accent. Three fonts that ship with the site: Inter for the text, Newsreader for the headlines, JetBrains Mono for the code. The rules were strict on purpose. No client-side framework, no database, no CMS, and no inline styles or scripts. The Content-Security-Policy only allows files from this domain, so a &lt;code&gt;style=&amp;quot;&amp;quot;&lt;/code&gt; attribute or a pasted &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; does nothing in production. Fonts come from the build, not a CDN.&lt;/p&gt;
&lt;p&gt;That first version was a small script, &lt;code&gt;build.mjs&lt;/code&gt;. It was enough to publish a post. It was not enough once I wanted the quiet parts of a blog: resized images, a page for each tag, a full RSS feed, links on headings, highlighted code, search, and a social card per page. Those are build-time jobs. &lt;a href=&quot;https://www.11ty.dev/&quot;&gt;Eleventy&lt;/a&gt; already did them, and the posts could stay markdown. Eleventy does not run in the browser. &lt;code&gt;npm run build&lt;/code&gt; writes the finished site to &lt;code&gt;dist/&lt;/code&gt;. &lt;code&gt;npm run dev&lt;/code&gt; serves it locally and rebuilds when a file changes.&lt;/p&gt;
&lt;p&gt;A few of those pieces are worth remembering:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Search is &lt;a href=&quot;https://pagefind.app/&quot;&gt;Pagefind&lt;/a&gt;. Its JavaScript loads on &lt;code&gt;/search/&lt;/code&gt; only.&lt;/li&gt;
&lt;li&gt;Social cards are PNGs made during the build. They are the &lt;code&gt;og:image&lt;/code&gt; tag, not a picture on the page. The variable font used in the CSS would not render in that step, so the cards use a static Inter file.&lt;/li&gt;
&lt;li&gt;Images in a post are normal markdown. The build makes smaller copies.&lt;/li&gt;
&lt;li&gt;A link checker runs at the end of the build. It should fail the build for a broken link inside the site. It should not fail the build because a 2009 post links to a dead page on the public web.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Getting the old posts out was the slow part. The WordPress REST API answered 401 and 406, so that door was closed. The public sitemap and the public HTML were enough. Each post kept its original date and slug. The URL is still &lt;code&gt;/YYYY/MM/DD/slug/&lt;/code&gt;, which is what the old permalinks were. Existing links can survive the move.&lt;/p&gt;
&lt;p&gt;The conversion had a few sharp edges. WordPress wrapped code in highlighter markup, and a careless cleanup turned a C# sample into one long line. It also ate &lt;code&gt;/// &amp;lt;summary&amp;gt;&lt;/code&gt; comments, because those look like HTML tags. Protect the code block first, then decode entities.&lt;/p&gt;
&lt;p&gt;Deploy is Cloudflare Pages, connected to the GitHub repo. Framework preset None. Build command &lt;code&gt;npm run build&lt;/code&gt;. Output directory &lt;code&gt;dist&lt;/code&gt;. Node 20 or newer. &lt;code&gt;public/_headers&lt;/code&gt; is the CSP and the cache rules. &lt;code&gt;public/_redirects&lt;/code&gt; sends the old &lt;code&gt;/feed&lt;/code&gt;, &lt;code&gt;/category/*&lt;/code&gt;, &lt;code&gt;/page/*&lt;/code&gt;, and &lt;code&gt;/author/*&lt;/code&gt; URLs somewhere that still exists. A push to &lt;code&gt;main&lt;/code&gt; publishes. Any other branch gets a preview URL.&lt;/p&gt;
&lt;p&gt;The last step was moving the DNS so &lt;code&gt;samuelhaddad.com&lt;/code&gt; pointed at that project. That is what replaced WordPress.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>PDF.JS: Message: file origin does not match viewer’s with WordPress</title>
      <link>https://samuelhaddad.com/2024/02/27/pdf-js-message-file-origin-does-not-match-viewers-with-wordpress/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2024/02/27/pdf-js-message-file-origin-does-not-match-viewers-with-wordpress/</guid>
      <pubDate>Tue, 27 Feb 2024 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;Recently I received the error while working on a WordPress Site.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Message: file origin does not match viewer&#39;s&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Solution. Both the website and the PDF have to be served over the same protocol, in my case, SSL.&lt;/p&gt;
&lt;p&gt;I upgraded the website to use SSL. The PDF.JS plugin and the file must be served from the https URL. I updated the page with the embedded plugin and served the file over SSL to match the application.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Git: delete all local branches except main</title>
      <link>https://samuelhaddad.com/2022/11/24/git-delete-all-local-branches-except-main/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2022/11/24/git-delete-all-local-branches-except-main/</guid>
      <pubDate>Thu, 24 Nov 2022 00:00:00 GMT</pubDate>
      <description>&lt;pre class=&quot;language-bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;git&lt;/span&gt; branch &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;main&quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;xargs&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;git&lt;/span&gt; branch &lt;span class=&quot;token parameter variable&quot;&gt;-D&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</description>
    </item>
    <item>
      <title>Android: set the background color of a notification</title>
      <link>https://samuelhaddad.com/2022/11/18/android-set-the-background-color-notification-notification/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2022/11/18/android-set-the-background-color-notification-notification/</guid>
      <pubDate>Fri, 18 Nov 2022 00:00:00 GMT</pubDate>
      <description>&lt;pre class=&quot;language-kotlin&quot;&gt;&lt;code class=&quot;language-kotlin&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;fun&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;createTimerNotification&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;application&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Application&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; body&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; String&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token operator&quot;&gt;:&lt;/span&gt; Notification &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; NotificationCompat&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Builder&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;application&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; FOREGROUND_TIMER_NOTIFICATION_CHANNEL_ID&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setContentTitle&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token string-literal singleline&quot;&gt;&lt;span class=&quot;token string&quot;&gt;&quot;Title&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setContentText&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;body&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setColor&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;AccentPurple&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;toArgb&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setColorized&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setStyle&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;NotificationCompat&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;DecoratedCustomViewStyle&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setPriority&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;NotificationCompat&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;PRIORITY_MIN&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setWhen&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setSmallIcon&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;R&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;drawable&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ic_launcher_foreground&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;setOngoing&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token boolean&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;build&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</description>
    </item>
    <item>
      <title>Fix “Another Update is Currently in Progress” WordPress error</title>
      <link>https://samuelhaddad.com/2022/05/13/fix-another-update-is-currently-in-progress-wordpress-error/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2022/05/13/fix-another-update-is-currently-in-progress-wordpress-error/</guid>
      <pubDate>Fri, 13 May 2022 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;When WordPress goes to update, it creates a lock in the database so that multiple users and processes do not attempt to edit the system in parallel. However, there are cases when this lock is created, but the update never occurs. If this happens and the lock is not released, you will be blocked from retrying until you manually clean up the lock.&lt;/p&gt;
&lt;p&gt;The lock is created in the database in the &lt;code&gt;wp_options&lt;/code&gt; table. You need to find the option with the option name &lt;code&gt;core_updater.lock&lt;/code&gt; and delete the row. Then you can return to the site and run the update again.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Allow console logging with ESLint</title>
      <link>https://samuelhaddad.com/2018/08/14/allow-console-logging-with-eslint/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2018/08/14/allow-console-logging-with-eslint/</guid>
      <pubDate>Tue, 14 Aug 2018 00:00:00 GMT</pubDate>
      <description>&lt;pre class=&quot;language-js&quot;&gt;&lt;code class=&quot;language-js&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;/* eslint no-console: [&quot;error&quot;, { allow: [&quot;warn&quot;, &quot;error&quot;, &quot;log&quot;] }] */&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</description>
    </item>
    <item>
      <title>Nuget File Locations</title>
      <link>https://samuelhaddad.com/2018/07/06/nuget-file-locations/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2018/07/06/nuget-file-locations/</guid>
      <pubDate>Fri, 06 Jul 2018 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;&lt;strong&gt;NuGet Cache&lt;/strong&gt; Stores downloaded NuGet packages (.nupkg).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;%LocalAppData%&#92;NuGet&#92;Cache&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;%UserProfile%.nuget&#92;packages&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;NuGet Configuration&lt;/strong&gt; The NuGet.Config file stores user defined NuGet package sources, credentials and proxy settings. The default location for this file is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;%AppData%&#92;NuGet&#92;NuGet.Config&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Machine Wide NuGet Configuration&lt;/strong&gt; Machine wide configurations are used to define NuGet package sources specific to a machine or a particular IDE, such as Visual Studio.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;%ProgramData%&#92;NuGet&#92;Config&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    <item>
      <title>Git disable ssl check.</title>
      <link>https://samuelhaddad.com/2017/06/16/git-disable-ssl-check/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2017/06/16/git-disable-ssl-check/</guid>
      <pubDate>Fri, 16 Jun 2017 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;You probably don’t want to do this, but if you really have to&lt;/p&gt;
&lt;p&gt;&lt;code&gt;git config http.sslVerify &amp;quot;false&amp;quot;&lt;/code&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Export Git Repository to zip.</title>
      <link>https://samuelhaddad.com/2017/05/04/export-git-repository-to-zip/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2017/05/04/export-git-repository-to-zip/</guid>
      <pubDate>Thu, 04 May 2017 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;&lt;code&gt;git archive --format zip --output /full/path/to/zipfile.zip master&lt;/code&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Clear cached Git Credentials on Windows.</title>
      <link>https://samuelhaddad.com/2017/02/17/clear-cached-git-credentials-on-windows/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2017/02/17/clear-cached-git-credentials-on-windows/</guid>
      <pubDate>Fri, 17 Feb 2017 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;git config credential.helper store&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Jetbrains Resharper Command line tools not running</title>
      <link>https://samuelhaddad.com/2015/08/21/jetbrains-resharper-command-line-tools-not-running/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2015/08/21/jetbrains-resharper-command-line-tools-not-running/</guid>
      <pubDate>Fri, 21 Aug 2015 00:00:00 GMT</pubDate>
      <description>&lt;h3 id=&quot;problem&quot;&gt;Problem:&lt;/h3&gt;
&lt;p&gt;I was trying to get Resharper’s dupfinder to run from a command line script. Using Resharper’s command line tools. I keep getting the errors below.&lt;/p&gt;
&lt;p&gt;The solution came from https://devnet.jetbrains.com/thread/460601;jsessionid=FB59ACB66FFC17A22451A99A63A1BD76 which basically says&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Remove Zone.Identifier NTFS Alternate Data Stream (&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/dn392609.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/dn392609.aspx&lt;/a&gt;) from the ZIP file before using it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;turns out it was spot on. I used 7Zip instead of windows built in Zip extractor. Everything worked after that.&lt;/p&gt;
&lt;h3 id=&quot;error-i-received&quot;&gt;Error I received:&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;— EXCEPTION #1/6 [NotSupportedException] Message = &amp;quot;An attempt was made to load an assembly from a network location which would have caused the assembly to be sa ndboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by def ault, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRem oteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.&amp;quot; ExceptionPath = Root.InnerException.InnerException.InnerException.InnerException.InnerException ClassName = System.NotSupportedException HResult = COR_E_NOTSUPPORTED=80131515 — Outer — — EXCEPTION #2/6 [FileLoadException] Message = &amp;quot;Could not load file or assembly ’file:///C:&#92;CLT&#92;JetBrains.ReSharper.Features.NuGet.dll’ or one of its depende ncies. Operation is not supported. (Exception from HRESULT: 0x80131515)&amp;quot; ExceptionPath = Root.InnerException.InnerException.InnerException.InnerException ClassName = System.IO.FileLoadException InnerException = &amp;quot;Exception #1 at Root.InnerException.InnerException.InnerException.InnerException.InnerException&amp;quot; HResult = COR_E_NOTSUPPORTED=80131515 Source = mscorlib FileLoad_FileName = file:///C:&#92;CLT&#92;JetBrains.ReSharper.Features.NuGet.dll StackTraceString = &amp;quot; at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Runtime Assembly locationHint, StackCrawlMark&amp;amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntros pection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp;amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean for Introspection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp;amp; stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean s uppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashVa lue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark&amp;amp; stac kMark) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at JetBrains.Application.Parts.FileBasedPartCatalogueAssemblyBinder.JetBrains.Application.Parts.IPartCatalogueAssem blyBinder.BindToRuntimeAssembly() &amp;quot; — Outer — — EXCEPTION #3/6 [InvalidOperationException] Message = &amp;quot;Could not bind a part catalog assembly by loading from file C:&#92;CLT&#92;JetBrains.ReSharper.Features.NuGet.dll.&amp;quot; ExceptionPath = Root.InnerException.InnerException.InnerException ClassName = System.InvalidOperationException InnerException = &amp;quot;Exception #2 at Root.InnerException.InnerException.InnerException.InnerException&amp;quot; HResult = COR_E_INVALIDOPERATION=80131509 Source = JetBrains.Platform.ComponentModel StackTraceString = &amp;quot; at JetBrains.Application.Parts.FileBasedPartCatalogueAssemblyBinder.JetBrains.Application.Parts.IPartCatalogueAssembly Binder.BindToRuntimeAssembly() at JetBrains.Application.Parts.PartCatalogueAssembly.Bind() &amp;quot; — Outer — — EXCEPTION #4/6 [InvalidOperationException] Message = &amp;quot;Could not load the runtime assembly for the part catalog assembly &amp;quot;Assembly: JetBrains.ReSharper.Features.NuG et, Version=103.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325″.&amp;quot; ExceptionPath = Root.InnerException.InnerException ClassName = System.InvalidOperationException InnerException = &amp;quot;Exception #3 at Root.InnerException.InnerException.InnerException&amp;quot; HResult = COR_E_INVALIDOPERATION=80131509 Source = JetBrains.Platform.ComponentModel StackTraceString = &amp;quot; at JetBrains.Application.Parts.PartCatalogueAssembly.Bind() at JetBrains.Application.Parts.PartCatalogueType.Bind() at JetBrains.Application.Extensibility.PartComponentDescriptor.CreateInstance(IValueResolveContext context) at JetBrains.Application.Components.SingletonDescriptor.CreateInstanceChecked(OnError onError, IComponentContainer container) at JetBrains.Application.Components.SingletonDescriptor.GetValue() at JetBrains.Application.Components.InitializationStrategyDefault.Schedule(Lifetime lifetime, IComponentDescriptor dsc) &amp;quot; — Outer — — EXCEPTION #5/6 [TargetInvocationException] Message = &amp;quot;Component JetBrains.ReSharper.Features.NuGet.NuGetSolutionManager [Singleton, Corrupted] construction has fai led.&amp;quot; ExceptionPath = Root.InnerException ClassName = System.Reflection.TargetInvocationException InnerException = &amp;quot;Exception #4 at Root.InnerException.InnerException&amp;quot; HResult = COR_E_TARGETINVOCATION=80131604 — Outer — — EXCEPTION #6/6 [LoggerException] Message = &amp;quot;Component JetBrains.ReSharper.Features.NuGet.NuGetSolutionManager [Singleton, Corrupted] construction has fai led.&amp;quot; ExceptionPath = Root ClassName = JetBrains.Util.LoggerException InnerException = &amp;quot;Exception #5 at Root.InnerException&amp;quot; HResult = COR_E_APPLICATION=80131600 StackTraceString = &amp;quot; at JetBrains.Application.Components.ComponentStorage.InstantiateDescriptors(IEnumerable&lt;code&gt;1 descriptors) at JetBrains.Application.Components.ComponentStorage.ComposeDescriptors(ICollection&lt;/code&gt;1 descriptors) at JetBrains.ProjectModel.SolutionInstance.OpenSolution(ISolutionOwner solutionOwner) at JetBrains.ProjectModel.SolutionManagerBase.&amp;lt;&amp;gt;c__DisplayClass6.&lt;CreateSolutionInstance&gt;b__4() at JetBrains.Util.Logging.Logger.Catch(Action action) at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ExecuteOneTask(SolutionLoadTask task) at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.DispatchTasks(Boolean background) at JetBrains.ProjectModel.SolutionManagerBase.CreateSolutionInstance(SolutionElement solutionElement, SolutionInsta nce solutionInstance) at JetBrains.ProjectModel.Impl.SolutionManagerImpl.CreateSolution(FileSystemPath solutionFilePath) at JetBrains.CommandLine.DupFinder.Application.DupFinderProductMain.RunGuarded() at JetBrains.CommandLine.DupFinder.Application.DupFinderProductMain.&amp;lt;&amp;gt;c__DisplayClass1.&lt;Run&gt;b__0() at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) at JetBrains.CommandLine.DupFinder.Application.DupFinderProductMain.Run() at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] paramete rs, CultureInfo culture) at JetBrains.Application.Environment.RunsPublicStaticIntMain.&amp;lt;&amp;gt;c__DisplayClass7.&amp;lt;.ctor&amp;gt;b__0() at JetBrains.Util.Logging.Logger.Catch(Action action) at JetBrains.Threading.JetDispatcher.Closure.Execute() at JetBrains.Threading.Win32JetDispatcher.ProcessQueue() at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numA rgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Objec t state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; h andled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&amp;amp; handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numA rgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate met hod, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp;amp; msg) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp;amp; msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at JetBrains.DataFlow.Lifetimes.Using(Action`1 ?) at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv) at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containe rEnv) at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer co ntainerEnv) at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams) at JetBrains.CommandLine.DupFinder.Application.DupFinderProgram.Main(Assembly assembly, HostInfo hostInfo, String[] args) at JetBrains.CommandLine.DupFinder.Application.DupFinderProgram.Main(String[] args) &amp;quot;&lt;/Run&gt;&lt;/CreateSolutionInstance&gt;&lt;/p&gt;
&lt;/blockquote&gt;
</description>
    </item>
    <item>
      <title>Opening the same file in Visual Studio Twice.</title>
      <link>https://samuelhaddad.com/2015/08/17/opening-the-same-file-in-visual-studio-twice/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2015/08/17/opening-the-same-file-in-visual-studio-twice/</guid>
      <pubDate>Mon, 17 Aug 2015 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;Here’s how to do it …&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Select the tab you want two copies of&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select Window &amp;gt; New Window from the menu (this will open the same file again in a new tab)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Right click the new tab and select ’New Vertical Tab Group’&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;From&lt;a href=&quot;http://stackoverflow.com/a/772159/488204&quot;&gt;StackOverflow&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Add a calendar on Android Emulator</title>
      <link>https://samuelhaddad.com/2015/06/16/add-a-calendar-on-android-emulator/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2015/06/16/add-a-calendar-on-android-emulator/</guid>
      <pubDate>Tue, 16 Jun 2015 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;After much searching this is the only way I could figure out how to add a calendar when running in an Android Emulator. This is not a new problem, many users have complained about this on the internet see &lt;a href=&quot;http://stackoverflow.com/questions/14971158/avd-emulator-has-no-option-to-sync-with-google-calendar&quot;&gt;http://stackoverflow.com/questions/14971158/avd-emulator-has-no-option-to-sync-with-google-calendar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The solution I came to is based off of the idea from &lt;a href=&quot;https://mavenlog.wordpress.com/2012/01/22/how-to-adding-a-calendar-in-the-android-ics-emulator/&quot;&gt;BizTalk Maven&lt;/a&gt; however this does not appear to work anymore (at least not for me) because &lt;a href=&quot;https://support.google.com/a/answer/2716936?hl=en&quot;&gt;according to Google&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;quot;Starting January 30, 2013, users, other than paid Google Apps users, won’t be able to set up new devices using Google Sync&amp;quot;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;in other words unless you have a paid Google account, this method will not work with your Google account.&lt;/p&gt;
&lt;p&gt;To get this to work I signed up for a free outlook.com account, and used that to add an account. Outlook.com supports Active Sync on it’s free accounts.&lt;/p&gt;
&lt;p&gt;Steps I followed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Sign out for free account at outlook.com&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select a Corporate Account&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enter username such as [email protected]&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select Manual Setup&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select account type of &amp;quot;Exchange&amp;quot; (This will allow us to sync with active sync)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enter Server as s.outlook.com&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Security type as SSL/TLS&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select next&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://samuelhaddad.com/images/OtjrrremZV-640.webp 640w, https://samuelhaddad.com/images/OtjrrremZV-807.webp 807w&quot; sizes=&quot;(min-width: 720px) 720px, 100vw&quot;&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; src=&quot;https://samuelhaddad.com/images/OtjrrremZV-640.jpeg&quot; alt=&quot;Android Account Setup&quot; width=&quot;807&quot; height=&quot;572&quot; srcset=&quot;https://samuelhaddad.com/images/OtjrrremZV-640.jpeg 640w, https://samuelhaddad.com/images/OtjrrremZV-807.jpeg 807w&quot; sizes=&quot;(min-width: 720px) 720px, 100vw&quot;&gt;&lt;/picture&gt;&lt;/p&gt;
&lt;p&gt;If successful you will see a screen like this:&lt;/p&gt;
&lt;p&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://samuelhaddad.com/images/ssLsPiVgkk-640.webp 640w, https://samuelhaddad.com/images/ssLsPiVgkk-807.webp 807w&quot; sizes=&quot;(min-width: 720px) 720px, 100vw&quot;&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; src=&quot;https://samuelhaddad.com/images/ssLsPiVgkk-640.jpeg&quot; alt=&quot;Android Account setup 2&quot; width=&quot;807&quot; height=&quot;572&quot; srcset=&quot;https://samuelhaddad.com/images/ssLsPiVgkk-640.jpeg 640w, https://samuelhaddad.com/images/ssLsPiVgkk-807.jpeg 807w&quot; sizes=&quot;(min-width: 720px) 720px, 100vw&quot;&gt;&lt;/picture&gt;&lt;/p&gt;
&lt;p&gt;You are now done. Go test that calendar!&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Visual Studio Tools for Apache Cordova Error, MDAVSCLI failed with code 8</title>
      <link>https://samuelhaddad.com/2015/06/15/visual-studio-tools-for-apache-cordova-error-mdavscli-failed-with-code-8/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2015/06/15/visual-studio-tools-for-apache-cordova-error-mdavscli-failed-with-code-8/</guid>
      <pubDate>Mon, 15 Jun 2015 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;I recently installed Visual Studio Tools for Apache Cordova CTP 3.1 in Visual Studio 2013 with Update 4 and when trying to build I kept getting the error:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Command failed with exit code 8 Visual Studio - mdavscli&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The problem was that I has upgraded my version of Android SDK which was not compatible.&lt;/p&gt;
&lt;p&gt;To troubleshoot this I turned on the &lt;strong&gt;diagnostic build&lt;/strong&gt; here is how:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Go to Tools –&amp;gt; Options –&amp;gt; Projects and Solutions –&amp;gt; Build and Run, change MSBuild project build output verbosity to Diagnostic. Rebuild the project and post the text from output window&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The output window showed the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;BUILD FAILED C:&#92;Programs&#92;SDK&#92;tools&#92;ant&#92;build.xml:597: The following error occurred while executing this line: C:&#92;Programs&#92;SDK&#92;tools&#92;ant&#92;build.xml:649: The following error occurred while executing this line: C:&#92;Programs&#92;SDK&#92;tools&#92;ant&#92;build.xml:694: Execute failed: java.io.IOException: Cannot run program &amp;quot;C:&#92;code&#92;samh&#92;platforms&#92;android&#92;CordovaLib${aapt}&amp;quot; (in directory &amp;quot;C:&#92;code&#92;samh&#92;platforms&#92;android&#92;CordovaLib&amp;quot;): CreateProcess error=2,&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;after a little research I found out it looks like ant commands are broken in Android SDK 24.3, which cordova build is using. I downgraded to previous release (24.2.0) and ant works fine now.&lt;/p&gt;
&lt;p&gt;I downgraded to the following version of the sdk &lt;a href=&quot;https://dl-ssl.google.com/android/repository/tools_r24.2-windows.zip&quot;&gt;http://dl-ssl.google.com/android/repository/tools_r24.2-windows.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To downgrade:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Find your Android SDK folder&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Locate the &amp;quot;tools&amp;quot; subfolder and rename it to &amp;quot;tools1&amp;quot; (just to keep a backup copy of the original tools folder)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Likewise, rename platform-tools to platform-tools1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Download from google repository the SDK Tool version you want to downgrade to (for instance: http://dl-ssl.google.com/android/repository/tools_r24.2-windows.zip) and unpack it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The ZIP file you downloaded contains a tools folder that has to be moved to your Android SDK folder.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Likewise, download the platform tools (for instance: https://dl-ssl.google.com/android/repository/platform-tools_r19-windows.zip), and extract it in your SDK folder.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    <item>
      <title>ASPxDateEdit causes scrolling in Chrome</title>
      <link>https://samuelhaddad.com/2015/04/28/aspxdateedit-causes-scrolling-in-chrome/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2015/04/28/aspxdateedit-causes-scrolling-in-chrome/</guid>
      <pubDate>Tue, 28 Apr 2015 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;I am currently working on a project that takes advantage of some DevExpress components. Recently we ran into an issue where ASPxDateEdit caused the parent page to scroll if the control was used in an IFrame. Oddly enough this issue only happened on Chrome (and potentially other webkit browsers), but not on IE.&lt;/p&gt;
&lt;p&gt;The only way we were able to sole this issue was to add the following css to the control&lt;/p&gt;
&lt;p&gt;&lt;code&gt;-webkit-backface-visibility: hidden;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;in my case I was working with ASPXDateEdit so I added it to DevExpress’s&lt;/p&gt;
&lt;p&gt;&lt;code&gt;.dxeCalendar&lt;/code&gt; class.&lt;/p&gt;
&lt;p&gt;At the time of writing this I am using DevExpress WebForms version 14.2.7 (released 22-APR-2015)&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Blurry icons with AspxHtmlEditor.</title>
      <link>https://samuelhaddad.com/2014/10/23/blurry-icons-with-aspxhtmleditor/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2014/10/23/blurry-icons-with-aspxhtmleditor/</guid>
      <pubDate>Thu, 23 Oct 2014 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;Today I was working with the DevExpress AspxHtmlEditor, when I noticed that the toolbar icons were sometimes blurry, but would clear up on mouse over.&lt;/p&gt;
&lt;p&gt;Turns out my browser zoom was not set to 100%. Setting the Zoom to 100% resolved the issue.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>ASP.NET system.InvalidOperationException: Script controls may not be registered before PreRender.</title>
      <link>https://samuelhaddad.com/2014/09/12/asp-net-system-invalidoperationexception-script-controls-may-not-be-registered-before-prerender/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2014/09/12/asp-net-system-invalidoperationexception-script-controls-may-not-be-registered-before-prerender/</guid>
      <pubDate>Fri, 12 Sep 2014 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;Today I ran into the following error.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;System.InvalidOperationException: Script controls may not be registered before PreRender.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In my case I was overriding OnPreRender and forgot to include base.OnPreRender(e)&lt;/p&gt;
&lt;pre class=&quot;language-csharp&quot;&gt;&lt;code class=&quot;language-csharp&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;override&lt;/span&gt; &lt;span class=&quot;token return-type class-name&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;void&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;OnPreRender&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name&quot;&gt;EventArgs&lt;/span&gt; e&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
      &lt;span class=&quot;token keyword&quot;&gt;base&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;OnPreRender&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;e&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;token comment&quot;&gt;//Don&#39;t forget me.&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Adding in the the call to base solved the issue.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Invalid postback or callback argument.</title>
      <link>https://samuelhaddad.com/2014/08/28/invalid-postback-or-callback-argument/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2014/08/28/invalid-postback-or-callback-argument/</guid>
      <pubDate>Thu, 28 Aug 2014 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;Today I ran into this error when posting back on my ASP.NET page.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;System.Web.HttpUnhandledException (0x80004005): Exception of type ’System.Web.HttpUnhandledException’ was thrown. —&amp;gt; System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using &lt;pages enableEventValidation=&quot;true&quot;&gt; in configuration or &amp;lt;%@ Page EnableEventValidation=&amp;quot;true&amp;quot; %&amp;gt; in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. at System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument)&lt;/pages&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It did not take me long to track down the problem. I forgot to add an ID to a dynamically created dropdownlist control.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>No parameterless constructor defined for this object. – Gridview DataBind ASP.NET</title>
      <link>https://samuelhaddad.com/2014/08/18/no-parameterless-constructor-defined-for-this-object-gridview-databind-asp-net/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2014/08/18/no-parameterless-constructor-defined-for-this-object-gridview-databind-asp-net/</guid>
      <pubDate>Mon, 18 Aug 2014 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;&lt;strong&gt;Error:&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;An exception of type ’System.MissingMethodException’ occurred in mscorlib.dll but was not handled in user code Additional information: No parameterless constructor defined for this object.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Possible Solution:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If defining your gridview’s data source in the ASP.NET markup. Make sure the code behind’s constructor is public and has the right visibility.&lt;/p&gt;
&lt;p&gt;In my case, Resharper suggested making the constructor protected, which this problem.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>OsCommerce – Call to a member function buildBlocks()</title>
      <link>https://samuelhaddad.com/2013/07/29/oscommerce-call-to-a-member-function-buildblocks/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2013/07/29/oscommerce-call-to-a-member-function-buildblocks/</guid>
      <pubDate>Mon, 29 Jul 2013 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;I just ran into this error when upgrading a OsCommerce Site:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Fatal error: Call to a member function buildBlocks() on a non-object in public_html/includes/template_top.php on line 13&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I saw that others had this error, but no one was able to help them. In case anyone else runs into this error check the following:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;In catalog/includes/application_top.php&lt;/strong&gt; you want to make sure you instantiate oscTemplate.&lt;/p&gt;
&lt;pre class=&quot;language-php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;@@ &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;420&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;6&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;420&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;token number&quot;&gt;9&lt;/span&gt; @@
&lt;span class=&quot;token keyword&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;DIR_WS_FUNCTIONS&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&#39;specials.php&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token function&quot;&gt;tep_expire_specials&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token constant&quot;&gt;DIR_WS_CLASSES&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;token string single-quoted-string&quot;&gt;&#39;osc_template.php&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$oscTemplate&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;oscTemplate&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;token operator&quot;&gt;+&lt;/span&gt;

&lt;span class=&quot;token comment&quot;&gt;// calculate category path&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;isset&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$HTTP_GET_VARS&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&#39;cPath&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$cPath&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token variable&quot;&gt;$HTTP_GET_VARS&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;token string single-quoted-string&quot;&gt;&#39;cPath&#39;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This code snippet comes from the OsCommerce V2.2RC2a to V2.3 Upgrade guide found &lt;a href=&quot;http://library.oscommerce.com/public/sites/Library/pdf/oscom22-old.pdf&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Office Document Content Types</title>
      <link>https://samuelhaddad.com/2013/07/02/office-document-content-types/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2013/07/02/office-document-content-types/</guid>
      <pubDate>Tue, 02 Jul 2013 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;Here is a list of content types&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Ext&lt;/strong&gt;
&lt;strong&gt;MIME Type&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;.doc
application/msword&lt;/p&gt;
&lt;p&gt;.dot
application/msword&lt;/p&gt;
&lt;p&gt;.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document&lt;/p&gt;
&lt;p&gt;.dotx
application/vnd.openxmlformats-officedocument.wordprocessingml.template&lt;/p&gt;
&lt;p&gt;.docm
application/vnd.ms-word.document.macroEnabled.12&lt;/p&gt;
&lt;p&gt;.dotm
application/vnd.ms-word.template.macroEnabled.12&lt;/p&gt;
&lt;p&gt;.xls
application/vnd.ms-excel&lt;/p&gt;
&lt;p&gt;.xlt
application/vnd.ms-excel&lt;/p&gt;
&lt;p&gt;.xla
application/vnd.ms-excel&lt;/p&gt;
&lt;p&gt;.xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&lt;/p&gt;
&lt;p&gt;.xltx
application/vnd.openxmlformats-officedocument.spreadsheetml.template&lt;/p&gt;
&lt;p&gt;.xlsm
application/vnd.ms-excel.sheet.macroEnabled.12&lt;/p&gt;
&lt;p&gt;.xltm
application/vnd.ms-excel.template.macroEnabled.12&lt;/p&gt;
&lt;p&gt;.xlam
application/vnd.ms-excel.addin.macroEnabled.12&lt;/p&gt;
&lt;p&gt;.xlsb
application/vnd.ms-excel.sheet.binary.macroEnabled.12&lt;/p&gt;
&lt;p&gt;.ppt
application/vnd.ms-powerpoint&lt;/p&gt;
&lt;p&gt;.pot
application/vnd.ms-powerpoint&lt;/p&gt;
&lt;p&gt;.pps
application/vnd.ms-powerpoint&lt;/p&gt;
&lt;p&gt;.ppa
application/vnd.ms-powerpoint&lt;/p&gt;
&lt;p&gt;.pptx
application/vnd.openxmlformats-officedocument.presentationml.presentation&lt;/p&gt;
&lt;p&gt;.potx
application/vnd.openxmlformats-officedocument.presentationml.template&lt;/p&gt;
&lt;p&gt;.ppsx
application/vnd.openxmlformats-officedocument.presentationml.slideshow&lt;/p&gt;
&lt;p&gt;.ppam
application/vnd.ms-powerpoint.addin.macroEnabled.12&lt;/p&gt;
&lt;p&gt;.pptm
application/vnd.ms-powerpoint.presentation.macroEnabled.12&lt;/p&gt;
&lt;p&gt;.potm
application/vnd.ms-powerpoint.presentation.macroEnabled.12&lt;/p&gt;
&lt;p&gt;.ppsm
application/vnd.ms-powerpoint.slideshow.macroEnabled.12&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Disable Visual Studio Tabify Prompt</title>
      <link>https://samuelhaddad.com/2013/06/07/disable-visual-studio-tabify-prompt/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2013/06/07/disable-visual-studio-tabify-prompt/</guid>
      <pubDate>Fri, 07 Jun 2013 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;I was getting this prompt because I installed Productivity Power Tools. To disable this question do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Go to Tools -&amp;gt; Options&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Productivity Power Tools -&amp;gt; Fix Mixed Tabs – set to NO.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then restart Visual Studio.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    <item>
      <title>Restart Jenkins from Web Interface</title>
      <link>https://samuelhaddad.com/2013/05/17/restart-jenkins-from-web-interface/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2013/05/17/restart-jenkins-from-web-interface/</guid>
      <pubDate>Fri, 17 May 2013 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;Navigate to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;[jenkins_url]/safeRestart. – This will restart Jenkins after the current builds have been completed.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;[jenkins_url]/restart – This will force a restart. Builds will not wait to complete.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Work with Jenkins a lot I found &lt;a href=&quot;https://amzn.to/3szd17E&quot;&gt;Jenkins 2&lt;/a&gt; a helpful resource.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Microsoft Office installs&quot; when opening a file</title>
      <link>https://samuelhaddad.com/2013/05/09/microsoft-office-installs-when-opening-a-file/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2013/05/09/microsoft-office-installs-when-opening-a-file/</guid>
      <pubDate>Thu, 09 May 2013 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;Does Office appear to install every time you try to open a document or you see a configuration dialog.&lt;/p&gt;
&lt;p&gt;Open run (Press Windows Key + R) and paste in the correct line for your version of Office and the troublesome application.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For Office 2010&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Run the command for the application giving you trouble&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;14.0&#92;Word&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;14.0&#92;Excel&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;14.0&#92;Access&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;14.0&#92;Powerpoint&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;14.0&#92;Outlook&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;For Office 2007&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Run the command for the application giving you trouble&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;12.0&#92;Word&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;12.0&#92;Excel&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;12.0&#92;Access&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;12.0&#92;Powerpoint&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;12.0&#92;Outlook&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;For Office 2003&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;11.0&#92;Word&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;11.0&#92;Excel&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;11.0&#92;Access&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;11.0&#92;Powerpoint&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;reg add HKCU&#92;Software&#92;Microsoft&#92;Office&#92;11.0&#92;Outlook&#92;Options /v NoReReg /t REG_DWORD /d 1&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
    </item>
    <item>
      <title>.NET Multiple Line Regex</title>
      <link>https://samuelhaddad.com/2013/01/24/net-multiple-line-regex/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2013/01/24/net-multiple-line-regex/</guid>
      <pubDate>Thu, 24 Jan 2013 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;Recently I was trying to use a Regular Expression in .NET. I was working with small blobs of text. I was trying to extract some code snippets out of some wiki markup.&lt;/p&gt;
&lt;p&gt;The code snippets looked like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;{code:csharp|title=C#} //C# Code {code} {code:vbnet|title=vb.net} //VB.NET Code {code}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For testing purposes I was using the simplest Regex I could think of &lt;strong&gt;{code:(.+?){code}&lt;/strong&gt;. After playing around it became obvious that it was not matching over multiple lines. This makes sense because the ’ .’ character matches every character except /n/r&lt;/p&gt;
&lt;p&gt;Well it turns out you want to enable &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/yd1hzczs.aspx#Singleline&quot;&gt;SingleLineMode&lt;/a&gt; not MultiMode. I know I know makes a ton of sense.&lt;/p&gt;
&lt;p&gt;Lesson learned. Read the documentation.&lt;/p&gt;
&lt;p&gt;Extra Bonus: If you want to quickly test .NET regular expressions with all these options. I found I like &lt;a href=&quot;http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester.ashx&quot;&gt;http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester.ashx&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>MYSQL cross table update</title>
      <link>https://samuelhaddad.com/2013/01/07/mysql-cross-table-update/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2013/01/07/mysql-cross-table-update/</guid>
      <pubDate>Mon, 07 Jan 2013 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;So today update data cross table in a MYSQL database. It took me way longer than it should have. I spent way too much time trying to get my join to work only to continue getting syntax errors. So long story short. If you are doing a cross table update in MYSQL you cannot use a join. Rather you must use WHERE a simple example looks like:&lt;/p&gt;
&lt;pre class=&quot;language-sql&quot;&gt;&lt;code class=&quot;language-sql&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;UPDATE&lt;/span&gt; TableToUpdate&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; TableToPullInfoFrom

&lt;span class=&quot;token keyword&quot;&gt;SET&lt;/span&gt;

TableToUpdate&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;col1 &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; TableToPullInfoFrom&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;col1&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;

TableToUpdate&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;col2 &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; TableToPullInfoFrom&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;col2&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;

TableToUpdate&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;col3 &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; TableToPullInfoFrom&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;col3&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt;

TableToUpdate&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;col4 &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; TableToPullInfoFrom&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;col4

&lt;span class=&quot;token keyword&quot;&gt;WHERE&lt;/span&gt; TableToUpdate&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;id &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; TableToPullInfoFrom&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;id&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And I will just leave this here so I don’t make that mistake again.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Cannot import the following key file fix</title>
      <link>https://samuelhaddad.com/2011/07/27/cannot-import-the-following-key-file-fix/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2011/07/27/cannot-import-the-following-key-file-fix/</guid>
      <pubDate>Wed, 27 Jul 2011 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;This one has caused me a few hours of pain….a couple of times. It is about time I document how I fixed it.&lt;/p&gt;
&lt;h2 id=&quot;the-error&quot;&gt;The Error:&lt;/h2&gt;
&lt;p&gt;Cannot import the following key file: &lt;filename&gt;.pfx. The key file may be password protected. To correct this, try to import the certificate again or manually install the certificate to the Strong Name CSP with the following key container name: VS_KEY_ E2AEBF22AB52DD08 &lt;Application Name=&quot;&quot;&gt;&lt;/Application&gt;&lt;/filename&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-fix&quot;&gt;The Fix:&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open Visual Studio Command Prompt (It can be found in the Windows Start menu)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Type sn -i &amp;quot;c:&#92;Pathtofile&amp;lt;filename&amp;gt;.pfx&amp;quot; TVS_KEY_ E2AEBF22AB52DD08&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reimport the pfx file into Visual Studio&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/k5b5tt23(v=vs.71).aspx&quot;&gt;sn.exe&lt;/a&gt; with the –i parameter, installs a key pair from &lt;infile&gt; into a key container named &lt;container&gt;.&lt;/container&gt;&lt;/infile&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Display driver stopped responding – Flash Green Screen</title>
      <link>https://samuelhaddad.com/2011/03/25/display-driver-stopped-responding-flash-green-screen/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2011/03/25/display-driver-stopped-responding-flash-green-screen/</guid>
      <pubDate>Fri, 25 Mar 2011 00:00:00 GMT</pubDate>
      <description>&lt;h2 id=&quot;the-problem&quot;&gt;The Problem:&lt;/h2&gt;
&lt;p&gt;Recently I was working on a customers computer and when loading a page with a flash video on it, the video would crash.The following message was displayed in the system tray.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Display driver stopped responding and has recovered.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://samuelhaddad.com/images/jak4R_BkzT-457.webp&quot; sizes=&quot;(min-width: 720px) 720px, 100vw&quot;&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; src=&quot;https://samuelhaddad.com/images/jak4R_BkzT-457.jpeg&quot; alt=&quot;Display driver stopped responding and has recovered.&quot; width=&quot;457&quot; height=&quot;106&quot;&gt;&lt;/picture&gt;&lt;/p&gt;
&lt;p&gt;The machine I was working on was a Dell Inspiron n5010 with a ATI mobility Radeon HD 5470 video card running Windows 7 x64bit. After all the normal troubleshooting and making sure I had the most up -to-date drivers I still had the issue. I ended up coming up with the following solution.&lt;/p&gt;
&lt;h2 id=&quot;the-solution&quot;&gt;The solution:&lt;/h2&gt;
&lt;p&gt;Disable Hardware acceleration by right clicking on any flash video, going to settings and &lt;strong&gt;unchecking&lt;/strong&gt; enable hardware acceleration.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;picture&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://samuelhaddad.com/images/PaghMy32v9-213.webp&quot; sizes=&quot;(min-width: 720px) 720px, 100vw&quot;&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; src=&quot;https://samuelhaddad.com/images/PaghMy32v9-213.jpeg&quot; alt=&quot;Disable Flash Hardware Acceleration&quot; width=&quot;213&quot; height=&quot;134&quot;&gt;&lt;/picture&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I hope this saves someone a head ache.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>.NET High Quality Thumbnail Generation</title>
      <link>https://samuelhaddad.com/2011/01/26/net-high-quality-thumbnail-generation/</link>
      <guid isPermaLink="true">https://samuelhaddad.com/2011/01/26/net-high-quality-thumbnail-generation/</guid>
      <pubDate>Wed, 26 Jan 2011 00:00:00 GMT</pubDate>
      <description>&lt;p&gt;This method is a modified version of &lt;a href=&quot;http://www.mikeborozdin.com/post/High-Quality-Image-Resizing-with-NET.aspx&quot;&gt;Mike Borozdin&lt;/a&gt; method which I happen to enjoy very much. The biggest changes I made where to add using statements around the disposable objects such as the Bitmap and the Graphics object to avoid memory leaks, as well as a few minor changes.&lt;/p&gt;
&lt;pre class=&quot;language-csharp&quot;&gt;&lt;code class=&quot;language-csharp&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;//Image Resize Helper Method&lt;/span&gt;
&lt;span class=&quot;token keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;token return-type class-name&quot;&gt;Bitmap&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;ResizeImage&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name&quot;&gt;String&lt;/span&gt; filename&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt;&lt;/span&gt; maxWidth&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token class-name&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt;&lt;/span&gt; maxHeight&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;token keyword&quot;&gt;using&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name&quot;&gt;Image&lt;/span&gt; originalImage &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; Image&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;FromFile&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;filename&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;token comment&quot;&gt;//Caluate new Size&lt;/span&gt;
        &lt;span class=&quot;token class-name&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt;&lt;/span&gt; newWidth &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; originalImage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Width&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;token class-name&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt;&lt;/span&gt; newHeight &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; originalImage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Height&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;token class-name&quot;&gt;&lt;span class=&quot;token keyword&quot;&gt;double&lt;/span&gt;&lt;/span&gt; aspectRatio &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;double&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;originalImage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Width &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;double&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;originalImage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Height&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

        &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;aspectRatio &lt;span class=&quot;token operator&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; originalImage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Width &lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt; maxWidth&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
            newWidth &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; maxWidth&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            newHeight &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;Math&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Round&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;newWidth &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt; aspectRatio&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
        &lt;span class=&quot;token keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;aspectRatio &lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; originalImage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Height &lt;span class=&quot;token operator&quot;&gt;&gt;&lt;/span&gt; maxHeight&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
            newHeight &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; maxHeight&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            newWidth &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token keyword&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;Math&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;Round&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;newHeight &lt;span class=&quot;token operator&quot;&gt;*&lt;/span&gt; aspectRatio&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;

        &lt;span class=&quot;token class-name&quot;&gt;Bitmap&lt;/span&gt; newImage &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;token keyword&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;token constructor-invocation class-name&quot;&gt;Bitmap&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;newWidth&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; newHeight&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;

        &lt;span class=&quot;token keyword&quot;&gt;using&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token class-name&quot;&gt;Graphics&lt;/span&gt; g &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; Graphics&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;FromImage&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;newImage&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;token comment&quot;&gt;//--Quality Settings Adjust to fit your application&lt;/span&gt;
            g&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;InterpolationMode &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Drawing&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Drawing2D&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;InterpolationMode&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;HighQualityBilinear&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            g&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;SmoothingMode &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Drawing&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Drawing2D&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;SmoothingMode&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;HighQuality&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            g&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;PixelOffsetMode &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Drawing&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Drawing2D&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;PixelOffsetMode&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;HighQuality&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            g&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;CompositingQuality &lt;span class=&quot;token operator&quot;&gt;=&lt;/span&gt; System&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Drawing&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Drawing2D&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;CompositingQuality&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;HighQuality&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            g&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;token function&quot;&gt;DrawImage&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;(&lt;/span&gt;originalImage&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; newImage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Width&lt;span class=&quot;token punctuation&quot;&gt;,&lt;/span&gt; newImage&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;Height&lt;span class=&quot;token punctuation&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
            &lt;span class=&quot;token keyword&quot;&gt;return&lt;/span&gt; newImage&lt;span class=&quot;token punctuation&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;token punctuation&quot;&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
</description>
    </item>
  </channel>
</rss>
