teleren/devto huggingface dataset:
Standing on the Shoulders of Giants
Tags: windows, net, powershell
Published: 2018-08-20 18:13:12

---
title: Standing on the Shoulders of Giants
published: true
description: Using PowerShell to learn about C#
tags: Windows, .NET, C#, PowerShell
---
I've always had an affinity for the Windows development platform.  In the past I've written a plugin for SQLServer Management Studio and some PowerShell cmdlets for a storage platform.  My main work has always been predominantly writing Java and Python.

Recently I had an <ahem> opportunity to use my corporate Windows 10 laptop more often.  Since I read all of the rave reviews about Visual Studio Code, I thought I'd reawaken my Windows development environment.

Just like any skill we acquire, if we don't use it and keep the skills sharp, then the skills become dull.  But just like muscle memory, our brains quickly remember the skills that were once second nature.  I have this relationship with PowerShell.  I'll never be able to get over the lack of Vim keybindings but I'm always pleasantly (re)surprised at the capabilities of PowerShell.  It truly blows the doors off text-based shells.  Sorry Linux.

Part of my current reawakening led me to a new technique that I wanted to share with you all.  The problem I faced was *"I know I have a function defined to do this but I wonder what the code is behind the function?"* Then I stumbled across **Get-Content function:FunctionName**.  While this is cool, it is really just a way to remember about code that I've written in the past.  The technique becomes much more powerful when it's pointed to the content written by pros.  

A simple demonstration of this lay with New-Guid.  Let's take a look at the result when we run *Get-Content function:New-Guid*.

```
PS [hci-monitor] > Get-Content Function:\New-Guid

    [CmdletBinding(HelpURI='https://go.microsoft.com/fwlink/?LinkId=526920')]
        [OutputType([System.Guid])]
    Param()

    Begin
    {
        [Guid]::NewGuid()
    }
```
As you see, this is a bit of C# that implements the Cmdlet interface.  It has a pointer to documentation and arguably a (small formatting) bug since the OutputType decorator is indented too far.  The function simply returns a new Guid object.  I don't think the Linux folks really appreciate that this Guid isn't the text you want but a full fledged object you can forward, associate and (of course) get a text representation.

This is just a simple example.  Have a look at something more complicated like *Update-IscsiTargetPortal*.  Now you can inspect this code to get a better idea about how the pro's at Microsoft accomplish a non-trivial task.  This is how you sharpen your PowerShell skills and stand on the shoulders of giants.

Until next time...
MIGRATE YOUR SHOP FROM SHOPIFY TO BIGCOMMERCE STEP BY STEP GUIDE
Tags: shopify, bigcommerce, migratetobigcommerce, shopifytobigcommerce
Published: 2018-08-20 21:52:59

---
title: MIGRATE YOUR SHOP FROM SHOPIFY TO BIGCOMMERCE STEP BY STEP GUIDE
published: True
description: The natural next step for expanding is to migrate your Bigcommerce shop to Shopify. Continue reading How to Migrate Your Shop from Bigcommerce to Shopify (Step-by-Step)
tags: Shopify, BigCommerce, Migrate to BigCommerce, Shopify to BigCommerce
---

![MIGRATE YOUR SHOP FROM SHOPIFY TO BIGCOMMERCE STEP BY STEP GUIDE](https://thepracticaldev.s3.amazonaws.com/i/17ylhrdr8pzgtml885aq.png)

Many businesses want to migrate their online store from Shopify to BigCommerce, but they’re not sure of what that entails. BigCommerce offers a service that helps migrate certain aspects of client sites to their platform. To get a more complete migration, you may want to consider moving yourself or with the help of a [BigCommerce SEO expert](http://www.big-commerce.com/what-we-do/).

If you’re looking for a comprehensive checklist that reviews every aspect of the migration, read on!
Explain Certificates Like I'm Five
Tags: explainlikeimfive
Published: 2018-08-20 21:34:20

---
title: Explain Certificates Like I'm Five
published: true
tags: explainlikeimfive
---

Wondering about the difference between certificates, private keys, and public keys and what the general model is for being able to offload most of that work to keychain or some other automated "code signing" entity
Change the way you log with LogChimp 🐵
Tags: changelog, productupdates, opensource, logchimp
Published: 2018-08-20 20:20:40

---
title: Change the way you log with LogChimp 🐵
published: true
description: Keep customers in the loop about your product with LogChimp
tags: changelog, product updates, open-source, logchimp
cover_image: https://i.imgur.com/Tk3Vv21.png
canonical_url: https://blog.codecarrot.net/logchimp-a-new-way-to-changelog/
---

> Keep customers in the loop ➰ about your product with LogChimp.

# Description

[LogChimp](https://logchimp.now.sh/) by [CodeCarrot](https://www.codecarrot.net/) is modern way to create changelog for your product, no need to learn any language or tool to use it, it's just like publishing a blog.

[![LogChimp website screenshot](https://thepracticaldev.s3.amazonaws.com/i/p21qsi2ro2et4tnihfus.png)](https://logchimp.now.sh/)

At the core it is powered 🌟 by [Jekyll](https://jekyllrb.com) and [LogChimp default theme](https://rubygems.org/gems/logchimp) and the awesome 👓 part is, it's free and open-source.

# Features

* 🆓 Free and Open Source
* 🎀 Branding
* 👨‍👨‍👧‍👧 Team management
* 🌈 Permalinked changelogs
* 📂 Markdown supported
* 📛 Badges
* 📅 Relative date
* 🤖 Scheduled publishing
* 📰 RSS feeds
* ✅ Tested
* 🔨 Maintained
* ✨ more features _(coming soon)_

# Why?

You must have created a `changelog.md` file in your repository which looks quite boring 💤 or the the GitHub releases...

![Old way of changelog](https://thepracticaldev.s3.amazonaws.com/i/0g02j46nhy3u7h6zrmco.gif)

Now let's see 😲 how it looks like with LogChimp

[![Jasper Logchimp changelog](https://thepracticaldev.s3.amazonaws.com/i/4kki5jtinm6g37fn2flz.gif)](https://mittalyashu.gitlab.io/jasper-changelog/)

# How to get started?

It's time to ditch `changelog.md` files and get started with LogChimp by cloning this repository.

```ssh
git clone https://gitlab.com/codecarrot/logchimp/logchimp-starter-kit
cd logchimp-starter-kit
bundle exec jekyll serve
```

and you are good to go 🔰.

# Links

1. Website: https://logchimp.now.sh/
2. Demo: https://mittalyashu.gitlab.io/jasper-changelog/
3. LogChimp Starter kit: https://gitlab.com/codecarrot/logchimp/logchimp-starter-kit

_This blog is originally published at [CodeCarrot Blogs](https://blog.codecarrot.net/logchimp-a-new-way-to-changelog/)_
Symphony CMS
Tags: php, xml, xslt, mysql
Published: 2018-08-20 17:34:22

---
title: Symphony CMS
published: True
description: Symphony is a PHP & MySQL based CMS that utilises XML and XSLT as its core technologies. This repository represents version 2.7.7 and is considered stable.
tags: PHP, XML, XSLT, Mysql.
---
Have you gotten advice against something and then done that thing all the time?
Tags: discuss, career, advice, tips
Published: 2018-08-20 20:12:15

---
title: Have you gotten advice against something and then done that thing all the time?
published: true
description: He said "don't flip the bozo bit," so now I think of the bozo bit every time I flip it...
cover_image: https://thepracticaldev.s3.amazonaws.com/i/2zfevos8dmfsz51z5ve6.jpg
tags: discuss, career, advice, tips
---

In *Dynamics of Software Development*, something I haven't read, Jim McCarthy gives a list of rules to deal with interpersonal and political relationships in software. One of these is "Don't Flip the Bozo Bit," cautioning us all against completely shutting down our relationship with someone we work with. Even if we don't like them, they may still have an idea worthy of consideration, so disregarding all of their professional contributions is weakening the team arbitrarily.

But here's the thing... "flip the bozo bit" is such an evocative term that I use it all the time. It so succinctly describes when I absolutely have come across people in public (*not* work!) ridiculous enough that the only way to cope is to flip that bozo bit and ignore them.

Have you ever gotten advice against something that ultimately put words to something you do, so maybe you do it more?

Positive outcomes preferred, of course, haha.
Easy maintenance mode with nginx
Tags: linux, devops, nginx
Published: 2020-12-27 21:20:37

---
title: Easy maintenance mode with nginx
published: true
tags: linux,devops,nginx
canonical_url: 
---

So I combined a few solutions I found online to come up with a quick way to set up maintenance mode using nginx. Ideally it shouldn’t happen but in times of emergency in can be good to knock up a quick maintenance page for everyone but your own internal ips.

### Nginx Config

So here’s the configuration I use for nginx, it starts with setting the internal ips of your company in the main nginx config file. Then in the actual vhost, you can set it to watch for the existence of a maintenance\_on.html and when it exists, throw a 503 and use the maintenance page as your 503 error page.

{% gist https://gist.github.com/shano/004f4a5c2542c93b2e8e0ac454da2b5d %}

### How to use

By default I have the file named as maintenance\_off.html, so it’s only a simple move operation to turn on maintenance mode. For the content of my maintenance file, I generally use this self-contained static html file to serve out a message to customers.

{% gist https://gist.github.com/pitch-gist/2999707 %}

**Note** : Any sort of conditionals going on on your web server is likely to slow things down by a few milliseconds. Again you’re asking your web server to check against network and the disk per request, then make a decision, so bear this in mind before implementing a solution like this.

* * *
Perl is Perl
Tags: perl, conference, perl6
Published: 2018-08-20 18:28:58

---
title: Perl is Perl
published: true
description: On The Perl Conference in Glasgow
tags: perl, conference, perl6
---
![This is not an actual image of Perl](https://thepracticaldev.s3.amazonaws.com/i/5vkev2bn9prms8thl1wa.jpg)
What are conferences for?
Everyone has a different objective when attending a technical conference. Some people are interesting in finding a job, or finding future employees. Some are willing to add a line to their resume, or learn interesting tidbits, or just meet face to face with people they've interacted online.
I really don't know why I go. I guess I just enjoy it.
But, in this case, I wanted to see what is Perl. 
I'll tell you something. I was doing Perl stand duty during FOSDEM, and someone came up to me and asked, just a bit tongue-in-cheek: "Perl? Is that still a thing?"
For some people, Perl might be like that sad teddy bear in an abandoned franchise in Glasgow. Something that made people happy for some time, but now it's mostly forgotten. Only they don't say that in so many words: they talk about the [Stackoverfow survey](https://www.theregister.co.uk/2017/10/31/perl_most_hated_language/), the [TIOBE index](https://www.tiobe.com/tiobe-index/perl/) or the [IEEE ranking](https://spectrum.ieee.org/at-work/innovation/the-2018-top-programming-languages).
So you might expect people not going to conferences or running away from what looks like a dumpster fire, but doing the kind of things you do in August. Which, in my case, is standing the heat and not bearing with a constant 50% chance of rain in Glasgow. 
![Fire and dumpster](https://thepracticaldev.s3.amazonaws.com/i/b8i7c43wk3bs733ulfhw.jpg)
Surprise! There were lots of people in this particular conference, first-time attendants as well as others that have been there all along. Including [Larry Wall](https://en.wikipedia.org/wiki/Larry_Wall), who created the language and coordinated the effort to take it forward in the shape of [Perl 6](https://perl6.org).

> This is resulting longish than I expected. But look at the pictures!

After reading above, you might think that most talks were a bit like this:
![Interesting, if a bit quaint](https://thepracticaldev.s3.amazonaws.com/i/7scxehuvvivf4vgdnj7k.jpg)

And, in fact, there was at least [one talk going in that direction](http://act.perlconference.org/tpc-2018-glasgow/talk/7328)

> I didn't attend that one, although I do have a huge codebase to maintain myself.

As a matter of fact, they were more like this
![Singing to the clouds](https://thepracticaldev.s3.amazonaws.com/i/raof494l91iqtteqovpa.jpg)

Enthusiastic, passionate, maybe a bit crazy, but of the good kind. Some of them even matched the attire. Most talks were about pushing Perl and Perl 6 technology forward to new applications or in new directions. About expressing yourself using the technology. And about using languages to get people together as a community.

In a picture, Perl is like this plush toy.

![Camelia](https://thepracticaldev.s3.amazonaws.com/i/qjzj10r5xgiiyc14yfbx.jpg)

And in a word: Perl is Perl.
Running a method as a background process in Python
Tags: python, thread, multithreading
Published: 2018-08-20 16:31:41

---
title: Running a method as a background process in Python
published: true
description: Running a method as a background process in Python
tags: python, thread, multi_threading
---


Below a little code snippet for running class methods as background threads in Python. The run() method does some work forever and in this use case you want it to do that in the background. while the rest of the application continues it’s work.

```python
import time

import threading


class TestThreading(object):
    def __init__(self, interval=1):
        self.interval = interval

        thread = threading.Thread(target=self.run, args=())
        thread.daemon = True
        thread.start()

    def run(self):
        while True:
            # More statements comes here
            print(datetime.datetime.now().__str__() + ' : Start task in the background')

            time.sleep(self.interval)

tr = TestThreading()
time.sleep(1)
print(datetime.datetime.now().__str__() + ' : First output')
time.sleep(2)
print(datetime.datetime.now().__str__() + ' : Second output')

```

## Below is Output:
> 2018-08-18 13:39:59.021000 : Start task in the background
> 2018-08-18 13:40:00.036000 : First output
> 2018-08-18 13:40:00.036000 : Start task in the background
> 2018-08-18 13:40:01.036000 : Start task in the background
> 2018-08-18 13:40:02.036000 : Second output
Something I Learned Today: Using `git diff` and `git log -u` to see changes in a file between commit
Tags: learning, git
Published: 2018-08-20 16:15:07

---
title: Something I Learned Today: Using `git diff` and `git log -u` to see changes in a file between commit
published: true
description: Leveraging git commands to contribute more sensible commits to my team.
tags: learning, git 
---
## Problem

I have to make changes to a template file, but on my current branch I was working with the database. So I want to make a new branch just for the Template updates, but need to double check that I didn’t make a change to that file in the commit history of the separate branch

## Resources

- [Stack Overflow: using `git diff`](https://stackoverflow.com/a/3338145)
- [Stack Overflow: using `git log -u`](https://stackoverflow.com/a/3338901)

## Findings

- `<commit_0>..<commit_1>` is shorthand for checking the differences between two commits, not to be confused with...
- `<commit_0>...<commit_1>` - with three dots - which also covers all the commits _between_ the two commits inclusively. Two dots simply compares one with another.
- And you can also exclude one of the commit references, and it will fall back as if `HEAD` were used as the value instead. Oh, and you can just use `HEAD`

## Further Research

- It appears you can do stuff like `HEAD^^` and `HEAD~2`, but I don’t know what that means yet 😬
Module Monday 9: Masonry gallery, Side-scroll cards, Dark contact form & more
Tags: showdev, opensource, webdev, javascript
Published: 2018-08-20 16:12:44

---
title: Module Monday 9: Masonry gallery, Side-scroll cards, Dark contact form & more
published: true
description: Module Monday 9
tags: showdev, opensource, webdev, javascript
cover_image: https://res.cloudinary.com/component/image/upload/v1534527770/masonry_aec3rh.png
canonical_url: https://guide.anymod.com/module-monday/09.html
---
## Open-source code & features for any website or web app

Each Monday I post free, open-source mods you can use for quickly adding features to your website or web app.

Everything below is open source and free to use in any project you choose. [Anymod](https://anymod.com) is a service that lets you build & add features like these easily.

Click a mod to see it in action along with its source code.

### Masonry gallery
Automatically sized gallery based on your custom images.
<a href="https://anymod.com/mod/lramn?v=20" class="button" style="padding: 7px 20px;">View mod</a>
<a href="https://anymod.com/mod/lramn?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1534527770/masonry_aec3rh.png"/>
</a>

### Side-scroll cards
Display a series of cards with sideways scroll built in.
<a href="https://anymod.com/mod/annbb?v=20" class="button">View mod</a>
<a href="https://anymod.com/mod/annbb?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1534546474/sidescroll_y48ive.gif"/>
</a>

### Dark contact form
Stylish contact form that works automatically.
<a href="https://anymod.com/mod/dbbak?v=20" class="button">View mod</a>
<a href="https://anymod.com/mod/dbbak?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1534629012/dark-form_thjxtl.png"/>
</a>

### Content accordion
Add custom headings & content to this collapsible element.
<a href="https://anymod.com/mod/onkoo?v=20" class="button">View mod</a>
<a href="https://anymod.com/mod/onkoo?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1534546473/accordion_bxlqqx.png"/>
</a>

### Dropdown menu
Editable Material Design dropdown for impressive navigation.
<a href="https://anymod.com/mod/nmmdo?v=20" class="button">View mod</a>
<a href="https://anymod.com/mod/nmmdo?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1534631165/dropdown_emfshb.gif"/>
</a>

<hr>

[Anymod](https://anymod.com) supports developers and open source, and Module Mondays are one way we give back to the developer community to help foster a more open, inclusive web.

I post new modules [here](https://dev.to/tyrw) every Monday -- I hope you find them useful!

Happy coding ✌️
A free React conference that anyone in the world can attend
Tags: javascript, react, conference
Published: 2018-08-20 16:03:56

---
title: A free React conference that anyone in the world can attend
published: true
description: Announcing Byteconf React, a free React conference streamed on Twitch
tags: javascript, react, reactjs, conference
---

Hey dev.to! I wanted to let everyone know about a project I've been working on over the last couple months. You may have seen it on Twitter or other places, but I haven't mentioned it on this platform -- as a community of developers learning about React and JavaScript, it seems like a perfect fit. 

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

**Byteconf React is a free, one-day React conference hosted on Twitch, for anyone and everyone to attend. It takes place on August 31, 2018.**

Our speakers include Kent C. Dodds, Tracy Lee, Kyle Shevlin, and more! Make sure to check out the full schedule at [our website](https://byteconf.com).

One more thing that I think might appeal to the dev.to crowd: we're building a community of developers around Byteconf - Byteconf React is just the first in a planned series of free conferences. If you dig the project and want to support us, consider joining the Discord. It's a live chat where we talk about JavaScript, React, and more.

[Join us on the Discord!](https://byteconf.com/discord)
"Git" more than one branch
Tags: git, protip
Published: 2018-08-20 15:57:26

---
title: "Git" more than one branch
published: true
description: How to checkout 2 branches at the same time.
tags: git,pro-tip
cover_image: https://thepracticaldev.s3.amazonaws.com/i/vdwvohycvtfs7vh1ob9v.png
---

At a previous job I had to review my coworkers code and continue developing a feature.  For that I used to just checkout a whole new clone of the project in a `review/` folder.  From there I could safely review the code locally.

Now I'm working on a large rewrite.  This time I need to review how the current system operates.  Here is an alternative way to do that:

```bash
# git worktree add <path> [<branch>]
git worktree add legacy develop
```

If you `cd` to legacy, your git commands will be in the context of that branch.  A nice pro-tip to keep in your back pocket!
Stylq
Tags: stylq, html, javascript, webdev
Published: 2018-08-20 15:56:07


title: Stylq
published: true
description: Stylq is the cool syntax HTML Preprocessor. Stylq will allow user to make HTML file more easily. Stlyq is the Rich Syntax file to generator HTML file in the easy way. Stylq is the easy readable and writable.

Usage and Example
```
  var stylq = require('stylq');

  stylq.process('sample.stylq');
```
To Send to another location
```
  stylq.processAndSend('sample.stylq','targetFileName.html');
```
Here is the sample file that is given as input.
```
 //sample.stylq

  html{
    head{
      title{
        The Title of the Page
      }
    }
    body{
      h1{
        This is header
      }
      p id="paragraph-id"{
        This is paragraph
      }
      h2 style="color: blue;" id="heading-line"{
        The Multi attributes
      }
    }
  }
```

[NPM] (https://www.npmjs.com/package/stylq)
[Yarn] (https://yarnpkg.com/en/package/stylq)
tags: #js #stylq #webdev #html
Javascript framework to jump from AngularJS?    
Tags: javascript, angular
Published: 2018-08-20 15:35:48

---
title: Javascript framework to jump from AngularJS?    
published: true
description: Looking for some opinion as to which fw to choose coming from an AngularJS background
tags: javascript,angularjs
---

So I have some AngularJS experience, in particular using the AngularUI libraries like UI-route. I did a nice succesfull project for a previous company were I implemented a shopfloor app for the production floor. 
Now I'm looking for new challenges and some side gigs that allow me to do some extra income, so anyone that can suggest to me the best option for a framework to start now? right now not sure to choose between React and Angular (obviously) so please any comment will be greatly apreciated.