teleren/devto huggingface dataset:
What do you use to crosspost?
Tags: help, discuss, blogging, writing
Published: 2019-09-21 14:35:50

---
title: What do you use to crosspost?
published: true
canonical_url: https://stereobooster.com/posts/what-do-you-use-to-crosspost/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/m6va77dt0316wpbwxmdq.jpg
tags: [help, discuss, blogging, writing]
description: "POSSE is an abbreviation for Publish (on your) Own Site, Syndicate Elsewhere, a content publishing model that starts with posting content on your own domain first, then syndicating out copies to 3rd party services"
---

> POSSE is an abbreviation for Publish (on your) Own Site, Syndicate Elsewhere, a content publishing model that starts with posting content on your own domain first, then syndicating out copies to 3rd party services with permashortlinks back to the original on your site.
>
> -- [indieweb](https://indieweb.org/POSSE)

<!--more-->

I use [Hugo](https://gohugo.io) to generate the blog, store source in [github](https://github.com/stereobooster/stereobooster.com), host it with [netlify](https://www.netlify.com).

At the moment I semi-automatically crosspost to dev.to (because my RSS isn't full articles, as well I need to add tags and cover image).

### What I want?

I want fully automated posting to 3-rd party platforms (from CI server). Bonus points: if it will update articles when I edit original posts.

**What would you use to do this?**

### Where do I want to crosspost?

- dev.to (for sure)
- Medium (various Medium communities)
- Hacker News
- Reddit (maybe, I don't use it)
- Lobsters (maybe, I have no account)
- hashnode (saw it recently, have no idea what is it)

**Where would you crosspost?**

### PS

In case you wonder why:

- platforms can delete your posts, for example, Tumblr incident
- one platform can block another platform, for example, Reddit shadow bans dev.to
- paywalls, for example, Medium place articles behind the paywall
- your posts can be blocked for geo-political reasons
- etc.

> Photo by Nicholas Green on Unsplash
My first ever completed blog post
Tags: motivation, writing, personalnews, todayilearned
Published: 2019-09-21 12:59:27

Alright,  here it is, My first ever completed blog post, After collecting (bookmarking) several articles about "How to stop procrastinating", "How to start blogging" and "How to Improve Your English" I'm going to write this and hit 'Publish' button below as an effort to answer the above three questions.

But this is DEV.to and it has to be somewhat technical. So I will write about how I change the password of web account using a passphrase.

First I created a phrase of several words (It is not a common phrase), and this time it has words from both my mother language and English (a quick google search verify that my mother language is not among first 50 of Top languages by population).

Second capitalized some characters. 

Third replaced some parts of the words with spacial characters and numbers.

That's it now I have a strong password with more than 10 characters.
And eventually my first completed blog post.
Installing OpenStack on Unbuntu 18.04 LTS and ...
Tags: openstack, ubuntu, conjure
Published: 2019-09-21 12:31:56

I just kept conjuring up more failed OpenStack installs! Following on from my very frustrating experience documented [here](https://dev.to/glsolaria/installing-openstack-on-bionic-beaver-and-failing-l4m) I, for some unknown reason, continued but by this stage I was feeling cursed.

```bash
$ juju list-machines
```
I picked one of the juju machines and ran
```bash
$ juju ssh 3
$ sudo less /var/log/juju/machine-3.log
```

Which told me
> 2019-09-15 04:55:50 WARNING juju.cmd.jujud machine.go:826 determining kvm support: INFO: /dev/kvm does not exist

> HINT:   sudo modprobe kvm_intel

> modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.0.0-27-generic/modules.dep.bin'

> modprobe: FATAL: Module msr not found in directory /lib/modules/5.0.0-27-generic : exit status 1

> no kvm containers possible

And so there is indeed nothing in <b>/lib/modules</b>
```bash
$ ls /lib/modules/*/modules.dep.bin
ls: cannot access '/lib/modules/*/modules.dep.bin': No such file or directory
```

I try and re-install the kernel and everything is fine:
```bash
$ sudo apt-get install --reinstall linux-image-5.0.0-27
$ sudo modprobe kvm_intel
$ echo $?
0
```

Well I soldiered on for a bit longer but various containers were not coming online and I couldn't figure out why. Also there were the obscure error messages like "subordinate application must be installed without constraints" being conjured up. I couldn't even figure out how to set the default number of cores and memory for various virtual machines in a reasonable amount of time.

In a last ditch attempt I removed all the voodoo and followed these instructions: [https://www.journaldev.com/30037/install-openstack-ubuntu-devstack](https://www.journaldev.com/30037/install-openstack-ubuntu-devstack).

![Mission Impossible: OpenStack Install](https://thepracticaldev.s3.amazonaws.com/i/w9o4gzadgwz7ihdjb1zx.png)

Now it wasn't all without issue. It installed more than I wanted. It took over 1 hour to install. There was a directory created with the wrong permissions and a directory with missing files that it choked on. But because it output all of the commands it was executing, it was easy to fix up the errors.

I think I will vomit if I ever have to deal with <b>conjure-up</b> again. It's all sunshine and light when the spells are properly maintained but a nightmare when things start to go wrong.
Web Browser Automation with Python
Tags: selenium, python
Published: 2019-09-21 12:14:55

The selenium module is used to control web browsers. You can control Chrome, Firefox, Chrome Mobile and many other browsers directly from Python code. You should know the <a href="https://pythonbasics.org">basics of Python</a>. 

## Install

Install the selenium module and web driver. Use the python package manager pip to install the module.

    pip3 install selenium

Each browser has a specific web driver. You can find a <a href="https://docs.seleniumhq.org/download/">list of drivers</a> on the selenium website.

For Chrome you need chromedriver. For Firefox you need geckodriver. The version of the driver needs to match the browser version on your pc.

<img src="https://proxy.duckduckgo.com/iu/?u=http%3A%2F%2Firuntheinternet.com%2Flulzdump%2Fimages%2Fgifs%2Flion-king-cat-watching-laptop-sitting-13523372842.gif&f=1&nofb=1">

## Selenium

After the driver and module are installed, you can fire up a browser. First thing to do is import the selenium module and the time module.

<img src="https://proxy.duckduckgo.com/iu/?u=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxkmQfH1TB0dLW%2Fgiphy.gif&f=1&nofb=1">

Then start a browser instance 

    #!/usr/bin/python3
    browser=webdriver.Firefox()

Get the webpage:

    #!/usr/bin/python3
    browser.get("https://twitter.com")

So you have this code

    #!/usr/bin/python3
    from selenium import webdriver
    import time

    # start web browser
    browser=webdriver.Firefox()
    
    # get source code
    browser.get("https://twitter.com")
    html = browser.page_source
    time.sleep(2)
    print(html)
    
    # close web browser
    browser.close()

This then opens the browser and shows the HTML. You can interact with the browser just as you would normally do: click elements, type, scroll and much more. 

Related links:

* <a href="https://docs.seleniumhq.org/">Selenium website</a>
* <a href="https://gum.co/GjuJxo">Python Selenium Video Course & Examples</a>
* <a href="https://pythonbasics.org/#Selenium">Selenium with Python</a>
Massive List of Resources for College Students
Tags: career, opensource, beginners
Published: 2019-09-21 12:03:49

Today, I want to share you a list of resources which I and people from all across the world contributed to preparing. 

Often students in Freshman/1st Year in college don't know what they want to do if they do, where should start? What resources they should follow? 

When I was in college, I missed a lot of opportunities like hackathons, conferences, internships and many global events due to lack of awareness. I don't want the emerging student developers to suffer the same as me. 

Hence, I and a bunch of other developers around have collected a list of resources for students. If you are in college, a college graduate, or just starting out as a developer, you should definitely check it out!

Here is the link to the resources. 

https://github.com/dipakkr/A-to-Z-Resources-for-Students

I hope you will found it useful. Feel free to share with your community. 

I would love to connect with you on another platforms as well. 

[![Twitter Follow](https://img.shields.io/twitter/follow/diipakkr.svg?style=social)](https://twitter.com/diipakkr)

Let's Connect ! - | [LinkedIn](http://bit.ly/2MQX5pK) | [Instagram](http://bit.ly/2lU6pBm) | [Twitter](http://bit.ly/2mcRaUk)
Show All Image from public folder using Laravel 5.8
Tags: laravel
Published: 2019-09-21 09:26:52

Display all image from folder, we can using laravel
Create file **FormController.php**
```
<?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;

class FormController extends Controller
{
    public function index(){

        $images = \File::allFiles(public_path('images'));
        
        return View('pages.form')->with(array('images'=>$images));
      
    }
}
``` 
We create file **form.blade.php** in folder view/pages/form.blade.php
```
@extends('layouts.app')

@section('content')

<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-10">
            <form action="">
                <h2>Show All Image from public folder using Laravel</h2>
                
                <ul>
                @foreach ($images as $image)
                     <li style="width:80px;display:inline-block;margin:5px 0px">
                         <input type="checkbox" name="images[]" value="{{$image->getFilename()}}"/>
                         <img src="{{ asset('images/' . $image->getFilename()) }}" width="50" height="50">
                     </li>
                @endforeach
                </ul>
                   
            </form>
        </div>
    </div>
</div>


@endsection
```
Config web.php in folder routes/web.php, following code
```
Route::prefix('form')->group(function () {
    Route::get('/','FormController@index')->name('form.index');
});
```
Test: 
**php artisan serve**

![hoanguyenit.com](https://thepracticaldev.s3.amazonaws.com/i/8v3wq0jswm531zqc4ek1.jpg)

Post:[Show All Image from public folder using Laravel 5.8](https://hoanguyenit.com/show-all-image-from-public-folder-using-laravel-58.html)
You can see more posts here: [Share programming knowledge](https://hoanguyenit.com)
Try Optional Chaining and Nullish Coalescing on JSitor, its live
Tags: node, javascript, react, angular
Published: 2019-09-21 08:45:26

[JSitor](https://jsitor.com), now supports 

- **Optional Chaining** - Example - https://jsitor.com/bIhQS-b4Y
- **Nullish Coalescing** - Example - https://jsitor.com/QIPOSicZu

Using the power of Babel plugins 
https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining
https://babeljs.io/docs/en/babel-plugin-proposal-nullish-coalescing-operator.

###How to use
Just set "JavaScript Babel and JSX" mode in settings for JavaScript view and its ready for you. Here is the screenshot to find it

![](https://github.com/jsitor/jsitor/raw/images/Screenshot%202019-09-21%20at%202.07.33%20PM.png)

###Optional Chaining
The optional chaining operator ?. permits reading the value of a property located deep within a chain of connected objects without having to expressly validate that each reference in the chain is valid. The ?. operator functions similarly to the . chaining operator, except that instead of causing an error if a reference is null or undefined, the expression short-circuits with a return value of undefined. When used with function calls, it returns undefined if the given function does not exist.

Try example - https://jsitor.com/bIhQS-b4Y
![](https://github.com/jsitor/jsitor/raw/images/Screenshot%202019-09-21%20at%201.48.14%20PM.png)

![](https://github.com/jsitor/jsitor/raw/images/Screenshot%202019-09-21%20at%201.48.20%20PM.png)

###Nullish Coalescing
The nullish coalescing proposal (??) adds a new short-circuiting operator meant to handle default values.

You might already be familiar with the other short-circuiting operators && and ||. Both of these operators handle “truthy” and “falsy” values. Imagine the code sample lhs && rhs. If lhs (read, left-hand side) is falsy, the expression evaluates to lhs. Otherwise, it evaluates to rhs (read, right-hand side). The opposite is true for the code sample lhs || rhs. If lhs is truthy, the expression evaluates to lhs. Otherwise, it evaluates to rhs.

Try example - https://jsitor.com/QIPOSicZu

![](https://github.com/jsitor/jsitor/raw/images/Screenshot%202019-09-21%20at%201.57.28%20PM.png)


Give a try and share your feedback. We would love to hear from you guys.

Ashvin Suthar (Creator of JSitor.com)
Follow us on Twitter - https://twitter.com/JSitorEditor
match()
Tags: javascript, beginners, mindmap
Published: 2019-09-21 08:29:02

---
title: match()
published: true
description: match() cool method 😎
tags: javascript, beginner, mindMap
---

## match() cool method 🤓😎

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/dzzixlrfbmec3mrsu2ij.png)
How to apply deep leaning in NBA games development?
Published: 2019-09-21 07:22:47

Developer apply "deep learning" technology into NBA 2k game development, which allows computers to play sport in a human way, to evaluate the situation in a continuous chess game, to abandon the suicide of those players, and to estimate that in the next 20 steps, where to gain advantage is more likely, and to accumulate more experience after each game. Thus, it can make its own probability estimation more accurate. After training innumerable top NBA 2k games and playing 5 million games with himself, AI's strength has reached the professional level and can be further improved. To understand this, we first need to know what mechanism AI is in the game we are playing, so that we can know what changes deep neural networks can make in AI. Today we play video games, whether StarCraft 2, War3, Laogong 4, Civilization 5, no matter how strange the game is, its AI uses the same set of behavioral logic - "finite state machine". It sounds very big, but in fact we don't need to go deep into it. Simply speaking, let AI choose a way to deal with certain situations. For example, NBA 2k series and Dota's computer AI will be set to automatically retreat or return to the city when their blood volume is less than a set of skill damage. NBA AI will automatically pass the locker codes just like this [nba2kcodes.top](https://nba2kcodes.top/) to the player with the highest score success rate in the current situation. If all possible situations in a game are a question bank of a test paper, then the finite state machine is a reference answer bank. Once a certain "question type" appears, the corresponding "answer" is selected. Although the actual situation is much more complex, and many layers of state machine loops are used, the essence of this mechanism is that.
arrow function =>=>=>
Tags: javascript, arrowfunction, newbie
Published: 2019-09-21 07:07:47

---
title: arrow function =>=>=>
published: true
description: Arrow function mindMap
tags: Javascript, arrowFunction, newbie
---

## Arrow function mindMap.


![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/ba1dvshuzlr4ni9uh2r3.png)
Security features of LMS
Published: 2019-09-21 06:53:58

According to Wikipedia, the main purpose of LMS software is the administration, documentation, tracking, reporting, and delivery of various courses to one or more learners. For the users, security on LMS is always a question of debate. Online security is important because, people can break into data and modify, cause changes, or disrupt operations. We’ll go through some most important LMS security features users should demand from their <a href="https://xpertcube.com/custom-elearning-development/">eLearning solution software</a> in this post.

Data Encryption

Encryption assures that the data is safe and secure when transmitted between applications.  LMS software should use advanced encryption standards to make use of encryption and cryptographic codes, which helps in maintaining high-security to transmit data from a users' LMS to other platforms.  Encryption locks for files and folders, domain whitelisting, watermarks in documents, are the methods of encryption that can be used to ensure the security of  LMS. It also allows users to integrate their system with third-party applications without worrying about the security of data transmitted.

Back-up Data Storage

The system automatically backs up all the data and helps users to save the latest modified version of the data manually. User's data is still secured, even if the data is accidentally erased or corrupted by malware. Remember that backup protocols may vary upon the LMS seller. By way of instance, some could run nightly backups and save the data into a distributed storage support, but some have dedicated service of their own.

Anti-Spam

This LMS security service prevents spam which has the capacity to see the user data and steal sensitive data by entering the Learning Management System. This includes phishing, malware, and even ransomware. So the users don't have to worry about fraudulent cyber attackers getting a hold of their contact details or sending them potentially dangerous or unwanted emails.

IP Blocker

Blockers prevent unwanted IP addresses from accessing user information. The admin can manually add particular  IP addresses into the"allowed" or"blocked" lists. This guarantees that attackers can't see your user information or content through the LMS. The drawback is that they can always use another IP address to operate with the blocker, which explains the reason why it's so important to place other preventative LMS safety steps in place.
Visit for more <a href="https://xpertcube.com/security-features-of-lms/">security features of LMS</a>
Export Excel using maatwebsite/excel in Laravel 5.8
Tags: laravel
Published: 2019-09-21 06:36:50

[Export Excel using maatwebsite/excel in Laravel 5.8](https://hoanguyenit.com/export-excel-using-maatwebsite-excel-in-laravel-58.html)
![Export Excel using maatwebsite/excel in Laravel 5.8](https://thepracticaldev.s3.amazonaws.com/i/0xorsqqgijnm3v2bk6lv.jpg)
Do you run Integration Tests during each CI build?
Tags: integrationtests
Published: 2019-09-21 01:11:53

---
title: Do you run Integration Tests during each CI build?
published: true
description: 

tags: Integration Tests
---

Integration tests are tests that cross boundary. There are many pros and cons of running those every time.

Pros
* A more complete functionality test

Cons
* Slow
* External dependencies not related to the code you are testing
* Need to create external test environment (e.g. test database, qa account in prod)
* Network restrictions from CI server in Enterprise environment

So, what do you do?
Complete List of Intelij Idea Shortcuts.
Published: 2019-09-27 16:52:58

---
title: Complete List of Intelij Idea Shortcuts.
published: true
tags: 
canonical_url: https://thecodersblog.com/complete-list-of-intelij-idea-shortcuts/
---

IntelliJ IDEA is one of the favorite IDE of Java developer. If you spend most of the time in this IDEA then this list is for you.

### IntelliJ

- Run `Shift` + `F10`
- Stop `Ctrl` + `F2`
- `Alt` + `Enter`
- `Ctrl` + `Space`
- `sout` + `Enter` -> `System.out.println();`
- `Ctrl` + `Click on Variable / Mehod / Class...`
- Settings `Ctrl` + `Alt` + `S`
- Project Structure `Ctrl` + `Alt` + `Shift` + `S`
- Replace `Ctrl` + `F`
- Find in path `Ctrl` + `Shift` + `F`
- Duplicate Line `Ctrl` + `D`
- Toggle Case `Ctrl` + `Shift` + `U`
- Project View `Alt` + `F1`
- TODO View `Alt` + `6`
- GOTO Class `Ctrl` + `N`
- GOTO File `Ctrl` + `Shift` + `N`
- Generate Code `Alt` + `Insert`
- Surround with … `Ctrl` + `Alt` + `T`
- Autoformat `Ctrl` + `Alt` + `L`
- Switch Tool Windows `Ctrl` + `Tab`
- Line Comment `Ctrl` + `/`
- Multi-Line Comment `Ctrl` + `Shift` + `/`
- Move Statement `Ctrl` + `Shift` + `Arrowkeys`
- Move Single Line `Alt` + `Shift` + `Arrowkeys`
- _Refactor_ Rename `Shift` + `F6`
- Structure `Alt` + `7`
- VCS `Alt` + `9`
- _VCS_ Commit `Ctrl` + `K`
- _Git_ Revert `Ctrl` + `Alt` + `Z`
- 

_VCS Tab_ Show Diff `Ctrl` + `D`

##
Git Diff of Current and Previous Version of a File
Tags: git, vsc, diff, vim
Published: 2019-12-24 13:28:45

---
title: Git Diff of Current and Previous Version of a File
published: true
date: 2019-09-21 00:00:00 UTC
tags: git, vsc, diff, vim
canonical_url: https://tech.serhatteker.com/post/2019-09/git-diff-cur-pre/
---

We will use `vim` and `git wrapper plugin` for this.


## Installation
First make sure you installed Tim Pope's [vim-fugitive] plugin before started.

In the repo there is a clear instruction but for [vim-plug], add
below line to your `.vimrc` and source it:

```vim
" Plugins will be downloaded under the specified directory.
" Change it to direct to yours 
call plug#begin('~/.local/share/nvim/plugged')

" Add this
Plug 'tpope/vim-fugitive'

call plug#end()
```

Then run `:PlugInstall`.

## Using
We will run `:Gdiffsplit`. From documentation:

```vim
:Gdiffsplit [object]    Perform a `vimdiff` against the given file, or if a
                        commit is given, the current file in that commit.
                        With no argument, the version in the index or work
                        tree is used.  The newer of the two files is placed to
                        the right or bottom, depending on 'diffopt' and the
                        width of the window relative to 'textwidth'.  Use
                        Vim's `do` and `dp` to stage and unstage changes.

```

Open the file you want to diff with.

If the changes are **NOT** committed yet use:

```vim
:Gdiffsplit HEAD
```

But if the changes are committed use:

```vim
:Gdiffsplit HEAD~1
```

Also there are "vertical" and "horizontal" split versions:

```vim
:Gvdiffsplit [object]   Like :Gdiffsplit, but always split vertically.

:Ghdiffsplit [object]   Like :Gdiffsplit, but always split horizontally.
```

For more help:

```vim
:help fugitive
:help Gdiffsplit
```

Also you can always map them as below;

```vim
" Git diff current and previous version
nnoremap <leader>d :Gvdiffsplit HEAD<CR>
```

All done.


[vim-fugitive]: https://github.com/tpope/vim-fugitive
[vim-plug]: https://github.com/junegunn/vim-plug
data sidney
Published: 2019-09-20 23:24:10

Situs Terbaik Pengeluaran SGP Dan Data SGP This site is very useful for many people, so much knowledge can be taken at this article. I hope it will continue to be the best. Good luck! <a href="http://gintranet.com/keluaran-hk/">Keluaran Hk</a>
<a href="http://gintranet.com/data-sgp/">Data Sgp</a>