teleren/devto huggingface dataset:
How do you build Application by Angular, Java and Eclipse?
Tags: discuss, help, architecture, webdev
Published: 2018-08-29 17:40:27

---
title: How do you build Application by Angular, Java and Eclipse?
published: true
description: 
tags: #discuss #help #architecture #webdev 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/fmqfpvq6ydtiwchnas3c.png
---

*Please correct me if I go wrong.*

# Enterprise Application

I am Java Developer which building enterprise application for several years. Backbone technologies may be different for different enterprise application. The frond-end frameworks are almost completely for different application. 

In this times, I would like to try to use the following tools or technologies for the new project.

* Eclipse 
* TypeScript
* Webpack
* BabelJs
* Angular


# Front-End Framework 

Please correct me if I guess wrong. I think current thread of front end framework would be **angular**, **react**, **vuejs**, **ember**, etc. 

**TypeScript**, **BabelJs**, **Webpack** would be something I think it would be extremely important for my future enterprise application development. 

# Eclipse

Many people may say Eclipse is not the best IDE. I may say Eclipse is the best for enterprise application as many developer know it well. 

Tomcat may be the most common choice for local development server. Eclipse would help compile java to class and hot deploy to tomcat. 

# JavaScript

I think the source code of angular, react, vuejs, ember may require compile to javascript in order to make them work. 

Most of my proof of concept project would use npm, webpack, babeljs to compile and bundle source code. Actually, I used Visual Studio Code for the POC project. 

If I would like to do the same way in Eclipse, I know I may able to configure a builder of eclipse to trigger npm build task before the java builder.

**Tools**

* TypeScript
* BabelJs
* Webpack

# Bonus - Maven

Maven is awesome tools for Java which help dependency management for Java Project. You only need to declare what libraries you need to include in the project. I would help you download. 

The common problem of Maven in Enterprise context is that the corporate firewall would block your download from maven which make maven become useless.


# Dispute - Eclipse Vs Intellij

Many people may argue that Intellij is a better IDE than Eclipse. I admit that there are so many problem when you are using Eclipse.

* Loading Time
* No Response sometimes
* Consume so many resource
* Poor Integration such as GIT, JavaScript, HTML (I think)

But I still recommend Eclipse. The below is the advantage of Eclipse I think.

* **FREE** (Extremely Important)
* No need for learning for existing team
* Maybe easy to find people who is good as eclipse
Help with conducting SCRUM training!
Tags: scrum, agile, training, discuss
Published: 2018-08-29 17:35:29

---
title: Help with conducting SCRUM training!
published: true
description: Few questions about making training about scrum.
tags: scrum, agile, training, discussion
---

Hi all! Some time ago I got offered to conduct training about SCRUM and agile methodologies for beginners. I am going to prepare a presentation and some practical exercises e.g. poker planning, daily roundup, retrospective meeting etc. It is going to be based on my personal experience from a few companies at which I worked. I have a few questions: 
- What topic should I focus on the most?
- What would you like to learn at the training?
- Which one thing do you most appreciate about SCRUM? 
- Do you happen to know about some good exercises or sources which I should use for my presentation?
React vs. Angular vs. VueJS vs. Native
Tags: healthydebate, discuss
Published: 2018-08-29 17:05:34

---
title: React vs. Angular vs. VueJS vs. Native
published: true
tags: healthydebate, discuss
---

Your code is going to face someone eventually and they need to interact with it.  What framework do you use and why?  Do you use something like Cordova to go multi-platform?

Or, do you just go Native for the platform?

**Bonus** What operating system or web technology is your brain running on?

Edit: We live in a mobile world, so chances are, your application will run on a phone.  Many are using the hybrid approach of using web technologies + native interfacing vs. native code.  If you're using web technologies, what framework do you pick?  Or, do you just go native?
System Design Basics
Tags: system, basics, web
Published: 2018-08-29 16:34:27

---
title: System Design Basics
published: true
description: A youtube playlist for system design basics
tags: system,basics,web
---

Hey Everyone,


When I  searched  videos about pub/sub, I came across this [video](https://www.youtube.com/watch?v=FMhbR_kQeHw&index=8&t=0s&list=PLMCXHnjXnTnvo6alSjVkgxV-VH6EPyvoX).

Turns out the guy who's making this video is a famous competitive programming person. 

He made an entire [playlist](https://www.youtube.com/playlist?list=PLMCXHnjXnTnvo6alSjVkgxV-VH6EPyvoX) for Basics of system design, a must learning topic for anyone who wants a deep understanding of how the actual web works.

Why I wanted to share this with you is because, the videos are explained in with simple words and nice pronunciation, which makes easy to understand.

Hope this will be helpful!!!!
Would you pay someone to find a job you love?
Tags: discuss, career
Published: 2018-08-29 15:04:17

---
title: Would you pay someone to find a job you love?
published: true
description: 
tags: #discuss #career
---

As the title says, suppose someone or something would (help you) find a job you really like, would you be willing to pay that person or service?

To clarify, I'm not asking if you would pay for the job itself, rather the effort of (or aid in) finding it.
Ethically it's fine, somebody does something for you, you pay them for it, simple enough. But would you do it in practice, do you feel it provides worth?

I myself am trying to create a job-searching tool and feel like the only way to align business model and catering to job seekers is a "pay what you want"-based system. Any thoughts?
Where do you find your testers?
Tags: help, askdev, opensource
Published: 2018-08-29 14:36:19

---
title: Where do you find your testers?
published: true
description: refactor, reformat, and release
tags: help,askdev,oss
---

I'm in need of some testers for edge-busting code, so I was wondering: Where do you find your testers for betas?
New sorting algorithm: mkdir sort
Tags: shell, algorithms, showdev
Published: 2018-08-29 14:15:50

---
title: New sorting algorithm: mkdir sort
published: true
description: 
tags: shell, algorithm, showdev
---
A little sorting algorithm I made just for fun.


```bash
#!/bin/bash
function f() {
	echo $(eval printf 'g/%.0s' {1.."$1"})"$1" | xargs mkdir -p
}

while [ -n "$1" ]
do
	f "$1"
	shift
done

find . -type d | sed 's#.*/##' | grep -v g

#./mkdirsort.sh 9 2 7 4 6
```

It's like a "b-tree sort" using the FS


{% github 02sh/mkdir-sort %}
Most Popular Development Posts Of The Week (29 August 2018)
Tags: javascript, css, opensource, frontenddev
Published: 2018-08-29 13:45:27

---
title: Most Popular Development Posts Of The Week (29 August 2018)
published: true
tags: javascript,css,open-source,front-end-developmen
canonical_url: https://medium.com/daily-now/most-popular-development-posts-of-the-week-29-august-2018-bd60f6d9d559
---

![](https://cdn-images-1.medium.com/max/1024/1*kl3gvniXGwqC2gMDYPwYAA.jpeg)<figcaption>I doubt I’ll ever go back to corporate work. Once you see the light, there is no turning back.</figcaption>

- [Next Generation Javascript concepts](https://app.dailynow.co/r/e549d808e1df9986514e365a5536488b)
- [Best Open Source Tools For Developers ?](https://app.dailynow.co/r/7272436d2e7edab96c512514ad7eebb7)
- [Top JavaScript Libraries in 2018](https://app.dailynow.co/r/89aacb2fb8adc06a7472808adb9ea28b)
- [“I need an estimate for this feature”](https://app.dailynow.co/r/396923a514953bf35a90534ef4a87c23) by [Karim Fanous](https://medium.com/u/71d873b3544e)
- [Coder IDE — The Next-gen IDE on the ☁️](https://app.dailynow.co/r/974681f09efbe88441dd7f3a9277d720) by [Sethu Senthil](https://medium.com/u/c74115789e40)
- [Front End Checklist: All important things around front-end in one list](https://app.dailynow.co/r/d9a78e66fd0538123a9e99253b3c4f07)
- [A Day in the Life of a Professional Web Developer](https://app.dailynow.co/r/b638066c99de5b19cffed5d497812aed) by [Michael Scott Hertzberg](https://medium.com/u/35ed4d855d87)
- [5 Useful Little CSS Tricks](https://app.dailynow.co/r/303be0517482e87a6b7602bc24eb58cc) by [Flipped Coding](https://medium.com/u/e83a775945db)
- [Pro tips for Visual Studio Code to be productive in 2018 ‍](https://app.dailynow.co/r/66bd135bba4022cb4370dab3365ed24f) by [Ankur Biswas](https://medium.com/u/b534dcf18d9d)
- [Making an animated nav component — WotW](https://app.dailynow.co/r/3b82cd881e449a07e2c27fb64c79de4b) by [Eder Diaz](https://medium.com/u/b4df8fb7f602)
How to make beautiful web pages?
Tags: help
Published: 2018-08-29 13:30:59


---
title: How to make beautiful web pages?
published: true
tags: help
---

![](https://thepracticaldev.s3.amazonaws.com/i/h5kz4fiq4zzuqcifvsf6.jpg)

Recently I started to make my own blog on *Python/Flask* and *Bootstrap 4*. I haven't got actually any problems with programming and creating html pages, but anyway, my website doesn't look so beautiful and attractive. What can you advise me to fix?
Format XML with XSLT
Tags: xml, xslt, format, tip
Published: 2018-08-29 13:26:46

---
title: Format XML with XSLT
published: true
description: Quick XSLT that can format your XML
tags: XML, XSLT, format, tip
---

Did you know you can use XSLT to format your XML so that it is more readable? XSLT stands for eXtensible Stylesheet Language. This XSLT can be used to format XML:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" indent="yes" />
    <xsl:template match="/">
    <xsl:copy-of select="/" />
    </xsl:template>
    </xsl:transform>

Apply this XSLT to your XML using whatever XSLT Transformation command is available to you.

To use this XSLT with Xojo, add a module to your project (name it XMLExtensions), add a String constant to the module (call it kXSLTFormat) and copy the above XSLT into the constant.

Now add a Global function to the module that extends the XMLDocument class with a Format function:

    Function Format(Extends xml As XMLDocument) As String
      Return xml.Transform(kXSLTFormat)
    End Function

Now you can call it to get back formatted XML as a String. For example, this code takes unformatted XML from a TextField and displays the formatted XML in another TextField:

    Dim xml As New XMLDocument
    xml.LoadXml(TextArea1.Text)
    TextArea2.Text = xml.Format

![](https://blog.xojo.com/wp-content/uploads/2018/08/2018-08-17_15-45-28.png)
What did you do when you want to share logic between iOS and android?
Tags: mobile, ios, android, help
Published: 2018-08-29 13:07:28

---
title: What did you do when you want to share logic between iOS and android?
published: true
description: 
tags: mobile, ios, android, help
---

Hello,
My team is going to tackle a project with iOS and Android, both using native SDK. We want to share the data and logic between them, I mean data structure and design patterns. We'are planning to use Unit Test as the way to share the logic.
Is that a good way? If you already work on the same kind of problem, please share the lesson :). Thank you very much.
Looking for recommendations - .net core compatible dependency mapping (free? :D)
Tags: netcore, dependency, extensions, recommendations
Published: 2018-08-29 18:32:11

---
title: Looking for recommendations - .net core compatible dependency mapping (free? :D)
published: true
tags: .net core,dependency,extensions,recommendations
canonical_url: https://kritner.blogspot.com/2018/08/looking-for-recommendations-net-core.html
---

I'm going to be looking into converting a lot of our projects into NuGet packages, and it is a large solution, so ideally I'd be able to map the current (pre NuGet conversion) project dependencies.  
  
I'll be doing some research into potential extensions I can add to visual studio to do this, but if anyone has something in mind, suggestions are appreciated!  
  
Something like this, but on a much larger project scale:

[![](https://3.bp.blogspot.com/-xyiYmQDtz5c/W4aQjVvu7BI/AAAAAAAAPvQ/igyDhU_pJYc_x4jSpaXv1bWLY6e7NszuACLcBGAs/s320/projectDeps.png)](https://3.bp.blogspot.com/-xyiYmQDtz5c/W4aQjVvu7BI/AAAAAAAAPvQ/igyDhU_pJYc_x4jSpaXv1bWLY6e7NszuACLcBGAs/s1600/projectDeps.png)
I made some cheatsheets
Tags: cheatography, ne, howl, sorting
Published: 2018-08-29 12:03:21

---
title: I made some cheatsheets
published: true
description: https://www.cheatography.com/pryl/cheat-sheets/
tags: cheatography, ne, howl, sorting
---

## https://www.cheatography.com/pryl/cheat-sheets/

***Cheatography*** is awesome.
My podcast-subscriptions
Tags: podcast, productivity
Published: 2018-08-29 11:02:54

---
title: My podcast-subscriptions
published: true
description: A collection of podcasts i listen to regularly
tags: podcast, productivity, 
---
![an old microphone](https://thepracticaldev.s3.amazonaws.com/i/j5bu25jybwmj9cfi0r08.jpg)

The following post is an overview of podcasts I follow. I'm using [Pocket Casts](https://www.shiftyjelly.com/pocketcasts/) to subscribe and listen. This list is still a work in progress after several years. Also: There is *no* sort of ranking implied here. 

# technology
- [Herr Mies wills wissen](https://mies.me/) *GER* (Disclaimer: Coworker) 
- [Command Line Heroes](https://www.redhat.com/en/command-line-heroes)
- [nixers podcast](http://podcast.nixers.net/feed/)
- [Autoweird.fm](https://autoweirdfm.github.io/) *GER* (Disclaimer: Coworker)
- [CaSE podcast](https://www.case-podcast.org/) 
- [Coder Radio](https://coder.show/)
- [Linux Unplugged](https://linuxunplugged.fireside.fm/)
- [INNOQ Podcast](https://www.innoq.com/podcast) *GER*
- [Linux Action News](https://linuxactionnews.com/)
- [Programming Throwdown](http://programmingthrowdown.blogspot.com/)
- [TechSNAP](http://techsnap.systems/)
- [Unsupervised Learning](https://danielmiessler.com/podcast/)
- [uhl, steine, scherben](http://uhl-steine-scherben.org/) *GER* (Disclaimer: Former Coworker)

# infosec
- [Darknet Diarys](https://darknetdiaries.com/)
- [Malicious Life](https://malicious.life/)
- [Brakeing Down Security](https://brakeingsecurity.com)
- [Humans of Infosec](http://soundcloud.com/humans-of-infosec)
- [Defensive Security Podcast](https://defensivesecurity.org/)
- [Security Now](https://twit.tv/shows/security-now)
- [Smashing Security](https://www.smashingsecurity.com/)
- [The Many Hats Club](https://themanyhats.club/)
- [RallySec](https://rallysecurity.com/)
- [Hackable?](https://hackablepodcast.com/)
- [The Social-Engineer Podcast](http://www.social-engineer.org/category/podcast/)
- [alienvault security perspectives](https://www.alienvault.com/resource-center#content_podcast)

# politics and general news
- [Die Wochendaemmerung](https://wochendaemmerung.de/) *GER*
- [Logbuch: Netzpolitik](http://logbuch-netzpolitik.de/) *GER*
- [Common Sense with Dan Carlin](http://www.dancarlin.com/)
- [Dan Carlin's Hardcore History](http://www.dancarlin.com/)

# agile
- [Mein Scrum ist kaputt](https://meinscrumistkaputt.de/) *GER*
- [Healthy Software Developer](https://jaymeedwards.com/)
- [agile in 3 minutes](https://agilein3minut.es/archive/)

# misc
- [Ear Hustle](https://www.earhustlesq.com/)
- [CRE](http://cre.fm/) *GER*


I'd love to hear about the podcasts _you_ enjoy or that you recommend. Feel free to drop me a comment!
How to build a docker image which can restore databases whenever a new container is created from it
Tags: docker, postgres, todayilearned, database
Published: 2018-08-29 10:18:22

---
title: How to build a docker image which can restore databases whenever a new container is created from it
published: true
description: 
tags: Docker,Postgres,todayilearned,Databases
---
**1. Run a postgres container.**
<code>docker container run --name \<name> --detach -p 5432:5432 -e POSTGRES_PASSWORD=\<my-pass> postgres </code>
(ex: docker container run --name store --detach -p 5432:5432 -e POSTGRES_PASSWORD=my-pass postgres)

**2. Create a directory in container to copy backup file.**
<code>docker exec \<container_name> mkdir /\<dir_name></code>
(ex: docker exec store mkdir /data)
 
**3. Copy a backup file in container from Host or from another container.**
<code>docker cp /path/of/backup_file/database_bkp.sql \<container_name>:/path/to/copy/file</code>
(ex: docker cp /volume1/database_bkp.sql store:/data)

**4. Install an editor in container (nano or vim etc...).**
<code>apt-get update
 apt-get install vim
 export EDITOR=vim
</code> 
 
**5. Create file in /docker-entrypoint-initdb.d directory**
<code>touch /docker-entrypoint-initdb.d/\<file_name></code>
(ex: touch /docker-entrypoint-initdb.d/restore_db.sh )
 
**6. write restore script in restore_db.sh**
**********************
<code>\#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" -f /data/database_bkp.sql</code>
********************* 
*(if you dumped only a single database using pg_dump then please mention database name also in script)*
**********************
<code>psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" -d \<database-name> -f /data/database_bkp.sql)</code>
**********************
**7. Make file executable**
<code>chmod 755 /docker-entrypoint-initdb.d/restore_db.sh</code>
 
**8. Build a new image from running container.**
<code>docker commit \<running-container> \<new-image></code>
(ex: docker commit store store_new)
 
**9. Verify that image has built properly.**
<code>docker image ls</code>
 
**10. Run container from newly build image on a different port.**
<code>docker container run --name \<name> --detach -p 4432:5432 -e POSTGRES_PASSWORD=\<my-pass> \<new-image></code>
(eg: docker container run --name store_postgres --detach -p 4432:5432 -e POSTGRES_PASSWORD=my-pass store_new)

This image has a restore file in it, a database is created when a new container is created from this image

Thanks for reading! 😊, This is my first post. Please let me know if you have any issue and also please write feedback.
Usefulness of a personal website/page
Tags: discuss
Published: 2018-08-29 08:57:14

---
title: Usefulness of a personal website/page
published: true
description: 
tags: discuss
---

I recently acquired [sonrel.me](https://sonrel.me) thinking it could finally be the occasion to build a personal page, although I'm still not convinced of how useful it is.

To those of you who have a personal website/page: would you say it's useful? Whether or not, how so?

Additional questions:

- What kind of site do you have? A simple page about you? CV-like? Portfolio? Other?
- What techs/stack do you use?

Bonus points for links! 😉

P.S.: I don't consider blogs "personal pages", it is for me a different kind of site with a totally different kind of purpose.
What are the advantages of ES7 over ES6 (Focusing on React)?
Tags: javascript, es6, ecmascript, help
Published: 2018-08-29 08:54:55

---
title: What are the advantages of ES7 over ES6 (Focusing on React)?
published: true
description: 
tags: javascript, es6, ecmascript, help
---

I read in ES7 we can declare the state variables outside the constructor and also declare propTypes as a static properties, declared as high as possible within the component code.

    import React, { Component } from 'react'
    import { string, object } from 'prop-types'

    export default class ProfileContainer extends Component {
      state = { expanded: false }

      static propTypes = {
        model: object.isRequired,
        title: string
      }

      static defaultProps = {
        model: {
          id: 0
        },
        title: 'Your Name'
      }

    }

Could anyone explain me what are the advantageous of doing it, Also I would want to know new features of ES7, A layman explanation.
Web app for change network configuration?
Tags: help, networking, network
Published: 2018-08-29 06:40:57

---
title: Web app for change network configuration?
published: true
tags: help, networking, network
---

Hi to all.
It's possible change the network configuration via Web APP?

Maybe with Dart?

I don't want use Micro.. Visua Studi.. (Cough, cough). xD

I need change the network configuration of my LAN (Windows 10 and 7) via Software.
How to use Emmet with React/JSX?
Tags: emmet, react, jsx, help
Published: 2018-08-29 06:13:46

---
title: How to use Emmet with React/JSX? 
published: true
description: 
tags: emmet, react, jsx, help
---

Hi, hello, dober dan!

This isn't a tutorial sadly, more of a request for knowledge :D

Been learning React recently. As probably many of you I also use Emmet when it comes to writing HTML code more quickly. I wanted to use Emmet for JSX and found myself confused as to why it doesn't work consistently?

First thing I did was change the "Workplace settings" in VSCode as how this issue instructed: https://github.com/Microsoft/vscode/issues/41998

That worked, BUT when I created a new `.js` file in my `src` folder for example and tried writing React/JSX code in it, Emmet didn't work. The only solution I could figure out was to manually change the file type to `javascriptreact` every time I create a new file.

Does anyone have a link to a solution? Thanks :D
How to add a "run script" context menu item in macOs
Tags: howto, applescript, automator
Published: 2018-08-29 05:27:07

---
title: How to add a "run script" context menu item in macOs 
published: true
description: A quick tip on how to add a "run script" context menu in macOs 
tags: #howto #AppleScript #automator
---

I usually write a shell script file for everything... so I don't have to remember long a$$ commands, especially for running servers or starting builds. It just makes everything easier.

I usually use ["New Terminal Tab at Folder"](https://lifehacker.com/launch-an-os-x-terminal-window-from-a-specific-folder-1466745514) service to, you guessed it, `cd` into that folder then run my shell script `./run.sh`

![New Terminal Tab at Folder](https://thepracticaldev.s3.amazonaws.com/i/mcf5c93xadqaiuo0w9we.png)

You might be thinking: ["well, you can just double click it"](https://stackoverflow.com/questions/5125907/how-to-run-a-shell-script-in-os-x-by-double-clicking), yeah, I can, but I usually reserve double clicking for when I need to "edit" the shell script, not when I need to "run" it. Because I am frequently editing shell scripts.

So I thought, what if I add a context menu item "Run Script". So I can right-click a file then click "Run Script" and it will open a terminal and run my script for me.

![run script](https://thepracticaldev.s3.amazonaws.com/i/ywesk9n76a8ld73w8eik.png)

googled 'round, didn't quite find something like that, so I created it! Here is how:

1. Open Automator
2. Choose `Service`
3. Drag the `Run AppleScript` action into the workflow
4. add code below
5. Save the workflow as `run script`
6. Enjoy!

```AppleScript
tell application "Finder"
    # Get the directory of the selected file, store it in "selDir"
	set selDir to POSIX path of (parent of first item of (get selection as alias list) as alias)
	# Get the path of the selected file, store it in "selPath"
	set selPath to POSIX path of (selection as text)
	# Optional commands to show dialog, for debugging puposes.
	# display dialog selDir as text
	# display dialog selPath as text
end tell

tell application "Terminal"
	# Open terminal, cd to selected file directory, then run te file.
    do script "cd " & selDir & " && " & selPath
end tell
```

And now I realized that I've spent about an hour and a half learning some AppleScript when I should have been working on my side project... #MySideProjectsHaveSideProjects 😅