teleren/devto huggingface dataset:
Sending an email from Powershell using send-mailmessage and Gmail
Tags: powershell, email, windows, automation
Published: 2020-09-12 12:58:24

---
title: Sending an email from Powershell using send-mailmessage and Gmail
published: true
date: 2018-10-04 00:00:00 UTC
tags: [powershell, email, windows, automation]
canonical_url: https://mrpowerscripts.com/sending-an-email-from-powershell/
---

I made this video about sending an email from Powershell about five years ago. I didn’t think much of it at the time, but I used my actual email address in the example of the video. This resulted in people copy/pasting the example including my email and sending me all of their test emails. I’ve really loved it! 

The script below will show how to use send-mailmessage with Gmail to send emails from Powershell.

You never think that something as simple as sending an email from Powershell could be interesting to so many people. I didn’t think so at the time. Since that video has existed I’ve received “test” emails from people all over the world working at lots of different companies. Big and small. Governments and non-profits. It’s hard to imagine how sharing something so simple can impact so many people. If you want to bug me as well here’s the code itself:

```
$MyEmail = "PlayingWithPowershell@gmail.com"
$SMTP= "smtp.gmail.com"
$To = "PlayingWithPowershell@gmail.com"
$Subject = "BRO!"
$Body = "WHAT UP MR.POWERSCRIPTS?"
$Creds = (Get-Credential -Credential "$MyEmail")

Start-Sleep 2

Send-MailMessage -To $to -From $MyEmail -Subject $Subject -Body $Body -SmtpServer $SMTP -Credential $Creds -UseSsl -Port 587 -DeliveryNotificationOption never

<#
$PSEmailServer variable can be used to pre-configure the
SMTP server in your Powershell Profile. Then you don't need
to specify -smtpserver paramter. Send-MailMessage will use the
SMTP sever address assigned to $PSEmailServer
Delivery Notification Options:
-- None: No notification.
-- OnSuccess: Notify if the delivery is successful.
-- OnFailure: Notify if the delivery is unsuccessful.
-- Delay: Notify if the delivery is delayed.
-- Never: Never notify.
#>

```

Make sure that you go to [https://myaccount.google.com/security](https://myaccount.google.com/security) and scroll all the way to the bottom to toggle on “Allow less secure apps” if you want to try this with your Gmail account like in the video example. You can toggle it back off once you’ve finished screwing around.

I’ll usually reply when I have time. With something like “Congratulations! It Worked!”. 99% of the time I never hear a reply back. But once in a while, I’ll get further requests for support. Which I don’t reply to 99% of the time. Y’all know how to use Google like I do.
Rails 6 to include new Action Text framework
Tags: ruby, rails, discuss, news
Published: 2018-10-04 01:22:23

---
title: Rails 6 to include new Action Text framework
published: true
tags: ruby, rails, discuss, news
---

News in the Rails world. DHH [just announced](https://weblog.rubyonrails.org/2018/10/30/introducing-action-text-for-rails-6/) that the Rails team is working towards bringing [Trix, the rich text editor from Basecamp](https://trix-editor.org/), into Rails applications by default as [Action Text](https://github.com/rails/actiontext).

In a video, he showed quickly how to get started with Action Text by building a blog with a rich text area. This shows off some other things coming to Rails 6, like the default use of webpacker. Action Text hooks closely into [Active Storage](https://edgeguides.rubyonrails.org/active_storage_overview.html) which was only new in Rails 5.2. Take a look at the video and see what you think:

{% youtube HJZ9TnKrt7Q %}

Is this something you're excited to see in Rails? Have you had a need for rich text and struggled to use something that works well? Will this get you to install the edge version of Rails to try it out?

What do you think?
What is your best advice for a junior software developer?
Tags: discuss, beginners, codenewbie
Published: 2018-10-04 00:54:02

---
title: What is your best advice for a junior software developer?
published: true
description: What is your best advice for a junior software developer?
tags: discuss, beginners, codenewbie
---

We were all juniors at some time, and in the spirit of sharing here: what's some good advice for junior developers?

What things would you like to tell yourself when you were a junior?
Philomath is making progress.
Tags: feedback, contribute, github, opensource
Published: 2018-10-04 00:29:23

---
title: Philomath is making progress.
published: true
description: 
tags: feedback,contribute,github,opensource
cover_image: 
---

{% github  https://github.com/arasheedu/philomath %}

I have been at work on this weekend project and has made quite a bit of progress. Posting update looking for some feedback. Creating the installer, updating the README etc. are in progress.

Thanks!
Vecty with Vue.js style templating
Tags: go, webassembly, vue, devlog
Published: 2018-10-04 00:05:32

---
title: Vecty with Vue.js style templating
published: true
description: I wanted to see if I could get Vecty to compile to WebAssembly and it turns out the work Brian Ketelesen has been doing worked immediately. So I started the next step... taking my Vue.js style templating and making it work on top of Vecty. The result is pretty badass.
tags: golang, WebAssembly, Vue, devlog
---

As you may recall, I recently made a quick prototype of a frontend framework in Go using WebAssembly. However, the next steps involved writing quite a bit of code to actually generate and reconsile DOM changes. After studying what [Vecty](https://github.com/gopherjs/vecty) did, I decided I should try and use Vecty myself and see how it goes. Instead of using Vecty as made for GopherJS, today I was going to get it working compiled to WebAssembly.

Luckily, it seems good old [Brian Ketelsen](https://brianketelsen.com/) got the ball rolling. He started a fork of Vecty that does exactly what I theorized you could do. We talked on Twitter and on stream for a bit and he showed me his markdown demo project based on his Vecty fork. Sure enough, I ran it and it worked. That was my whole plan for the day! 

So I decided to stumble on to the next thing I wanted to try with Vecty: Reimplement my Vue.js style templating, but which spits out Vecty objects. This would let you replace building HTML and rendering components with all these function helpers. 

Slowly but surely I worked through all the cases in this markdown demo example: string interpolation, attribute bindings, event handlers, and component elements. Unfortunately I didn't get to a point where the whole PageView component was rendered with a single template, but I just ran out of time. 

Already this is really cool and feels really good. I'm going to keep working on this template system, which by the way is an optional drop-in library. No forking or modifying of Vecty was necessary. I'm going to keep building on Vecty for as long as I can.

{% youtube 7svQTQklPds %}
Starship LCARS!
Tags: codenewbie, sinatra, startrek, ruby
Published: 2018-10-03 23:16:13

---
title: Starship LCARS!
published: true
tags: code-newbie,sinatra,star-trek,ruby
canonical_url: 
---

For my Sinatra portfolio project, I made an app for the various ficticious intelligence agencies in the Star Trek universe, based on the database they often use, called LCARS (Library Computer Access/Retrieval System).

In my little non-canonical version of this world, all the intelligence agencies share information =] But of course, each agent has control over their own record (editing and deleting). This app is devoted to keeping records of all warp-capable vessels, including sub-class, top speeds, and crew complement.

### Some small things I’m proud of in this project:

- I experimented with flash messages! Everywhere!
- Used conditional formatting in a view so that logged in users don’t see the login and sign up buttons
- I made a custom 404 page (as a bonus it kept my own morale up as I worked on the app! No more of that “Sinatra doesn’t know this ditty…”
- Custom favicon
- consulted with my resident expert for the theme and terminology throughout

And remember: infinite diversity in infinite combinations [❤](http://memory-alpha.wikia.com/wiki/IDIC)

[Check out the repo on GitHub](https://github.com/ddhogan/starship-LCARS)

[Try it out, here](https://starship-lcars.herokuapp.com/) Deploying to Heroku is another part that I’m pleased to have accomplished, with the help of another [blog post](http://lucaskisabeth.com/2017/06/24/deploying_your_sqlite3_sinatra_app_to_heroku_using_postgresql/)

[Or watch the tour](https://youtu.be/1ajGLaZdd4Q)

_Originally published at_ [_donnacodes.com_](http://donnacodes.com/starship_lcars) _on October 12, 2017._
Rails Portfolio Project
Tags: rails, codenewbie, startrektng
Published: 2018-10-03 23:19:39

---
title: Rails Portfolio Project
published: true
tags: ruby-on-rails,code-newbie,star-trek-tng
canonical_url: 
---

This Rails portfolio project borrows the theme from my Sinatra project, but is rebuilt from scratch to have nested resources, more complex relationships, and more features. My Sinatra project was only for CRUDing starships. This project has two models (`Crew` and `Ships`) that have a bi-directional `has_many_through` association via Assignments, which acts as the join table, and can be thought of as one particular crew person’s role on one particular ship. This schema gives us easy access to listing all the crew member’s assigned to a ship, or where are crew member is currently assigned. Sounds so reasonable!

Quick tip: when generating seed data for users with `has_secure_password` through BCrypt, make the `password_digest` attribute equal to `BCrypt::Password.create('someString')`, and then you can use `someString` to log in when you’re testing your app!

Also, forms are more than just a pretty face! Rails form helpers sometimes makes me forget that the form dictates the structure of the params hash. At first I had checkboxes for crew people in the new assignments form, but kept getting an error message about the `crew_id` not existing (which it totally did), but as soon as I switched to a drop down menu the problem was solved. Makes sense in retrospect since an assignment only has room for one `crew_id`, so checkboxes make no sense in that context, and set the params hash up incorrectly.

Check out the [GitHub repo](https://github.com/ddhogan/starfleeter), or my [video](https://youtu.be/STRKKznhV9Y) walk-through !

_Originally published at_ [_donnacodes.com_](http://donnacodes.com/rails_portfolio_project) _on December 2, 2017._
Discuss: How to decrease the Tech Gap in a Team
Tags: discuss, devs, team
Published: 2018-10-03 21:47:26

---
title: Discuss: How to decrease the Tech Gap in a Team
published: true
description: 
tags: discuss,devs,team 
---


I have participated in a group of groups oriented to the
continuous improvement within software development, but never
I have faced eliminating the technical gap of a team.

What actions do you believe (or have you done), to decrease
the technical gap in a team?

I have some ideas, like: 
    - Pair Programming (Incluiding Mob)
    - Teach good developer practices
    - Practice / Practice / Practice

I currently have a couple of equipment to level, where the difference
is very well known, for which to do a kind of initial analysis
I plan to do a Skill Matrix and from there start to see
what is necessary.

I appreciate any idea
PyCharm vs Visual Studio Code to boost Productivity?
Tags: discuss, help, python, productivity
Published: 2018-10-03 20:52:21

---
title: PyCharm vs Visual Studio Code to boost Productivity?
published: true
description: Using Visual Studio Code and PyCharm to boost productivity
tags: discuss, help, python, productivity
---

As far I know we can do almost everything in both Visual Studio Code and PyCharm.
But which one is the best that boost your Python Productivity?
Intern Talks
Tags: talks
Published: 2021-01-11 00:51:37

---
title: Intern Talks
published: true
date: 2018-10-03 20:47:32 UTC
tags: Talks,talks
canonical_url: https://jamienordmeyer.net/2018/10/03/intern-talks/
---

I’m releasing the slides and code for a couple of talks that I put together for the developer interns that I worked with this last year.  They’re being released under the MIT License, so feel free to copy them, modify them, and use them as you see fit.  They provided the interns that I worked with with value, so I’m hoping that others can get value from them as well.  If you have any suggestions for improvements, let me know!

The first talk, titled  **Interviewing Fundamentals – How to be an Interview Rockstar** , discusses my beliefs on what constitutes a good, solid resume, as well as what you should avoid.  There are several examples of good and bad resumes for reference included in the slide deck.

The talk then moves on to discuss how to prepare for the interview, how to nail the interview itself, and what to do in the hours and days following the interview.  For those interested, the slide deck can be found here: [https://drive.google.com/open?id=1zU1Kvvh-hpGDnVXp8L675D1QW0-klIOJBB5kWRZu0YQ](https://drive.google.com/open?id=1zU1Kvvh-hpGDnVXp8L675D1QW0-klIOJBB5kWRZu0YQ).

The second talk, titled  **Object Oriented Fundamentals – How to be SOLID** , discusses established best practices when doing object oriented programming, including DRY, Law of Demeter, etc., and of course, the SOLID principles.  The code for this talk can be found here: [https://github.com/StaticSphere/oop-fundamentals](https://github.com/StaticSphere/oop-fundamentals), and the slide deck can be found here: [https://drive.google.com/open?id=1DhobIXtyPRhccJiObR6PVP9SO8hui4VW147U3lrCgcY](https://drive.google.com/open?id=1DhobIXtyPRhccJiObR6PVP9SO8hui4VW147U3lrCgcY)

Again, please let me know if you have any suggestions on how to improve on these talks, or if you use them, and found value with them!
Comparison of cold starts for different serverless providers
Tags: serverless, aws, azure, coldstart
Published: 2018-10-03 20:39:27

---
title: Comparison of cold starts for different serverless providers
published: true
description: 
tags: serverless, aws, azure, cold start
---

Interesting article which compares how long different functions-as-a-service back-ends perform when starting up a server to handle a function request after a long idle period with no calls: https://mikhail.io/2018/08/serverless-cold-start-war/

Comparisons are done not only between AWS, Google, and Azure, but also looking at different languages for the functions, different memory requirements and even different numbers of packages for JavaScript functions. Good comparison!
Launching my own newsletter
Tags: javascript, frontend, node, newsletters
Published: 2018-10-03 20:27:55

---
title: Launching my own newsletter
published: true
description: Launching my own newsletter about JavaScript and Frontend stuff
cover_image: https://thepracticaldev.s3.amazonaws.com/i/zhojf9xcabihxiiegg3c.png
tags: javascript, frontend, nodejs, newsletters
---

Hi, there, Dev.to community!

It's been a while since I did not post anything here. I want to announce that I am starting my own newsletters "JSinDEV", that will serve selected content around the web about JavaScript, FrontEnd and related stuff that will be useful to read.

If you haven't subscribed yet, feel free to subscribe at my [website](https://aibolik.github.io) - there is a form at the bottom. 

![JSinDEV weekly newsletters](https://thepracticaldev.s3.amazonaws.com/i/wxxpw3o91gaz90w25q8w.png)

P.S. Hey, I recently launched my website/blog, so if you want to follow along my path and see what I do, follow [my twitter](https://twitter.com/aibolik_) to be on track of what I am doing.

Thanks,

Have a nice day
Tabulator 4.0 - Interactive JavaScript Tables Made Easy
Tags: tables, grid, data, datatables
Published: 2018-10-03 20:04:15

---
title: Tabulator 4.0 - Interactive JavaScript Tables Made Easy
published: true
description: Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript Array, AJAX data source or JSON formatted data
tags: tables, grid, data, datatables
cover_image: https://thepracticaldev.s3.amazonaws.com/i/r7pd974vpihpvcv8bkhj.png
---

[Tabulator](http://tabulator.info) is an open source, JavaScript library that allows you to create interactive tables in seconds from any HTML Table, JavaScript Array, AJAX data source or JSON formatted data.

It is completely free to use and as of the recently released version 4.0 its core functionality is now completely dependency free.

Once you have included the library in your project it takes a matter of minutes to configure your table and you are good to go.

{% codepen https://codepen.io/olifolkerd/pen/KGzpQN %}

Tabulator supports all major frontend frameworks and is packed full of useful features including:
- Sorting
- Filtering
- Editing
- Formatting
- Selection
- Styling
- Data Mutation
- Responsive Layouts
- Downloads and Exports
- Localization
- and much much more...

The website is full of examples and documentation and the GitHub repo has an active community of users ready to help answer your questions
[Video] The State of the Web Survey with Jess and Ben
Tags: community, sotwsurvey, webdev
Published: 2018-10-03 19:58:25

---
title: [Video] The State of the Web Survey with Jess and Ben
published: true
description: In this video I chat with Jess and Ben  to discuss the results of the State of the Web developer survey.
tags: community, sotwsurvey, webdev
---

In this video I chat with @Jess and @Ben to discuss the [results of the State of the Web developer survey](https://dev.to/ben/final-thoughts-on-the-state-of-the-web-survey-44nn).
{% youtube Ixl79QNRRvs %}
Dynamic Dockerfile with ARG
Tags: docker, dockerfile, arg, buildarg
Published: 2018-10-03 19:12:40

---
title: Dynamic Dockerfile with ARG
published: true
description: Making your Dockerfile dynamic using build arguments
tags: Docker, Dockerfile, ARG, build-arg
---

Sometimes you have a need for a dynamic Dockerfile. For example, you are running a microservice the requires different API calls per environment: dev, staging and production. If your service depends on environment variables to make a distinction of which API to call you usually set those in the Dockerfile using the:
```
ENV environment=production
```
That's all fine, however, what do we do if `environment` needs to change based on the build destination? You would have to manually update the Dockerfile before each build.

We can use the ARG variable instead and update the value of `environment` ad build time. Consider the following:

```
ARG environment
ENV environment=${environment:-production} // set a default in case the ARG isn't passed
```

What we've done above is declared a build argument `environment`, then used that value to populate the ENV variable environment in the Docker build image. Consider the following build command:
```
docker build -t myTag --build-arg environment=staging
``` 
In this case we first take the value of the build argument, than pass its value down to the ENV variable so that it will evaluate to "staging". However if we don't specify the build arguments and simply run:
```
docker build -t myTag
```
Then the value of `ENV environment` will be "production" as we've set for our default value.

This helps immensely when you have more than 2 environments to build to and have to support different server side renders or API calls that are tightly coupled with those environments.


For more details checkout [Docker docs](https://docs.docker.com/engine/reference/builder/#using-arg-variables)

Thanks!
La carta más alta – card game in PHP and HTML (December 2005)
Tags: game, cards, php, gamedev
Published: 2018-10-03 18:09:57

---
title: La carta más alta – card game in PHP and HTML (December 2005)
published: true
tags: game,cards,PHP,game development
canonical_url: 
---

“La carta más alta” is an open source card game made with PHP, HTML and a little bit of CSS. It was created on 19th December 2005 (approximately).

![Screenshot](http://www.dhtmlgames.com/lcma/lcma.gif)

It is in Spanish language and will work in any web browser, even without CSS support.

The game is minimalist and it doesn’t use any image at all but only text created with pure HTML and tables. So you will be able to play it in a text-based browser too, such as Links and Lynx.

This cross-platform and cross-browser game has been tested under BeOS, Linux, NetBSD, OpenBSD, FreeBSD, Windows, Mac OS X, QNX, BlackBerry Tablet OS, Android, iOS and others.

Play online: [http://lcma.tuxfamily.org/lcma\_spanish/](http://lcma.tuxfamily.org/lcma_spanish/)

Play online (mirror): [http://www.dhtmlgames.com/lcma/lcma\_spanish/](http://www.dhtmlgames.com/lcma/lcma_spanish/)

Official web site: [http://lcma.tuxfamily.org/](http://lcma.tuxfamily.org/) (mirror at [http://www.dhtmlgames.com/lcma/](http://www.dhtmlgames.com/lcma/)).

It can also be found on GitHub: [https://github.com/jalbam/lcma](https://github.com/jalbam/lcma)
Ship everything to production! Thanks for coming to my TED talk.
Tags: humor, agile, funny, video
Published: 2018-10-03 17:50:29

---
title: Ship everything to production! Thanks for coming to my TED talk.
published: true
description: Agile is the new waterfall.
tags: humor, agile, funny, video
---

This is too funny not to share.  You **have** to watch this with sound on.  Obviously, what is said is not what the subtitles reflect, but you have to see to believe.

Enjoy!

{% youtube 5p8wTOr8AbU %}
Hello World Rebooted 💡
Tags: hacktoberfest, opensource
Published: 2018-10-03 17:34:58

---
title: Hello World Rebooted 💡
published: true
description: In how many ways you can say Hello World?
tags: Hacktoberfest, Open Source
cover_image: https://static1.squarespace.com/static/50c3cb30e4b07bafe6aea618/t/56c9334059827e3fd85147cd/1456026446282/
---

So, most of us try to remain skilled in more than one language...let's say possibly 4 to 5 languages and the first program we try to write in any language is none other than **Hello World**.

In search of how I can learn to write Hello World in as many language possible, I decided to search the web for various languages, but it is really a Herculian Task to search for as many as possible, but then Open-Source come handy. For the currently ongoing **Hacktoberfest**, I decided let's make newcomer's do it themselves. Created a repo with Hactoberfest tag, and Boom💥💥💥

In less than 24 hours, repo has 53 Hello Worlds(Yes, You heard it right) in differnet languages. Repo also conatins short information about every language. I know there are still plaenty of languages out there, but 53 by any meance is not a small number.

It will be great if you can contribute to the project by any of the following ways:
1. You can improve code quality by adding comments to already available codes.
2. You can add short langauge informations in README file.
3. And yes, you can (and must 😎) add any new language you know.

{% github Omkar-Ajnadkar/Hello-World %}

**Note:** Be sure to check Hello World in **WhiteSpace** language (HelloWorld.ws) and comment what do you think...