teleren/devto huggingface dataset:
Live Code idea — a weird new way of giving code presentations
Tags: code, perl, presentation, git
Published: 2019-02-03 08:24:22

---
title: Live Code idea — a weird new way of giving code presentations
published: true
description: 
tags: code,perl,presentation,git
---

I came up with an interesting way to do presentations/demos involving showing code, and I thought you might be interested, so here's a video.

{% youtube 5DL3b81xFYI %}
Sharing To WhatsApp From A React Native Application
Tags: react, reactnative, javascript, es6
Published: 2019-02-03 07:19:09

---
title: Sharing To WhatsApp From A React Native Application
published: true
description: Sharing To WhatsApp From A React Native Application
tags: #react #reactnative #js #es6
---
--------
Source : <a href="https://www.skptricks.com/2019/02/sharing-to-whatsapp-from-react-native.html" >Sharing To WhatsApp From A React Native Application </a>
---------

This tutorial explains how to share particular message to whatsapp application in react native application. Sharing a content in whataspp application is very easy and simple. Just you need to import Linking class from the react-native package.

Sharing to WhatsApp from a react native application

Follow the below steps to share text content in whatsapp application :

1. import Linking class from the react-native package.
import { Linking } from "react-native";

2. Call the below function, in order to share content in whatsapp application.
shareToWhatsApp = (text) => {
  Linking.openURL(`whatsapp://send?text=${text}`);
}

<img src="https://1.bp.blogspot.com/-vfKh4byYd_Y/XFaEnZndBSI/AAAAAAAACYU/oIMy9RBf-wQbMdk_-Dopp4WRiCDAZaZEQCLcBGAs/s640/alexa.png" />
My Dev.to New Year's resolutions
Tags: career, newyear
Published: 2019-02-03 05:11:05

---
title: My Dev.to New Year's resolutions
published: true
description: A little late, but it's still January
tags: career, newyear
---

Hey folks! I love the resolutions that are going around here and I thought I would do my own! I'm only a month late, so we are off to a good start... 🤣 First off, I wanna point out this great post by Frederik:

{% link _bigblind/new-years-resolutions-suck-pick-a-theme-of-the-year-2kh1 %}

I love the idea and I want to try it out. So without further ado, my 2019 theme is:

# Principals

I've been a developer for a while now. I've worked a few different types of jobs mostly in consulting or on a product team. One thing I am starting to realize is that good development starts with good principals. I'm still working on refining and discovering what all of those principals are, but here are a few that I am currently pursuing.

### General

1. Continuous metrics drive continuous improvement
2. Opinions are not facts.
3. Don't blame, fix.

### Code

1. Don't make your code do too much.
2. You can't fix code by staring at it.
3. [Write Everything Twice](https://dev.to/wuz/stop-trying-to-be-so-dry-instead-write-everything-twice-wet-5g33)
4. Always comment your abstractions
5. Optimize for deletion

### Writing

1. Write for yourself, edit for your reader

### Relationships

1. Close the loop. Don't let connections fall off. 

### Mentorship

1. A mentor will share their experiences with you to contribute to your knowledge base.
2. A mentor will use their network to help you succeed to achieve your goals.


### Some other goals

1. Write on dev.to at least once a week
2. Speak at a tech conference
3. Release some work on a side project I have been developing
4. Release 3 series around learning to be a developer (First one is being written now!)
More articles about PHP (Laravel)
Tags: laravel, php
Published: 2019-02-03 04:03:12

---
title: More articles about PHP (Laravel)
published: true

description: Hello Geeks, I am a Laravel developer. I see that this community (dev.to community) is pretty big. I see a lot of amazing articles and discussions about javascript and python a lot with other tech stuff. But, I also want to see more articles about PHP and laravel. Any suggestions for that?

tags: laravel, php
---
Rails! Here I come (Day #6)
Tags: showdev, beginners
Published: 2019-02-03 03:51:26

---
title: Rails! Here I come (Day #6)
published: true
description: That first deployment
tags: showdev, beginners
---

Little did I know when I started out, that six days into starting Rails, I would be deploying an app. But, here I am, a proud owner of an app. A simple blog posting app. There are still loads of improvements and features to be added, but I just wanted to get it up there. So this is what it feels like. I like the feels. I want more of it. 

Keep working, and be patient.

Here's the [app] (https://threeirblog.herokuapp.com/) Please feel free to check it out and comments would be highly appreciated. 

Thank you :) 

*Just realised that there a few broken links here and there. Was too impatient in deploying it.* :D
ColorPrefUtil library for Android
Tags: android, colorpreference, library, opensource
Published: 2019-02-03 02:49:47

---
title: ColorPrefUtil library for Android
published: true
description: Easily change theme and view/layout/icon/text colors or custom background drawables. ![ColorPrefUtil logo](https://raw.githubusercontent.com/akndmr/ColorPrefUtil/master/ColorPrefUtilLogo.png =100) [Check it on Github](https://github.com/akndmr/ColorPrefUtil)
cover_image: https://raw.githubusercontent.com/akndmr/ColorPrefUtil/master/ColorPrefUtilLogo.png
tags: #android #colorpreference #library #opensource
---
An open source Android color preference util library.

Easily change theme and view/layout/icon/text colors or custom background drawables.  
[Check it on Github](https://github.com/akndmr/ColorPrefUtil)


<pre>
  <code class="java">

<b>Gradle</b>

<b>Step 1. Add the JitPack repository to your build file</b>

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

<b>Step 2. Add the dependency</b>

	dependencies {
	        implementation 'com.github.akndmr:ColorPrefUtil:1.0.1'
	}
  </code>
</pre>
Looking for a group to learn site/project promoting together
Tags: help, seo
Published: 2019-02-03 00:21:03

---
title: Looking for a group to learn site/project promoting together
published: true
description: I suck at seo and promoting my projects, always have. I need help learning the ropes. I would love to start a little group that we can learn off each other to grow but also make it fun.
tags: help, seo
---

**Update**: getting some good feedback. So if you want to join us then follow me and comment below, then I’ll follow you back and message you a link to our shared google doc.  

So I've always been horrible at seo and promoting my sites. Part of the reason I never really kept my sites up, is simply because I couldn't get people interested in them. 

I would love to start a little group to learn how to promote our work/projects as well as help each other to motivate each other and promote each other. 

--DeChamp
dom-chef - Build DOM Elements with JSX
Tags: webdev, javascript
Published: 2019-02-02 23:45:45

---
title: dom-chef - Build DOM Elements with JSX
published: true
description: dom-chef-  Build DOM Elements with JSX
tags: webdev,javascript
canonical_url: https://www.iamdeveloper.com/posts/dom-chef---build-dom-elements-with-jsx-5fi/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/pkajv39sn98rgfgdeotf.jpg
---

I came across dom-chef while working on a PR for [migrating Refined GitHub to TypeScript](https://github.com/sindresorhus/refined-github/pull/1750) (WIP and something that is interesting on its own if you're new to TypeScript).

At a quick first glance, I thought Refined GitHub was built with React, but as soon as I had that second sip of coffee, I realized it was just JS with some JSX in it.

![](https://media3.giphy.com/media/2JeyC2DvEhdRu/giphy.gif?cid=19f5b51a5c562926446e66326327f7e5)

The TLDR:
* No API, JSX gets auto transformed into actual DOM elements
* Protection from XSS injections
* Partial SVG support
* React-like props naming (including events)
* Mix any DOM elements inside

This is definitely interesting if you're a fan of JSX.

Check out the repository

{%github https://github.com/vadimdemedes/dom-chef %}

Photo by [Wyron A](https://unsplash.com/photos/Lhb1DyyNr7U?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/search/photos/chef?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
AWS Certifications Resource Recommendations
Tags: aws, certifications, cheatsheet, studytips
Published: 2019-02-02 23:22:28

---
title: AWS Certifications Resource Recommendations
published: true
description: AWS Certifications CheatSheet
tags: aws, certifications, cheatsheet, studytips
cover_image: https://thepracticaldev.s3.amazonaws.com/i/1wfwwxixclbfkzbb6b18.jpg
---


I just got 5 AWS certifications & wanted to share the resources I used in case it helps others

![img](https://thepracticaldev.s3.amazonaws.com/i/ncez0u9y0a6g8q5kj8lq.png)


**Cloud Practioner**
- Resources
  - acloud.guru
- Tips
  - I would study for the solutions architect associate first, then just knock out the cloud practitioner the next day. It's 80% the same material.

**Associate Exams** - Architect, Developer, Sys Ops
- *SysOps Admin*
  - Focus on cloudwatch, & metrics related to the common services (dynamodb, ec2, rds, etc)
- Resources
  - acloud.guru
- Tips
  - Do all the cloud.guru labs, quizzes and exam builder till you average 85%+

**Devops Professional**
- Resources
  - acloud.guru
     - For this specific exam acloud.guru was good for a summary of the exam related services.
  - whizlabs - AWS DevOps Professional Practice Tests
        - 20% of the exam, I had seen before in practice test questions
- Tips
  - Know CloudFormation, OpsWorks, Beanstalk like the back of your hand
  - Take the **sysOp admin associate** before, it had a lot of metric related topics (cloudwatch) that were like 30% of the exam 

**Solutions Architect Professional**
- Resources
    - TBD
Help needed: Spring batch + scheduled task = no transaction
Tags: spring, java, help, jpa
Published: 2019-02-02 22:56:31

---
title: Help needed: Spring batch + scheduled task = no transaction
published: true
description: 
tags: spring, java, help, jpa
---

I have a simple spring boot application with a scheduled task. The scheduled task starts a spring batch job. 

The scheduled task starts normally and the batch job works fine but nothing Is saved to the database. 

You can find all the details in this SO question 

https://stackoverflow.com/questions/54457041/spring-boot-repository-does-not-save-to-the-db-if-called-from-scheduled-job

Hope anyone can help. 


Edit
====
I have updated the question at SO with the answer that worked for me.
A trick or two I found to manage maven settings
Tags: blog, java, maven, devops
Published: 2020-12-02 17:22:11

---
title: A trick or two I found to manage maven settings
published: true
date: 2019-02-02 22:48:00 UTC
tags: blog,java,maven,devops
canonical_url: https://samreghenzi.it/a-trick-or-two-i-found-to-manage-maven-settings/
---

# A trick or two I found to manage maven settings

A few weeks ago I was setting up a minimal Continuous Integration solution based on Maven running on Bitbucket pipelines. To frame the problem lets just say it was a git mono-repo with the sources of multiple artifacts. Some of these artifacts where runnable applications, but others where client libraries that I had to deploy in a private maven repository. Now I run into a security issue and a moral problem: maven stores credentials to access private repository in the settings.xml configuration file. Although everybody uses a global/ system-wide settings.xml is also possible to override with a local one using the -s cli switch. According to maven’s documentation is not possible to pass repository credentials from the command line. Now I surely don’t want to commit a file with my private maven repository credentials in it. I don’t even want to commit a settings.xml file into my git repo just for the sake of the Continuous Integration. Many CI product asks for a configuration file in the root repository with the description of the actions flow for the build (bitbucket-pipelines.yml): this is the necessary evil and the maximum level of intrusion I can stand in my projects. So I used the environment variable substitution feature of Maven to solve the first issue. In a custom settings.xml file, I defined the server entries for my private repo, but I put just placeholders for environment variables.

<iframe src=”https://medium.com/media/af936afc41822c087c98df7e36d3313d” frameborder=0></iframe>

Then I defined my.repo.user and my.repo.password as environment variables in Bitbucket pipeline system.

But still I had a rogue settings xml in my git repo. To get rid of that I thought that I could embed it in the bitbucket-pipelines.yml file, which is the only file I want to maintain for the CI stuff. So I base64 encoded it and I added a step in the build to decode it.

<iframe src=”https://medium.com/media/fefb27121b84cf87acdc06eb0c795dd2” frameborder=0></iframe>

Et voilà a clean and secure solution to deploy my artifacts in a private repo from bitbucket ( or similar CI products)
Blog post: Static Analysis in Perl - or yet another policy
Tags: perl, staticanalysis, security
Published: 2019-02-02 19:41:00

---
title: Blog post: Static Analysis in Perl - or yet another policy
published: true
description: The policy implementation I forgot to blog about
tags: perl, staticanalysis, security
---

After writing my last blog post: "[Bugs!? - static analysis to the rescue](https://dev.to/jonasbn/bugs---static-analysis-to-the-rescue-2m17)" I checked my list of blog posts and I discovered that I had never blogged about another [Perl::Critic](https://metacpan.org/pod/Perl::Critic) policy I had recently implemented.

The idea for the implementation was again not really my own, but was triggered by [a tweet](https://mobile.twitter.com/jmaslak/status/1008896883169751040) back in June 2018 by Joelle Maslak ([@jmaslak](https://mobile.twitter.com/jmaslak)).

> Perl folk: Looking for a PR challenge task?  Check for \d in regexes that really should be [0-9] or should have the /a regex modifier.  Perl is multinational by default!  #TPCiSLC

After reading the tweet I thought a Perl::Critic policy sounded like a good solution since we want to keep potential problems out of our code bases permanently and static analysis is a good process and tool. So I implemented [Perl::Critic::Policy::RegularExpressions::RequireDefault](https://github.com/jonasbn/perl-critic-policy-regularexpressions-requiredefault).

The policy's goal is to recommend the use of built-in improvements [introduced in Perl 5.14](https://perldoc.pl/perl5140delta#%2Fd%2C-%2Fl%2C-%2Fu%2C-and-%2Fa-modifiers) for regular expressions to avoid potential issues with:

- Visual Spoofing
- Character and String Transformation Vulnerabilities

Both aspects being security issues related to Unicode. I have actually never found out who implemented the feature in Perl, but this policy is simply leaning on this implementation so kudos to the Perl maintainers for implementing this, providing facilities to write more secure regular expressions in Perl, my policy simply tries to recommend the use of the feature for regular expressions - it is still up to you to decide whether it suits your code base :-)

The policy is uploaded to [MetaCPAN](https://metacpan.org/pod/Perl::Critic::Policy::RegularExpressions::RequireDefault) and is available via CPAN, but I am pondering attempting to get it adopted in to Perl::Critic core.

Do let me know what you think - PRs and feedback most welcome...
👾 GitHub Spray: Draw on your GitHub contrib graph ░▒▓█
Tags: javascript, github, npm, node
Published: 2019-02-02 14:06:23

---
title: 👾 GitHub Spray: Draw on your GitHub contrib graph ░▒▓█
published: true
description: 👾Generate spray for your GitHub contribution graph ░▒▓█
cover_image: https://i.imgur.com/FHuyI2B.png
tags: javascript,github,npm,node
---

<img src="https://i.imgur.com/nPZyGNo.gif" width="200" height="200" />

This may sound like a pointless project, but truth is, we all love to differentiate ourselves from others, and perhaps you might like to have this small touch on your GitHub page.

[This open source CLI](https://github.com/Annihil/github-spray), available as an npm module, gives you the ability to "spray"  your GH profile page.

![](https://i.imgur.com/FlokKGl.png)

The naming idea comes from Counter Strike, where you could spray walls with your custom image, it was very popular, to the point that a very famous technique was to spray a sexy half naked lady on a wall to drag enemies' attention and annihilate them while their defenses were lowered.

With this tool, you can draw on your 53 by 7 pixels calendar heatmap which is displayed on your profile.

It already contains several fonts so that you can easily write text.
```sh
$ github-spray -t hello
```
![](https://i.imgur.com/SCMxPUN.png)

Otherwise, you can be more creative and design your own pattern.
```sh
$ github-spray -f my_octocat_heart_smiley_pattern.json
```
![](https://i.imgur.com/ucwnJud.png)
I made [an handy web app](https://annihil.github.io/github-spray-generator/) to ease the creation.

It has numerous of options such as specifying the start date, the font, invert colors, adjust colors, flip horizontally or vertically the spray, set a repo origin url and push to it.

You only live once, go for it: [GitHub Spray](https://github.com/Annihil/github-spray) 🤙
Btw, the spray isn't permanent, you can delete it by removing the repo 🙂

Edit: **Huge thanks to DEV Community** for making the repo appear on the [GitHub Javascript trending page](https://github.com/trending/javascript?since=daily),  I love you guys!! <3
Web Components, Overview, Ep. 1
Tags: webcomponents, customelements, shadowdom, webdev
Published: 2019-02-02 17:54:51

---
title: Web Components, Overview, Ep. 1
published: True
description: What are web components from the 10k' view?
tags: Web components, custom elements, shadow dom, webdev
---

{% youtube Vs-ko-UaWUQ %}
Rapidly accessing cheatsheets to learn data science with Emacs
Tags: emacs, datascience
Published: 2020-01-22 08:38:13

---
title: Rapidly accessing cheatsheets to learn data science with Emacs
published: true
tags: Emacs, datascience 
canonical_url: 
---

[Matt Dancho’s course DSB-101-R](https://university.business-science.io/p/ds4b-101-r-business-analysis-r) is an awesome course to step into ROI driven business analytics fueled by Data Science. In this course, among many other things - he teaches methods to understand and use cheatsheets to gain rapid _level-ups_, especially to find information connecting various packages and functions and workflows. I have been hooked to this approach and needed a way to quickly refer to the different cheatsheets as needed.

[Favio Vazquez’s ds-cheatsheets repo](https://github.com/FavioVazquez/ds-cheatsheets), akin to the One Ring to Rule them All (with respect to Cheatsheets of course), combined with Emacs ([Projectile](https://github.com/bbatsov/projectile) + [Helm](https://github.com/emacs-helm/helm) packages) make it almost a breeze to find a specific cheatsheet quickly, by just typing in a few words. <sup id="fnref:fn-1"><a href="#fn:fn-1">1</a></sup>

The built-in Hydras in [Scimax](https://github.com/jkitchin/scimax) make it very easy to do the above with a few key presses. All I do is `F12` \>\> p \>\> ww, start typing in “ds-” and choose the project and then start typing in the name of the PDF file I’m looking for. Check out the animation below.

![](https://shrysr.github.io/img/Emacs-projectile-cheatsheet.gif)<figcaption data-pre="Figure " data-post=":">
  <h4>Rapidly switching to a cheatsheet PDF</h4>
  
</figcaption>

The above concept applies to switching to any file in any git based project that is added to Projectile’s lists.

The next aspect to consider was switching between maximized buffer of the opened cheatsheet PDF and the current code buffer. As it goes in Emacs, “there’s probably a package for that..” ! My solution was to use one of the various frame/window configuration packages in Emacs to save the position and orientation of the buffers and rapidly switch between the maximised PDF frame and the split code and interpreter frames.

Facilitating the above was in fact already available in Scimax, where a frame or window configuration can be saved into a register that is valid for that session. Persistent saving of window configuration across sessions (i.e Emacs restarts) is a little more complex, but it is still possible with some tweaking. Winner-mode is also an interesting option to switch rapidly between window configurations.

* * *

1. To some extent, it is also possible that launchers like the Alfred app could be set or programmed to search in particular locations. This is a less _hacky_ and still a functional option for Mac users. <sup>^</sup>
Aim for Perfection, Don't Expect a Bullseye
Tags: discuss, perfection, productivity
Published: 2019-02-02 15:35:05

---
title: Aim for Perfection, Don't Expect a Bullseye
published: true
description: The thing about perfection
tags: #discussion #perfection #productivity
---

I’m a planned out sort of guy. I love it when things are perfect. My stuff are organised like a library. All my stuff is strategically placed. Even the files in my laptop. I hate clutter and chaos.

In all my projects I want it to be the very best. I feel like if I'm giving it my all, if I’m not giving enough, and if it’s not the best then never mind. When it came to group projects, when my group mates can’t follow what I said to the T then in the next time around I’d rather do it myself. I became this person who would rather do things on his own and make it exactly as he had in mind rather than to work with people that would have a higher risk of making the idea imperfect. It became lonely. I was incredibly stressed. I aimed for my expectations only to fail at it time and time again.

I started reevaluating my point of view on perfectionism. I took a closer look at how this world works around perfectionism. Then it hit me. **NOTHING IS PERFECT**.

So I had to change my mind. I still wanted things to be the best they could be. I wanted my projects to be done in excellence. I wanted myself to be excellent. But how?

Four things I learned:

1. Strive for perfection, but don’t expect the results to be perfect.
2. Things will never be perfect, live with it.
3. Imperfection makes you grow.
4. Aiming for perfection forces you to be even better than before.

So aim for perfection, but don’t expect to hit that bullseye.

What are your thoughts on perfection?
Recipe app
Tags: react, youtube, recipe
Published: 2019-02-02 12:04:39

---
title: Recipe app
published: true
description: Hello devs, especially y'all that are learning React for the first time or the 7th time it doesn't matter :) it's cool to learn by building a todo-app in React while you're learning but if you dig a little bit deeper after building the traditional todo-app and build an App like a Recipe app with no backend just using React it would give you a great understanding of React and how it works behind the scenes. Besides, React can do a ton of things other than just the two of these dive deeper to build a job searching site like indeed.com ;), you can do right? It will broaden your understanding about APIs and how data flows in you react app, you'll get to use JSON/AJAX React Routing and so much more to explore. In a fortnight or 3 weeks am gonna post a video on my channel how to build a recipe react app other than the traditional todo app. Can't wait to here from your whether it's a good idea ;) <3

tags: React, youtube, <Recipe />
---