teleren/devto huggingface dataset:
5 FREE Kubernetes courses you can opt today.
Tags: devops, kubernetes
Published: 2019-02-25 07:11:07

---
title: 5 FREE Kubernetes courses you can opt today.
published: true
description: These are the free kubernetes courses for DevOps enthusiasts
tags: DevOps, Kubernetes
cover_image: https://thepracticaldev.s3.amazonaws.com/i/34uhcj9gfno5hfwng82v.png
---

Here are the 5 free short courses on Kubernetes you can opt today.

(The links look ugly and too big so I have shortened the links with Bitly.)

1. Learn Devops Kubernetes deployment by kops and terraform - http://bit.ly/2SYynLY

2. Just enough kubernetes to be dangerous - http://bit.ly/2IwtNjj

3. Containers 101 - http://bit.ly/2U5BYEG

4. Kubernetes Quick Basics with Docker - http://bit.ly/2Tdm11P

5. Net DevOps: Cisco Python, Automation, NETCONF, SDN, Docker - http://bit.ly/2BPvJxs

Note: I am not affiliated to any of the brands here (All these links are from Udemy). On LinkedIn, most of the guys asked me some free resources to learn on kubernetes and DevOps, so I thought these links are useful.
[VS Code Extension] Hue
Tags: vscodeextension, productivity
Published: 2019-02-25 06:37:59

---
title: [VS Code Extension] Hue
published: true
description: VS Code
tags: vscode-extension, productivity
---

Hi dev community,

It is great to see how people around the world come together to this community to share their experience and thoughts on technology. I’ve personally enjoyed reading posts here from time to time :)
Today I would l like to use the opportunity to share my first post here about my most recent project! The project I worked on is a Visual Studio Code Extension, called Hue. As you might have guessed, it is an extension that will control your Hue lights. My initial goal with this project was very simple, I was looking for an excuse to create a VS Code extension, and controlling basic Hue lighting commands. Then, the idea progressed to make it more “intelligent” and relatable to the IDE itself (Integrated Development Environment).

There has been a research about color coding your IDE theme so that you can switch context easily. I personally have worked on multiple projects with different programming languages every day. And I often made mistakes on the language specific syntaxes while context-switching. But I agree that the color of the themes assigned for each language helps me to know what syntaxes are expected to be used. So, this extension will use the same idea by color-coding your physical surrounding by using your Hue lights, making your most favorite IDE blends in well with your surrounding! 

![Example](https://media.giphy.com/media/w60hRih0TKGGsbm1Jv/giphy.gif)

There is a lot of rooms for expansion and improvements on this extension, and I would love to hear it from you!
Meanwhile, give it a try. And I hope you would enjoy using it!

Happy coding!

If you would like to contribute, you are more than welcome to do so: https://github.com/kelvien/vscode-hue
Download extension here: https://marketplace.visualstudio.com/items?itemName=kelvienhidayat.vscode-hue
Hire PHP Programmer & Get Exclusive & Undivided Attention
Tags: phpprogramer, developmentservices, technology
Published: 2019-02-25 05:51:46

---
title: Hire PHP Programmer & Get Exclusive & Undivided Attention
published: True
description: While running a business, every business thing to get more exclusive & undivided attention for their business. Today's time avail this exception from PHP Programmer. Hire Today?  
tags: PHP. Programer, Development Services, technology
---
SCRIPT TAG 
Tags: beginners, javascript, web, html
Published: 2019-02-25 04:56:55

---
title: SCRIPT TAG 
published: true
description: JavaScript programs can be inserted into any part of an HTML document with the help of the <code>script</code> tag.
tags: beginner, JavaScript, web, HTML
---
This post was originally published on my blog, find original post [here](https://santhoshkumarr0.github.io/posts/script-tag/)


Core JavaScript is platform independent,but capabilities of JavaScript depends on the its environment.

For server-side environment, you can execute the script with command like 

```console
santhosh@ubuntu-18-04:~$ node script.js
```

> You need to install nodejs first to run server-side JavaScript

In browser, we have to attach a script to a webpage, JavaScript programs can be inserted into any part of an HTML document wiht help of the <code>script</code>tag.

```html
<!DOCTYPE html>
<html lang="en">
 <head>
 </head>
<body>
    <script>
        alert("Hello World");
    </script>
</body>
</html>
```

<code>alert</code> is browser specific function. <code>script</code> tag contains scripts which will be automatically executed when browser loads this webpage.

<code>script</code> tag contains few attributes.

## **Type**

It is not required to specify the type in **HTML5**, usually it was <code>type="text/javascript"</code>.

> In old standard HTML4, it is required to put type of the script

## External Scripts

only the simplest scripts are put into HTML. More complex ones reside in separate files.
Script files are attached to HTML with <code>src</code> attribute.

```html
<script src="/path/to/script.js"></script>
```

we can attach third party script as well.

```html
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
```

we can attach many scripts as much as we want.

```html
<script src="/path/to/script1.js"></script>
<script src="/path/to/script2.js"></script>
<script src="/path/to/script3.js"></script>
<script src="/path/to/script4.js"></script>
```

> If a script element has a src attribute specified, it should not have a script embedded inside its tags.

alert statement will not run. 

```html
<script src="/path/to/script4.js">
    alert("this will not run");
</script>
```
TypeError:findDOMNode(...) is null. Help PLEASE !
Tags: help, react
Published: 2019-02-25 03:52:06

---
title: TypeError:findDOMNode(...) is null. Help PLEASE !
published: true
description: 
tags: #help #react
---

Hi guys! I'm a newbie, I'm stuck with problem, please help me! Thanks so much!


<img src="https://thepracticaldev.s3.amazonaws.com/i/8bq4kpmqa4kgang3jrbp.png" />

Have a error when i click button,

<img src="https://thepracticaldev.s3.amazonaws.com/i/w65ved2whg9uzdm5bw21.png" />
ibrew 🍻– Interactive CLI to install Homebrew packages
Tags: cli, interactive, homebrew, brew
Published: 2019-02-25 03:35:53

---
title: ibrew 🍻– Interactive CLI to install Homebrew packages
published: true
description: Interactive CLI to browse Homebrew search results and choose a package to install.
tags: cli, interactive, homebrew, brew
---

I’ve build something for lazy and slow typing folks like me:
An interactive CLI to browse Homebrew search results and choose a package to install.

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

See https://github.com/mischah/ibrew and leave a star if you like it 😘
Should I get 2nd Monitor for 27" iMac
Tags: imac, discuss
Published: 2019-02-25 01:45:00

---
title: Should I get 2nd Monitor for 27" iMac
published: true
description: Not sure if I really need 2 monitor
tags: iMac, discuss
---
I am wonder that if at this time if more people are going back to single monitor. I have the nice iMac display then I have a 30: monitor. The height is all different and just not sure if the headache of fixing is worth it. With Mac OS and the iMac can I get by with just it, or do people think the 2nd monitor is still a requirement.

What I do with my iMac, is I do web development and some sketch work. Thoughts by other people on what they do.
Why you should join a hackathon at least once
Tags: career, fun
Published: 2019-02-25 01:30:03

---
title: Why you should join a hackathon at least once
published: true
description: 
tags: career, fun
---

The two-week hackathon I joined just ended. Here are the things I learned and why I would be more than happy be on another.

## You get to expand your toolset
Your hackathon entry maybe totally out of the box of what you usually do. You get to decide what tools, libraries, and languages to use! It's a chance to learn new stuff. Experiment. Discover. Put your ideas to the test. Do the things you always wonder about. Then after, you can confidently put these new tools on your belt bag. 


## You get to socialize with other devs (even if you don't want to but will be thankful in the end)
Hackathons let people group themselves. If you want to work with your friends on other teams/companies or you're interested on other team's idea, asked to join or was invited but is too good to decline or got no other teams to take you in. No matter what situation you're in the point is you get to work with people. You get to brainstorm, develop, cram and celebrate together. I think on its own is already a win. In the end, you get to expand your contact list with new tech people. Maybe even win some new friends.


# Conclusion
Joining a hackathon will get you to learn and have fun! Try joining one (or more) and you might be surprised at the results.
Facade Design Pattern [Structural]
Tags: blog, concepts, designpattern, functions
Published: 2019-02-26 03:27:00

---
title: Facade Design Pattern [Structural]
published: true
tags: blog,concepts,Design Pattern,functions
canonical_url: https://itscoderslife.wordpress.com/2019/02/25/facade-design-pattern-structural/
---

The facade is a very simple pattern intended to simplify the use of complicated APIs. It is presented as a single class with a straightforward interface which allows callers to execute common tasks. The Facade may wrap a type with a very complex interface or multiple components which need to be used together.

> The Facade pattern simplifies the use of complex APIs by providing a higher-level, simplified interface.

- Using the simpler interface is just an option. Callers can still access the wrapped components for lower-level functionality.
- Complex interface is in fact, the consumer side too. The client code gets complicated and harder to maintain.
- Interface changes require refactoring on the caller side which can become a serious problem especially when relying on framework or software systems that are still under development or changed frequently.
- The Facade Pattern consolidates the functionality into a single class and hides the complexity by providing a simpler interface.
- Clients don’t have to use the complicated subsystem directly, instead, they communicate with the Facade.
- The Facade in turn, involves the APIs of the subsystem it simplifies.
- The Facade not only provides a simpler interface but it also decouples the client implementation from the complex API.
- If the subsystem interface changes, they only have to adapt the Facade class, not the client code.

Example:

A typical mobile app in today’s world needs a network layer which takes the responsibility of fetching or downloading the data. If that’s all that the network layer does then the consumer of this layer has to take the responsibility of storing the data/files if success or retry if failed.

Using Facade Design Pattern we create a Downloader component which encapsulates the downloading and storing parts providing the user a sleek simple to use interface. The component can also internalize the retry parts and throw an error only if unsuccessful on multiple attempts.

Benefits:

- The Facade Pattern wraps the types belonging to a complex subsystem and provides a unified higher level interface. Clients can use the type or the subsystem through a simpler API.
- Another benefit of the Facade Pattern is that it isolates the changes of the underlying type or subsystem from the callers so the client code must not be refactored when the wrapped type change.
- Use the Facade pattern to simplify the usage of complicated pulling designed interfaces or when adding a convenient layer makes sense.
- A correctly implemented Facade Pattern lets the client use the common features of the wrapped subsystem without directly accessing the underlying types.

Disadvantage: Leaking the wrapped objects. Changes made to the underlying types will require modifications on the caller side too.
Flow Based Programming
Tags: flowbasedprogramming, node
Published: 2019-02-24 23:42:24

---
title: Flow Based Programming
published: true
description: Intro to my passion, flow based programming.
tags: flow based programming,nodejs
cover_image: https://s3.amazonaws.com/cdn.kyleparisi.com/Screen+Capture+on+2018-09-14+at+09-18-00.gif
---

# Hello world

[Fluxion](https://fluxion.app) is an idea I've been messing with for >3 years.  I was originally inspired by Bret Victor's presentation, [Inventing on Principal](https://vimeo.com/36579366).  I finally made a version that I felt pretty good about and made it [public](https://github.com/kyleparisi/Fluxion).  Here is the hello world of using Fluxion:

{% youtube 2YGaIy7Xjd8 %}
My first open source project
Tags: javascript, node
Published: 2019-02-24 23:07:32

---
title: My first open source project
published: true
description: My first open source project
tags: #javascript, #nodejs
---

I've once read that <i>the best ideas come out of frustration</i>. Well, I'm glad to say that this happened to me.

It might not be the best idea, but this small app does its job.

Long story short, it moves the saved posts from Medium to Trello. 
Whenever I wanted to read a specific article, I wasn't able to find it among the other articles. So I needed to find a way to select whichever article I want without wasting time searching through an endless list of articles.

It not only adds a post to a specific list in Trello, but it also removes that post from Medium's bookmarks. That was all that I needed.


Here is the [repo](https://github.com/Andrei0872/mediums-bookmarks-to-trello).
I hope you'll find it useful as well!

---

Needless to say, this community helped me a lot. I'm simply amazed at how every day I'm improving my knowledge little by little here.
Thank you!
SignalR core python client (II): Authentication
Tags: signalr, core, python, authentication
Published: 2019-02-24 21:59:22

---
title: SignalR core python client (II): Authentication
published: true
description: Continuation of post, now, dealing with Auth Hubs
tags: SignalR, core, python, Authentication
series: SignalR core python client
cover_image: https://www.campusmvp.es/recursos/image.axd?picture=banner-asp-net-core-750x300.png
---

# Intro

As i introduced on my [previous post](https://dev.to/mandrewcito/singlar-core-python-client-58e7),  next step on my library was authentication on SignalR Core Hubs. A good guide and example of this authentication is this: [aspnet docs](https://docs.microsoft.com/en-gb/aspnet/core/signalr/authn-and-authz?view=aspnetcore-2.2). You can donwload fully working example on their [github](https://github.com/aspnet/Docs/tree/master/aspnetcore/signalr/authn-and-authz/sample).

Once introduction is finished, let's go to the playground:

# Server side
[](https://thepracticaldev.s3.amazonaws.com/i/2fa9q035n0n34e1u45if.PNG)
## Quick fix, memory database

Creating a database on disk for this example ... no thanks

Go to Startup.cs, comment UseSqlServer and add UseInMemoryDatabase

```csharp
...
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddDbContext<ApplicationDbContext>(options =>
               //  options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")
	        options.UseInMemoryDatabase()   
		);
...
```

## Create user on the web
![Register](https://thepracticaldev.s3.amazonaws.com/i/2fa9q035n0n34e1u45if.PNG)
# Client side

## First, get auth token

Post request of this example is a form-data, response is a JSON.

```python
def signalr_core_example_login(url, user, username_password):
    response = requests.post(url, data={"email": user, "password": username_password})
    return response.json()["token"]
```

## Build connection and add signalr event handlers

```python
token = signalr_core_example_login(login_url, username, password)
hub_connection = HubConnection(
    server_url,
    token=token,
    negotiate_headers={"Authorization": "Bearer " + token})

hub_connection.build()
hub_connection.on("ReceiveSystemMessage", print)
hub_connection.on("ReceiveChatMessage", print)
hub_connection.on("ReceiveDirectMessage", print)
hub_connection.start()
```
Now you have connection initialized and you can send messages auth through signalr hubs.
[Fully example](https://github.com/mandrewcito/signalrcore/blob/master/test/chat_auth.py)

# Future 
* message pack
* Auth (now only working by querystring negotiate)

# Links
[Github](https://github.com/mandrewcito/signalrcore)
[Pypi](https://pypi.org/project/signalrcore/)

I'm trying to build this library with simplest way possible, so if you think that there is a better way to do it, leave a comment. Asap i'll edit github library contribute section, so any contribution is welcommed. There is a lot of work to do with these, messagepack. streams ..


Thank you for reading, and write any thought below :D
ludwig text-classification training
Tags: ludwig, machinelearning, python
Published: 2019-02-24 21:38:43

---
title: ludwig text-classification training
published: true
description: ludwig text-classification without coding
tags: #ludwig #machinelearning #python
---

uber/ludwig
https://github.com/uber/ludwig

Ludwig is a toolbox built on top of TensorFlow that allows to train and test deep learning models without the need to…
github.com	

### install
```
$ pip install ludwig
$ python -m spacy download en
```

### Tested text-classification
```
$ mkdir text-classification
$ cd text-classification
$ wget http://boston.lti.cs.cmu.edu/classes/95-865-K/HW/HW2/reuters-allcats-6.zip
$ unzip reuters-allcats-6.zip
$ vim model_definition.yaml
```

`model_definition.yam`
```
input_features:
    -
        name: text
        type: text
        encoder: parallel_cnn
        level: word
output_features:
    -
        name: class
        type: category
```

`train.sh`
```
#!/bin/sh

ludwig experiment \
  --data_csv reuters-allcats.csv \
  --model_definition_file model_definition.yaml
```

### Visualize
```
$ ludwig visualize --visualization learning_curves --training_statistics ./results/experiment_run_0/training_statistics.json
_         _        _      
| |_  _ __| |_ __ _(_)__ _ 
| | || / _` \ V  V / / _` |
|_|\_,_\__,_|\_/\_/|_\__, |
                     |___/ 
ludwig v0.1.0 - Experiment
```
Could Dev.to add support for the <mark> element?
Tags: discuss
Published: 2019-02-24 20:28:29

---
title: Could Dev.to add support for the <mark> element?
published: true
tags: discuss
---

The `<mark>` element is useful for highlighting certain words and phrases in text, which reduces the “wall of text” issue. Browsers already render this element using a yellow background.

I ask Dev.to to *not* strip the `<mark>` element from the HTML output of articles. Authors can use this element in Markdown normally.

An example of how `<mark>` improves the readability of content:

![](https://thepracticaldev.s3.amazonaws.com/i/jjkkkzbpeghlcbp4mfsa.png)
Do you like mailing lists? And perfecting the podcast.
Tags: discuss
Published: 2019-02-24 20:17:37

---
title: Do you like mailing lists? And perfecting the podcast.
published: true
tags: discuss
---

My co-host and I are delving into the meta-content this week, talking about the podcast itself. Our biggest question is about mailing lists. We're uncertain whether we should have one. There are definite advantages for the content creator, but privacy issues for the listener.

There are many other options to be informed of podcasts, such as subscriptions on patreon, Spotify, or following the RSS feed. But the same is not true of non-podcasts, such as blog articles. For those, Twitter still works, but content can be lost.

What's your opinion of mailing lists?

{% podcast https://dev.to/edaqa-and-stephane-podcast/19-insert-bitcoin %} 

We also talk a lot about the audio of the show. There's a lot behind a podcast and we haven't found the perfect solution yet. You'll note something sounds off with my voice this time.


## Let Us Know

Check out [my book]() and the complete [show notes](https://dev.to/edaqa-and-stephane-podcast/19-insert-bitcoin).

And let us know, do you like mailing lists, and what's important on a podcast to you?
Are They Up? A Node cli for checking if a site is up
Tags: showdev, node
Published: 2019-02-24 20:05:23

---
title: Are They Up? A Node cli for checking if a site is up
published: true
description: Are They Up a simple node cli to check if a site is up 
tags: showdev, node
---

Are they up is a npm package that can be installed globally that checks to see if any domain is up.

## Why did I create this node cli.

Well I have in the past been working on a api framework with a particular domain and ran into an issue where they were down or I couldn't decide if my internet was down or if a site was. 

##How to install?

    npm install aretheyup -g
    //or this for single project
    npm install aretheyup 
    
## How to use 

The good news its super simple as shown below. The return is either a nice green check with an affirmative Yup! or a red cross with a sad Nope! If you type a domain in wrong you will get an error that says please check the domain and try again. Simple yet function!

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

## Whats next for Are They Up?

I plan to add response times, returned ip and return code. AS functionally they are useful. 


I hope you enjoy it, if you have any issues go ahead and report it via [github](https://github.com/perkinsjr/AreTheyUp/)
Ending the series
Published: 2019-02-24 19:50:36

---
title: Ending the series
series: Functional fundamentals
published: true
description: 
tags: 
---

I've noticed that my latest posts in the functional fundamentals series have not been particularly well read. In all honestly, I don't think they were particularly good either, and they were not subjects I cared about all that much.
In fact the requirement to order things in a series has been detrimental to just about everything. I've also started to think that a series trying to cover such a huge topic is not ideal for dev.to, were it might instead be better to reference the writings of others, such as this [excellent piece on polymorphism](https://dev.to/jvanbruegge/what-the-heck-is-polymorphism-nmh), whereas trying to make a complete series myself would put me in a competing position. A series is better suited for a book.

Considering that I've also gone over most of what I believe to be the *core* of functional programming - except higher-kinded types, but I should have done that before Category Theory - I think this is a good time to wrap it up.
Crontab command to delete itself
Published: 2019-02-24 19:45:44

---
title: Crontab command to delete itself
canonical_url: https://daveismyname.blog/crontab-command-to-delete-itself
published: true
description: Delete cronjob after execution
---

I was asked today can you run a cronjob only once. My initial answer was no you cannot as the least you can run a cronjob at is yearly. 

But using cron commands you can delete a cron after it's been executed, this way the cronjob runs and then deletes itself causing it to only run once, perfect!

 

Let's say I want to call a script:

```
somescript.sh
```
 

Now if I want this command to be deleted as soon as its finished:

First, the command to run, like above. 

Then use **crontab -l** to open the crontab.

**grep -v** to search the file ie look for the command. 

Find it with **| crontab -** to close it out.



# Putting it all together:

```
somescript.sh; crontab -l | grep -v 'somescript.sh' | crontab -
```