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/macos/2024/05/25/traveling-with-a-mac-book.html</loc>
<lastmod>2024-05-25T14:20:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/28/leetcode-binary-search-matrix.html</loc>
<lastmod>2024-04-28T00:42:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/27/leetcode-word-search.html</loc>
<lastmod>2024-04-27T21:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/26/leetcode-combinations.html</loc>
<lastmod>2024-04-26T21:56:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/26/leetcode-letter-combinations-of-a-phone-number.html</loc>
<lastmod>2024-04-26T21:29:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/26/leetcode-trie-prefix-tree.html</loc>
<lastmod>2024-04-26T03:18:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/25/leetcode-contains-duplicate-ii.html</loc>
<lastmod>2024-04-25T00:15:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/24/leetcode-count-complete-tree-nodes.html</loc>
<lastmod>2024-04-24T20:20:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/23/leetcode-binary-search-tree-iterator.html</loc>
<lastmod>2024-04-23T04:14:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/23/leetcode-sum-root-to-leaf-numbers.html</loc>
<lastmod>2024-04-23T00:56:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/22/leetcode-flatten-binary-tree-to-linked-list.html</loc>
<lastmod>2024-04-22T22:51:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/22/leetcode-populating-next-right-pointers-in-each-node-ii.html</loc>
<lastmod>2024-04-22T22:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/22/leetcode-construct-binary-tree-from-inorder-and-postorder-traversal.html</loc>
<lastmod>2024-04-22T04:01:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/21/leetcode-path-sum.html</loc>
<lastmod>2024-04-21T22:45:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/21/leetcode-maximum-depth-of-binary-tree.html</loc>
<lastmod>2024-04-21T22:28:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/21/leetcode-same-tree.html</loc>
<lastmod>2024-04-21T21:18:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/21/leetcode-partition-list.html</loc>
<lastmod>2024-04-21T19:23:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/21/leetcode-rotate-list.html</loc>
<lastmod>2024-04-21T19:11:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2024/04/21/leetcode-remove-duplicates-from-sorted-list-ii.html</loc>
<lastmod>2024-04-21T18:03:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/2024/01/31/silicon-valley.html</loc>
<lastmod>2024-01-31T17:28:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/2023/12/19/rain.html</loc>
<lastmod>2023-12-19T18:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/ruby/rails/2023/08/13/ruby-testing-server-part-two.html</loc>
<lastmod>2023-08-13T17:44:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/2023/07/04/july-4-2023.html</loc>
<lastmod>2023-07-04T14:17:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/misc/2023/05/21/bread-recipe.html</loc>
<lastmod>2023-05-21T01:30:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/development/python/2023/04/18/memory-profiling-memray.html</loc>
<lastmod>2023-04-18T17:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/development/2023/01/25/updating-jekyll-to-ruby-3-2-0.html</loc>
<lastmod>2023-01-25T16:35:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/home-improvement/2022/12/18/electric-closet.html</loc>
<lastmod>2022-12-18T01:50:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/machine-learning/2022/12/11/chatgpt.html</loc>
<lastmod>2022-12-11T16:25:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/development/2022/11/28/testing-email-sending.html</loc>
<lastmod>2022-11-28T16:14:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/2022/11/18/heroku-price-increase.html</loc>
<lastmod>2022-11-18T18:44:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/development/2022/11/16/change-font-size-depending-on-post-length.html</loc>
<lastmod>2022-11-16T15:43:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/11/09/leetcode-house-robber-ii.html</loc>
<lastmod>2022-11-09T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/11/08/leetcode-house-robber.html</loc>
<lastmod>2022-11-08T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/11/07/leetcode-palindrome-linked-list.html</loc>
<lastmod>2022-11-07T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/11/06/leetcode-intersection-of-two-arrays-ii.html</loc>
<lastmod>2022-11-06T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/11/05/leetcode-power-of-three.html</loc>
<lastmod>2022-11-05T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/11/04/leetcode-kth-smallest-element-in-matrix.html</loc>
<lastmod>2022-11-04T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/11/03/leetcode-copy-list-with-random-pointer.html</loc>
<lastmod>2022-11-03T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/11/02/leetcode-decode-ways.html</loc>
<lastmod>2022-11-02T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/11/01/leetcode-reconstruct-binary-tree.html</loc>
<lastmod>2022-11-01T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/31/leetcode-validate-binary-search-tree.html</loc>
<lastmod>2022-10-31T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/30/leetcode-palindrome-partitioning.html</loc>
<lastmod>2022-10-30T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/29/leetcode-remove-element-from-list.html</loc>
<lastmod>2022-10-29T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/28/leetcode-array-remove-element.html</loc>
<lastmod>2022-10-28T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/27/leetcode-binary-tree-zigzag-level-order-traversal.html</loc>
<lastmod>2022-10-27T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/26/leetcode-binary-tree-level-order-traversal.html</loc>
<lastmod>2022-10-26T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/25/leetcode-valid-sudoku.html</loc>
<lastmod>2022-10-25T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/24/leetcode-top-k-frequent-elements.html</loc>
<lastmod>2022-10-24T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/23/leetcode-find-peak-element.html</loc>
<lastmod>2022-10-23T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/22/leetcode-minimum-stack.html</loc>
<lastmod>2022-10-22T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/21/leetcode-populate-next-pointers.html</loc>
<lastmod>2022-10-21T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/20/leetcode-generate-parentheses.html</loc>
<lastmod>2022-10-20T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/19/leetcode-word-break.html</loc>
<lastmod>2022-10-19T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/18/leetcode-maximum-product-subarray.html</loc>
<lastmod>2022-10-18T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/17/leetcode-sort-list.html</loc>
<lastmod>2022-10-17T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/16/leetcode-gas-station.html</loc>
<lastmod>2022-10-16T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/15/leetcode-lru-cache.html</loc>
<lastmod>2022-10-15T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/14/leetcode-merge-sorted-array.html</loc>
<lastmod>2022-10-14T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/13/leetcode-word-search.html</loc>
<lastmod>2022-10-13T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/12/leetcode-unique-paths.html</loc>
<lastmod>2022-10-12T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/11/leetcode-merge-intervals.html</loc>
<lastmod>2022-10-11T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/10/leetcode-remove-nth-node-from-end-of-list.html</loc>
<lastmod>2022-10-10T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/09/leetcode-sort-colors.html</loc>
<lastmod>2022-10-09T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/08/leetcode-find-first-and-last-position-of-element-in-sorted-arrays.html</loc>
<lastmod>2022-10-08T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/07/leetcode-three-sum.html</loc>
<lastmod>2022-10-07T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/06/leetcode-longest-consecutive-sequence.html</loc>
<lastmod>2022-10-06T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/05/leetcode-happy-number.html</loc>
<lastmod>2022-10-05T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/04/leetcode-linked-list-cycle.html</loc>
<lastmod>2022-10-04T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/03/leetcode-contains-duplicate.html</loc>
<lastmod>2022-10-03T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/02/leetcode-move-zeros.html</loc>
<lastmod>2022-10-02T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/10/01/leetcode-reverse-string.html</loc>
<lastmod>2022-10-01T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/30/leetcode-majority-number.html</loc>
<lastmod>2022-09-30T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/29/leetcode-single-number.html</loc>
<lastmod>2022-09-29T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/28/leetcode-first-unique-character-in-string.html</loc>
<lastmod>2022-09-28T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/27/leetcode-symmetric-tree.html</loc>
<lastmod>2022-09-27T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/26/leetcode-binary-tree-inorder-traversal.html</loc>
<lastmod>2022-09-26T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/25/leetcode-square-root-of-x.html</loc>
<lastmod>2022-09-25T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/24/leetcode-add-binary.html</loc>
<lastmod>2022-09-24T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/23/leetcode-plus-one.html</loc>
<lastmod>2022-09-23T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/22/leetcode-climbing-stairs.html</loc>
<lastmod>2022-09-22T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/21/leetcode-best-time-to-buy-and-sell-stock.html</loc>
<lastmod>2022-09-21T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/20/leetcode-repeated-substring-pattern.html</loc>
<lastmod>2022-09-20T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/19/leetcode-string-in-string.html</loc>
<lastmod>2022-09-19T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/18/leetcode-merge-two-lists.html</loc>
<lastmod>2022-09-18T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/17/leetcode-all-possible-subsets.html</loc>
<lastmod>2022-09-17T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/16/leetcode-permutations.html</loc>
<lastmod>2022-09-16T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/ruby/rails/2022/09/15/how-to-add-devise-to-rails.html</loc>
<lastmod>2022-09-15T22:31:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/leetcode/2022/09/15/leetcode-letter-case-permutation.html</loc>
<lastmod>2022-09-15T20:00:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/2022/09/04/nearest-binary-search.html</loc>
<lastmod>2022-09-04T16:28:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/python/2022/09/03/predictable-hash-function.html</loc>
<lastmod>2022-09-03T20:33:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/machine-learning/2022/08/22/openai-api-price-reduction.html</loc>
<lastmod>2022-08-22T17:41:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/ruby/rails/2022/08/08/secure-sidekiq-with-basicauth.html</loc>
<lastmod>2022-08-08T23:30:00+00:00</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://fewald.net/links/2022/07/30/aaron-koblin.html</loc>
<lastmod>2022-07-30T05: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>
<url>
<loc>https://fewald.net/page15/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page16/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page17/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page18/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page19/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page20/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page21/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page22/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page23/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page24/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page25/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page26/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page27/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page28/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page29/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page30/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page31/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
<url>
<loc>https://fewald.net/page32/</loc>
<lastmod></lastmod>
<changefreq>weekly</changefreq>
<priority></priority>
</url>
</urlset>
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);
}
}
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});
}
}
If you want to subscribe for changes to a List<T>
in C# it is very easy. All you need to do, is subclass List<T>
and implement your own event handler. This could be done as following:
using System;
using System.Collections.Generic;
namespace FEwald
{
public class MyList<T> : List<T>
{
/// <summary>
/// EventHandler which is called when items are added.
/// </summary>
public event EventHandler ItemAdded;
/// <summary>
/// EventHandler which is called when items are deleted.
/// </summary>
public event EventHandler ItemRemoved;
/// <summary>
/// Adds an item to the list.
/// </summary>
/// <param name="item"></param>
public new void Add(T item)
{
if (ItemAdded != null)
{
ItemAdded(item, EventArgs.Empty);
}
base.Add(item);
}
/// <summary>
/// Adds a range of items to the list.
/// </summary>
/// <param name="collection"></param>
public new void AddRange(IEnumerable<T> collection)
{
foreach (var item in collection)
{
Add(item);
}
}
/// <summary>
/// Removes an item from the list.
/// </summary>
/// <param name="item"></param>
public new void Remove(T item)
{
if (ItemRemoved != null)
{
ItemRemoved(item, EventArgs.Empty);
}
base.Remove(item);
}
}
}
Currently I’m updating an odoo installation from version 8 to version 9 for a customer. In this post I will give a short introduction, on how to update the installation and most common issues I observed during the update. This post ist not complete since every odoo installation is different. First of all, there is no updater or tutorial offered by the odoo company for the community edition. The company only provides support and updates for the paid enterprise licenses. Since the database structure in odoo changed in so many fields, it is almost impossible, to update the odoo database “by hand” to version 9. The other solution, OpenUpgrade is not yet ready for the current version of the ERP system and therefore also not a possible solution. Instead, I decided to upgrade the custom developed module in a fresh odoo 9 installation. As soon as it works, I install odoo 9 with a fresh database on the server and transfer (export, then import) all the data from 8 to 9. Below is a list with possible problems and the solutions I found for them.
@api.one
and @api.multi
. All the variables, like cr
, context
, etc. still exist but have slightly different names now.
sudo ln -s /usr/local/bin/nodejs /usr/bin/node
Some days ago I created a simple script just to try out some new techniques with angularJS in combination with nodeJS. The idea was to create a lunch manager where people can sign up for a specific day, that they are in for lunch at a specific time. There should be no complex signup since I was not expecting any spam or similar behavior.
I had the idea of realising this script with a minimal footprint so that it is easy to deploy and easy to run on any Linux based server. This leads to the idea of creating a one pager with most of the Javascript files hosted on a CDN and only the absolute minimum should be hosted on my server.
##Setting up the front-end
As a front-end I chose the responsive bootstrap framework from Twitter. The dynamic part should be realized with angular. The whole website is only one controller, called FoodCtrl
.
<body ng-controller="FoodCtrl as f">
angular.module('foodApp', [])
.controller('FoodCtrl', ['$http', function($http) {
var food = this;
food.alreadyIn = false;
food.pendingRequest = false;
food.name = '';
food.namesList = [];
food.signup = function(time) {
food.pendingRequest = true;
$http.post('/lunch/signup', {name: food.name, time: time})
.then(function (response) {
console.log(response);
notie.alert(1, 'Success, you\'re in for today, ' + food.name + '!', 1.5);
food.alreadyIn = true;
food.pendingRequest = false;
}, function (response) {
notie.alert(3, 'Error ' + response.status, 5);
food.pendingRequest = false;
});
};
fetch_updates($http, food, 0, false);
refetch_updates($http, food, 0);
}])
.directive('person', function() {
return {
template: '{ {n.name}}@{ {n.time}}'
};
});
ng-cloak
on any HTML tag which should be hidden at first because it contains i.e. if-expressions which are evaluated later.
Adding only ng-cloak
alone is only half of the solution because angular adds CSS tags to all elements with this directive. But since angular is loaded just before the closing body
tag, hiding of the elements is executed often too late in time. Especially, the slower the computer, the more important it is to hide these elements just from the beginning. As a workaround I chose the following approach. Just add a style in the head part which hides ng-cloak
and this style is removed later automatically by angular:
<style type="text/css">
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
display: none !important;
}
</style>
function fetch_updates($http, food, errorCounter, recursive) {
console.log('fetching names...');
$http.get('/lunch/people.json')
.then(function(response) {
if(food.namesList.length < response.data.length && recursive) {
notie.alert(4, 'Someone else signed up!', 1.5);
}
food.namesList = response.data;
if (recursive) {
refetch_updates($http, food, 0);
}
},
function(response) {
notie.alert(3, 'Error while fetching other people', 2);
refetch_updates($http, food, errorCounter + 1)
});
};
function refetch_updates($http, food, errorCounter) {
if (errorCounter < 5) {
var timeout = (errorCounter + 1) * 2000;
console.log(timeout);
setTimeout(function () {
fetch_updates($http, food, errorCounter, true);
}, timeout);
}
else {
notie.confirm('Error loading data. Do you want to retry?', 'Yes', 'No', function () {
refetch_updates($http, food, 0);
});
}
}
refetch_updates
checks the errorCounter
. If it is below 5, it calls fetch_updates
after a timeout of the error count times two seconds. The method fetch_updates
calls refetch_updates
again. If the request fails more than five times, the user is asked, if he wants to continue fetching updates or not. If yes, the errorCounter
is reset to zero and the recursive call begins again. The advantage of this method is, that I didn’t have to implement any other server than the existing nodeJS express server.
##Conclusion
From the idea to the working script it took me about two hours, if I substract the setup time of nodeJS and Apache, which only serves as a proxy this time. If you want to download the whole project, you can check out my git repository.