teleren/devto huggingface dataset:
Azure Bastion
Tags: azure, bastion, rdp, remote
Published: 2020-02-17 03:23:49

Azure Bastion service provides Remote Desktop in browser over SSL port (443). It comes handy if your corporate network is blocking the RDP ports (3389 or 22 for SSH). 
## Step 1.
First create a *Bastion* service
![image01](https://github.com/mkokabi/images/blob/master/Bastion/image01.png?raw=true)
![image02](https://github.com/mkokabi/images/blob/master/Bastion/image02.png?
raw=true)
For resource group and instance name you can chose anything
![image03](https://github.com/mkokabi/images/blob/master/Bastion/image03.png?raw=true)
The important settings are for *vnet* and *subnet* then hit *Create new* on the *Virtual Network*
![image04](https://github.com/mkokabi/images/blob/master/Bastion/image04.png?raw=true)
The subnet should be *AzureBastionSubnet* and its IP range should be /27 (or smaller range like /28)
![image05](https://github.com/mkokabi/images/blob/master/Bastion/image05.png?raw=true)
Make sure there is also a default subnet
![image07](https://github.com/mkokabi/images/blob/master/Bastion/image07.png?raw=true)
Now, when you are creating the VM, you should select the *Bastion* VNet.
![image08](https://github.com/mkokabi/images/blob/master/Bastion/image08.png?raw=true)

Now when you try to connect to your VMs, go to the last tab *Bastion* 
![image06](https://github.com/mkokabi/images/blob/master/Bastion/image06.png?raw=true)
and you would see a remote desktop session would open in your browser.
Coding better with ESLint + Gulp
Tags: eslint, gulp, javascript
Published: 2020-02-17 02:52:10

Yo, there!

If you don’t lint your javascript code yet, you must start doing it right now!

Let me share how to setup `ESLint` alongside with `Gulp` to improve the quality of your Javascript code, reduce the chances of you find stupid bugs on your apps, and make your life easier. 😉

This content was originally posted [here](https://medium.com/abtz/eslint-gulp-coding-better-7aeab6cc34af).

I am assuming here you already have your project up and running with Gulp, so what I am gonna tell you is how to attach ESLint on it. However, ESLint can be used with `Webpack`, `Parcel` and any other bundler (or task manager, as Gulp) out there.

1- First, let’s add the `gulp-eslint` and other needed modules to your `package.json` by running the following code in a terminal window:

```sh
$ npm i -D gulp-eslint 
$ npm i -D eslint-config-airbnb-base eslint-plugin-import
```

2- Then let’s create a ESLint setting file to your project. Touch a file called `.eslintrc` to the root folder of your project:

```sh
$ touch .eslintrc 
$ nano .eslintrc
```

And add the following instructions on it:

```json
{
  "extends": ["airbnb-base"]
}
```

Or, you may rather get the one [I am using](https://gist.github.com/rogeriotaques/20ea6c5689a35f4cd30434045d1de0eb).

3- The next step is creating a gulp task for ESLint. Open the `Gulpfile.js` from your project and write the following block of code there:

```js
// The lint task
gulp.task('lint', function() {
  return gulp    
    // Define the source files
    .src('src/**/*.js').pipe(eslint({}))
    // Output the results in the console
    .pipe(eslint.format());
});

// The default task
// You might have one already, in that case, just add ['lint']
gulp.task('default', ['lint']);
```

Good, good! It is done. 🙌

Now, once you have all settings done, you can already start checking your code lint reports, basically outputted in the terminal where you’re running Gulp.

Happy coding. 🤟
Convert CSV File to Coldfusion Query Object using ColdFusion & opencsv (Java)
Tags: coldfusion, cfml, java, csv
Published: 2020-02-17 02:13:45

I encountered some problems with ColdFusion 8/9/10 reading a CSV file that was created using Excel. The only solution that worked involved using [opencsv](http://opencsv.sourceforge.net/), a Java parsing library. Here's the CFML code that I used to convert the results (a 2 dimensional array) to a ColdFusion query. (NOTE: OpenCSV is also the best solution if your Excel file has multi-line data in columns.)

{% gist https://gist.github.com/JamoCA/6062864 %}

_**NOTE:** This is a Tumblr repost from 2013._
Using jQuery to Fix Background & Foreground Color Contrast Automatically
Tags: a11y, color, jquery
Published: 2020-02-17 02:01:16


I encountered a problem with some email-compatible HTML (ie, inline w/old school BGCOLOR parameters) that was being displayed on a website.  The background/foreground colors were perfect for the lowest-denomination/compatible email message, but the website's CSS caused the text to be completely unreadable (black text on black background & white text on light grey background.)

The problems I encountered were due to:

- The table didn't have an ID.
- No CSS classes were being used in the markup.
- I didn't have any control over the color scheme that the content was to be displayed on.
- I wasn't generating the HTML being added to the webpage.


I needed to find a one-size-fits-all solution.  I discovered the [fixColors() jQuery plugin](https://github.com/markandey/fixColors.js).  I added a DIV around the HTML and called it using `$('#orderHTML').fixColors();` and all of my ["Section 508" color contrast](https://www.ssa.gov/accessibility/checklists/word2010/colorAndContrast.htm#collapsible=highColorCompliance) issues went away.

## fixColors() jQuery plugin

{% github markandey/fixColors.js %}


Another jQuery plugin for color contast is **colorcontrast**, but you may encounter some issues. (It hasn’t been updated since 2011.)
https://github.com/joggink/jquery-colorcontrast](https://github.com/joggink/jquery-colorcontrast)

## jquery-colorcontrast

{% github joggink/jquery-colorcontrast %}
Discussion: What is The Best Hosting Out There? And What is Your Favorite?
Tags: webdev, react, beginners, javascript
Published: 2020-02-17 01:55:11

I am finally getting to working on my website where I can talk about my experience with astrophotography. I have been putting it off for a while for a few reasons, and the main reason being that living in the northeastern US you don't always get nice weather in winter and I don't think I am up for spending nights outside in the cold taking multiples of long exposures of the night sky... 🪐

So, today I created a simple coming soon page and for now I am hosting it on Heroku. Once I am done with my web app, I am going to host it, so I can show off my photography and bring astrophotographers like myself together. 

But... my question is, what is the best hosting out there? What is your favorite and why?
JPEGmini Quality Test (using Image Comparer)
Tags: jpegmini, jpeg
Published: 2020-02-17 01:46:00

I downloaded the sample photos from [JPEGmini.com](https://www.jpegmini.com/) and compared them using [Image Comparer](https://www.bolidesoft.com/imagecomparer.html).

## The Results

All optimized images were identified as duplicates and were 99% similar. (The differences are highlighted in the image.)  Other than the minor 1% visual difference, the 4 JPEGmini optimized images only took up 4Mb storage spaces (compared to 19.4Mb.)

![JPEGmini artificates (very minimal)](https://dev-to-uploads.s3.amazonaws.com/i/5td686fsu2lcwi5b20mh.png)
Free AbleBit Apps for Microsoft Excel
Tags: excel
Published: 2020-02-17 01:35:59


These Microsoft Excel apps from [AbleBits.com](https://www.ablebits.com/) are extremely beneficial.

![Excel Apps from AbleBits](https://dev-to-uploads.s3.amazonaws.com/i/8inpaic8y7xx12ao8ema.png)

## Trim Spaces

https://appsource.microsoft.com/en-us/product/office/WA103651566

Extra spaces can creep in when you get data from different sources. These extra spaces might prevent you from sorting, processing data, making calculations or creating charts. You can clear the cells of leading, trailing, or other excess spaces by following a few simple steps.

-----------------------

## Random Generator

https://appsource.microsoft.com/en-us/product/office/WA103982219

The Random Generator app for Excel populates the selected cells with random integers, reals, and dates.

-----------------------

## Random Sorter

https://appsource.microsoft.com/en-us/product/office/WA103985973

This randomizing app for Excel 2013 lets you shuffle entire rows and columns without losing data integrity. You can also mix cells within rows or columns, or put all selected cells at random. When you need to put names in random order or mix sequential numbers, this app makes your choice unbiased.

-----------------------

## Remove Unwanted Characters

https://appsource.microsoft.com/en-us/product/office/WA103982221

Remove Unwanted Characters app goes through the selected Excel range and takes out all impeding characters according to your settings. You can clean your table of all non-printing characters and line breaks. Easily delete special mathematical, currency and letter-like symbols, punctuation marks, and any custom character you enter.

-----------------------

## Change Case

https://appsource.microsoft.com/en-us/product/office/WA103982217

If you get Excel tables from different sources, your data are likely to be discordant. You can run the Change Case app to make all cells look right at once; upper, lower, proper-case and first letter in each cell.

-----------------------

## Merge Cells

https://appsource.microsoft.com/en-us/product/office/WA104036095

This simple yet powerful app allows you to merge the contents of the cells in your Excel 2013 table any way you like. Feel free to combine values in each row, column, or bring all values in the range together. You can enter a delimiter for the merged values and choose where you want to have the results.

-----------------------

## Range Calculations

https://appsource.microsoft.com/en-us/product/office/WA103996219

The Range Calculation app comes in very handy when you need to recalculate numbers in many cells. Ranges and tables of prices are easy to handle: divide, multiply, add and calculate percentage in the entire range by clicking the "Calculate" button.
Angular - the learning story
Tags: angular, webdev, tutorial
Published: 2020-02-17 01:32:21

Earlier at the start of my career, I've been started working in Web technologies.

When I started my career, my first one year period tasks were to work on the front end technologies.

I've have started learning jquery to work on the project. Then it extended to knockoutjs and Durandal framework.

The learning curve was very difficult at first as a newbie.

Later I got an opportunity to work on a new subproject which going to be built on top of angular.

My teammates believed that I could learn ii quickly and join the process of building new products.

I was fascinated by learning angular. And also my team got some buffer time to do that. I was never running in a hurry to capture something.

First, I learned the basic concepts and then started working on the project.

Later, I started to learn advanced concepts and performance optimization related things.

It was angular js version 1.0

Then upgraded their version, it is a complete rewrite of version 1.0

Again I started learning angular, now the version 2.0

The good thing is when I completed the basic concepts. Coincidently I got another new project contribution chance. And I started with collaborating with team members from different location of the world - US and UK

Okay, I'm from the ancient southern part of India.

For the developer, learning is a never-ending process. Happy to learn every day.

And angular 9 released recently, I'm experimenting and learning the new features.

I should definitely thank all the online courses and community which helped me in all these years.

## Giving back

As a giving back to the community, I used to [talk to local communities](https://efficientuser.com/talks/) about technologies.

But people want me to provide more focused content or tutorial on angular.

So I have planned to contribute back to the community via step by step angular tutorial for beginners.

I just started with an action plan and listed the basic things to cover

{% youtube S_ze-DgSOGo %}

I wish to complete it. Wish me good luck and support.

[Dev.to](http://dev.to) helps me to stay motivated!
Running Locust on Azure
Tags: python, testing, azure, webdev
Published: 2020-02-17 01:25:23

If you are a developer that works in a field where you are asked to create or maintain REST API as your daily job, you'll surely have found yourself in the need of testing API performance at some point. I've found a very nice and simple tool to do that: [Locust](https://locust.io/).

![Locust Running On Azure](https://dev-to-uploads.s3.amazonaws.com/i/nds5bdoxaky5q0og1ulz.png)

Locust has several nice features that I really like:
1. Support distributed deployment. You can create a lot of clients, all managed by a single master, to general a lot of test calls. 
1. Python-based. The code to test target API is plain Python, all in one file ("locustfile.py"), with some specific objects made available by Locust to make life easier. I really like that.
1. A single locust file can host more than one test, and each test can have its own weight so that you can exactly decide how to distribute workload
1. Has a nice user interface that clearly shows Request Per Seconds over time and, in case, Exceptions and Failures
1. Works very well with Docker and can be dockerized in less than 150 Megabytes

In order to use Locust in Azure in the simplest and easiest way possble, I've create a docker image on Docker Hub:

https://hub.docker.com/repository/docker/yorek/locustio

As I really wanted some really easy and simple to use, I decided to go for [Azure Container Instances](https://azure.microsoft.com/en-us/services/container-instances/), and the repo with the script code to deploy Locust is available here:

https://github.com/yorek/locust-on-azure

If you are more inclined to use a more complex but more complete container orchestrator, of course Kubernetes could be better option. 
In the mentioned repo, the script will take care of everything needed to run Locust on Azure:
1. create a storage account to host to locust file
1. create a storage share for the locust file
1. upload the locust file
1. deploy the master locust and the desired clients in Azure Container Instances
1. configure master and clients correctly
1. run the locust swarm

Easy and nice, I can now run test for stability and performance my API.
Javascript version of ColdFusion CFDump
Tags: coldfusion, cfml, javascript, debugging
Published: 2020-02-17 01:09:55

> The Dump method is based on one of the tags available in Coldfusion &lt;cfdump&gt; providing the ability to display simple and complex variables in a user friendly way that is perfect for debugging/inspecting data.

Some environments don't allow for CFDump or maybe you want to inspect a javascript object and aren't able to use the browser of your choice. This JavaScript method "[Dump()](https://gist.github.com/JamoCA/54d8f74d8fb4074a9368aec26a87d381)" from 2006 allows you to "CFDump" javascript objects.

## Server-Side Example

```
<cfoutput>
<script>
var t = #serializeJson(server)#;
dump(t);
</script>
</cfoutput>
```

## Source Code

{% gist https://gist.github.com/JamoCA/54d8f74d8fb4074a9368aec26a87d381  %}

_**NOTE:** This is a 6/21/2013 repost from my Tumblr blog._
What Good are you doing? 
Published: 2020-02-17 00:14:40

Your definition of good shouldn't be help those who help you alone or love your neighbors as you love yourself, you should be able to make a comprehensive difference between what you feel is good and what is actually good. Eric Douglas said, *"you shouldn't make a choice for what you feel is good over what is actually good for you"*. If you are to make a great impact, you need to examine what you do, how you do it, and who are you doing it for. **"people will tell two stories about you, so endeavor to make both stories good ones"**. Know that good thing you're doing and who you're doing it for. Doing good requires great effort and patience, doing good requires strong will and desire. If you're faced with a dillema, consider what will be the consequences of the choice you are about to make and what chances will it be that you wont make a wrong choice. **"it is not about how good you are, it is what good are you doing"**, don't do good all because someone told you to, don't do good because you want people to recognize you, **do good at the expense of your own will and desire to do so, and do it not for accolades but for the joy of it**
Project #5: Naming Tools
Tags: naming, toolset, namecheck
Published: 2020-03-02 16:42:42

---
title: Project #5: Naming Tools
published: true
date: 2020-02-17 00:00:00 UTC
tags: 
 - naming
 - toolset
 - name check
canonical_url: https://peterthaleikis.com/posts/project-5:-naming-tools/
---

Not all [side-projects](https://peterthaleikis.com/tags/side-projects) need to lead directly to a business. Some might just be an experiment, a tool to build upon as mentioned in my [other article](https://dev.to/spekulatius1984/indie-hackers-should-i-build-my-side-project-small-business-in-public-4j28) or a simple helper for yourself. Coding can be relaxing for some.

Over the recent Christmas break I wanted to work on a project idea freely — without the pressure to produce something to make money. [Naming Tools](https://naming-tools.com/) is the result. It's a simple website/tool to apply some (for me) new tech, try a different approach and solve a partial problem along the way.

Naming Tools is a fork of some ideas which I'm using indirectly in my [name check tool](https://startupnamecheck.com/). The Word Safety Tool is planned to provide little warnings on Startup Name Check. It will show you if you are using a domain name or username which might be considered profane in a different language or context. This happens, often unintentionally.

Furthermore, the tool is well-rounded with these additional tools:

- 

[Word definitions](https://naming-tools.com/definitions) to find second/other meanings of any given term,

- 

[Rhymes](https://naming-tools.com/rhymes) & [Synonyms](https://naming-tools.com/synonyms) to identify alternatives for your planned project names and

- 

[Word Merge](https://naming-tools.com/word-merge) to create portmanteau words as project names

These are coming from third-party services. You can find more details on the projects 'about' page.
RESTful Conventions in Rails
Tags: javascript, softwareengineering, rails
Published: 2020-05-03 18:02:00

---
title: RESTful Conventions in Rails
published: true
date: 2020-02-17 00:00:00 UTC
tags: javascript,software-engineering,rails,ruby-on-rails
canonical_url: 
---

### What is REST?

By definition Representational state transfer (REST) is a software architectural style that defines a set of constraints to be used for creating Web services. REST was defined by Roy Fielding in his 2000 PhD dissertation. It’s a standard way web apps should structure their URLs. It provides a way of mapping HTTP verbs ( get, post, put, delete) and CRUD actions (create, read, update, delete) together.

![](https://cdn-images-1.medium.com/max/1024/1*KAQZpHghl1ejGAwgxTcdmA.png)<figcaption>Rails</figcaption>

[Rails](https://rubyonrails.org/) has RESTful principles built into its core. There are seven RESTful route options available, that match the HTTP verbs and allow us to perform CRUD (Create, Read, Update, Delete) actions. Routes are the code that are responsible for listening and receiving requests and then deciding what to send back. The routes we’ll start with will allow us to gather data and present it:

The last 3 routes will mutate that data:

RESTful routes have a clear mapping between the URL resource and the corresponding controller actions. Here is a mapping of all of the different route helpers, HTTP verbs, paths, and controller action mappings:

![](https://cdn-images-1.medium.com/max/640/0*mO1yQ95tO0Evy4nk.png)

> _The beauty of following these conventions is that you don’t have to reinvent the wheel every time you build a new CRUD app, the routes and method names have already been decided._

Connect with Me on [Twitter](https://twitter.com/LloydPile) or [LinkedIn](https://www.linkedin.com/in/ivana-dokic-b96460120/)

_Originally published at_ [_https://ivanadokic.github.io_](https://ivanadokic.github.io/restful_conventions_in_rails) _on February 17, 2020._
Creating Functions With VS Code
Tags: serverless, azure, vscode, git
Published: 2020-02-17 03:23:21

---
title: Creating Functions With VS Code
published: true
date: 2020-02-16 23:58:18 UTC
tags: serverless,azure,vscode,git
canonical_url: https://www.aaron-powell.com/posts/2020-02-17-creating-functions-with-vscode/
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/dlwdy355zgx9riwnnaug.png
---

Recently I was in Redmond and was asked if I wanted to record a video for the [Visual Studio Toolbox show](https://channel9.msdn.com/Shows/Visual-Studio-Toolbox?WT.mc_id=devto-blog-aapowell). I jumped at the opportunity, not only because I haven't had a chance to record at our studios, but because I've been working on a [hands-on lab to get people more familiar with VS Code and Git](https://github.com/Azure-Samples/azure-javascript-labs/tree/master/1-vscode-serverless). In this lab we fork a repository but then look at how we can do everything else within VS Code, from working with branches, handling merge conflicts and deploying to Azure (and while Damian my chastise me for [right-click deployments](https://damianbrady.com.au/2018/02/01/friends-dont-let-friends-right-click-publish/) there may be another video coming soon 😉).

So [grab a free Azure trial](https://azure.microsoft.com/free/?WT.mc_id=devto-blog-aapowell) and check out [the video](https://channel9.msdn.com/Shows/Visual-Studio-Toolbox/VS-Code-Integration-with-GitHub-and-Azure?WT.mc_id=devto-blog-aapowell).

{% youtube IwGJubWsz0E %}
JDeveloper is alive and well !
Tags: oracle, java, jdeveloper, ide
Published: 2020-02-16 23:34:29

Oracle JDeveloper is alive and well and you can download and install the latest version from here

* [Oracle JDeveloper docs](https://docs.oracle.com/middleware/1213/jdev/install/toc.htm)
* [Oracle JDeveloper download](https://www.oracle.com/tools/downloads/Jdeveloper-12c-downloads.html)


and older versions from here

* [Oracle JDeveloper archive](https://www.oracle.com/tools/downloads/versions-archives.html)
OCI Oracle Linux 7 node 10 npm 6 gotcha
Published: 2020-02-16 23:05:18

Are you running the right version of node & npm on your OCI Oracle Linux 7 instances ?

If you are not seeing versions 10 and 6
```
[root@instance-2 ~]# node -v
v10.19.0
[root@instance-2 ~]# npm -v
6.13.4
```

then you probably want to disable `vi /etc/yum.repos.d/oracle-epel-ol7.repo` and reinstall node & npm with 
```
# yum install oracle-nodejs-release-el7
# yum install nodejs
```