teleren/devto huggingface dataset:
Producing content for technology with April Speight
Tags: career, journey, devchats, blogging
Published: 2019-11-24 02:03:33

---
title: Producing content for technology with April Speight
published: true
tags: career, journey, devchats,  blogging
canonical_url: https://www.samjarman.co.nz/blog/april-speight
---

_Dev Chats is back for season two! This is a series where I speak to an awesome developer or techie every week or so. You can read more [here](https://www.samjarman.co.nz/chats). Let me know if you know someone awesome I should chat to next._   


### Introduce yourself! Who are you? Where do you work?

My name is April and I am the CEO and founder of Vogue & Code - a platform created to help people with non-traditional backgrounds transition into the tech industry. I currently work for Microsoft as a Sr. Program Manager with Microsoft Docs helping to build interactive experiences for developers.

### Who or what got you into programming?

I studied linguistics in undergrad given my curiosity to know more about why people speak the way they speak. As I began to learn more about syntax, I developed an interest in computational linguistics. Post undergrad, I had a dream to become a computational linguist. I did a lot of research to see which programming language would help me reach that goal and I realized that Python was the answer. That honestly opened a world to AI chat bots - which is now my forte.

### How do you think the tech industry will change over the coming years, and how might that affect your role?

The more that people innovate, the more there will be a need to produce content for said technology. Both my professional job and side-business focus on generating technical content which happens to be a double win in my book.

### What has been your toughest lesson to learn in your software career so far?

There’s a lot to learn, therefore, it’s ok to take it slow.

### What would be your number one piece of advice for a successful software career?

Find your niche and stay current with relevant topics in your niche.

### Have you got any hobbies outside of your job? Do you think they help your tech career in any way?

I sew for fun and actually code for fun as well (as I do not do it professionally for my role with Microsoft). The sewing part is a far polar opposite compared to what I do for my job with Microsoft. However, my interest in coding helps a lot. I’ve done a good job at familiarizing myself with the developer community which has helped me develop a lot of empathy for developers.

### What books/resources would you recommend for others wanting to follow a path similar to yours?

Honestly, tech-based articles on Medium are a good start for getting the perspective of others. Although no two people walk the same exact path in tech, it’s nice to get an idea of what one might expect in addition to helpful advice.

Finally, make your shoutout! What would you like the readers to go have a look at?  
  
Go check out my website: www.vogueandcode.com

[Permalink](https://www.samjarman.co.nz/blog/april-speight)
Developing a GEM for use of Service Objects
Tags: showdev, ruby, rails, gem
Published: 2019-05-12 06:50:15

---
title: Developing a GEM for use of Service Objects
published: true
description: Developing a GEM for use of Service Objects
tags: showdev, ruby, rails, gem
---
>Service objects helps to keep your controllers and models slim and readable

###Simple example

* Before

```ruby
# app/controllers/post_releases_controller.rb
class PostReleasesController < ApplicationController

  # [...]

  def update
    @post.prepare_to_release                      # <--
    if @post.update(released_at: Date.current)    # <--
      redirect_to root_path
    else
      render :edit
    end
  end

  # [...]

end

```

* After

```ruby
# app/controllers/post_releases_controller.rb
class PostReleasesController < ApplicationController

  # [...]

  def update
    if ReleasePost.call(post: @post)    # <--
      redirect_to root_path
    else
      render :edit
    end
  end

  # [...]

end
```    

```ruby
# app/services/release_post.rb
class ReleasePost < ServiceIt::Base
  def perform
    @post.prepare_to_release
    @post.update(released_at: Date.current)
  end
end
```    

Feedbacks are most welcome!

Here's its **Github**: https://github.com/iago-silva/service_it
Create requirements.txt without pip freeze
Tags: python, pip
Published: 2019-05-12 04:43:25

---
title: Create requirements.txt without pip freeze 
published: true
description: create requirements.txt without pip freeze
tags: #python #pip
---

This is completely useless for people since we can use `pip freeze > requirements.txt` to create a requirements.txt lol 

But here is the code to do that without pip freeze command 

```python
import pkg_resources
OUTPUT_FILE = 'requirements.txt'
with open(OUTPUT_FILE, mode='w') as f:
    for dist in pkg_resources.working_set:
        requirement = dist.project_name + '==' + dist.version
        f.write(requirement + '\n')

```
ARM – Part 1: Azure Resource Manager
Tags: devops, arm, armtemplates, azure
Published: 2020-01-28 20:49:11

---
title: ARM – Part 1: Azure Resource Manager
published: true
date: 2019-05-12 03:53:57 UTC
tags: DevOps,arm,arm templates,azure
canonical_url: https://chrislayers.com/2019/05/11/arm-azure-resource-manager/
---

### The Journey Begins

I’ve been an azure developer for years. Originally I worked with “Classic Mode” and Cloud Services. Then I moved to ARM and Web Apps. Lately I’ve been doing DevOps but I only recently started working with ARM Termplates. First, let’s dive into a little history.

### History

Azure has grown and changed since it was first introduced. Originally, it was a research project called, “Project Red Dog”. Azure has been commercially available since 2010. For four years, there was a limited way to interact with Azure, ASM the Azure Service Manager.

#### The Old Thing (Classic Mode) – ASM Azure Service Manager

The big problem with ASM was that all the resources were disconnected and separate. If you had multiple things you were creating, you had to keep track of them, create them in the right order, and make sure you deleted them all when things were removed. You were also limited in capabilities, like policies, tagging, and security. I remember the deployment scripts that you would write to check if things existed, poll when they got created, and you would have to keep tweaking to get it to run properly. Powershell was the language and script of choice.

#### The New Thing – ARM Azure Resource Manager

ARM was released in 2014. ARM is a great change. Instead of writing scripts to poll and make sure things were created, you can deploy and manage resources as a group. It opens the door for repeated deployments and templates. It lets you define the deployment order and apply tags and policies. You can still write Powershell, the but there are new modules for ARM (Azure-RM\*). But you can also use Azure CLI, Rest APIs and client SDKs. I will definitely be diving into the Azure CLI in the future. Right now, the part I’m loving, is that I can define my infrastructure as code.

#### ARM Templates

ARM Templates are amazing. I plan on diving deep into this over the next few blog posts. But what is awesome is that I can have my project source code and the infrastructure it runs on checked into the same repo. Those files can then be built and deployed together. I can continuously deploy my environment and the deployment can apply the differences as needed. Microsoft has some great documentation on [ARM Templates](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-authoring-templates). They also have a great quickstart resource: [Azure Quickstart Template](https://azure.microsoft.com/en-us/resources/templates/). I’ll be diving into those topics next time in [part 2](https://chrislayers.com/2019/05/13/arm-part-2-azure-quickstart-templates/).
Undoing unwanted commits on Git
Tags: git
Published: 2019-06-23 01:27:25

---
title: Undoing unwanted commits on Git
published: true
tags: git
canonical_url: https://nahuelhds.dev/git/2019/05/12/Undoing-unwanted-commits-on-Git.html
---

I’m sure that once in a while, it just happens that you made a mistake. That’s ok. It happens.

But what if you commit the mistake. Several times. A headache for sure and so many other horrible things as well.

For those cases, I really recommend giving a read to [On undoing, fixing, or removing commits in git](http://sethrobertson.github.com/GitFixUm/). A document made by Seth Robertson.

It contains lot of resources for very incredible situations. I read it sometimes and it helps me out many others.

---

More at [my technical blog](https://nahuelhds.dev)
Why I Chose Ubuntu As My Operating System Of Choice ?
Tags: operatingsystem, ubuntu
Published: 2019-05-12 01:27:37

---
title: Why I Chose Ubuntu As My Operating System Of Choice ?
published: true
description: thoughts on choosing an Operating System
tags: #operating_system #Ubuntu
---
I was a Windows user. The first time I saw a computer, I saw Windows XP. When I purchased a laptop, It has Windows 7 pre-installed. After more than 2 years of using Windows operating system, I heard about other operating systems. What? Is there a computer doesn't run Windows?

I am not CS or studied any related topics yet. I started to read online about Mac OS X then I searched about "operating systems".. and it is shocking to me!

How many operating systems out there??? I was thinking of only Windows!!!

I started to think of how operating systems work? And how programs are written?.. those ideas kept me at night.

I watched too many of YouTube videos and a lot of blog posts. I started to watch programming tutorials, design tutorials, photoshop tutorials, after effects tutorials, html tutorials, css tutorials, javascript tutorials.. I kept watching too many crash courses and tutorials online on any subject related to computers and programming.

After two years of this chaos, I realized that I want to be a programmer. Programmers think first then try or experiment in a sandbox or virtual machine before apply things in the real world. So I tried Kali Linux, Ubuntu, Linux Mint, and too many distos,trying also Mac OS on a Macbook, and obviously I tried Windows XP/7/10.

I loved Mac OS, but I felt that it is not mine.. it is Apple's. I had mixed feelings towards Windows.. it is a mess. I struggled with the chaos of Linux distributions. I decided to get Ubuntu as my OS of choice. Ubuntu is stable and beautiful.

Ubuntu fits all my needs. I program in Go, PHP, Java, Kotlin, Javascript, and some other languages. It is great for development. I am not a gamer. I surf the web, read blogs, watch YouTube, code Android Apps, code websites, ..etc. I feel that Ubuntu is mine and I can make or break anything.

From that day, I self-studied bash, Linux networking, Linux design and architecture, .. etc

It is my learning land. I kept learning about operating systems, programming languages, virtual machines, containers like docker, UNIX commands, Internet, networking, .. and a lot of chaos things about all tech things.

I love Ubuntu and use it as my only operating system of choice. I can use and fix Windows or Mac laptops but mine is Ubuntu Linux 💜
Laravel make view
Tags: laravel
Published: 2019-05-12 01:01:44

`php artisan make:command MakeViewCommand`


App
 Console
 Commands
    
Replace
[MakeViewCommand.php](https://github.com/Alicannklc/Laravel-make-view/blob/master/app/Console/Commands/MakeViewCommand.php)

[Gist Url](https://gist.github.com/umefarooq/ebc617dbf88260db1448)

### Creating views
```bash
# Create a view 'home.blade.php' in the default directory
php artisan make:view home

# Create a view 'home.blade.php' in a subdirectory ('pages')
php artisan make:view pages.home

```

[Demo](https://github.com/Alicannklc/Laravel-make-view)
Keep a github/gitlab fork up-to-date
Tags: git
Published: 2020-06-09 14:37:43

---
title: Keep a github/gitlab fork up-to-date
published: true
date: 2019-05-12 00:00:00 UTC
tags: git
canonical_url: https://statnmap.com/2019-05-12-keep-github-gitlab-fork-up-to-date/
---

Developers in the R-community are open to any kind of help in the development of their packages. You can open issues but also propose some pull/merge requests to improve code and/or documentation. But once you have forked the main repository, how can you be sure to work on the last version of the code ? Let’s see a few lines of code to keep your forks up-to-date.Manage your forks If you forked a github or gitlab repository to propose pull/merge requests, you may need to work on the last updated version of the original repository.

See more: [Keep a github/gitlab fork up-to-date](https://statnmap.com/2019-05-12-keep-github-gitlab-fork-up-to-date/)
Jenkins Pipeline as Code
Tags: jenkins, pipelineascode, jenkinsfile
Published: 2019-05-12 00:00:00

---
title: Jenkins Pipeline as Code
published: true
date: 2019-05-12 00:00:00 UTC
tags: jenkins,pipeline as code,jenkinsfile
canonical_url: https://rharshad.com/jenkins-pipeline-as-code/
---

Originally published at [rharshad.com](https://rharshad.com/jenkins-pipeline-as-code/)

[Jenkins Pipeline](https://jenkins.io/doc/book/pipeline-as-code/) is a suite of plugins which supports implementing and integrating continuous delivery pipelines into Jenkins.

## Need for Jenkins Pipeline as Code

Over time, Jenkins, like most other self-hosted CI/CD tools resulted in:

* Accumulation/tendency to create vast number of jobs
* Hard and costly maintenance
* Heavy reliance on UI
* Lack of powerful ways to specify conditional logic

## Features of Pipeline as Code

* Pipelines are implemented as code and typically checked into source control, serving as a single source of truth enabling the team members to edit, review, and iterate upon their pipeline.

* Pipelines can optionally stop and wait for human input or approval before continuing the Pipeline run.

* Pipelines support complex real-world requirements
    * Conditional executions
    * Chaining jobs
    * Linear/Complex flows

* The Pipeline plugin supports custom extensions to its DSL and multiple options for integration with other plugins.

https://imgur.com/WshehVd

## Pipeline Autocompletion in IntelliJ

To enable code completion follow below steps:

1. Download Pipeline GDSL (http://(yourjenkinsurl)/job/(yourpipelinejob)/pipeline-syntax/gdsl) from your jenkins.
2. Add [Groovy SDK support](https://www.bonusbits.com/wiki/HowTo:Add_Groovy_SDK_to_IntelliJ_IDEA)  to Intellij.
3. Place the GDSL file inside `src` directory of your project and mark the `src` folder as `Sources Root`.
4. Open the GDSL file. Now, IntelliJ will show a message `DSL descriptor file has been changed and isn't currently executed.`. Click `Activate`.
5. Now create your `.groovy` jenkins file and write the code, auto completion will work.

##  Snippet Generator

You can also generate snippets of code for the pipeline steps using the `Snippet Generator` feature available in Jenkins (http://(yourjenkinsurl)/job/(yourpipelinejob)/pipeline-syntax/) which you can then make use of in your pipeline.

[![](https://rharshad.com/assets/img/2018/05/jenkins-snippet-generator.png)](https://rharshad.com/assets/img/2018/05/jenkins-snippet-generator.png)

## Replay

Replay feature allows you to test your pipeline code without having to commit the changes to your Repo. Once you have tested the code you can then push your changes.

[![](https://rharshad.com/assets/img/2018/05/jenkins-replay.png)](https://rharshad.com/assets/img/2018/05/jenkins-replay.png)

## Jenkins Declarative Pipeline Example

{% gist https://gist.github.com/HarshadRanganathan/97feed7f91b7ae542c994393447f3db4.js %}

## References

<https://www.cloudbees.com/blog/need-jenkins-pipeline>
Useful Raspberry Pi Tips
Tags: raspberrypi
Published: 2018-10-11 13:42:27

---
title: Useful Raspberry Pi Tips
published: true
description: Here a few tips to help you with your Raspberry Pi
tags: raspberrypi
---

Here are a few tips to help you get the most out of your Raspberry Pi. 

# Updating Raspbian OS
To update Raspbian, you can run these two commands from Terminal:

    sudo apt-get update
    sudo apt-get dist-upgrade


# Transferring Files to Raspberry Pi
By default, there is an SFTP server installed on the Pi but you'll have to enable it using the Pi Configuration screen to enable SSH. Once enabled, you can connect to it using any SFTP client (I use ForkLift on Mac). You'll need to know the IP address of the Raspberry Pi on your network and the username and password that you created when you initially installed Raspbian (by default, it's 'pi' and 'raspberry' respectively).

# Connecting to Raspberry Pi via Shell
You can also use ssh without any Pi configuration. Start ssh with a command such as this from the Terminal on Mac or Linux:

    ssh pi@10.0.1.194

and then enter your password ('raspberry' by default). You'll now be connected to the Pi in a terminal window. Here you can easily run Xojo console apps that you've transferred using SFTP.

*Note: Windows doesn't have ssh already available. You'll want to [install PuTTY](https://www.putty.org) or on newer versions of Windows 10 [enable its SSH Client](https://www.howtogeek.com/336775/how-to-enable-and-use-windows-10s-built-in-ssh-commands/).*

# Connecting to Raspberry Pi via VNC
VNC (aka Remote Desktop) allows you to view the desktop of the Pi and interact with it using your mouse from you primary Windows/Mac/Linux computer. This is useful for testing apps, but it can also be helpful to more easily access configuration screens or use the Pi in some other fashion.

The Pi has a VNC server built-in but you may need to enable it. Go to the Pi Configuration (Pi menu->Preferences->Raspberry Pi Configuration) where you should see a radio button to enable VNC.

![](https://dzf8vqv24eqhg.cloudfront.net/userfiles/1539/2321/ckfinder/images/rconf.png?dc=201612011414-102)

You can connect to the Pi using any VNC client. Here are some suggestions:

* [RealVNC](https://www.realvnc.com/en/connect/download/viewer/)
* Mac Screen Sharing
  * Finder, Go ↠ Connect to Server, vnc://10.0.1.194:5901 (substitute your own IP address and port)
* [Tight VNC](http://www.tightvnc.com/)

# Make Your Own Programs
Want to make your own programs for the Pi? Then check out [Xojo Dojo](https://dev.to/lefebvre/xojo-dojo---free-and-easy-way-to-program-raspberry-pi-44ga) -- it's great for learning how to make simple programs on the Pi. Or if you need full-featured apps check out [Xojo](), which makes native console, desktop and web apps that can run on the Pi.
Organizing Projects on Github
Tags: help
Published: 2019-05-11 22:42:35

Hi guys! 

I am in need of some advice 😃. I have not been in the habit of posting my personal projects to GitHub, but it's something that I am excited to start doing! I just don't know how to approach the organization of my projects. I have many Java projects that I would like to push, as well as some React projects. How do you recommend organizing your GitHub for different projects?
alert('Hello world!');
Tags: introduction, beginners
Published: 2019-05-11 22:38:10

---
title: alert('Hello world!');
published: true
description: Introductory post for Nathan Englert
tags: #introduction, #beginner
---

Hey everybody, I’m Nathan. I discovered this site recently and love the content that everyone is putting out. I’m not a writer, but it is something I’ve been interested in trying. Hopefully I can bring some value to your already excellent community!

###About me
I am a software engineer in the retail industry. Programming is a passion of mine and I’ve been doing it professionally for about 10 years now. I specialize in web development and love using C# and JavaScript to solve problems. Recently, I’ve been messing around with Unity3D and game development in my free time.   

###Find me
You can find me out on the webz here:
* Twitter  [@nathanenglert](https://twitter.com/nathanenglert)
* Instagram  [@nathanenglert](https://www.instagram.com/nathanenglert/)
* Website  [nathanenglert.com](https://nathanenglert.com)
Bitbucket Pipelines & The SoapClient
Tags: php, docker, bitbucket, git
Published: 2019-05-11 19:32:06

---
title: Bitbucket Pipelines & The SoapClient
published: true
description: A simple way to add the SoapClient to the generic PHP docker image
tags: php, docker, bitbucket, git
cover_image: https://thepracticaldev.s3.amazonaws.com/i/xmjd3uf52odg810dleq3.png
---


<h2>Hello, World!</h2>
This is my first post on the Dev community and it's just a quick little trick that I feel may help others!

I'm a big lover of BitBucket pipelines and for a lot of Laravel Projects I can just use the generic PHP docker image however, this doesn't include the one thing I needed for one project which is the SoapClient. The reason I need the SoapClient in Pipelines is because PHPUnit runs tests against a WSDL API to ensure that we don't get garbage back and that the API and parser client is working correctly.

<h4>The Snippet</h4>
```yaml
- apt-get update -y && apt-get install -y libxml2-dev && apt-get clean -y && docker-php-ext-install soap  
```
All you need to do is add the above snippet into your <b>bitbucket-pipelines.yml</b> file under <b>script:</b>! It really is that simple! Your PHP docker image will then have access to the PHP SoapClient.
Introduction of myself and my blog thoughts-on-cpp.com
Tags: introduction
Published: 2019-05-11 19:29:44

---
title: Introduction of myself and my blog thoughts-on-cpp.com
published: true
description: Me, myself and thoughts-on-cpp.com
cover_image: https://thepracticaldev.s3.amazonaws.com/i/oe2e73l39gh8cqlzm9tc.jpg
tags: #introduction
---

Hello everyone,
I was told it would be nice to introduce myself..... hmmm well how shall I do that.
OK, I'm a C++/Qt software developer (with a background in mechanical engineering) and head of software development at [KISSsoft AG](https://www.kisssoft.ch/english/home/index.php) in Switzerland. We are producing a leading calculation and design software for mechanical engineering, especially transmission gearboxes. I'm mainly focusing on the development of numerical calculations for contact pattern analysis of gearboxes, but also responsible for the development infrastructure and leading the development team.

In my spare time, I'm writing on my blog [thoughts-on-cpp.com](https://thoughts-on-cpp.com) about programming and software development in general. I'm mostly focusing on topics such as implementations of numerical methods. I would be happy if you sign up and follow my blog.

You can also reach me via:
 -  [GitHub](https://github.com/ben1980)
 -  [Twitter](https://twitter.com/@benmahr)
 -  [Facebook](https://www.facebook.com/benmahr1980/)
 -  [LinkedIn](https://www.linkedin.com/in/benjamin-mahr-728a1639/)

Best regards,
Ben