teleren/devto huggingface dataset:
References in JavaScript
Tags: javascript, frontend, programming, reference
Published: 2019-05-07 13:30:47

---
title: References in JavaScript
published: true
description: Test your javascript understanding by solving a simple reference question
tags: javascript, frontend, programming, reference
---

I've been working with JavaScript for 4 years and I still meet interesting scenarios. The code below is a simplified example of the issue I faced recently in my day-to-day work.

```js
let color = {value: 'brown'};

let cat = {color: color};

color = {value: 'white'};

console.log(cat); // ?
```

Take a moment, read the code and think what the `console.log` output will be 🤔.

And the answer is

```js
{
  color: {value: 'brown'}
}
```

Wait. We know that in JS non-primitive variables are passed by reference. But it's obvious that `cat` object didn't change after `color`variable modification.

So, what's going on here? Let's analyze the code step by step.

First of all, we declare variable `color`, create a new object `{value: 'brown}` and assign this object to the `color`.

After that the new object `{color: color}` is created and it's assigned to the new variable `cat`.

In the end we create one more object `{value: 'white'}` and assign it to the existing variable `color`.

The question is: why the object `cat` hasn't changed?

❗ In JavaScript it's not possible for variables to reference other variables. It's possible in other languages, but not in JS.

After the 2nd line is executed, `cat.color` reference the `{value: 'brown'}` object, not the `color` variable. That's why assigning a new object to the `color` variable don't change the `cat` object.

Hope it makes sence. Stay curious and keep coding! 😎

P.S. Test yourself. What will be the output if we slightly change the code

```js
let color = {value: 'brown'};

let cat = {color: color};

color.value = 'white';

console.log(cat); // ?
```
Tip #2 : Reset a button's style
Tags: showdev, css, webdev, beginners
Published: 2019-05-07 16:55:18

---
title: Tip #2 : Reset a button's style
published: true
description: Reset a button's style to get a blank canvas
tags: showdev, css, webdev, beginners
series: Frontend Tips and tricks
---
*This series is about all the neat little HTML/CSS/JS tricks I found and keep finding. Most of these are things that initially took me quite a long time to find or figure out and some are just useful tricks that I use in my day to day.*

This tip is not something that I struggled with on the past, it's more of something that I use often and provides a clean slate to build awesome buttons.

```css
button {
  padding: 0;
  background: none;
  border-radius: 0;
  border: none;
  cursor: pointer;
}
```
That's it :)
Have fun making amazing buttons!
Getting started with C#
Tags: csharp
Published: 2019-05-07 16:36:04

---
title: Getting started with C#
published: true
description: Repo for descriptive C# code snippets
tags: Csharp
---

Another simple guide to learning a new language C#.
Explore fully documented code snippets to get started with fundamental C# coding.
https://github.com/fardeen9983/C-sharp-snippets
Keep watch on the repository as I will cover advanced topics.
VICE PRESIDENT OF TECHNOLOGY
Tags: vpoftechnology, ixisdigital, jobs
Published: 2019-05-07 16:27:05

---
title: VICE PRESIDENT OF TECHNOLOGY
published: TRUE
description: 
tags: VP_of_Technology, IXIS_Digital, jobs
---

JOB DESCRIPTION:

IXIS is seeking a Vice President of Technology to lead our development team in providing next-generation digital services for our clients using open-source web technologies. Core responsibilities include managing a team of developers, architecting enterprise-scale analytics and data collection systems, designing cloud architectures in support of web portal and application services, designing virtualization and containerization solutions in support of data security and privacy needs, and managing communications and contractual responsibilities with enterprise clients.

See our full job description and APPLY on our website here:https://ixisdigital.com/careers/VP-Technology.php


ABOUT THIS COMPANY:

Founded in 2012, IXIS is rooted in innovative processes for data-driven digital experience and strategic online planning. Our mission is to integrate and synchronize traditional and digital marketing initiatives to recalibrate and connect brands across converging media. We offer competitive compensation packages, flexible work schedule, and exceptional growth opportunities.
Kubernetes CLI Tools I Use (Video)
Tags: kubernetes
Published: 2019-05-07 16:23:35

Not too long ago I started 'kubernetes' video resource channel where I share some of the things I learned or want to share with larger k8s audience. In one of the videos I explained few tools that really helped me utalize CLI better when I started with k8s, and some of those cli tools is what I use even 2y later such as stern or kubectx and kubens. 


{% youtube Lb9giCXBVGY %}

Let me know what should be my next video about as I am going to start doing those again as time allows.
Senior Developer
Tags: developer
Published: 2019-05-07 16:20:58

---
title: Senior Developer
published: TRUE
description: 
tags: Developer
---

IXIS is seeking an energetic, technically skilled Senior Developer to lead the development of cutting-edge analytics implementations, data integrations, and web platforms for our clients. This is an on-site position at our office in Burlington, Vermont. Core responsibilities include implementing analytics tagging systems and designing data synchronization systems via REST APIs. The ideal candidate is self-driven, has a passion for designing creative solutions, and enjoys working with teams of developers and other technical staff to deliver outstanding results. 

Read our job description and learn more about our company on our website here: https://ixisdigital.com/careers/Senior-Developer.php
Want your precious suggestions on becoming a UI designer
Tags: ui
Published: 2019-05-07 16:01:48

---
title: Want your precious suggestions on becoming a UI designer
published: true
description: 
tags: UI
---

Hello there, fellow programmers.
I have a request for you all.
I have been working more than 2 years or so on developing API endpoints and deploying servers based on different frameworks and making android and cross platform apps. Though I more relieved having better design tools like XD and Flutter. But I still lack in making an appealing design.
And here I was hoping to be full stack developer. 
I am all ears to any suggestion. Where to get started? What to learn first?
Thank you
❤️ #DEV
Introducing create-react-saga app npm cli
Tags: react, npmcli, node, generator
Published: 2019-05-07 15:51:42

---
title: Introducing create-react-saga app npm cli
published: true
description: 
tags: reactjs, npm-cli, nodejs, generator
---

In this article I want to introduce our new node cli for

In this article I want to introduce our new node cli for creating react saga app with routs, that is called create-react-saga-app.

I’m a chief architect at TidePoolLabs Europe, and throughout my career, I have created many react app with redux state management and redux saga from scratch. To automate all this process, we have decided to create an npm cli. Now that we have created this cli, generating react projects from scratch becomes easier and faster.

`react-saga new yourappname`

For now, the cli has only a beta version and is not available in the npm package manager, but we are planning to publish it there very soon. But the good news is that it is now available on GitHub with public access.

The package uses popular packages like create-react-app to generate the app. Now we have only one command to generate, but we are planning to create many commands to improve and speed up the development process. For instance, we are planning to have commands to create components, actions, route, and so on so forth.

Feel free to join the development! We will be delighted if someone can help to improve our open source project and we are free to get any feedback for its development.

Thank you for taking the time to read. We will come back soon with news or publications of our packages.
Hello every body. I'm newbie
Tags: fcm, go
Published: 2019-05-07 15:49:31

---
title: Hello every body. I'm newbie 
published: true
description: Asking about notify system by golang.
tags: fcm,golang
---

I'm Tien, I'm newbie, I want to build notify system with golang. Someone can offer me right way to do this? 

Require very simple is :

Receive body and push to iOS,Android and browner.

Thank so much!
The Moment I Fell In Love With Coding
Tags: personal, java, glitch, art
Published: 2019-05-07 15:46:10

---
title: The Moment I Fell In Love With Coding
published: true
description: Every developer has a moment where they realize that they love programming, not because computers are a tool, but because they challenge you and they enable you to create anything you can dream of.
tags: personal, java, glitch, art
---

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

My moment was in 2013, the second year of university. I had recently gotten into **glitch art** and I was determined to figure out how to create my own tool. 
It wasn't until I learned about abstract data structures and how to implement a queue and a stack that it clicked in as how to build my tool.

During an all-nighter at [@kirk_danuco](https://www.instagram.com/kirk_danuco/)'s apartment, I finally figured it out.

I was so high on excitement that my body wasn't convinced I had just spent an entire 24 hours awake.

It was at that moment that I truly fell in love with coding.

![blurbchat](https://cloud.githubusercontent.com/assets/6892666/13548037/f228d03c-e2b3-11e5-962c-be4a2074a9bd.gif)

I still use this tool to this day! You can download it from my [GitHub](https://github.com/stemmlerjs/glitchie) and try it out yourself.
Laravel E-Commerce Application Development – Introduction
Tags: laravel, laravelecommerce
Published: 2019-05-07 15:44:34

---
title: Laravel E-Commerce Application Development – Introduction
published: true
description: In this E-commerce Application Development Laravel Tutorial series, we will be creating a complete e-commerce application using Laravel 5.8 with VueJS for frontend.
tags: Laravel, Laravel Ecommerce
---

In this E-commerce Application Development Laravel Tutorial series, we will be creating a complete e-commerce application using Laravel 5.8 with VueJS for frontend.

After completing this series you will be able to understand, how to construct a real-world application using Laravel?


 
E-commerce is the activity of buying or selling products on online services or over the Internet. An e-commerce store provides a listing of the products the seller wishes to sell, which leads to a product details page to show extra information about the product. Finally, a shopping cart where buyers can add the products to cart and proceed to the checkout for making payment.

Read the full article at [https://www.larashout.com/laravel-ecommerce-application-development-introduction](https://www.larashout.com/laravel-ecommerce-application-development-introduction)
How to develop an HTML5 game for a site
Tags: html, game, onlinegame
Published: 2019-05-07 15:36:12

---
title: How to develop an HTML5 game for a site
published: True
description: I need help to develop HTML5 games for browsers. Small puzzle sliding tiles like a famous game 2048 i.e available on https://cupcake2048.com/2048-game/. Waiting for someone guiding to prepare such games for browsers. That would be liked by kids and youngsters too.  
tags: #HTML5, #game, #onlinegame

---
Building a GatsbyJS Theme - Introduction
Tags: gatsby, themes, react
Published: 2019-05-06 19:26:08

---
title: Building a GatsbyJS Theme - Introduction
published: true
description: An introduction to building themes for GatsbyJS
tags: gatsby, themes, react
canonical_url: https://billyjacoby.dev/intro-to-gatsby-themes
---


If you've been following GatsbyJS, than I'm sure you've already heard about the introduction of Gatsby themes.

### Why We Need Themes

I've been building tons of sites in Gatsby lately, for both my own projects and clients. Until recently I've been using my own starter that I built to scaffold out a basic design for similar websites. This works fine, until I decide that I want to make a minor change to functionality or design across all of the sites built off of this starter.

Currently the way to do this is to make these changes, then push the same changes to all of my other sites. While this isn't the end of the world, there certainly has to be a better way to do this.

### Themes to the Rescue

Gatsby themes claim to make this entire process easier by enabling a single update to a theme, that will be pushed to all sites built using that theme.

You can read more about themes directly on the GatsbyJS.org website [here](https://www.gatsbyjs.org/docs/themes/introduction/)

_Disclaimer: I have no experience with Gatsby themes yet._

I figured having no experience with themes, that this would be a great opportunity to document my path for learning about Gatsby themes, and how to build one from the ground up.

### What's to Come

I will be posting my continued attempts and (hopefully) progress building a Gatsby theme.

I will link to the next parts in the tutorial as I write them for you to follow along.

Feel free to reach out via the comments, twitter, or email with any questions or requests that you might have for this tutorial!

This tutorial will be posted on both [dev.to](https://dev.to/billyjacoby) as well as my own [blog](https://billyjacoby.dev/blog), so feel free to checkout both!

***Part One of the tutorial can now be found [here!](https://billyjacoby.dev/building-a-gatsbyjs-theme-part-one)***
Great Tutorial Link to Create First Spring Boot Application
Tags: wada, java, springboot, maven
Published: 2019-05-07 14:56:38

---
title: Great Tutorial Link to Create First Spring Boot Application
published: true
description: A tutorial that I am using to learn Spring Boot
tags: wada, Java, Spring Boot, Maven
---

I have been trying for some time to tackle learning APIs with Java and found this awesome tutorial that is for beginners like me! I thought that I would share!

<a href="https://medium.com/@salisuwy/building-a-spring-boot-rest-api-a-php-developers-view-part-i-6add2e794646">Salisu Wada's Spring Boot Tutorial</a>


Thanks, Salisu!
Someone could help me about calculations in blade views?
Tags: help, laravel, blade
Published: 2019-05-07 14:47:10

---
title: Someone could help me about calculations in blade views?
published: true
tags: help, laravel, blade
---
Hi, could someone suggest me the best way to work with a model, lest say a grades model that I pass to my blade view, and as I go throug it with a foreach **I need to do some calculations, like to sum the grades of a specific subject and after all calc the median using the count of the collection pased**, should I use the @php tag to specify a local variable in the view to sum the grades and make the calc or is there a better solution that you could suggest me?

This is what I did and it's working as I need but I want to improve it...

Here is the section of my controler
```
$subjects = Subject::all();
$subjectslevel = DB::table('subjects_periods_levels')->select('*')->where('lev_id', $levels->idlevel)->orderBy('subj_id')->get()->unique('subj_id');
$notasmostrar = Notasfinales::whereYear('ano', $fecha->year)->where('idstudent', $user->idnumber)->orderBy('idsubject')->get();
//dd ($notasmostrar);
$titulo = "Notas del Estudiante";
$profesors = User::where('activo',1)->get();
return view('grades.showgrades',['titulo' => $titulo, 'stud' => $user,'periodos' => $periodos, 'notas' => $notasmostrar, 'subjectslevel' => $subjectslevel, 'subjects' => $subjects, 'profesors' => $profesors]);
```
here is the relevant part of my view

```
<tbody>
					@foreach($subjectslevel as $levelsubjects)
						<tr>
								@php ($notafinal = 0)
								<td>{{$levelsubjects->subj_id}}</td>
								@foreach ($subjects as $subject)
									@if ($subject->id == $levelsubjects->subj_id)
										<td>{{$subject->name}}</td>


									@endif
								@endforeach
								@foreach ($periodos as $periodo)
									@foreach ($notas as $nota)
										@if ($periodo->idperiod == $nota->idperiodo)
											@if ($nota->idsubject == $levelsubjects->subj_id)
												<td>{{$nota->nota}}</td>
												@php ($notafinal = $notafinal + $nota->nota)
											@endif
										@endif
									@endforeach
									
								@endforeach
								
								
								
									@foreach ($subjects as $subject)
										@if ($subject->id == $levelsubjects->subj_id)
											@foreach ($profesors as $profesor)
												@if ($profesor->idnumber == $levelsubjects->profe_id)
													<td>{{$profesor->name}} {{$profesor->surname}}</td>
												@endif
											@endforeach
										@endif
									@endforeach
								<td>
								@php ($notafinal = $notafinal / $periodos->count())
								{{$notafinal}} / 100</td>
								<td><button type="button" class="btn btn-primary">Detalles</button></td>
						</tr>
					@endforeach
				</tbody>
```
mod_cluster Management Script
Tags: modcluster, apache, shell, script
Published: 2019-05-07 14:06:50

---
title: mod_cluster Management Script
published: true
description: mod_cluster Management Script
tags: mod_cluster, apache, shell, script
---
https://github.com/nsgonzalez/mms

# mod_cluster Management Script

mms is a shell script that allows you to execute some of the functions available on Apache's mod_cluster-manager (web).

  - List all available nodes
  - Enable, Disable and Stop a Context

### Usage
```sh
$ chmod +x mms.sh
$ ./mms.sh --help

 ███╗   ███╗███╗   ███╗███████╗
 ████╗ ████║████╗ ████║██╔════╝
 ██╔████╔██║██╔████╔██║███████╗
 ██║╚██╔╝██║██║╚██╔╝██║╚════██║
 ██║ ╚═╝ ██║██║ ╚═╝ ██║███████║
 ╚═╝     ╚═╝╚═╝     ╚═╝╚══════╝

===============================
 MOD_CLUSTER MANAGEMENT SCRIPT
===============================

usage:	./mms.sh [-h|--host <ip address>] [-p|--port <port>] [-s|--show-nodes]
	    ./mms.sh [-h|--host <ip address>] [-p|--port <port>] [-n|--node <node>] { [--context-stop] | [--context-disable] | [--context-enable] } [<Node ID> <Context>]

where:
    (-h|--host)			set the apache mcm host
    (-p|--port)			set the apache mcm port
    (-n|--node)			set the apache mcm node
    (-s|--show-nodes)		list all the nodes
    (--context-enable)		enable a context
    (--context-disable)		disable a context
    (--context-stop)		stop a context
    
    --help			show this help text
```

#### Examples

- List all the nodes
    ```sh
    ./mms.sh --host 192.168.4.12 --show-nodes
    
    Nodes:
    
    1) wf411 (ajp://192.168.4.11:8009)
      > /TestApp-war        [ENABLED]
      > /	[ENABLED]
      > /wildfly-services	[ENABLED]
    
    2) wf410 (ajp://192.168.4.10:8009)
      > /TestApp-war        [ENABLED]
      > /	[ENABLED]
      > /wildfly-services	[ENABLED]
```
    
- Stop a context
    ```sh
    ./mms.sh --host 192.168.4.12 --node 2 --context-stop TestApp-war
    
    Stopping:
    
    2) wf410 (ajp://192.168.4.10:8009)
      > /TestApp-war        [ENABLED]
    
    Disabling from: http://192.168.4.10:5555/mcm?nonce=e87c92bd-195e-4845-91cd-2a192f14a553&Cmd=DISABLE-APP&Range=CONTEXT&JVMRoute=wf410&Alias=default-host&Context=/TestApp-war
    
    Nodes:
    
    1) wf411 (ajp://192.168.4.11:8009)
      > /TestApp-war        [ENABLED]
      > /	[ENABLED]
      > /wildfly-services	[ENABLED]
    
    2) wf410 (ajp://192.168.4.10:8009)
      > /TestApp-war        [STOPPED]
      > /	[ENABLED]
      > /wildfly-services	[ENABLED]

```
[HIRING] Senior Core Java Developer 
Tags: blockchain, job, java, developer
Published: 2019-05-07 13:56:57

---
title: [HIRING] Senior Core Java Developer 
published: true
description: 
tags: #blockchain #job #java #developer
---

# Your role as a Senior Core Developer 

You will be responsible for the design, documentation, implementation and testing of software within the Radix Core development team.  Additionally responsible for maintaining and improving Radix’ technical expertise by providing technical assistance and mentoring to other staff.

# Key Responsibilities

-Undertake software design and development activities as part of a project team

-Provide expert technical assistance and mentoring to staff

-Review work to ensure completion criteria are met

-Undertake tasks within agreed time-frame

-Assist sales and marketing by providing design concepts and cost estimates

-Ensure technical capabilities, systems, process and facilities for the discipline are maintained or improved where required

-Assist in assessing the performance of staff that have undertaken activities under their direct supervision

# Professional Competencies

-An extensive knowledge of Java and associated tooling

-Knowledge of software design methodologies

-Knowledge of cryptography and cryptographic primitives

-Knowledge of IP-based networking protocols

-Experience with multithreaded software design and implementation

-Experience with the development of high-performance Java applications

-Experience analysing requirements and developing software designs that meet requirements

-Experience with configuration management and defect tracking tools

-Experience unit testing software

-Experience system testing software

-A working knowledge of distributed systems

# Social Competencies

-Leadership

-Teamwork

-Adaptability and flexibility

-Communication skills

-Self-development and reflection

-Interpersonal and intercultural sensitivity

# Education Required

Tertiary qualifications in Computer Science or equivalent.

# Professional Experience Required

Minimum 5 years demonstrated industry experience in the development of software systems and components.

Apply here: https://stackoverflow.com/jobs/265083/senior-core-java-developer-radix-dlt
About Teaching & Learning
Tags: learning, teaching, journey
Published: 2019-05-07 13:44:44

---
title: About Teaching & Learning
published: true
tags: learning, teaching, journey
---

One of the activities, I enjoy the most, is teaching.

The interesting part is that each time I learn a lot about myself. 
I learn to think more clearly, communicate more clearly and be more relaxed.

That's why I try to participate in many events where I can actually do it face to face!

Last weekend, I supported 10 children in web development.

I am very happy that I have a skill in which I can teach others :)

[Youtube](https://www.youtube.com/watch?v=k6gxvbRvado)