teleren/devto huggingface dataset:
using vpulim node soap to call soap apis
Tags: node, soap, api
Published: 2020-01-13 01:43:10

not all APIs use REST some such as UK National Rail Travel APIs use SOAP

https://dev.to/alialp/soap-vs-rest-219k

https://fsse8info.wordpress.com/2020/01/12/uk-bus-buses-railway-train-travel-apis/

heres a guide on using node and node-soap from red hat 

https://developers.redhat.com/blog/2016/02/19/apps-101-an-absolute-beginners-guide-to-integrating-with-a-node-js-backend/

and here's node-soap on github

{% github vpulim/node-soap %}
The power of Lua's tables and metatables
Tags: lua, todayilearned
Published: 2020-01-13 01:13:25

Lua is a very interesting language, at least to me, since it has only one structured data type - the table - but that one type can do a LOT more than just tabular data storage. It can function like an indexed array, like a dictionary (key + value storage), a function lookup (since values can be functions), a means of defining class-like entities, and even modifying the meaning of table operations by changing the metatable associated with the table. It can even do all of the above at once!

Another nice feature of tables is that they're a wonderful fit for "data as code" - the default high scores for a game, a collection of translated strings, or the cached values from the last time data was fetched are all great fits for storage in a Lua table. Furthermore, loading these is easy - it's sufficient to load them like you would any other Lua file, then execute the loaded data and store the result to a variable. Finally, if you combine data as code with serialization, then you have the recipe for a self-modifying script. Careful with that...
What is your favourite Javascript superset and why is it TypeScript?
Tags: typescript, javascript, productivity, discuss
Published: 2020-01-13 01:09:06

With a wide variety of options out there for writing better Javascript, TypeScript seems to have "won out" of most other options. Growing in popularity immensely in 2019, undoubtedly continuing in 2020: why do you love TypeScript?

For me, I have seen first-hand how TypeScript has made me a better developer. It catches basic mistakes (like trying to pass a number to a function that accepts a string) and combined with ESLint and TypeScript specific rules, I've become more disciplined and conscious in the code that I write.
Critical Examination of filter() Array Method in JavaScript
Tags: javascript, filter, array, arrowfunction
Published: 2020-01-13 00:14:41

>filter() calls a provided callback function once for each element in an array and constructs a new array of all the values for which callback returns a value that coerces to true. In other words filter() creates a new array under a given condition from an existing array.

## The Syntax
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/os2s072487qasruqrcvd.png)

## Example using an array of integers
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/djny1nyxkt7bdmiz3tqe.png)

## Filtering an Array of Objects
The very common use case of filter() is with an array of objects through their properties
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/pstwz72tl0p683apssec.png)
Exclude All Hits From Known Bots And Spiders
Tags: analytics, seo, googleanalytics
Published: 2020-01-25 22:44:01

---
title: Exclude All Hits From Known Bots And Spiders
published: true
date: 2020-01-13 00:00:00 UTC
tags: Analytics,seo,googleanalytics 
canonical_url: 
---

## Exclude all hits from known bots and spiders

Today I decided to take a look at my Google Analytics for this website and I had way more traffic than a site like this ought to have.

Drilling down into the stats I noticed that most of the traffic must be from either bots or spiders.

Google Analytics does have a setting though to filter those out.

Login to your analytics and go to View Settings where there will be a `Exclude all hits from known bots and spiders` checkbox.

Make sure that is checked.

![2020-01-13_exclude-bots-and-spiders.png](https://solrevdev.com//media/2020-01-13_exclude-bots-and-spiders.png)

Success 🎉
collections filter method in laravel
Published: 2020-01-15 13:02:14

---
title:  collections filter method in laravel
published: true
date: 2020-01-13 00:00:00 UTC
tags: 
canonical_url: 
---

Hi GuysIn ths exampleI will learn you how to use collection filter method in laravelyou can easy to use the filter method in laravelThe filter function takes a callback as an argument and run filter over each item If the test fails for a particular item then it will remove it from the co
What are your strategies for remembering information in your role?
Tags: discuss, career
Published: 2020-01-12 23:52:05

---
title: What are your strategies for remembering information in your role?
published: true
description: A discussion on ways to remember things you learn in your role more effectively.
cover_image: https://thepracticaldev.s3.amazonaws.com/i/t1oahnwiixvlejito7pt.jpg
tags: discuss,career
---
*Cover photo credit: [Fredy Jacob](https://unsplash.com/@thefredyjacob)*

Throughout our career, we learn many things ranging from new technical skills to softer core skills etc. In particular, I find that we get a lot of new information whenever we start a new position.

Unless you have a photographic memory... what are your strategies for remembering all of the useful things you learnt in your role?
using conda
Tags: python, conda
Published: 2020-01-12 23:44:41

---
title: using conda
published: true
description: 
tags: python,conda
---

On Windows I use conda. It always "just works" for me.

I never can remember any of the commands though so each time I want to update I have to google it.

```bash
conda update conda
```

That is a really long command if your environment is junk like mine... seriously like 15 minutes to do the update. I have learned my lesson.

Note to self. Never update conda. Probably would have been faster to just uninstall and download the newest version. :)
Creating your custom model for Tensorflow.JS
Tags: python, javascript, java, machinelearning
Published: 2020-01-12 23:02:35

---
title: Creating your custom model for Tensorflow.JS
published: true
description: We look into how to use Java to create an image classification model using TFRecords and train it with python. Then we will read that model in TensorflowJS in order to predict images.
tags: python, JavaScript, java, machinelearning
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ln11sz01ks6lt917w566.jpg
---

{% youtube nS5J14q3O1k %}

We look into how to use Java to create an image classification model using TFRecords and train it with python. Then we will read that model in TensorflowJS in order to predict images.

Repository:
https://github.com/kalaspuffar/dataset-tensorflow-js
Why should you read specialists books?
Tags: education, books, learning
Published: 2020-01-12 22:30:14

I highly recommend to you to read some specialists books because the reason for it is pretty simple. Especially for me it tooks some time to discover the reason. So I want to share it with you!

An author of an book had learned lessons over lessons in a period of time. Sometimes over a couple of years and sometimes over his entire life. If you read an book, you can learn these lessons in a couple of days or weeks (depending on the book).

I want to encourage you to read books instead of watching tutorials or something like that. Don't get me wrong. Watching a tutorial is helpful and you can learn a lot of stuff. But if you read an book, you improve not only your technical skills. Your vocabulary is growing, your ability to focus on a task is growing and lot more...

There are some books out there, every programmer should have read these (in my opinion):

- Design Patterns. Elements of Reusable Object-Oriented Software. 
(https://www.amazon.de/dp/0201633612/ref=cm_sw_em_r_mt_dp_U_SC5gEbD33VN6P)

- Object Oriented Software Engineering: A Use Case Driven Approach: A Use CASE Approach
(https://www.amazon.de/dp/0201544350/ref=cm_sw_em_r_mt_dp_U_sG5gEb80AE6R0)

- Working Effectively with Legacy Code 
(https://www.amazon.de/dp/0131177052/ref=cm_sw_em_r_mt_dp_U_2D5gEbPFK2JY1)

- Refactoring: Improving the Design of Existing Code
(https://www.amazon.de/dp/0134757599/ref=cm_sw_em_r_mt_dp_U_IE5gEb1ATQDAN)

- Clean Code: A Handbook of Agile Software Craftsmanship
(https://www.amazon.de/dp/0132350882/ref=cm_sw_em_r_mt_dp_U_JE5gEbQHRAX6M)

- Clean Architecture: A Craftsman's Guide to Software Structure and Design
(https://www.amazon.de/dp/0134494164/ref=cm_sw_em_r_mt_dp_U_aF5gEb68RC9MW)

- The Clean Coder: A Code of Conduct for Professional Programmers
(https://www.amazon.de/dp/0137081073/ref=cm_sw_em_r_mt_dp_U_BF5gEb8CTQCGN)

- The Software Craftsman: Professionalism, Pragmatism, Pride
(https://www.amazon.de/dp/0134052501/ref=cm_sw_em_r_mt_dp_U_aH5gEb19FRCGP)

====

All these books helped me to grow personally and technically. After all i realized that reading a book is better than watching tons of videos.
So give it a try!

Of course there are so many books out there.
So let me know which books you can recommend to others.
Estamos passando por uma das maiores disrupções tecnológicas já vista
Tags: saas, haas, cloud, gogogle
Published: 2020-01-12 22:25:19

Os conceitos de SaaS (Software como um Serviço) e HaaS (Hardware como um serviço) estão se difundindo rapidamente com o novo modelo de computação conhecido como cloud computing (Computação em Nuvem).

Nossos softwares (aplicativos) estão deixando de ser produtos “físicos” para se tornarem serviços 100% online.

Em breve não fará sentido ter um smartphone ou desktop potente, pois bastará uma boa conexão com a internet para acessar qualquer tipo de aplicativo (sem a necessidade de tê-lo instalado em seu dispositivo).

Um bom exemplo é o recém lançado Google Stadia, plataforma de jogos online, que requer somente um controle remoto e uma boa conexão com a internet, para jogar os mais variados e sofisticados tipos de games, dispensando assim, os “velhos” consoles.

Outro exemplo, que inclusive sou adepto, é a suíte de programas (Google Documentos). Esta fornece inúmeros aplicativos de escritório que são acessados via internet, ou seja, sem a necessidade de ter instalado qualquer tipo de programa em seu computador, bastando apenas um navegador Web.

Mesmo sabendo que isso é um “efeito colateral” e não um propósito, vejo essa disrupção como um grande passo da humanidade no sentido de preservação do Meio Ambiente, já quê, o consumo de recursos naturais para a produção de Hardwares terá uma redução considerável nós próximos anos.

Mas claro, nem tudo é um mar de rosas, a de se levar em conta que este tipo de tecnologia também nos trás grandes desafios, e um dos principais diz respeito a segurança de dados, já quê, estes são armazenados nas nuvens e estão "fora do nosso controle".

Para concluir, cito abaixo alguns filmes e seriados de ficção que mostram um pouco do que podemos esperar para os próximos anos, e que também retratam alguns desafios dessa nova tecnologia. 

-The Feed — Prime Video
-Black Mirror — Netflix (Alguns episódios)
-Privacidade Hackeada — Netflix

Há..! Netflix, YouTube, …, também são exemplos de SaaS e foram responsáveis pela disrupção que levou o "fim" das locadoras.
Relaunch with React and Github Pages
Tags: react, github, html, css
Published: 2020-01-12 22:14:10

<h1><center>My Portfolio Site - Pt 5</center></h1>
********************************************************

This week I relaunched my [portfolio site](jaredharbison.com) as a React app on Github Pages. I won't get into the details of the process because the documentation from the React team was far better than any blogging I found on the subject. Truly nothing beats the actual documentation from any framework or library IMO. 

As much as I wanted to keep it framework free, relaunching with React will surely help me in the future. I was able to keep this CSS library free- just for fun and developing my skills. For this version I've only left my tech stack and portfolio projects in terms of content but made it a little moodier with some recently acquired CSS skills. 

*********************************************************
<h1><center> Take a look at some code! </center></h1>
*********************************************************

One of the biggest updates to this version is some media responsiveness. The images are still my own and manipulated with [Gimp](https://www.gimp.org/) and [Compress PNG](https://compresspng.com/)

{% gist https://gist.github.com/JaredHarbison/a76aa47ece98ac87fff5695f0081a726 %}

One of my favorite tricks learned was the auto-grid class for the portfolio cards which I built myself. I used SVG icons as often as possible with a handful of [Font Awesome](https://fontawesome.com/) as I anticipate using it in the future.

{% gist https://gist.github.com/JaredHarbison/d432f48de7904a1bccfa8a98beaf9283 %}

*********************************************************
<h1><center> That's All Folks! </center></h1>
*********************************************************
Watch and Code: Javascript
Tags: javascript, 100daysofcode, codenewbie, womenintech
Published: 2020-01-12 21:48:37

##Notes from the watchandcode.com Practical JavaScript course.

I've started Gordon Zhu's watchandcode.com Practical Javascript course. In the course you work on building a todo list, so here are some of the commands and notes about them so I remember them!

Its best to work in chrome. Open a new tab (about:blank) and right click and choose inspect then click on console. 

####How to store the to do list: 
```javascript
var todos = ['item 1', 'item 2', 'item 3']
```
- todos is the name of my variable.
- The items are in an array. Which is like a list of items. 

####How to display the to do list:
```javascript
console.log('My to do list:', todos)
```
- Console.log() prints whatever is in the brackets.
- You can join items between the brackets. 
- If you put quotation marks it prints whatever is inside them. 
- As todos isn't in quotation marks it prints out the contents of the variable.

####Adding new todos:
```javascript
todos.push('item 4')
```
- You can add items to the array by calling the variable and 'pushing' another item to the end of the array.
- When you press enter, the console returns the number of items in the array. 

####Changing an item in an array:
```javascript
todos[0] = 'item 1 updated'
```
- To edit the array item you call the variable and in square brackets put the item number you want. 
- Computers start counting at zero so item number one is item 0.
- Then you just put what you want the new value to be after an equals sign in quotation marks. 

####Deleting an item in the array:
```javascript
todos.splice(0, 1)
```
- Call the array and then use _splice_ 
- To use this you need brackets. 
- The first number is the position at which you start deleting, the second number is how many items you delete.
- In this example, you just delete the first item in the array.
Aprende ha aprender como programar.
Tags: beginners, spanish, codenewbie, learning
Published: 2020-01-12 21:45:01

<img src="https://cdn.pixabay.com/photo/2015/04/28/07/55/mindset-743166_960_720.jpg" alt="change your mind" width="400"/>


Quiero compartir algunas ideas sobre el libro que leí recientemente, [Abre tu mente a los numeros](https://www.casadellibro.com/libro-abre-tu-mente-a-los-numeros/9788491870531/6802129) y su [Curso en Coursera](https://www.coursera.org/learn/aprendiendo-a-aprender), y consejos útiles para aprender a programar o cualquier cosa que re propongas.

<Center>_En primer lugar, esta publicación es un vistazo rápido a asuntos y conceptos complejos._</center>

<center>**Consejo**</center>
La lectura previa de cualquier lección o artículo (1 a 2 minutos) en busca de encabezados, preguntas o información antes de leerlo más en profundidad lo ayudará a crear una estructura que luego se llenará con el contenido.

<center>**Introducción a los modos enfocado y difuso**</center>

<img src="https://www.7pace.com/wp-content/uploads/2019/05/focus-vs-diffuse-graphic.png" alt="difusse vs concentrared" width="400"/>

Permítanme hacer una analogía entre el cerebro y una computadora con un navegador web.
Digamos que el modo Enfocado es el historial del navegador web de su cerebro, si realiza la consulta correcta, le devolverá un montón de enlaces a sitios web de "Asi se hace" ... Siempre que ya conozcas esos sitios web.

En cambio, el modo difuso es más como navegar por la Web haciendo clic a en aqui y alla enlaces y banners a otros sitios web y quedandose el tiempo suficiente para hacer clic e ir a otro sitio web ... tal vez su cerebro ya haya visitado el sitio con esa respuesta mágica ... Pero todavía no sale los primeros resultados cuando haces tu búsqueda en el historial.



<center>**Efecto Einstellung**</center>
<img src="https://cdn.pixabay.com/photo/2018/06/01/11/48/brain-3446307_960_720.jpg" alt="brain in chain" width="400"/>

El efecto Einstellung es el efecto negativo de la experiencia previa al resolver nuevos problemas.
Manteniedo la analogía cuando buscas en tu historial los primeros resultados siempre son los que ya conoce y en los que tienes mas comodo, no los mejores que quizás conozca, por eso  siempre usa los primeros resultados de tu historial(simple repeticion). El primer enfoque para los nuevos problemas puede ser engañoso debido a este efecto. Tienes que deshacerte de las viejas ideas cuando aprendes nuevas.

<center>**Ser creativo**</center>

<img src="https://cdn.pixabay.com/photo/2017/02/13/08/54/brain-2062048_960_720.jpg" alt="Creative" width="400"/>
El modo difuso es el modo innovador de tu cerebro, el que crea/inventa nuevas estructuras neuronales que luego podras seguir el modo enfocado para repetir o recrear esos pensamientos, pero no para crearlos.
Por esa razón, cuando más piense en ser creativo, menos originales serán sus ideas ya que intentaras seguir patrones que ya conoce y no crearlos.

Alternar entre ambos modos es vital para su aprendizaje, uno sin el otro no sirve de nada.

Más en la próxima publicación sobre estos conceptos y cómo alternar modos y cómo ayudan en su aprendizaje.
Learn how to learn code.
Tags: codenewbie, learntocode, beginners, books
Published: 2020-01-12 21:44:12

<img src="https://cdn.pixabay.com/photo/2015/04/28/07/55/mindset-743166_960_720.jpg" alt="drawing" width="400"/>


I want to share some thoughts about the book I have read recently [Mind for numbers](https://www.google.com/search?q=ISBN+039916524X) and its [Coursera Course](https://www.coursera.org/learn/learning-how-to-learn), and helpful tips for learning code or anything you want. 

<center>_First of all, this post is a quick look at complex matters and concepts._</center>


<center>**TIP**</center>

Pre-read any lecture or article (1 to 2 minutes) looking for headings, questions, or before you read it more in deep will help you to create a structure than you later will be filled with the contents. 

<center>**Introduction to the Focused and Diffuse Modes**</center>


<img src="https://www.7pace.com/wp-content/uploads/2019/05/focus-vs-diffuse-graphic.png" alt="focus vs diffuse" width="500"/>

Let me make an analogy between the brain and a computer running an Internet browser. 
So the Focused mode is the web browser history of your brain, if you make the right query, it will return a bunch of links to websites of "how-to"…. Whenever you already know those websites. 
The diffuse mode instead is more like surfing the Web fast clicking links and banners to other websites and stay enough time to click and move to another…..maybe your brain already has visited the site with that magical answer…. But still isn't the first result when you do your search in the history.

<center>**Einstellung effect**</center>

<img src="https://cdn.pixabay.com/photo/2018/06/01/11/48/brain-3446307_960_720.jpg" alt="brain with chains" width="500"/>

The Einstellung effect is the negative effect of previous experience when solving new problems.
Keeping with the analogy when you search the first's results are always the ones you already know and are confident at, not the bests you maybe know, but you always use the first's results from your history. The first approach to new problems can be misleading due to this effect. You have to get rid of old ideas when you learn new ones. 

<center>**Be creative**</center>

<img src="https://cdn.pixabay.com/photo/2017/02/13/08/54/brain-2062048_960_720.jpg" alt="creative brain" width="500"/>

The diffuse mode is the innovative mode of your brain, the one who create/invent new neural structures that later your focused mode can follow to repeat or recreated those thoughts but not to create them.
For that reason, when more you think about being creative, the fewer originals your ideas will be as you are trying to follow patterns you already know and not create them.
Alternate between both modes is vital to your learning, one without the other is useless.

More in the next post about these concepts an how to alternate modes and how they help in your learning.
Makers Week 7: One Page to Rule Them All
Tags: makers, javascript
Published: 2020-01-12 21:31:56

Weekly Goal:
*Can you write a frontend, single-page app using only pure JavaScript?*

This week was a little tedious because on top of making a single page app we were also not allowed to use any libraries. This included testing libraries, which meant we had to create our own.

Day 1

So at the start of the week, I guess we spent a little time wrapping our heads around the whole idea. But there was an example for testing that helped wrap our head around it better. Our tests were simple but they did what they have to. After that, we got started on the main project which uses javascript *"querySelectors"* to update the page. We started by making a notes prototype that stores text. After that, we had to add them to a list prototype and then add functions to add and convert and returns all the list items as HTML.

Day 2 

We set up the HTML page on day two, as well as setting up a function that changes the DOM(document object model). We then made the controller so we can get the list of notes and then use DOM manipulation to change the page to display the notes. We spiked this feature which meant we had to delete it all and then restart using TDD.

Day 3

We started day three by creating a single note prototype, which stores a single note and has a method for returning it with a div wrapped around it. We ran into a couple of bugs we manage to workaround which had us struggling for a while but it was mainly just syntax errors.

Day 4

This day was quite interesting because we had to go back to our note list and change it up a little bit. We had to add ids to each of the displayed list items. We needed to do that so we could access each item by looking up its id to eventually display just that item. We had to add ids to the div in increasing order to give each item a unique id. We also had to change the list items to *anchor tags* so that we could change the URL. So we could then add an event listener for a hash change and use the id from the URL to display the appropriate note.

Day 5 

Fridays are usually a slow day because it's near the end of the week and we do our retro on Friday. But we still managed to get through step 10 which was adding a form for creating new notes which went pretty smoothly. It was fun to see the app work with no refreshing of the page it was just a lot quicker overall.

Summary

It was a fun week overall seeing a single page app was interesting and I can see it is very useful. I think doing my own testing from scratch was useful it helped me understand testing libraries better, but I don't think doing that will be as useful in the future considering there are already testing libraries out there. I really enjoyed this week seeing what single-page apps could do and I feel like I achieved the weekly goal so a success all round.