Freddy Ewald Personal Website

Posts


  • Combining multiple CSV files to one

    If you have multiple CSV files with the same format and you want to combine them to just a single file, just do

    cat file1.csv file2.csv > output.csv
    

    Or even simpler

    cat *.csv > output.csv
    

  • Counting lines of a text file

    To count lines of one or many files on the shell I use wc (Wordcount). If you want to count all lines of all CSV files in a dictionary, just type:

    wc -l *.csv
    

  • Improving security for SSH

    There are two things to increase the security for ssh logins.

    Change SSH Port

    To change the SSH port, simply edit the sshd_config file with the commmand sudo nano /etc/ssh/sshd_config and change the line Port 22 to something higher. Make sure to stay below 65,000 and don’t use any port which is already used by another service like 80 (web). After changing and saving the file, simply restart the ssh daemon and reload the configuration with sudo /etc/init.d/ssh reload. Done.

    Disable password based login for SSH

    To disable the password based login for all the users, you can do the following:

    # Open the sshd config file
    sudo nano /etc/ssh/sshd_config
    

    Disable password authentication with the following settings:

    ChallengeResponseAuthentication no
    

    Allow private public key authentication with the following:

    RSAAuthentication yes
    PubkeyAuthentication yes
    

    Once this is done, restart the SSH daemon to apply the settings.

    /etc/init.d/sshd restart
    

    Additional information can be found here.

  • Building a sitemap.xml with jekyll

    While transforming this page to Jekyll I needed a sitemap.xml for the Google Webmaster Tools. A quick search showed up this result. Works perfectly.

    ---
    layout: null
    ---
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
      
        <url>
          <loc>https://fewald.net/links/2022/07/29/aaron-koblin.html</loc>
          
            <lastmod>2022-07-29T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/ruby/rails/2022/07/28/fast-feed-processing-in-ruby.html</loc>
          
            <lastmod>2022-07-28T16:56:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/ruby/rails/2022/07/18/rails-testing-with-static-server.html</loc>
          
            <lastmod>2022-07-18T04:33:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/07/17/new-york-times-story-portrait.html</loc>
          
            <lastmod>2022-07-17T03:06:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/seo/2022/07/08/improving-search-engine-optimization.html</loc>
          
            <lastmod>2022-07-08T06:22:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/07/08/improving-website-accessibility.html</loc>
          
            <lastmod>2022-07-08T06:14:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/07/06/improving-page-speed.html</loc>
          
            <lastmod>2022-07-06T22:24:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/ruby-on-rails/2022/07/06/ruby-on-rails-nil-check.html</loc>
          
            <lastmod>2022-07-06T16:57:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/07/05/jsonfeed-installed.html</loc>
          
            <lastmod>2022-07-05T18:42:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/06/26/wisdom.html</loc>
          
            <lastmod>2022-06-26T18:37:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/06/08/how-much-precision-do-you-need.html</loc>
          
            <lastmod>2022-06-08T01:10:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/06/06/jekyll-compose.html</loc>
          
            <lastmod>2022-06-06T19:12:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/06/06/full-url-google-chrome.html</loc>
          
            <lastmod>2022-06-06T03:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/05/29/sunset-daly-city-california.html</loc>
          
            <lastmod>2022-05-29T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2022/05/28/hermes-imessage-cli.html</loc>
          
            <lastmod>2022-05-28T02:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/programming/2022/05/11/golang-generics.html</loc>
          
            <lastmod>2022-05-11T02:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/2021/04/23/coredns_config.html</loc>
          
            <lastmod>2021-04-23T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/webdesign/development/2021/04/22/fontshare_fonts.html</loc>
          
            <lastmod>2021-04-22T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/golang/development/2020/06/16/golang-private-repository.html</loc>
          
            <lastmod>2020-06-16T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/photo/2020/05/19/sunday-afternoon-clouds.html</loc>
          
            <lastmod>2020-05-19T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/k8s/development/2020/05/09/kubernetes-namespace.html</loc>
          
            <lastmod>2020-05-09T18:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/misc/2020/05/05/rt-live.html</loc>
          
            <lastmod>2020-05-05T18:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/misc/2020/04/28/data-visualization.html</loc>
          
            <lastmod>2020-04-28T18:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/nginx/development/2020/04/19/413-nginx-ingress-k8s.html</loc>
          
            <lastmod>2020-04-19T18:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/misc/2020/02/22/writic-app.html</loc>
          
            <lastmod>2020-02-22T18:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/link/2019/06/17/the-hard-way.html</loc>
          
            <lastmod>2019-06-17T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/photo/2019/05/05/getty-center.html</loc>
          
            <lastmod>2019-05-05T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/links/2019/04/01/kubernetes-or-not.html</loc>
          
            <lastmod>2019-04-01T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/photo/2019/03/31/java-on-ocean.html</loc>
          
            <lastmod>2019-03-31T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/security/2019/03/30/decrypt-chrome-passwords-windows.html</loc>
          
            <lastmod>2019-03-30T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/python/macos/2019/03/28/setup-pip-build.html</loc>
          
            <lastmod>2019-03-28T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/security/2019/03/25/facebook-passwords.html</loc>
          
            <lastmod>2019-03-25T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/helm/2019/03/24/helm-charts.html</loc>
          
            <lastmod>2019-03-24T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/python/2019/03/04/febase62-v1-1-0.html</loc>
          
            <lastmod>2019-03-04T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/macos/2019/02/25/uuid-mac-os-shell.html</loc>
          
            <lastmod>2019-02-25T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/linux/2019/02/17/jps-java-process.html</loc>
          
            <lastmod>2019-02-17T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/google/2019/02/17/delete-google-appengine.html</loc>
          
            <lastmod>2019-02-17T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/2018/12/25/apache-spark-dataframe-count-words.html</loc>
          
            <lastmod>2018-12-25T20:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/2018/07/31/kafka-topic-cleanup.html</loc>
          
            <lastmod>2018-07-31T11:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/2018/07/27/apache-kafka-cheat-sheet.html</loc>
          
            <lastmod>2018-07-27T21:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/misc/2018/07/26/anki-flashcards.html</loc>
          
            <lastmod>2018-07-26T04:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/linux/2018/07/23/ps-aux-grep-java-process.html</loc>
          
            <lastmod>2018-07-23T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/json/development/2017/05/20/RSS-better-with-jsonfeed.html</loc>
          
            <lastmod>2017-05-20T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/python/2017/02/11/java-enumerations-with-values.html</loc>
          
            <lastmod>2017-02-11T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/python/2017/02/07/base62-encoding-decoding.html</loc>
          
            <lastmod>2017-02-07T00:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/vim/2016/12/02/smaller-tabs-in-vim.html</loc>
          
            <lastmod>2016-12-02T18:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/dotnet/2016/11/01/newtonsoft-json-dll-in-multiple-projects.html</loc>
          
            <lastmod>2016-11-01T18:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/2016/10/31/experiences-with-jekyll.html</loc>
          
            <lastmod>2016-10-31T18:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/python/2016/10/28/python-merge-two-lists.html</loc>
          
            <lastmod>2016-10-28T20:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/linux/2016/09/12/cronjob-crontab-syntax.html</loc>
          
            <lastmod>2016-09-12T21:12:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/typescipt/angular2/2016/08/30/angular2-http.html</loc>
          
            <lastmod>2016-08-30T01:54:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/tools/2016/07/15/vim-cheatsheet.html</loc>
          
            <lastmod>2016-07-15T20:31:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/performance/programming/2016/05/20/big-o-notation-cheatsheet.html</loc>
          
            <lastmod>2016-05-20T21:31:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/linux/shell/2016/04/11/show-open-ports.html</loc>
          
            <lastmod>2016-04-11T21:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/git/2016/04/07/better-git-log.html</loc>
          
            <lastmod>2016-04-07T21:31:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/linux/shell/2016/02/23/combining-csv-files.html</loc>
          
            <lastmod>2016-02-23T16:45:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/linux/shell/2016/02/19/shell-count-lines.html</loc>
          
            <lastmod>2016-02-19T19:03:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/linux/security/2016/02/12/increasing_security_ssh.html</loc>
          
            <lastmod>2016-02-12T00:10:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/web/jekyll/2016/02/09/sitemap_xml-for-jekyll.html</loc>
          
            <lastmod>2016-02-09T18:22:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/c%23/json/2016/02/08/json-serialization.html</loc>
          
            <lastmod>2016-02-08T20:13:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/c%23/2016/02/04/list-event-handler.html</loc>
          
            <lastmod>2016-02-04T02:34:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/python/2016/01/07/odoo-9.html</loc>
          
            <lastmod>2016-01-07T17:14:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/js/2015/12/19/lunch-manager.html</loc>
          
            <lastmod>2015-12-19T01:28:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/js/2015/12/14/installing-node-js.html</loc>
          
            <lastmod>2015-12-14T04:39:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/2015/12/09/git_hooks.html</loc>
          
            <lastmod>2015-12-09T20:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
        <url>
          <loc>https://fewald.net/development/2015/12/09/jekyll-experiments.html</loc>
          
            <lastmod>2015-12-09T01:00:00+00:00</lastmod>
          
          <changefreq>weekly</changefreq>
          <priority>1.0</priority>
        </url>
      
      
        
          <url>
            <loc>https://fewald.net/about/</loc>
            <lastmod></lastmod>
            <changefreq>monthly</changefreq>
            <priority></priority>
           </url>
        
      
        
      
        
          <url>
            <loc>https://fewald.net/cv/</loc>
            <lastmod></lastmod>
            <changefreq>monthly</changefreq>
            <priority></priority>
           </url>
        
      
        
      
        
      
        
          <url>
            <loc>https://fewald.net/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
      
        
          <url>
            <loc>https://fewald.net/projects/</loc>
            <lastmod></lastmod>
            <changefreq>monthly</changefreq>
            <priority>0.6</priority>
           </url>
        
      
        
      
        
      
        
          <url>
            <loc>https://fewald.net/page2/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page3/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page4/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page5/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page6/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page7/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page8/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page9/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page10/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page11/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page12/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page13/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
        
          <url>
            <loc>https://fewald.net/page14/</loc>
            <lastmod></lastmod>
            <changefreq>weekly</changefreq>
            <priority></priority>
           </url>
        
      
    </urlset>
    

  • Serialization and Deserialization with C# & JSON

    For serialization and deserialization in the .NET framework, I use the Newtonsoft JSON Serializer. This library works really fast and is very flexible. Lately I had a problem that I wanted to serialize a List<ObjA> with ObjB and ObjC. ObjB and ObjC are children of ObjA. In the code it looks as the following:

    public class ObjA
    {}
    
    public class ObjB : ObjA
    {}
    
    public class ObjC : ObjA
    {}
    
    public class Program
    {
    	public void main()
    	{
    		List<ObjA> objectList = new List<ObjA>();
    
    		string serializedObjects = JsonConvert.SerializeObject(objectList);
    
    		List<ObjA> objectListNew = JsonConvert.DeserializeObject<List<ObjA>>(serializedObjects);
    	}
    }
    

    If I now serialized this with the method SerializeObject() and later deserialized it with the method DeserializeObject<>(), all the objects were of the type ObjA instead of type ObjB or ObjC. After a short research, I found the solution:

    public class Program
    {
    	public void main()
    	{
    		List<ObjA> objectList = new List<ObjA>();
    
    		string serializedObjects = JsonConvert.SerializeObject(objectList, Formatting.Indented, new JsonSerializerSettings()
                {
                    ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
                    TypeNameHandling = TypeNameHandling.All
                });
    
    		List<ObjA> objectListNew = JsonConvert.DeserializeObject<List<ObjA>>(serializedObjects, new JsonSerializerSettings() {TypeNameHandling = TypeNameHandling.Auto});
    	}
    }
    

    This preserves the types of the objects during serialization.

Page: 12 of 14