<?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>Forem: anatlavitzkovitz</title>
    <description>The latest articles on Forem by anatlavitzkovitz (@anatlavitzkovitz).</description>
    <link>https://forem.com/anatlavitzkovitz</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%2F1004139%2Fe2125232-5b0d-41f2-bcd0-3d0e1cd97bd2.PNG</url>
      <title>Forem: anatlavitzkovitz</title>
      <link>https://forem.com/anatlavitzkovitz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/anatlavitzkovitz"/>
    <language>en</language>
    <item>
      <title>osdc-2023-assignment8</title>
      <dc:creator>anatlavitzkovitz</dc:creator>
      <pubDate>Sun, 19 Mar 2023 07:41:59 +0000</pubDate>
      <link>https://forem.com/anatlavitzkovitz/osdc-2023-assignment8-3338</link>
      <guid>https://forem.com/anatlavitzkovitz/osdc-2023-assignment8-3338</guid>
      <description>&lt;p&gt;&lt;strong&gt;Running local tests&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;assignment 8&lt;/strong&gt;&lt;br&gt;
I cloned &lt;a href="//git@github.com:psf/requests.git"&gt;requests git&lt;/a&gt;, build a docker and run the tests, follwing this &lt;a href="https://dev.to/szabgab/development-environment-for-the-python-requests-package-eae"&gt;link&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone git@github.com:psf/requests.git
docker run -it --rm --workdir /opt -v$(pwd):/opt python:3.11 bash
pip install -r requirements-dev.txt
pip install tox
make test
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;this is the print:&lt;/p&gt;

&lt;p&gt;tox -p&lt;br&gt;
py38-use_chardet_on_py3: SKIP ⚠ in 0.3 seconds&lt;br&gt;
py37-default: SKIP ⚠ in 0.33 seconds&lt;br&gt;
py38-default: SKIP ⚠ in 0.36 seconds&lt;br&gt;
py310-use_chardet_on_py3: SKIP ⚠ in 0.37 seconds&lt;br&gt;
py37-use_chardet_on_py3: SKIP ⚠ in 0.39 seconds&lt;br&gt;
py310-default: SKIP ⚠ in 0.38 seconds&lt;br&gt;
⠴ [4/10] py39-default | py39-use_chardet_on_py3 | py311-default | py311-use_chardet_on_py3&lt;br&gt;
⠧ [4/10] py39-default | py39-use_chardet_on_py3 | py311-default | py311-use_chardet_on_py3&lt;br&gt;
py39-default: OK ✔ in 1 minute 32.45 seconds&lt;br&gt;
py39-use_chardet_on_py3: OK ✔ in 1 minute 32.68 seconds&lt;br&gt;
py311-default: OK ✔ in 1 minute 32.79 seconds&lt;br&gt;
  py37-default: SKIP (0.32 seconds)&lt;br&gt;
  py37-use_chardet_on_py3: SKIP (0.39 seconds)&lt;br&gt;
  py38-default: SKIP (0.36 seconds)&lt;br&gt;
  py38-use_chardet_on_py3: SKIP (0.30 seconds)&lt;br&gt;
  py39-default: OK (92.44=setup[19.63]+cmd[72.81] seconds)&lt;br&gt;
  py39-use_chardet_on_py3: OK (92.68=setup[19.59]+cmd[73.09] seconds)&lt;br&gt;
  py310-default: SKIP (0.35 seconds)&lt;br&gt;
  py310-use_chardet_on_py3: SKIP (0.36 seconds)&lt;br&gt;
  py311-default: OK (92.79=setup[19.96]+cmd[72.83] seconds)&lt;br&gt;
  py311-use_chardet_on_py3: OK (92.90=setup[20.11]+cmd[72.79] seconds)&lt;br&gt;
  congratulations :) (92.99 seconds)&lt;/p&gt;

&lt;p&gt;next:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install pytest-random-order pytest-coverage
pytest -svv --random-order --cov-config .coveragerc --cov=requests --cov-report html --cov-report term --cov-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the result:&lt;/p&gt;

&lt;p&gt;---------- coverage: platform linux, python 3.11.2-final-0 -----------&lt;/p&gt;

&lt;h2&gt;
  
  
  Name                          Stmts   Miss Branch BrPart  Cover
&lt;/h2&gt;

&lt;p&gt;requests/&lt;strong&gt;init&lt;/strong&gt;.py             68     68     10      0     0%&lt;br&gt;
requests/&lt;strong&gt;version&lt;/strong&gt;.py          10     10      0      0     0%&lt;br&gt;
requests/_internal_utils.py      21     11      2      0    52%&lt;br&gt;
requests/adapters.py            216     62     78      8    76%&lt;br&gt;
requests/api.py                  19     12      2      0    43%&lt;br&gt;
requests/auth.py                173     53     60     15    70%&lt;br&gt;
requests/certs.py                 4      4      2      0     0%&lt;br&gt;
requests/compat.py               30     30      2      0     0%&lt;br&gt;
requests/cookies.py             239    116    104      9    52%&lt;br&gt;
requests/exceptions.py           37     29      2      0    26%&lt;br&gt;
requests/help.py                 62     20     18      5    59%&lt;br&gt;
requests/hooks.py                14      3     10      0    88%&lt;br&gt;
requests/models.py              456    121    212     18    76%&lt;br&gt;
requests/packages.py             17     17     10      0     0%&lt;br&gt;
requests/sessions.py            268     61    100      4    82%&lt;br&gt;
requests/status_codes.py         14     14     10      0     0%&lt;br&gt;
requests/structures.py           39     18      8      0    62%&lt;/p&gt;
&lt;h2&gt;
  
  
  requests/utils.py               485    158    224     12    71%
&lt;/h2&gt;

&lt;p&gt;TOTAL                          2172    807    854     71    66%&lt;br&gt;
Coverage HTML written to dir htmlcov&lt;/p&gt;



&lt;p&gt;&lt;strong&gt;class notes:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;My last change in author name will not be shown in pydigger, because it takes the data from pypi and not from github.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Webhooks:&lt;/strong&gt;&lt;br&gt;
whenever there is a change, github sends a json file with an update. updates the website with new slides with every push.&lt;br&gt;
You can add a url via settings. &lt;br&gt;
This can be set that only if github actions works, the slides are updated. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;stash&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What if I have some local changes but I need to pull the last version? start from the beginning? I can save my changes with stash, pull the repo and than pop the stashed data. &lt;strong&gt;how?&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git stash  # saves local changes on the side.
git pull
git stash pop  #takes the last change and adds or number. if there is no conflict, it will be deleted.
git stash list
git stash show (0/1) #shows the last
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;patch is the same as diff&lt;br&gt;
git stash drop 0 # will through away 0&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;docker&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;docker image: playground&lt;br&gt;
How to build a docker image and publish it in dockerhub?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker login
docker build -t szabgab/playground:latest #build an image from a docker file
docker push #push to dockerhub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will first search locally for an image, or will pull from dockerhub if doesn't exist:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker run -it -rm ...szabgab/playground:latest # pulls from dockerhub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;run python tests localy&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Gabor cloned &lt;a href="https://github.com/psf/requests"&gt;python requests&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;jinja - a good example for a good repo (same as flask)&lt;/p&gt;

&lt;p&gt;Gabor has a &lt;a href="https://dev.to/szabgab/development-environment-for-the-python-requests-package-eae"&gt;dev.to&lt;/a&gt; on this with a docker image run command.&lt;br&gt;
via .github/actions you can understand how to run the test.&lt;br&gt;
runs a make.&lt;br&gt;
goto makfile.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;make test #- dosent work
make
pytest test #-random_order #will run in a random order.
```




&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>github</category>
      <category>osdc</category>
    </item>
    <item>
      <title>osdc-2023-assignment7</title>
      <dc:creator>anatlavitzkovitz</dc:creator>
      <pubDate>Mon, 06 Mar 2023 21:16:03 +0000</pubDate>
      <link>https://forem.com/anatlavitzkovitz/osdc-2023-assignment7-1i2f</link>
      <guid>https://forem.com/anatlavitzkovitz/osdc-2023-assignment7-1i2f</guid>
      <description>&lt;p&gt;&lt;strong&gt;Contributing to open projects&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;assignment 7&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Contribute to pydigger:
I decided to contribute an author name for 
&lt;a href="https://pydigger.com/"&gt;pydigger&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I found this &lt;a href="https://github.com/danijar/dreamerv3"&gt;repo&lt;/a&gt;, without an author name.&lt;/p&gt;

&lt;p&gt;This is what I wrote in my pull request:&lt;br&gt;
"Hi. I am taking an open source project course &lt;a href="https://github.com/OSDC-Code-Maven/osdc-2023-01-public"&gt;https://github.com/OSDC-Code-Maven/osdc-2023-01-public&lt;/a&gt; &lt;br&gt;
and try to contribute to projects without an author name. to be added here: &lt;a href="https://pydigger.com/"&gt;https://pydigger.com/&lt;/a&gt;."&lt;/p&gt;

&lt;p&gt;my &lt;a href="https://github.com/danijar/dreamerv3/pull/21"&gt;pull request&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Waiting for a reply!&lt;/p&gt;

&lt;p&gt;update: My pull request was excepted and merged! (-:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Running R tests locally&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is my next task...&lt;br&gt;
I work with a package in R called &lt;a href="https://github.com/markrobinsonuzh/CrispRVariants"&gt;CrispRVariants&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I cloned it to my server and activated an R conda environment I have there.&lt;br&gt;
Now I could do:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Rscript testthat.R

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I received the following message:&lt;/p&gt;

&lt;p&gt;Loading required package: CrispRVariants&lt;br&gt;
Loading required package: ggplot2&lt;/p&gt;

&lt;p&gt;[ FAIL 0 | WARN 2 | SKIP 0 | PASS 20 ]&lt;/p&gt;

&lt;p&gt;[ FAIL 0 | WARN 2 | SKIP 0 | PASS 20 ]&lt;/p&gt;

&lt;p&gt;seems that something worked.&lt;br&gt;
Also I found that there is a package to test coverage similar to python in (here)[&lt;a href="https://github.com/IainMcl/R-Unit-Testing"&gt;https://github.com/IainMcl/R-Unit-Testing&lt;/a&gt;]&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;install.packages(covr)
library(covr)
report()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I need to test this.&lt;/p&gt;




&lt;p&gt;Lesson notes:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example on how to write an issue&lt;/strong&gt;&lt;br&gt;
Problem in dev.to:&lt;br&gt;
in dev.to if you do save changes your are out of the editor. how can this be fixed? maybe add an automated saving, or save and keep on editing.&lt;br&gt;
If we go down on GitHub page there is a link to Forem. Going to forem and link to github. one repo is forem. &lt;br&gt;
Forem/forem issues - search for autosave &lt;br&gt;
shuly suggested an issue to add autosave here but got no reply.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;another example: zarr-python&lt;/strong&gt;&lt;br&gt;
First search the issues - maybe someone else had a similar problem?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;codecove&lt;/strong&gt; - which lines were running during the test&lt;br&gt;
this can show absence of tests&lt;br&gt;
this can show us if a code was not tested after a change.&lt;br&gt;
but if a test was not written, a piece of code will not be tested. high coverage doesn't mean good code but low coverage will show that not all the code is being tested.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You can try to promote a pull request&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What if it doesn't work and you don't want to wait?&lt;/strong&gt;&lt;br&gt;
you can fix the issue locally and put in pypl with shaw - not recommended. &lt;br&gt;
or you can make a fork and accept the pull request. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;how?&lt;/strong&gt;&lt;br&gt;
dr  - a basic docker file with alias in basrc for Gabor called dr.&lt;br&gt;
Gabor has it in GitHub.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone ...
git fetch origin (default name) pull/1357/head
git checkout -b b1357 FETCH_HEAD
git lg
git show HEAD
git checkout main
git checkout -b szabgab
git merge 1357
gitk --all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;now you can use this repo.&lt;br&gt;
better that he would do rebase...&lt;/p&gt;

&lt;p&gt;Now we can add another PR:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git checkout -b b1299 FETCH_HEAD
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;but this time there is a conflict.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;a conflict&lt;/strong&gt;&lt;br&gt;
If you make a change in a different line - no problem to merge branch and main. changes to the same line- merge has a conflict. The change is in the text itself, not the raw number.&lt;br&gt;
Now you can manually edit the new file and add it after that.&lt;/p&gt;

&lt;p&gt;You can cancel the commit like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git merge --abort
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;how to find projects in R?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;explore/topics 'r'&lt;br&gt;
add languages : R&lt;br&gt;
recently updated better than more stars.&lt;/p&gt;

&lt;p&gt;wcgenesummary&lt;br&gt;
add contribution, find tests that can be run locally. this is the best practice for running the test.&lt;/p&gt;

&lt;p&gt;ggplots - open issue how to run a test?&lt;br&gt;
testhat? maybe this is very simple to run.&lt;/p&gt;

&lt;p&gt;to do&lt;br&gt;
how to run  a test, open a pull request. how to make test coverage? send a pull requst. what test is missing, write it.&lt;br&gt;
good way - run the test case and compare to the output. make this as a test.&lt;/p&gt;

</description>
      <category>git</category>
      <category>osdc</category>
    </item>
    <item>
      <title>osdc-2023-assignment5</title>
      <dc:creator>anatlavitzkovitz</dc:creator>
      <pubDate>Thu, 09 Feb 2023 20:15:00 +0000</pubDate>
      <link>https://forem.com/anatlavitzkovitz/osdc-2023-assignment5-1o10</link>
      <guid>https://forem.com/anatlavitzkovitz/osdc-2023-assignment5-1o10</guid>
      <description>&lt;p&gt;&lt;strong&gt;How to make my own repository and edit it locally?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Unfortunately I missed lesson 4, but I was in Amsterdam so at least had some fun.&lt;br&gt;
I decided to make my own R plot repository in GitHub, as I use R a lot and many times I repeat my code. I think this could be useful although I am sure there are many similar repositories.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How?&lt;/strong&gt;&lt;br&gt;
I wrote a first piece of R code and put that in a linux server which have R installed. I wrote a short R script and saved it, and did:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git status
git add 'main.R'
git commit -m "my first script in my new R rep0"

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now I went to GitHub and opened a &lt;a href="https://github.com/anatlavitzkovitz/visualization_with_R" rel="noopener noreferrer"&gt;new repo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;back to the remote I wrote:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote add origin git@github.com:anatlavitzkovitz/visualization_with_R.git
git branch -M main
git push -u origin main

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;but...&lt;/strong&gt;&lt;br&gt;
Permission denied (publickey).&lt;br&gt;
fatal: Could not read from remote repository.&lt;/p&gt;

&lt;p&gt;oh.... I forgot to add the ssh key to my GitHub keys.&lt;br&gt;
After doing that (explained in more details &lt;a href="https://dev.to/anatlavitzkovitz/osdc-2023-assignment3-ok9"&gt;here&lt;/a&gt;)- it worked.&lt;/p&gt;

&lt;p&gt;I added a README file via GitHub with some details. It still needs a lot more work but I hope to add some more details and code soon.&lt;/p&gt;
&lt;h6&gt;
  
  
  ##########
&lt;/h6&gt;

&lt;p&gt;&lt;strong&gt;How to clone and make local changes to another open source project?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I entered some of my colleagues &lt;a href="https://github.com/ShulyAvraham/LIMS_results_validation/issues/5" rel="noopener noreferrer"&gt;Shuly's repo&lt;/a&gt;&lt;br&gt;
 and &lt;a href="https://github.com/adieg/MyProject" rel="noopener noreferrer"&gt;Adi's repo&lt;/a&gt; and added &lt;br&gt;
some issues.&lt;/p&gt;

&lt;p&gt;now I want to make some pull requests to my friend's repos &lt;a class="mentioned-user" href="https://dev.to/shulyavraham"&gt;@shulyavraham&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone git@github.com:ShulyAvraham/LIMS_results_validation.git
git checkout -b addrequirements

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now add some changed such as:&lt;br&gt;
added #test to requirements.txt (not a very useful package..)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git add requirements.txt
git commit -m "updated requirements.txt"
git push

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;ERROR: Permission to ShulyAvraham/LIMS_results_validation.git denied to anatlavitzkovitz.&lt;br&gt;
fatal: Could not read from remote repository.&lt;/p&gt;

&lt;p&gt;Please make sure you have the correct access rights&lt;br&gt;
and the repository exists.&lt;/p&gt;

&lt;p&gt;ha ha... I need to make my fork and than a pull request from there!&lt;/p&gt;

&lt;p&gt;I went to &lt;a href="https://github.com/ShulyAvraham/LIMS_results_validation/issues/5" rel="noopener noreferrer"&gt;Shuly's repo&lt;/a&gt;&lt;br&gt;
and made a fork. back to my remote now:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote add fork git@github.com:anatlavitzkovitz/LIMS_results_validation.git

git remote -v
fork    https://github.com/anatlavitzkovitz/LIMS_results_validation (fetch)
fork    https://github.com/anatlavitzkovitz/LIMS_results_validation (push)
origin  git@github.com:ShulyAvraham/LIMS_results_validation.git (fetch)
origin  git@github.com:anatlavitzkovitz/LIMS_results_validation.git (push)

git push --set-upstream fork addrequirements

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;now I have a pull request in my fork. send to Shuly!&lt;/p&gt;

</description>
      <category>community</category>
      <category>announcement</category>
      <category>crypto</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>osdc-2023-assignment3</title>
      <dc:creator>anatlavitzkovitz</dc:creator>
      <pubDate>Fri, 27 Jan 2023 20:20:02 +0000</pubDate>
      <link>https://forem.com/anatlavitzkovitz/osdc-2023-assignment3-ok9</link>
      <guid>https://forem.com/anatlavitzkovitz/osdc-2023-assignment3-ok9</guid>
      <description>&lt;p&gt;In our 3rd lesson of &lt;a href="https://github.com/OSDC-Code-Maven/osdc-2023-01-public" rel="noopener noreferrer"&gt;osdc&lt;/a&gt; we learnt how to work locally. Our assignment was to work locally on windows, clone our GitHub website, make some changes and push back to the main repo.&lt;br&gt;
&lt;strong&gt;How?&lt;/strong&gt;&lt;br&gt;
I installed git on my windows laptop, and opened git bash.&lt;br&gt;
In the terminal I wrote:&lt;br&gt;
ssh-keygen.exe&lt;br&gt;
in .ssh/ I found a paired-key, public and private.&lt;br&gt;
cat .ssh/id_rsa.pub and place in GitHub - go to my profile setting-&amp;gt; SSH and GPG keys-&amp;gt; new SSH key. give it a title, paste the key and press 'Add SSH key'. &lt;br&gt;
Now I can go to &lt;a href="https://github.com/anatlavitzkovitz/anatlavitzkovitz.github.io" rel="noopener noreferrer"&gt;my repository&lt;/a&gt; on GitHub, press the green "code" button on the upper right corner, copy the SSH one and do 'git clone copied SSH address' in the terminal.&lt;br&gt;
Doing this on my local git bash, allowed me to clone the repo.&lt;/p&gt;

&lt;p&gt;But...It only worked when I defined driver C as my home directory and worked without VPN.&lt;/p&gt;

&lt;p&gt;I could now add a file named "test_locally.txt" to the docs folder, and than do:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git status
git add test_locally.txt
git commit -m "test working locally"
git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It works!&lt;/p&gt;

&lt;p&gt;But than my &lt;a href="https://github.com/OSDC-Code-Maven/osdc-2023-01-public/pull/65" rel="noopener noreferrer"&gt;pull request&lt;/a&gt; failed. I don't know why )-:&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>community</category>
    </item>
    <item>
      <title>osdc-2023-assignment2</title>
      <dc:creator>anatlavitzkovitz</dc:creator>
      <pubDate>Mon, 16 Jan 2023 19:06:23 +0000</pubDate>
      <link>https://forem.com/anatlavitzkovitz/osdc-2023-assignment2-15fl</link>
      <guid>https://forem.com/anatlavitzkovitz/osdc-2023-assignment2-15fl</guid>
      <description>&lt;p&gt;My first assignment in &lt;a href="https://github.com/OSDC-Code-Maven/osdc-2023-01-public" rel="noopener noreferrer"&gt;osdc 2&lt;/a&gt; was to follow all my course friends who already have a dev.to account:&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/shulyavraham"&gt;@shulyavraham&lt;/a&gt;&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/adieg"&gt;@adieg&lt;/a&gt;&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/yoadk"&gt;@yoadk&lt;/a&gt;&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/silent_mobius"&gt;@silent_mobius&lt;/a&gt;&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/dshisher"&gt;@dshisher&lt;/a&gt;&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/anatlavitzkovitz"&gt;@anatlavitzkovitz&lt;/a&gt;&lt;br&gt;
@avivyunker&lt;/p&gt;

&lt;p&gt;Next, I created &lt;a href="https://anatlavitzkovitz.github.io/" rel="noopener noreferrer"&gt;GitHub page&lt;/a&gt;. &lt;strong&gt;How?&lt;/strong&gt;&lt;br&gt;
in &lt;a href="https://anatlavitzkovitz.github" rel="noopener noreferrer"&gt;My GitHub&lt;/a&gt; I created a new repository with my name, in general: github_username.github.io.&lt;br&gt;
Within this rep I create a docs folder and in the docs folder create a file called index.md. containing the context of my website and even with a painting of me done by my talented mom.&lt;br&gt;
I added links to my GitHub and GitLab repositories, to my blog at dev.to and to the &lt;a href="https://osdc.code-maven.com/" rel="noopener noreferrer"&gt;course&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I added my CV in Markdown to docs/cv.md:  &lt;a href="https://anatlavitzkovitz.github.io/cv" rel="noopener noreferrer"&gt;cv&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the setting of &lt;a href="https://anatlavitzkovitz.github.io" rel="noopener noreferrer"&gt;my webpage&lt;/a&gt;, I changed pages to deploy main branch from docs/. how? like this:&lt;br&gt;
Go to Settings-&amp;gt;Pages-&amp;gt;Deploy from a branch-&amp;gt;main -&amp;gt;Select /Docs-&amp;gt;Save.&lt;/p&gt;

&lt;p&gt;To add a colored background I added a file to docs/ called _config.yml, containing the following markdown colored theme:&lt;br&gt;
theme: jekyll-theme-cayman.&lt;/p&gt;

&lt;p&gt;Finally, I pushed this post in to my json in &lt;a href="https://github.com/OSDC-Code-Maven/osdc-2023-01-public" rel="noopener noreferrer"&gt;OSDC&lt;/a&gt;:&lt;br&gt;
&lt;a href="https://github.com/OSDC-Code-Maven/osdc-2023-01-public/pull/50" rel="noopener noreferrer"&gt;pull request&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Time investment:&lt;/strong&gt;&lt;br&gt;
2.5 hours&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>debugging</category>
      <category>productivity</category>
    </item>
    <item>
      <title>osdc-2023-assignment1</title>
      <dc:creator>anatlavitzkovitz</dc:creator>
      <pubDate>Mon, 09 Jan 2023 20:34:41 +0000</pubDate>
      <link>https://forem.com/anatlavitzkovitz/osdc-2023-assignment1-140i</link>
      <guid>https://forem.com/anatlavitzkovitz/osdc-2023-assignment1-140i</guid>
      <description>&lt;p&gt;I just started OSDC 2023 course with &lt;a class="mentioned-user" href="https://dev.to/szabgab"&gt;@szabgab&lt;/a&gt; &lt;a href="https://osdc.code-maven.com/"&gt;OSDC&lt;/a&gt; and here is my first assignment:&lt;/p&gt;

&lt;p&gt;This is &lt;a href="https://github.com/anatlavitzkovitz"&gt;my github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is &lt;a href="https://gitlab.com/anat.lavitz"&gt;my Gitlab&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I chose baby yoda as my profile picture because me and my family like watching Star Wars movies together, and I like the idea of a small guy who is more than meets the eye.. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rOrOJ4BG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://encrypted-tbn0.gstatic.com/images%3Fq%3Dtbn:ANd9GcTb_tmtV62f83rVbel-_Eu4tSFH-WlLCxgeGg%26usqp%3DCAU" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rOrOJ4BG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://encrypted-tbn0.gstatic.com/images%3Fq%3Dtbn:ANd9GcTb_tmtV62f83rVbel-_Eu4tSFH-WlLCxgeGg%26usqp%3DCAU" alt="baby yoda" width="300" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A little about me&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;-I am a bioinformatician and I love biology.&lt;/p&gt;

&lt;p&gt;-I program mainly in R, Python and Shell.&lt;/p&gt;

&lt;p&gt;-Here are some packages I use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/biopython/biopython"&gt;Biopython&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://rdocumentation.org/packages/fitTetra/versions/1.0"&gt;Fittetra&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/markrobinsonuzh/CrispRVariants"&gt;CrispRVariants&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/tidyverse/dplyr"&gt;dplyr&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://ggplot2.tidyverse.org/"&gt;ggplot2&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://stringr.tidyverse.org/"&gt;stringr&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;-What do I want to accomplish in this course?&lt;br&gt;
First to learn and enjoy. Than to gain practical knowledge that will improve my daily work.&lt;/p&gt;

&lt;p&gt;-Which open source projects would you like to contribute to?&lt;br&gt;
Maybe one of the above I mentioned, still need to think about it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Time investment:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1.5 hour for: open gitLab account, define participants json, create dev account, update linkedin url, send pull request, update github and dev profile picture. &lt;br&gt;
1 hour for: write the blog, fixing pull requests issues.&lt;br&gt;
1 hour for: find github for corporations and universities, update the blog.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;a note about a pull request:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/Code-Maven/osdc-2023-01-public/pull/25"&gt;pull request&lt;/a&gt;&lt;br&gt;
As my gitlab user name was not corrected in the json file, there was a special test just for me in the test_json.py file. after updating the username in the json file I had also to update the match regex that finds the username to also include a dot, as my user name 'anat.lavitz' contains a dot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What are friends for?&lt;/strong&gt;&lt;br&gt;
Here is a link to my team mate Shuly and her post:&lt;br&gt;
&lt;a href="https://dev.to/shulyavraham/osdc-course-with-gabor-4hfi"&gt;blog1&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/shulyavraham/github-insights-from-osdc-szabgab-63o"&gt;blog2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;updating the corporations repos with 3 sequencing companies:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/Illumina"&gt;Illumina&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/nanoporetech"&gt;nanopore&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/PacificBiosciences"&gt;Pacbio&lt;/a&gt;&lt;br&gt;
This is the pull request:&lt;br&gt;
&lt;a href="https://github.com/szabgab/open-source-by-corporations/pull/6"&gt;pull request&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and the non-profit repo with the Broad institute git:&lt;br&gt;
&lt;a href="https://github.com/broadinstitute"&gt;Broad Institute&lt;/a&gt;&lt;br&gt;
This is the pull request:&lt;br&gt;
&lt;a href="https://github.com/szabgab/open-source-by-higher-education/pull/4"&gt;pull request&lt;/a&gt;&lt;/p&gt;

</description>
      <category>git</category>
      <category>osdc</category>
    </item>
  </channel>
</rss>
