-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrss.xml
31 lines (31 loc) · 6 KB
/
rss.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Software development brain teasers</title><link>https://peristeri.github.io/</link><description>
A journal on my experiences and struggles applying software engineering best
practices and thoughts on my software development projects.
</description><atom:link href="https://peristeri.github.io/rss.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2019 <a href="mailto:peristerakis -at- gmail -.- com">George Peristerakis</a>
<a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
<img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"></a></copyright><lastBuildDate>Thu, 22 Aug 2019 17:40:02 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Tips on on-boarding developers</title><link>https://peristeri.github.io/blog/tips-on-onboarding-developers/</link><dc:creator>George Peristerakis</dc:creator><description><div><p>Working in many different companies, I can define the on-boarding process as an
awkward first date. Trying to feel out what I need to do and what is expected.
These are the tips to help senior developers and management build a constructive
relationship.</p>
<div class="figure">
<img alt="https://imgs.xkcd.com/comics/job_interview.png" class="img-fluid" src="https://imgs.xkcd.com/comics/job_interview.png">
<p class="caption">What it feels like when starting working in a new company.</p>
</div>
<p><a href="https://peristeri.github.io/blog/tips-on-onboarding-developers/">Read more…</a> (2 min remaining to read)</p></div></description><category>career</category><category>opinion</category><guid>https://peristeri.github.io/blog/tips-on-onboarding-developers/</guid><pubDate>Wed, 21 Aug 2019 12:00:00 GMT</pubDate></item><item><title>Change the data type dynamically in mongo</title><link>https://peristeri.github.io/blog/mongo-change-data-type/</link><dc:creator>George Peristerakis</dc:creator><description><div><p>I'm using mongo DB to initially store data I scraped from the web. And like all
good projects, I realized that I was storing a date value as a string. I
corrected the code, but now I have a field that haves the values stored as a
string and date object.</p>
<pre class="code javascript"><a name="rest_code_18c45cec5b564f0a959202103877ccc8-1"></a><span class="nx">use</span> <span class="nx">scraped_db</span>
<a name="rest_code_18c45cec5b564f0a959202103877ccc8-2"></a>
<a name="rest_code_18c45cec5b564f0a959202103877ccc8-3"></a><span class="kd">var</span> <span class="nx">cursor</span> <span class="o">=</span> <span class="nx">db</span><span class="p">.</span><span class="nx">scraped_collection</span><span class="p">.</span><span class="nx">find</span><span class="p">({</span><span class="s1">'datePosted'</span><span class="o">:</span> <span class="p">{</span><span class="nx">$type</span><span class="o">:</span> <span class="s1">'string'</span><span class="p">}});</span>
<a name="rest_code_18c45cec5b564f0a959202103877ccc8-4"></a><span class="k">while</span> <span class="p">(</span><span class="nx">cursor</span><span class="p">.</span><span class="nx">hasNext</span><span class="p">())</span> <span class="p">{</span>
<a name="rest_code_18c45cec5b564f0a959202103877ccc8-5"></a> <span class="kd">var</span> <span class="nx">doc</span> <span class="o">=</span> <span class="nx">cursor</span><span class="p">.</span><span class="nx">next</span><span class="p">();</span>
<a name="rest_code_18c45cec5b564f0a959202103877ccc8-6"></a> <span class="nx">db</span><span class="p">.</span><span class="nx">scraped_collection</span><span class="p">.</span><span class="nx">update</span><span class="p">(</span>
<a name="rest_code_18c45cec5b564f0a959202103877ccc8-7"></a> <span class="p">{</span> <span class="s1">'_id'</span><span class="o">:</span> <span class="nx">doc</span><span class="p">.</span><span class="nx">_id</span><span class="p">},</span>
<a name="rest_code_18c45cec5b564f0a959202103877ccc8-8"></a> <span class="p">{</span> <span class="nx">$set</span><span class="o">:</span> <span class="p">{</span><span class="nx">datePosted</span><span class="o">:</span> <span class="k">new</span> <span class="nx">ISODate</span><span class="p">(</span><span class="nx">doc</span><span class="p">.</span><span class="nx">datePosted</span><span class="p">)</span> <span class="p">}</span> <span class="p">}</span>
<a name="rest_code_18c45cec5b564f0a959202103877ccc8-9"></a> <span class="p">)</span>
</pre><p>Simple and straight forward.</p>
<p>Happy hacking.</p></div></description><category>data wrangling</category><category>mongodb</category><guid>https://peristeri.github.io/blog/mongo-change-data-type/</guid><pubDate>Mon, 29 Jul 2019 12:00:00 GMT</pubDate></item></channel></rss>