teleren/devto huggingface dataset:
Debugging: Dev.To RSS-To-Draft Only Displaying Post Summaries (WordPress Solution)
Tags: programming, debugging, devto, errors
Published: 2018-12-23 16:52:03

---
title: Debugging: Dev.To RSS-To-Draft Only Displaying Post Summaries (WordPress Solution)
published: true
tags: Programming,debugging,dev.to,error handling
canonical_url: https://www.stephencharlesweiss.com/2018/12/23/debugging-dev-to-rss-to-draft-only-displaying-post-summaries-wordpress-solution/
---

# Preamable

I’m filing this under the category of: “Issues that I created for myself and don’t want to forget how I solved.” Also, I don’t want to be `DenverCoder9`.

[![Relevant XKCD: Don't be DenverCoder9](https://i1.wp.com/imgs.xkcd.com/comics/wisdom_of_the_ancients.png?resize=485%2C270&ssl=1)](https://xkcd.com/979/)<figcaption>Don’t be DenverCoder9</figcaption>

  
(Source: [XKCD](https://xkcd.com/979/))
# Dev.to Drafts Only Showing Post Summary

`Dev.to` can subscribe to the RSS feed of your blog which makes cross-publishing your posts easy.

When I first set mine up, however, I noticed that I wasn’t actually getting the full post, but only a blurb.

[![Dev.To Draft showing only a summary of my post](https://i1.wp.com/www.stephencharlesweiss.com/wp-content/uploads/2018/12/devto-screengrab.png?resize=300%2C279&ssl=1)](https://i1.wp.com/www.stephencharlesweiss.com/wp-content/uploads/2018/12/devto-screengrab.png?ssl=1)

As much as I would have loved to point the finger elsewhere, the problem was with my settings.

My main site is built on WordPress and my feed was set up to only share a summary. Fortunately it’s an easy fix (which WordPress walks through [here](https://en.support.wordpress.com/settings/reading-settings/)).

Let’s go through the steps.

# Update your RSS Feed Settings

WordPress makes changing your RSS feed settings an easy three-step process.

1. Go to your admin panel’s reading settings (Dashboard \> Settings \> Reading)  
`https://www.<your-blog-here>.com/wp-admin/options-reading.php`
2. Change the setting “For each article in a feed, show” from “Summary” to “Full text”  
[![Wordpress RSS Feed Settings](https://i1.wp.com/www.stephencharlesweiss.com/wp-content/uploads/2018/12/wordpress-settings.png?resize=300%2C113&ssl=1)](https://i1.wp.com/www.stephencharlesweiss.com/wp-content/uploads/2018/12/wordpress-settings.png?ssl=1)
3. Save changes

# To refresh your `Dev.to` drafts

Now that you’ve updated WordPress, we need to go back to `Dev.to` and reset the feed.

1. Return to your settings on `Dev.to` at https://dev.to/settings/publishing-from-rss
2. Click on Publishing from RSS
3. (Re)Submit and wait.  
\> Your feed will be fetched every time you submit this form and updates will be automatically fetched periodically thereafter. 

The process may take a few minutes, so be patient.

(I did go through and delete all of the old drafts, though I don’t know if that helped / hurt the process.)

Thanks for reading! Hope this helps you avoid the same problems I had!
Better Angels Of Our Nature Review
Tags: bookreview, post
Published: 2019-01-20 14:43:51

---
title: Better Angels Of Our Nature Review
published: true
tags: book_review,post
canonical_url: https://horia141.com/better-angels-of-our-nature-review.html
series: "Book Reviews"
---

Finally finished this book. It was a long read.

This was Bill Gate’s favourite book, till Enlightenment Now, by the same author. The latter is quite recent and I wanted to read it cause the man was raving about it. But since they seem to be of a series, I figured I’d read both of them back to back.

Compared to the other non-fiction I’ve decided here this has been again a long read. Co parable to Guns, German and Steel.

My only criticism of the book is that it’s a bit drawn out. At nearly 800 pages, and relatively dense prose and technical term as that, it’s not the lightest pop science book. I felt that after awhile the pattern of declining violence was established. So many of the anectores or studies references provided weren’t required. I’ll believe it that if x, y, z forms of violance have decreased ,then w has also decreased, and it’s in fact an across the board thing. In fact, the 80-20 rule worked like a charm here. The last 2 chapters were the hardest to slog through, as it was a lot of reinforcement of the earliest parts.

The next book seems smaller, and hopefully an easier read. I won’t do the back to back in the end, cause I can only take so much optimism in the day, and I want to do some fiction in between non-fiction as well.
Doing Agile perfectly? Then, you're doing it wrong!
Tags: agile
Published: 2018-12-23 11:35:18

---
title: Doing Agile perfectly? Then, you're doing it wrong!
published: true
description: 
tags: agile
---

Lot's of teams are sold on Agile. Every company does it a bit differently. Some dive in the deep end, others take baby steps. Typically adopted are: sprints and stand-ups/scrums. Next, perhaps: grooming of stories, retrospectives at the end of sprints. 

A lot of great ideas and tips have been developed around the various aspects of Agile. For instance, take the scrum: it is supposed to be a quick meeting, to set the team's context for the next day or two. It isn't the meeting where problems are actually resolved. Often, only a couple of people on the team are directly involved with a problem. Having everyone else listen in can be a waste of time. Makes sense.

Yet, if you follow this "no discussion of problems" _too_ closely, you're not doing being agile. Because the rule is part of the process, and Agile is not about process. If a rule is a good idea, it makes sense to follow it... following it will be natural and productive. And, if you suddenly feel you need to break the rule, ... if that makes sense to you in the moment... you should break it. 

When someone else breaks a rule, you might think "that's not Agile". Stop! Catch yourself. That type of thinking is process-oriented. Instead, if you think "discussing that here will waste other people's time"... that's perfectly fine.

In summary: **don't _do Agile_, but _be agile_**.
Oculus Platform Settings
Tags: oculus, oculusplatform, unity3d, vr
Published: 2018-12-23 11:07:50

---
title: Oculus Platform Settings
published: true
description: Develop Oculus Platform feature with Unity
tags: Oculus, OculusPlatform, Unity, VR
---

# Abstract
In this post, I will write about how to OculusPlatform Setting in Unity.
This post is reprint of [my blog](https://xrjapanesedeveloper.wordpress.com/2018/12/23/oculusplatformsettings/).

# Setting
## OculusDashBoard
1 : [Go to Oculus DashBoard](https://dashboard.oculus.com/my-apps/)
2 : Create New Application.
You can get app id, so write down it.

![](https://i.imgur.com/Ypixal0.png)

(↑so sorry, all photo is Japanese. app id 16 digits number.)

---
From here, if you test mutiplay feature in OculusPlatform, please read.
Adding test user.

3 : Select Manage > UserName > Settings > Test User in the left sidebar.

![](https://i.imgur.com/GyPREJo.png)

4 : Add test user. Fill password and pin number. Send.
You should write down them. We use password later.

![](https://i.imgur.com/3IbGttR.png)

5 : Test user is added, please write down Oculus ID, and mail address.

![](https://i.imgur.com/apQfedv.png)

6 : (Important)Register the test user who we created as a developer.
Select setting > member, then select add Developer.

![](https://i.imgur.com/ZMfgjrU.png)

7 : Type Oculus ID whose we created test user. Select Add.

![](https://i.imgur.com/MqS4UlG.png)

Now, test user is registerd.

![](https://i.imgur.com/0dfHCw5.png)

Setting in OculusPlatform is Done!

---
## UnitySetting
1. In Unity's AssetStore, type Oculus Integration and import this.
2. In top menu, select OculuPlatform > EditSettings.
![](https://i.imgur.com/KJl4BjS.png)

3. Type app id. This is 16 digits number in OculusDashBoard settings we got a while ago.
![](https://i.imgur.com/M2yVBds.png)
If you created OculusRift Apps in OculusDashBoard, type appID in OculusRiftAppId line.
If you created GearVR/OculusGo Apps in OculusDashBoard, type in GearVR App Id line.

4. Next, open UnityEditorSettings toggle under appId settings. Type test user address and password, click login.
![](https://i.imgur.com/gsEEe7e.png)
If you don't use test user, use your mail address and password in Oculus. Or uncheck `Use Stand Platform` check box. If you uncheck, Unity find OculusApplication and use the information of the logged in Oculus user.

---
Setting is done.

Next, I will write how to use OculusPlatformAPI.
AoC Day 23: Experimental Emergency Teleportation
Tags: adventofcode, discuss
Published: 2018-12-23 06:44:09

---
title: "AoC Day 23: Experimental Emergency Teleportation"
published: true
description: "Day 23: We're using nanobots to save a reindeer."
cover_image: https://thepracticaldev.s3.amazonaws.com/i/nc5bjm3tq2lo9c7p5fzi.png
tags: adventofcode, discuss
series: Advent of Code 
---

[Day 23!](https://adventofcode.com/2018/day/23)  Two days left until Christmas!  We have now officially graduated from 2D coordinates, and we've got nanobots flying around in three dimensions!  These nanobots are going to help us save a reindeer friend of Santa's, somehow.  But first, we'll need to figure out which nanobots can talk to which.

Good luck!
IntroJS: Introduce your app for first time visitors.
Tags: introjs, jquery, json, javascript
Published: 2018-12-23 06:02:56

---
title: IntroJS: Introduce your app for first time visitors.
published: true
description: jQuery based library https://github.com/iamdshri/introJS. It helps in introducing all or new features in your app. Also can be used as a step-by-step tutorial guide.
tags: IntroJS, jQuery, json, javascript
---
Explain functional programming paradigm Like I'm Five
Tags: explainlikeimfive
Published: 2018-12-23 03:18:14

---
title: Explain functional programming paradigm Like I'm Five
published: true
tags: explainlikeimfive
---

No matter, if I read an article over it or watch a youtube video to understand, I never get to truly understand to the point that I can think in a functional way to solve a problem.
Sometimes no energy to learn
Tags: webdev, php, javascript, beginners
Published: 2018-12-22 22:56:26

---
title: Sometimes no energy to learn
published: true
description: 
tags: webdev, php, javascript, beginners 
---

Sometimes I don't have energy or any motivation to learn or build projects on web dev ... I think every developper live this situation in their learning journey what about you how you deal with this problem ?
Learn How to Hack, Capture the Flag for Beginners!
Tags: beginners, security, ctf, hacking
Published: 2018-12-22 21:08:13

---
title: Learn How to Hack, Capture the Flag for Beginners!
published: true
description: Improve your cybersecurity skills while having fun with this free capture the flag event. 
tags: beginners, security, ctf, hacking
cover_image: https://thepracticaldev.s3.amazonaws.com/i/nktxyre24cwiiuiny167.jpeg
---

In light of the Holidays, [Security Innovation](https://www.securityinnovation.com/) has decided to open up their CTF platform for FREE until January 2nd!

### What is a CTF?
CTF stands for Capture the Flag. A capture the flag contest is a special kind of cybersecurity competition designed to challenge its participants to solve computer security problems by hacking into or defending computer systems. 

### What is so cool about Security Innovation's CTF?
CMD+CTRL, which is the name of Security Innovation's CTF platform, is GREAT for beginners. They give you a vulnerable website and you have to figure out how to hack into it and find vulnerabilities. This can be intimidating, especially if you have never done one of these before. No need to stress though, CMD+CTRL has you covered! When you login for the first time this is what you will see on your dashboard.

![](https://thepracticaldev.s3.amazonaws.com/i/izymf5oh1k27kpccjg79.png)

Notice the "HINTS" and "GUIDES" options. If you are new, head to the Guides section. 

![](https://thepracticaldev.s3.amazonaws.com/i/9cxdam57mkkbxspfwi12.png)

Here you will find lots of awesome resources to help you get started! The Cheat Sheet is probably the best page to check out first. This section will walk you through some hacks that you might want to try in order to find vulnerabilities. At the bottom of the Cheat Sheet, there is also a list of other tools you can use when you are hacking. 

The HINTS section can also be helpful, here you can trade points for hints that will tell you exactly where to find vulnerabilities on the site. Also, according to their website, they will be providing you with videos, tips and blog posts throughout the holidays to help you get ramped up quickly.

I obviously cannot share specifics with you otherwise that would defeat the purpose of the game. But, if you have some free time and want to try your hand at some hacking over the holidays I HIGHLY recommend trying this out! [REGISTER HERE](https://web.securityinnovation.com/hackingthroughtheholidays)

### Benefits
Besides just being fun, I found that after I did this CTF I started approaching code a bit differently. Now when I look at a PR or write code, my first thought is, How could I hack this? What if I changed the form input here, would we reject it appropriately? Doing a CTF is a great way to get your feet wet when it comes to thinking and learning about application security.


_I do not work for Security Innovation and I have not been encouraged in ANY way by them to write this post. I wrote this simply because of how awesome I think this CTF is for those who have never done one before. I learned a TON from it and I hope others can as well._
My First Contribution to Open Source In a While 
Tags: opensource, commonlisp
Published: 2018-12-22 21:04:39

---
title: My First Contribution to Open Source In a While 
published: true
description: 
tags: open-source, common-lisp
---

(Link to original article from my Medium page: https://medium.com/@shaffan1996/my-first-github-contribution-in-a-while-2aa1309683b4) 

I just created a pull request for a GitHub repository that introduces people to an obscure but fascinating programming language called Common Lisp. It’s fun to tinker around with because its a multi-paradigm programming language that allows you to approach and solve problems in many different ways. CL created many concepts that people use to solve programming problems all the time, such as first-class functions (functions that can take functions as arguments), a trick that’s becoming more and more common, seeing use today in Haskell and JavaScript. Also, it’s interpreted, so you can keep adjusting your code to experiment and make small changes to your code without having to run an entire program in one shot like Java. Being able to make changes on the fly makes programming a lot more fun and much less frustrating and time consuming!

It was only three lines of HTML, but it was something that was explicitly requested by the people at [Articulate Common Lisp](http://articulate-lisp.com/). It details how to install Steel Bank Common Lisp, a popular version of Lisp, in two quick steps. They have a bunch of cool material to help people get started writing cool stuff in Lisp.

Aside from Common Lisp, the main takeaway is that making contributions to open-source, is a really good step for your career as a programmer, even if it’s really small stuff like changing or adding a few words on a page! People who started out making small pull requests eventually can become maintainers for open-source software that thousands of people use every day. Give it a shot! You never know what small contribution today can have a big impact on yourself or somebody else tomorrow!

Feel free to leave feedback on this post. This is my first tech blog post, so I’ll accept gladly consider any suggestions to make this piece more interesting, relevant, or easier to understand!

Edit: A reader suggested that I provide a link to the actual pull request, so here it is: https://github.com/articulate-common-lisp/articulate-common-lisp.github.io/pull/67

Also, here is the link to the Common Lisp website: https://lisp-lang.org/
Installing Ubuntu 18.04 on Dell XPS laptops
Tags: ubuntu, nvidia
Published: 2018-12-22 20:37:14

About a month ago, I started a new job in St. Louis, Missouri. Upon arrival, I was given a Dell XPS 500 laptop for my dev machine. Immediately, I formatted the drive and installed Ubuntu 18.04. Well, I tried at least. When installing Ubuntu 18.04 (or any recent-ish version) on a Dell XPS laptop, there are a few special things you have to do first. This is due to the Nvidia graphics cards not playing well with Ubuntu.

After much trial and error, I finally figured out how to get Ubuntu to play well with Dell XPS laptops.

Follow these steps:

1. Disable Fast Boot and Secure Boot (or Secure loader) in the Bios.

2. Plug in the bootable USB with the Linux distro (mine was Ubuntu 18.04)

3. When you see the loader to "Install Ubuntu" etc ... press "e" and edit a line:
Replace `quiet splash` to `nomodeset` and press F10 to boot.

Then after the installation is complete, you will have to reboot.

4. This time you will need to load the GRUB menu, (Hold Shift after bios splash and before the OS logo shows up, if You see the logo, you're too late. Again, press "e" and edit a line:
In the line that starts with `linux`, add `nouveau.modeset=0` at the end of that line. (keep `nomodeset` from before)

5. After booting linux install the nvidia drivers.

Run `ubuntu-drivers devices`. We can see the current video card and the recommend driver. If you agree with that recommendation, run `sudo ubuntu-drivers autointsall`.
If you do not agree with the recommendation, you can install the individual driver by `sudo apt-get install nvidia-384`.

6. Reboot. And then it's done.


---
Originally posted at [tonyhammack.com](http://www.tonyhammack.com/blog/post/installing-ubuntu-18-04-on-dell-xps-laptops)
Lambda expressions
Tags: python, lambda, tutorial
Published: 2018-12-22 20:05:38

---
title: Lambda expressions
published: true
description: Lambda expressions a tutorial
tags: python, lambda, tutorial
---

The principal purpouse of this operator is declare anonymous functions(throw-away functions).

## General syntax

argument list : expression

## Examples

A typical example of lambda expressions is the use of arithmetic expressions but this operator can be used in a lot of situations


```python
f = lambda x, y: x + y
f(1,2)
# outPut : 3
```
```python
f = lambda x: x[0]
f([2,3,4,5,6,7])
# outPut : 2
```
```python
f = lambda x, y: x if x < y else y
f(1,2)
# outPut : 2
```
You can do a fast implement of tiny usefull functions, like len():

```python
size = lambda x : 1 + size(x[1:]) if x != [] else 0
size([1,2,3])
# outPut : 3
```
By itself, lambda operator is very useful, but we can seriously take advantage of it combining it with list/dict comprehension, maps, reduces and filters. In that case we will see the real power of this operator.
Tags, Anyone?
Tags: tags
Published: 2018-12-22 18:14:51

---
title: Tags, Anyone?
published: true
description: 
tags: #tags
---
It's come to the attention of the newly-appointed Tag Moderators (I have <code>#markdown</code>) that the [Top 100 Tags](https://dev.to/tags) page has "discoverability issues."

Discover away!
Permission to forget
Tags: memory, ideas, burnout, life
Published: 2018-12-22 18:07:40

---
title: Permission to forget
published: true
tags: memory, ideas, burnout, life
---

I am one of those people who get obsessed over ideas. Whenever I have a project idea, I can't stop thinking about it for days. For example, I know to the detail how I'd implement the logic to make Ship or Source work, how I'd design the landing and how I would market it. And that's before even starting to code.

This has had some effects on my life. There are times when I go to bed, then spend three hours thinking about projects before I finally fall asleep. It also makes concentrating on unrelated things (like school, for example) very difficult, and makes me unproductive for anything else than my idea.

I've recently found a solution to this problem. If I write down my idea immediately after it comes to my mind, I give my brain "permission to forget" my idea and I get to move on with some thoughts.

This is also true for coding. If you write down your ideas as you code instead of holding them in your head (for example, you see some code and think hmmm I should refactor this later. Instead of just remembering and keeping it in your head, write it down and come back to it later) you reduce mental effort, and may even reduce the possibility of burnout.
Propping components
Tags: react, props, propschildren
Published: 2018-12-22 16:59:27

---
title: Propping components
published: true
description: Learning to use React props for child component nesting.
tags: React, props, props.children
---

The most important thing is to pass data from parent component to children components using props. Also to customize how a component interacts/behaves or the looks/style of it.

The content inside a component’s tags can be called using props.children. This is used to place anything from text to jsx or even another component, which makes it a child component from another file.

Three parts of a Component 
Nesting: comp inside another comp
Create a new component but only import one react library and instead of rendering the component, export it using default followed by the name of the component.

Reusability: flexibility for multiple uses. few/simple components as possible
Do not forget to import the component at the top of the main index.js file and also calling the component using tags<component />

Configuration: props is used to configure a component
Use props as the first argument/parameter? Of the component function. Using dot notation to invoke the prop like an object call.
The prop goes after the component name like passing style or className as if it was and HTML/JSX tag. 

https://thepracticaldev.s3.amazonaws.com/i/spgxnfggv3sh8xlfyrjt.png

...justnotes
"Can't we just...?"
Tags: terminology, teamwork
Published: 2018-12-22 16:34:58

---
title: \"Can't we just...?\"
published: true
description: Maybe we could just not accidentally trivialise problems.
tags: terminology, teamwork
---

**Want to go to the moon?** _Just fly there_.
**Want to spend all of your free time doing whatever you like?** _Just quit your job_.
**Want to be in a band?** _Just start a band_.
**Want to write a blog post?** _Just write one_.
**Want to have steak for dinner?** _Just do it. Two minutes' work, done._

It's easy for most people to see why you can't _just_ fly to the moon, or _just_ quit your job. 

But you may be thinking that you can _just_ start a band. 

It's reasonable to just write a blog post.

And anyone can cook a steak, right?

People don't like having their achievements trivialised. So why are we quick to trivialise problems that we need to solve?

Perhaps it's misplaced optimism. But the word "just" is a quick way to trivialise someone else's workload, or the tasks you're asking them to complete. 

It's easy to accidentally increase someone's stress levels by telling them to "just do x". Consider these two questions: 

> _"Can you just write a blog post on service testing?"_

This tells the other person that you don't appreciate what you're asking them to do. 

> _"Can you produce a guide on service testing?"_ 

That's more like it. You'd never have asked Einstein to _just prove atomic theory_.


===

Further info: 

The thing that made me think more seriously about "just" and its over-representation within our language at work was Evan Czaplicki's fantastic Strangeloop talk earlier this year, about [the hard parts of open-source](https://www.youtube.com/watch?v=o_4EX4dPppA). I highly recommend giving it a watch.