<?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: Hamed</title>
    <description>The latest articles on DEV Community by Hamed (@hamed).</description>
    <link>https://dev.to/hamed</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%2F202371%2Fdded3b6c-5883-4af3-a061-c5e2520de06f.jpeg</url>
      <title>DEV Community: Hamed</title>
      <link>https://dev.to/hamed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hamed"/>
    <language>en</language>
    <item>
      <title>Fix build fail when you have git repo or submodule on your npm packages</title>
      <dc:creator>Hamed</dc:creator>
      <pubDate>Sun, 18 Oct 2020 13:45:37 +0000</pubDate>
      <link>https://dev.to/hamed/fix-build-fail-when-you-have-git-repo-or-submodule-on-your-npm-packages-412j</link>
      <guid>https://dev.to/hamed/fix-build-fail-when-you-have-git-repo-or-submodule-on-your-npm-packages-412j</guid>
      <description>&lt;p&gt;I use GitLab CI/CD and &lt;a href="https://docs.gitlab.com/runner/" rel="noopener noreferrer"&gt;GitLab Runner&lt;/a&gt; for builds. Today, one of my Vuejs projects suddenly started to fail builds. When I read logs I found out that one of the dependencies in &lt;code&gt;node_modules&lt;/code&gt; contains the &lt;code&gt;git&lt;/code&gt; folder. &lt;/p&gt;

&lt;p&gt;The quick fix for situations like these is to delete the &lt;code&gt;git&lt;/code&gt; folder from your npm package folder. Here is the command you can add to your build script for Linux&lt;/p&gt;

&lt;p&gt;&lt;code&gt;rm -rf node_modules/*/.git/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;and if you are on windows you can add the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Remove-Item -Recurse -Confirm:$false node_modules/*/.git/&lt;/code&gt;&lt;/p&gt;

</description>
      <category>npm</category>
      <category>vue</category>
      <category>build</category>
    </item>
    <item>
      <title>GitLab joined legalized discrimination. Why does no one talk about this?</title>
      <dc:creator>Hamed</dc:creator>
      <pubDate>Fri, 09 Oct 2020 15:58:01 +0000</pubDate>
      <link>https://dev.to/hamed/gitlab-joined-legalized-discrimination-why-does-no-one-talk-about-this-5f1d</link>
      <guid>https://dev.to/hamed/gitlab-joined-legalized-discrimination-why-does-no-one-talk-about-this-5f1d</guid>
      <description>&lt;p&gt;This article originally posted &lt;a href="https://medium.com/@hamed/gitlab-joined-legalized-discrimination-why-does-no-one-talk-about-this-61a152bb0816" rel="noopener noreferrer"&gt;on my Medium&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;U.S. government force companies like Amazon, Slack, GitHub, GitLab to apply systematic online segregation so they can achieve political goals.&lt;/p&gt;

&lt;h2&gt;
  
  
  History
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;U.S. companies comply with U.S. sanctions against Iran. But some of them apply sanction laws &lt;strong&gt;beyond their legal obligations&lt;/strong&gt;. There is absolutely no law from the U.S. government that enforces tech companies to block users from sanctioned countries &lt;strong&gt;without prior notice&lt;/strong&gt; and &lt;strong&gt;disable backup options&lt;/strong&gt; for them. &lt;br&gt;
Some companies just apply sanctions. For example, when &lt;a href="https://www.digitalocean.com/" rel="noopener noreferrer"&gt;&lt;em&gt;Digital Ocean&lt;/em&gt;&lt;/a&gt; (an American company) decided to apply Iran sanctions, they notified Iranian customers and gave them 72 hours to move their servers. See? That is applying sanctions without harming users. But that’s not all.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Back in 2018 Slack started to block Iranian accounts without prior notice and without providing a way to backup data. They &lt;strong&gt;targeted people by nationality&lt;/strong&gt; including &lt;a href="https://www.vice.com/en/article/bjek8w/slack-bans-iranian-academic-sanctions" rel="noopener noreferrer"&gt;Iranian academics from Canada&lt;/a&gt; who doesn’t have anything related to Iran. &lt;a href="https://slack.com/intl/en-se/blog/news/an-apology-and-an-update" rel="noopener noreferrer"&gt;Slack apologized&lt;/a&gt; and said they don’t target users by nationality.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;GitHub started to block Iranian developers by their nationality back in 2019. Again without prior notice and without providing a way to backup data. After blocking Iranians who don't live in Iran including one of the major contributors of &lt;a href="https://github.com/nuxt" rel="noopener noreferrer"&gt;Nuxt&lt;/a&gt; project. Then they restored access for some of the blocked developers without an apology. Others are still blocked from private repositories and some other free features. &lt;br&gt;
If you go to the U.S. Treasury &lt;a href="https://home.treasury.gov/policy-issues/financial-sanctions/faqs/topic/1551" rel="noopener noreferrer"&gt;FAQ page&lt;/a&gt; you see that no one who is Iran to visit relatives should be blocked but if you ask Iranian developers who live abroad you will see that GitHub blocked their account when they visit Iran. That is another example of applying sanctions beyond legal obligations.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fllsya6tdgs2cdtd68c36.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fllsya6tdgs2cdtd68c36.PNG" alt="Alt Text" width="800" height="114"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now let’s read about GitLab.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Happened?
&lt;/h2&gt;

&lt;p&gt;Well, GitLab started to block Iranian developers. Wait! This is not just about Iran which I explain later.&lt;/p&gt;

&lt;p&gt;Last week we noticed that we can’t access GitLab with Iran IPs. Then they claimed that this is because of &lt;a href="https://twitter.com/gitlab/status/1312732642228527104" rel="noopener noreferrer"&gt;vendor change&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This is a result of moving to a new vendor. In accordance with the guidance provided by the U.S. government, and not determined by GitLab, there are some countries that cannot access our platform. We apologize for the inconvenience this caused users.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now, They started to &lt;a href="https://gitlab.com/gitlab-org/gitlab/-/issues/260406#note_426504128" rel="noopener noreferrer"&gt;actively block Iranian Accounts&lt;/a&gt;. When I say “&lt;strong&gt;BLOCK&lt;/strong&gt;” that means blocking without prior notice and without providing a way to backup &lt;strong&gt;OUR DATA&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Little Context
&lt;/h2&gt;

&lt;p&gt;Jul 25, 2019, I received an email from GitHub. They blocked my account without any prior notice &amp;amp; without providing any option to download my codes and data. Then I wrote &lt;a href="https://medium.com/@hamed/github-blocked-my-account-and-they-think-im-developing-nuclear-weapons-e7e1fe62cb74" rel="noopener noreferrer"&gt;GitHub blocked my account and they think I’m developing nuclear weapons&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;After few days of silence, finally, GitHub decided to provide a weird way for us to download a copy of our data (We have to make a private repository public then clone it and then probably delete it because there is no way to make a repo private again)&lt;/p&gt;

&lt;h4&gt;
  
  
  Seizing developer's money!
&lt;/h4&gt;

&lt;p&gt;If you from a sanctioned country and a &lt;a href="https://news.microsoft.com/2018/06/04/microsoft-to-acquire-github-for-7-5-billion/" rel="noopener noreferrer"&gt;billion-dollar company&lt;/a&gt; like GitHub suddenly decided to block your “pro” account without prior notice, well, you should say goodbye to what you paid for pro features. I’m not kidding.&lt;/p&gt;

&lt;h4&gt;
  
  
  Long process for complaints
&lt;/h4&gt;

&lt;p&gt;Well, because they target you based on nationality. They may block developers who don’t live in Iran. In that case, you can send documents so they open your account. But in some cases, that could take more than a month! Maybe related to the COVID situation but still a month!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2yfa5766fhav5nxfq4ik.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F2yfa5766fhav5nxfq4ik.PNG" alt="Alt Text" width="584" height="705"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is important?
&lt;/h2&gt;

&lt;p&gt;You may say: Ok. That is awful! but not my problem. I mentioned the problem in &lt;a href="https://medium.com/@hamed/yellow-badges-are-back-this-time-not-by-nazi-germany-not-for-jews-but-by-u-s-tech-companies-48e92d690176" rel="noopener noreferrer"&gt;another article&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two key points are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The U.S law can ignore GDPR&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of the GDPR ideas is “Data portability” which means the user must have an option to export his/her data&lt;/p&gt;

&lt;p&gt;Update: Reddit users, I KNOW that Iran is not in the EU. For the context please read the &lt;a href="https://medium.com/@hamed/yellow-badges-are-back-this-time-not-by-nazi-germany-not-for-jews-but-by-u-s-tech-companies-48e92d690176" rel="noopener noreferrer"&gt;original article&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The U.S. law can ignore open-source values&lt;/strong&gt;
When it comes to the “Evil” person (which we are not), &lt;a href="https://opensource.org/faq?source=post_page---------------------------#evil" rel="noopener noreferrer"&gt;open-source values&lt;/a&gt; are clear.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And this is alarming for both legislators and the software community. Note that based on U.S. Treasury press release this sanctions &lt;a href="https://home.treasury.gov/news/press-releases/sm0322" rel="noopener noreferrer"&gt;not supposed to target Iranian people or Internet freedom&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does no one talk about this?
&lt;/h2&gt;

&lt;p&gt;People around the world or in the software community can’t even imagine what is like to &lt;strong&gt;don’t have access to 50% of the Internet&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh88wwyl3ixlwjnbzby5r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh88wwyl3ixlwjnbzby5r.png" alt="Alt Text" width="581" height="744"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So when we (people who live in Iran) talk about sanctions, no one really can understand the gravity of the situation.&lt;br&gt;
The irony is I write this article on Medium which is blocked by the Iran government! so we have to fight both domestic censorship and U.S. sanctions at the same time and that is &lt;a href="https://thenextweb.com/dd/2019/10/24/the-iranian-developer-deadlock-stuck-between-censorship-and-us-sanctions/" rel="noopener noreferrer"&gt;frustrating&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What YOU can do?
&lt;/h2&gt;

&lt;p&gt;Help us! Help us spread the word.&lt;br&gt;
Share this article. Share your opinion about this.&lt;br&gt;
Ask U.S. tech companies like GitLab why they apply U.S. trade laws and sanctions this way: They targeting users by nationality, block them without prior notice and disable backup options.&lt;br&gt;
Who authorized this legalized discrimination?&lt;br&gt;
At the end of one of my articles, I quoted from Martin Luther King’s famous “&lt;strong&gt;I Have a Dream&lt;/strong&gt;” speech.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I say to you today, my friends, though, even though we face the difficulties of today and tomorrow, I still have a dream.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7xv5gypmrrlquz6ilmnt.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F7xv5gypmrrlquz6ilmnt.jpg" alt="Alt Text" width="680" height="355"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I said that I have a dream too: I have a dream today … I have a dream that one day we will break these online chains. But now, again I have to ask a big question: &lt;strong&gt;Who will be the first “Rosa Parks” of the Internet?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>gitlab</category>
      <category>opensource</category>
      <category>github</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
