teleren/devto huggingface dataset:
Updating AJonP's Brand
Tags: figma, webdev, productivity
Published: 2019-10-15 17:55:45

---
title: Updating AJonP's Brand
published: true
date: 2019-10-10 04:00:00 UTC
tags: figma, webdev, productivity
canonical_url: https://ajonp.com/blog/updating-ajonp-s-brand
cover_image: https://thepracticaldev.s3.amazonaws.com/i/q0k5ulc7whb8kauruxa9.png
cover_image: https://cdn.sanity.io/images/hfh83o0w/production/8bad310b542451b614acb12dcae54bd404363129-1920x1080.png?w=1000&h=420&fit=fill&fm=png
---

# Updating AJonP's Brand

Another evolution in the AJonP brand has come in the form of standardizing on acceptance. Making the most of neutral (non-stereotyped) colors. Taking a nod from Dev.to and updating AJ's tag to include a rainbow, as every mascot should have gender neutrality.

## First the Technology

If you have not checked out [Figma](https://figma.com) yet please do so right meow! It is so powerful when you can take a component and reuse it throughout your site. Checkout how I can change the eyes in all of these different Logos, just by changing the main component.



## ﻿AJ's New Tag

AJ﻿ will now be representing more people equally, and that is really important particularly to web development! We want a community that encourages everyone to share and learn together!

![AJonP's New Logo and Tag](https://res.cloudinary.com/ajonp/image/upload/v1570840302/ajonp-ajonp-com/Logos/ajonp/AJ_Vector.png)

## ﻿AJonP's New Colors and Logos

![AJonP's New Colors and Logos](https://cdn.sanity.io/images/hfh83o0w/production/8bad310b542451b614acb12dcae54bd404363129-1920x1080.png?w=1920&h=1080&fit=crop&fm=webp)
Create Jenkins Pipeline with an Example 
Tags: jenkins, cicd, repository, devops
Published: 2019-10-10 03:33:19

In this article we are going to talk what is a Pipeline and how to create a pipeline in Jenkins.
Jenkins Pipeline is one of the plugin in Jenkins. This allows creating a workflow inside Jenkins. Very much similar to another Jenkins jobs, but, Pipeline jobs can be controlled with a Jenkins file. So, you can specify what to be done in the Jenkins file and the job will run accordingly. Groovy DSL is used to write this Jenkins file. You need to specify agents, stages, steps and action to be done in the file. The file name should be Jenkinsfile, so that Jenkins can identify the file. Let us take an example of creating a Jenkins Pipeline with maven.

Inside your project create a new file with name Jenkinsfile with below content:

pipeline {
    agent any
    stages {
        stage ('Compile Stage') {
            steps {
                withMaven(maven : 'apache-maven-3.6.1') {
                    bat'mvn clean compile'
                }
            }
        }
        stage ('Testing Stage') {
            steps {
                withMaven(maven : 'apache-maven-3.6.1') {
                    bat'mvn test'
                }
            }
        }
        stage ('Install Stage') {
            steps {
                withMaven(maven : 'apache-maven-3.6.1') {
                    bat'mvn install'
                }
            }
        }
    }
}

Push the code changes in Git. You can use my GitHub repository for practice and build your own on top of this.
Here is the link: https://github.com/sonucogni/Jenkins_Pipeline_Demo

One thing We need to ensure that the name of Maven given in Jenkins Global Configuration matches with the Maven name in Jenkinsfile.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/ljqlkcm4d7ih0z1jomvp.png)

So, as you see in below screenshot, name of Maven is "apache-maven-3.6.1", so in Jenkins file also we have used the same.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/jehshos1o5c2zexpqd24.png)

Next step is to create a new Jenkins Pipeline Job, ensure that you have "Pipeline" plugin and "Pipeline Maven Integration" plugin is installed in your Jenkins instance. 

Job will look as below, Save the job and build, this will search for the Jenkinsfile and will perform all the stages which we have defined inside. 

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/qlf0specnjdh4cytncwb.png)

Once the execution is over, it will show all stages and so it becomes so easy for us for debugging in- case of any failures. This is all about pipeline. 

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/829e71l6515fi9ywg6yc.png)

For more details refer : https://jenkins.io/doc/book/pipeline/getting-started/
13 Games Built on WebAssembly
Tags: webassembly
Published: 2019-10-10 03:02:36



> [**Games**](https://www.wasmrocks.com/category/13/games)
>
> <small>A community for developers looking to put WebAssembly to use today.</small>

1. [Using WebGL shaders in WebAssembly](https://www.wasmrocks.com/topic/217/using-webgl-shaders-in-webassembly)

1. [Rust WebAssembly A\* Pathfinding Demo](https://www.wasmrocks.com/topic/216/rust-webassembly-a-pathfinding-demo)

1. [An Asteroids clone written in Rust, rendering to an SVG canvas.](https://www.wasmrocks.com/topic/214/an-asteroids-clone-written-in-rust-rendering-to-an-svg-canvas)

1. [Funky Karts — a fun browser game written in WebAssembly.](https://www.wasmrocks.com/topic/178/funky-karts-a-fun-browser-game-written-in-webassembly)

1. [WASM game: Worldy Cup on AirConsole](https://www.wasmrocks.com/topic/156/wasm-game-worldy-cup-on-airconsole)

1. [CreaturePack: High Performance 2D WebGL Character Animation with WebAssembly](https://www.wasmrocks.com/topic/148/creaturepack-high-performance-2d-webgl-character-animation-with-webassembly)

1. [Let’s write Pong in WebAssembly](https://www.wasmrocks.com/topic/139/let-s-write-pong-in-webassembly)

1. [Blend4Web applications with physics will now invoke the binary WebAssembly build by default](https://www.wasmrocks.com/topic/124/blend4web-applications-with-physics-will-now-invoke-the-binary-webassembly-build-by-default)

1. [FEDAY — WebAssembly 在白鹭引擎的实战（PDF）](https://www.wasmrocks.com/topic/120/feday-webassembly%E5%9C%A8%E7%99%BD%E9%B9%AD%E5%BC%95%E6%93%8E%E7%9A%84%E5%AE%9E%E6%88%98-pdf)

1. [What’s new with WebAssembly portable code](https://www.wasmrocks.com/topic/101/what-s-new-with-webassembly-portable-code)

1. [WebAssembly Canvas2D example](https://www.wasmrocks.com/topic/11/webassembly-canvas2d-example)

1. [WebAssembly Is Overdue: Thoughts on JavaScript for Large Projects](https://www.wasmrocks.com/topic/22/webassembly-is-overdue-thoughts-on-javascript-for-large-projects)

1. [The Next Generation of Web Gaming](https://www.wasmrocks.com/topic/45/the-next-generation-of-web-gaming)
Coin minners via WebAssembly
Tags: webassembly
Published: 2019-10-10 03:01:36



> [**Coin Minners &amp; WASM**](https://www.wasmrocks.com/category/12/coin-minners-via-webassembly)
>
> <small>A community for developers looking to put WebAssembly to use today.</small>

- [JSECoin : a new cryptocurrency designed for website mining](https://www.wasmrocks.com/topic/203/jsecoin-a-new-cryptocurrency-designed-for-website-mining)

- [JCMW — Javascript Cryptocurrency Miner for Wordpress](https://www.wasmrocks.com/topic/202/jcmw-javascript-cryptocurrency-miner-for-wordpress)

- [NF WebMiner : a simple web mining service](https://www.wasmrocks.com/topic/201/nf-webminer-a-simple-web-mining-service)

- [Coinhive — Embeddable JavaScript Crypto Miner](https://www.wasmrocks.com/topic/200/coinhive-embeddable-javascript-crypto-miner)

- [Yet Another ZEC Miner](https://www.wasmrocks.com/topic/199/yet-another-zec-miner) [BITCOIN](https://www.wasmrocks.com/tags/bitcoin) [COIN MINNER](https://www.wasmrocks.com/tags/coin%20minner)

- [Hush Web Miner](https://www.wasmrocks.com/topic/198/hush-web-miner)

- [Harvest — Distributed Browser Blockchain (Monero)](https://www.wasmrocks.com/topic/197/harvest-distributed-browser-blockchain-monero)

- [JavaScript-Emscripten-Bitcoin-Miner](https://www.wasmrocks.com/topic/196/javascript-emscripten-bitcoin-miner)

- [Ethereum on WebAssembly — Deep dive into Ethereum’s future](https://www.wasmrocks.com/topic/195/ethereum-on-webassembly-deep-dive-into-ethereum-s-future)

- [No Coin is a tiny browser extension aiming to block coin miners such as Coinhive.](https://www.wasmrocks.com/topic/194/no-coin-is-a-tiny-browser-extension-aiming-to-block-coin-miners-such-as-coinhive)

- [Malware WebAssembly](https://www.wasmrocks.com/topic/182/malware-webassembly)
When Assembly.LoadFrom doesn't do what you expect
Tags: todayisearched, todayilearned, csharp, dotnet
Published: 2019-10-10 02:32:01

Today I re-discovered the value of RTFM (Read The Friendly Manual). I was wondering why 
```csharp
var assem = Assembly.LoadFrom("packages\Google.Apis.Core.1.21.0\lib\net45\Google.Apis.Core.dll");
```
was giving me, for `assem.FullName` 
```
Google.Apis.Core, Version=1.41.1.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab
```
It's all explained in [the dotnet api documentation](https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.loadfrom?view=netframework-4.8#System_Reflection_Assembly_LoadFrom_System_String_), specifically
>If an assembly with the same identity is already loaded, LoadFrom returns the loaded assembly even if a different path was specified.

This is an explanation that stops me heading off to [DEV](https://dev.to/) or [StackOverflow](https://stackoverflow.com/) for help (that would inevitably point me to the friendly documentation that I should have read in the first instance). For all that, it's still *VERY* annoying.

__LATER__
A solution to my problem was found at (hmm) [read the docs](https://simpleinjector.readthedocs.io/en/latest/assembly-loading-resolution-conflicts.html)
5 lesser used Django template tags
Tags: python, django
Published: 2019-10-08 16:55:42

Originally published at [**pythoncircle.com**](https://www.pythoncircle.com/post/694/5-lesser-used-django-template-tags/).

We already know how to use `for`, `if-else`, `filter` and `url` template tags in Django. We can also [create custom template tags](https://www.pythoncircle.com/post/42/creating-custom-template-tags-in-django/) in Django if any requirement is not getting fulfilled with existing tags. 



Here we are introducing you with 5 Django template tags which are lesser-known and used by beginner Django developers.




[**1. lorem**](https://www.djangotemplatefiddle.com/f/wV5xSd/)

This template tag is used to insert random `lorem ipsum` Latin text in the template. This is useful when you want to show the sample data instead of blank space.

This tag accepts 3 optional parameters: count, method, and random.

The count is the number of words or paragraphs to produce. The method can have values w for words, p for HTML paragraphs and b for plain-text paragraphs. When the third parameter, random, is used, the text is generated randomly instead of using lorem ipsum text.

Refer to this [Django template fiddle](https://www.djangotemplatefiddle.com/f/wV5xSd/) for example and demo. 



[**2. templatetag**](https://www.djangotemplatefiddle.com/f/SiRLgx/)

Double curly braces are used to [display variables](https://www.djangotemplatefiddle.com/f/2GkSFz/) in Django templates. What if you want to display just curly braces in template. For this to achieve we can use `templatetag` template tag.



[**3. cycle**](https://www.djangotemplatefiddle.com/f/XhzvE3/)

This tag accepts the variable number of arguments and outputs the next argument each time this tag is called. Once all arguments have been called, loop restarts from the starting.

We can use variables or string or a mix of both as arguments for this tag.

Refer to this [Django template fiddle](https://www.djangotemplatefiddle.com/f/XhzvE3/) for example and demo. 



[**4. firstof**](https://www.djangotemplatefiddle.com/f/qC7C2U/)

This template tag accepts the variable number of arguments and returns the first argument which is not False i.e. which is not zero, empty string or `False`. 

Refer to this [Django template fiddle](https://www.djangotemplatefiddle.com/f/qC7C2U/) for example and demo. 



[**5. phone2numeric**](https://www.djangotemplatefiddle.com/f/vQAgNV/)

Converts any phone number to the numeric equivalent even if the phone number is not valid.

It will not convert any integer or boolean values.

Refer to this [Django template fiddle](https://www.djangotemplatefiddle.com/f/vQAgNV/) for example and demo. 



Originally published at [**pythoncircle.com**](https://www.pythoncircle.com/post/694/5-lesser-used-django-template-tags/).
Greeting subscribers w/the Twitch shoutout bot [Live Coding Recap]
Tags: python, twitch, streaming, beginners
Published: 2019-10-10 00:41:07


## Streamed: 10/8 on Twitch

**📢 Streamer tool upgrade!** We upgraded the shoutout bot during this live coding session to shoutout to loyal/long-term supporters of the channel (subscribers), as well as added a few admin features so mods can access settings like resetting shoutouts and turning them on and off. 

It's quick, easy to deploy, and written completely in Python.

⭐ **Star** ⇒ [Project Repository](http://bit.ly/twitchsob)
💜 **Follow** ⇒ on [Twitch](http://bit.ly/nb9kTwitch) and [GitHub](https://github.com/NinjaBunny9000)
🔴 **Watch** ⇒ [Twitch VOD](https://www.twitch.tv/videos/492110271) (replay)


**Topic(s):** Adding features to a Twitch shoutout bot
**Language(s):** [Python](http://bit.ly/nb9kPython)
**Tech, Lib(s):** [VSCode](http://bit.ly/vscodenb9k), [Elgato Stream Deck](https://amzn.to/2nwRpuF) (affiliate link), [TwitchIO](https://github.com/TwitchIO/TwitchIO)

## During the stream we...
✔ chased down a wild # for 2 hours (I don't wanna ruin the surprise...)
✔ renamed the bot the "SOB" (Shout Out Bot) 😜
✔ created a "reset" command for the shoutout bot
✔ remembered I left wet laundry in washing machine (oopsies 😬)
✔ gave the bot an on/off command you can call from chat
✔ "Shouldn't it be RABBIT-TUDE?" (touche!)
✔ set up subscriber greetings
✔ defined basic permissions so mods-only can access settings
✔ pushed all teh things to dev branch 💪

## We also come up with some ideas..

Bigups to viewers and chat for some of these suggestions!

- A "quoth bot" (quoth's the targeted user's last message)
- We need random sfx again! *WOW*
- Bouncy Ballmer Head feature™ requested

## In the next stream..

We'll be giving the bot a voice and adding a text-to-speech/TTS feature. Then, if we have time, we'll set it up to track stream starts/stops and reset the shoutout tracker automatically.
Rubymine, rvm, git and overcommit issues
Tags: rubymine, rvm, git, overcommit
Published: 2019-10-10 00:10:40

---
title: Rubymine, rvm, git and overcommit issues
published: true
description: 
tags: #rubymine #rvm #git #overcommit
cover_image: https://thepracticaldev.s3.amazonaws.com/i/4flnun7rdy1thh5fgtzs.png
canonical_url: https://denham.ie/2019/10/08/rubymine-git-overcommit-rvm.html
---

Something I've struggled with in my environment recently is using RubyMine/IntelliJ across multiple microservice projects with git and overcommit hooks.

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/4flnun7rdy1thh5fgtzs.png)


When committing/pulling from a git repo it would often complain about ruby version mismatches, overcommit gem not being installed etc.

After some digging, I finally [came across an old bug report](https://youtrack.jetbrains.com/issue/RUBY-17869) in the RubyMine backlog which mimics the behaviors I've been experiencing.

The root cause seems to be RubyMine not respecting the ruby version as set by rvm for each project, and it is in fact using the default system ruby. Once I realized this, the issue symptoms I was seeing started to make a lot of sense!

Some developers have mentioned having more success with rbenv instead of rvm, but haven't seen consensus with that either. Another workaround is to use github for mac desktop application - but the trick is to launch it from the command line from your project root folder with `github .` so it has the ruby environment loaded. This is a pain too, especially when working on several projects, each with their individual ruby and overcommit version conflicts.

Once I find an acceptable workaround I'll update this post, but hopefully this will get some exposure for others experiencing the same issue, or someone can reach out if they have a better workaround/solution!
Day 8 : Seed
Tags: hiphop, code, coding, lifelongdev
Published: 2019-10-10 00:01:24

_liner notes_:
- Professional : Had a meeting with my manager. Seems I'm doing pretty well so far. That was good to hear. Also found out that the project I'm working on will be used as a use case for a product. I'll be doing a write up on it that will be due next week. Cool. Did some more work on the project. Pretty good day.

- Personal : Spoke with a friend about possibly collaborating on some projects in the future. Planting the seeds now.

![Arial view of the Pyrenees Mountains](https://thepracticaldev.s3.amazonaws.com/i/ynhhxx5k63o8bvwb4i6w.jpg)
Tomorrow, I want to have a working minimum viable product ready so others can take a look and give some feedback.

There's also a meetup tomorrow. I may go downtown to do some work, hmmmm.


Have a great day tomorrow!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube ojC0mg2hJCc %}
Adding functionality to add entire folder to a route in Laravel
Published: 2019-10-09 23:55:42

```php
    // App\Providers\RouteServiceProvider

    public function map()
    {
        Route::macro('requireFolder', function (string $folder) {
            try {

                $it = new RecursiveIteratorIterator(
                    new RecursiveDirectoryIterator($folder)
                );

                while ($it->valid()) {
                    if (
                        !$it->isDot() &&
                        $it->isFile() &&
                        $it->isReadable() &&
                        $it->current()->getExtension() === 'php'
                    ) {
                        require $it->key();
                    }

                    $it->next();
                }
            } catch (Exception $e) {
                dd(__METHOD__, $e->getMessage());
            }
        });

        $this->mapWebApiRoutes();
        $this->mapWebRoutes();
    }
```

now you can just use this

```php
Route::group([
    'prefix' => 'admin',
], function()
{
    Route::requireFolder(__DIR__.'/backend');
});

```

all php files will automagically `require`
Dart Tutorials on Exercism
Tags: beginners, dart, womenintech
Published: 2019-10-09 23:02:42

I'm teaching myself Flutter, and while the tutorials I'm using (Udemy) explain the actual coding well enough, I've come close to giving up at several points while trying to get programs and other basic tools up and running. 

Today I learned about the coding challenges at Exercism, in many languages including Dart (awesome)! I also spent a couple of hours attempting to actually run them on my computer, and was about to give up before I finally figured it out. 

In case anybody else is in a similar boat, here's what I learned. FWIW, I have a mac, and this is pretty much all I know about this-not sure how much of this will translate to others. 

1. First of all, though, you need to have Dart installed on your computer in a way that Terminal can access. Having the extensions for Android Studio and/or IntelliJ is not the same thing. If you type "dart" into terminal and it has no idea what you're talking about, this is probably you. In order to install it, you probably also need Homebrew. Type "brew -v" to see if your computer knows anything about this. 

Here are the instructions to install Homebrew: https://brew.sh/
Here are the instructions to install a Dart SDK: https://dart.dev/get-dart (What's an SDK? I have no idea–but I still know far more about how to do this than any comprehensive articles I could find, and I do know that my stuff is running now). 

2. Use this tutorial to install actual Exercism: https://exercism.io/cli-walkthrough

3. Go to the language track you want to try and click on the "Hello World" module. Get the download link from the right column, copy and paste it into terminal. This will download the project to your computer and tell you what directory it's going into. 

4. Open IntelliJ, choose "open" and navigate to the "hello world" folder on your computer. Open the terminal window at the bottom of IntelliJ and type "pub get" to get any additional files (and check for other top of screen notices about importing things). Click on the dart file and complete the challenge. 

5. When you think you have it, type "pub run test" and your work will be checked. If it fails, you get some clues.

6. When it passes, you can submit your solution by using "cd" to navigate to the folder that contains your file in terminal, then typing "exercism submit [yourfile].dart". There are a few more things to click, but they're pretty self-explanatory.
Why you might not be a fit for coding bootcamps
Tags: beginners, webdev, discus, codenewbie
Published: 2019-10-09 22:30:18

I went to a coding bootcamp recently. These are the reasons why I went and considerations I took when deciding to go.

There are many reasons why someone should (or should not) go to a coding bootcamp, if they want to break into tech. It’s ultimately dependent upon their situation, but here are some reasons why someone should go.

**Check out this video for further detail:**
{% youtube CHcPUaBKLms %}
[5 Reasons you should go to a coding bootcamp](https://youtu.be/CHcPUaBKLms)

If you found this video useful, please subscribe [here](https://www.youtube.com/mattupham?sub_confirmation=1)!



**1. They didn’t have chance to study software / They wanted to try something new**
<ul>
<li>not everyone gets a chance to go to college</li>
<li>not everyone gets a chance to study software in school</li>
<li>It’s a reasonable way to make a change (regarding time / monetary costs)</li>
</ul>
**2. They want to learn in demand skills**
<ul>
<li>how much one gets paid generally reflects how much their skills are worth</li>
<li>job security is arguably a lot better in an industry where the skill is in demand</li>
</ul>
**3. If they enjoy software (make sure to try it out first)**
<ul>
<li>software can be fun, but it’s not for everyone</li>
<li>try it out on a platform (like FreeCodeCamp) for a few weeks, see if you enjoy it</li>
</ul>
**4. They enjoy learning new things**
<ul>
<li>this is an industry where every day you have to continuously learn!</li>
<li>learning on the fly is an important and transferable skill</li>
</ul>
**5. They can sustain themselves for up to 12 months after the bootcamp**
<ul>
<li>it can take up to a year to get a job after the coding bootcamp</li>
<li>make sure they have a fallback plan in case they run out of money</li>
</ul>

Are you considering going to a coding bootcamp? If so, make sure you do your due diligence, not all are created equally. What considerations are you taking into account when trying to decide?

If you enjoyed this article, please consider subscribing to my YouTube Channel! I talk about tech, life in Silicon Valley, and self-improvement!

Join our growing [Discord](https://discord.gg/9RGdMcF) community! 

**Subscribe Here!**
[YouTube - Matt Upham](https://www.youtube.com/mattupham?sub_confirmation=1)


Thanks for reading!