<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Oussama Heloulou</title>
    <description>The latest articles on DEV Community by Oussama Heloulou (@oussama_he).</description>
    <link>https://dev.to/oussama_he</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F660584%2F67cb0f71-3b94-4f16-a9d5-54145110eb46.jpeg</url>
      <title>DEV Community: Oussama Heloulou</title>
      <link>https://dev.to/oussama_he</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oussama_he"/>
    <language>en</language>
    <item>
      <title>When using browser API, shoud I write one code or one for Chrome and one for Firefox?</title>
      <dc:creator>Oussama Heloulou</dc:creator>
      <pubDate>Sat, 25 Feb 2023 07:10:40 +0000</pubDate>
      <link>https://dev.to/oussama_he/when-using-browser-api-shoud-i-write-one-code-or-one-for-chrome-and-one-for-firefox-3gff</link>
      <guid>https://dev.to/oussama_he/when-using-browser-api-shoud-i-write-one-code-or-one-for-chrome-and-one-for-firefox-3gff</guid>
      <description>&lt;p&gt;When developing in the BEX mode and using browser API, Does Quasar take care to polyfill the code, or should I write it twice? e.g. Firefox uses browser.tabs and Chrome uses chrome.tabs.&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>shortfilm</category>
    </item>
    <item>
      <title>Error: SQLITE_ERROR: no such function: YEAR</title>
      <dc:creator>Oussama Heloulou</dc:creator>
      <pubDate>Tue, 06 Dec 2022 18:26:34 +0000</pubDate>
      <link>https://dev.to/oussama_he/error-sqliteerror-no-such-function-year-40jj</link>
      <guid>https://dev.to/oussama_he/error-sqliteerror-no-such-function-year-40jj</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/74706994/error-sqlite-error-no-such-function-year" rel="noopener noreferrer"&gt;
            Error: SQLITE_ERROR: no such function: YEAR
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Dec  6 '22&lt;/span&gt;
            &lt;span&gt;Comments: 1&lt;/span&gt;
            &lt;span&gt;Answers: 0&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/74706994/error-sqlite-error-no-such-function-year" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I have an SQLite database with a table named BoxActivity. I need to query this DB to fetch records of a specific month of a year to make a report
I've written the query:&lt;/p&gt;
&lt;pre class="lang-js prettyprint-override"&gt;&lt;code&gt;BoxActivity.findAll({
    attributes: [
      [sequelize.fn('SUM', sequelize.col('boxActivity.quantity')), 'total_qty']
    ],
    where: {
      quantity: {
        [Op.lt]: 0
      },
      [Op.and]: [&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/74706994/error-sqlite-error-no-such-function-year" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Get the sum of quantities grouped by an Id that is not in the current table</title>
      <dc:creator>Oussama Heloulou</dc:creator>
      <pubDate>Sat, 03 Dec 2022 09:28:16 +0000</pubDate>
      <link>https://dev.to/oussama_he/get-the-sum-of-quantities-grouped-by-an-id-that-is-not-in-the-current-table-20j2</link>
      <guid>https://dev.to/oussama_he/get-the-sum-of-quantities-grouped-by-an-id-that-is-not-in-the-current-table-20j2</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/74665439/get-the-sum-of-quantities-grouped-by-an-id-that-is-not-in-the-current-table" rel="noopener noreferrer"&gt;
            Get the sum of quantities grouped by an Id that is not in the current table
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Dec  3 '22&lt;/span&gt;
            &lt;span&gt;Comments: 1&lt;/span&gt;
            &lt;span&gt;Answers: 0&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/74665439/get-the-sum-of-quantities-grouped-by-an-id-that-is-not-in-the-current-table" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I have three models that look something like this:&lt;/p&gt;
&lt;pre class="lang-js prettyprint-override"&gt;&lt;code&gt;const Reagent = sequelize.define('reagent', {
    name: {
      type: DataTypes.STRING
      allowNull: false,
    },
    ...
  })
  const Box = sequelize.define('box', {
    code: {
      type: DataTypes.STRING,
      allowNull: false,
      unique: true,
    },
    quantity: {
      type: DataTypes.INTEGER,
      allowNull: false,
    },
    ...
  })

  const BoxActivity = sequelize.define('boxActivity',&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/74665439/get-the-sum-of-quantities-grouped-by-an-id-that-is-not-in-the-current-table" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>javascript</category>
      <category>node</category>
      <category>sequelize</category>
      <category>prisma</category>
    </item>
  </channel>
</rss>
