teleren/devto huggingface dataset:
Is HP Support Assistant free?
Published: 2019-10-23 13:13:35

Does your HP printer not work? Random problems tend you to move on helping center of HP Support Assistanace.  The first step is that you must know this thing is <a href="https://www.hpprintersupportpro.com/hp-support-assistant">HP Support Assistant</a> free. Of course, there is no provision for paying price in lieu of problem solving. The identification of HP Support Assistance is done through exclamatory mark on printer device. Having clicked on this icon, you can get comprehensive list of information to deal it anyway. Feel free to contact us.
https://www.hpprintersupportpro.com/hp-support-assistant
Daily Challenge #101 - Parentheses Generator
Tags: challenge
Published: 2019-10-29 14:06:06

---
title: Daily Challenge #101 - Parentheses Generator
published: true
series: Daily Challenge
description: Write a function that will generate n pairs of well-formatted parentheses
tags: challenge
---

Write a function that will generate all possible combinations of grammatically correct parentheses. The function should be able to work with *n* pairs of parentheses.

Given *n = 3*, an example solution set would be:
<pre>
[
  "((()))",
  "(())()",
  "()(())",
  "()()()",
  "(()())"
]
</pre>

Looking forward to seeing your solutions!

***
_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
Creating our own map in Clojure on the nail 👩‍🏭👨‍🏭
Tags: clojure, todayilearned
Published: 2019-10-24 02:03:13


## Prologue 🧐
In many  programming languages,  **map**  is the name of a  [higher-order function](https://en.wikipedia.org/wiki/Higher-order_function "Higher-order function")  that applies a  [given function](https://en.wikipedia.org/wiki/Procedural_parameter "Procedural parameter")  to each element of a  [functor](https://en.wikipedia.org/wiki/Functor_(disambiguation) "Functor (disambiguation)"), a  [list](https://en.wikipedia.org/wiki/List_(computing) "List (computing)"), returning a list of results in the same order. It is often called  _apply-to-all_  when considered in  [functional form](https://en.wikipedia.org/wiki/Functional_form "Functional form").

The concept of a map is not limited to lists: it works for sequential  [containers](https://en.wikipedia.org/wiki/Container_(abstract_data_type) "Container (abstract data type)"), tree-like containers, or even abstract containers such as  [futures and promises](https://en.wikipedia.org/wiki/Futures_and_promises "Futures and promises").
  
let's assume we have an array with 5 values

```clojure
(def values [22 33 11 23 15])
```
## The native map 👴
This way we will apply the **native** form to iterate the values

```clojure
(map println values)
;this will print each value
```

## Our own map 😎
```clojure
(defn my-map 
	[function sequence]
	(let [firsElement (first sequence)]
		(if firsElement
			(do
				(function firsElement)
				(my-map function (rest sequence))))))
```
Now we can use our map to iterate or pass any function to do something, let's implements an example, **calculate the square of each element** 🤓

```clojure
(defn my-map 
	[function sequence]
	(let [firsElement (first sequence)]
		(if firsElement
			(do
				(function firsElement)
				(my-map function (rest sequence))))))
				
(defn square [value] (* value value))

(println (my-map square value))
```
But if we have thousand of elements this possible throw a **stackoverflow exception** because normal recursion is a call stack, and a stack can be fully populated 😅
## The ninja way (who prevents stackoverflow exception)🐱‍👤

![](https://media.giphy.com/media/AzHFNeQbc5jeo/giphy.gif)

### Tail Recursion
In clojure the `recur` is a way to transform a recursion into a otimized loop, for this purpose is the best way 

```clojure
(defn my-map 
	[function sequence]
	(let [firsElement (first sequence)]
		(if firsElement
			(do
				(function firsElement)
				(recur function (rest sequence))))))
				
(defn square [value] (* value value))

(println (my-map square value))
```
  
Just for today, feel free to comment, I'm still learning and I usually share whenever I can, because I'm adept at **learning public** 🤗
![](http://giphygifs.s3.amazonaws.com/media/3vDFxcB9vZNNS/giphy.gif)
How To Make A Website Using HTML CSS And Bootstrap 4?
Tags: howtomakewebsiteresponsive, makeresponsivewebsite
Published: 2019-10-24 09:07:50

Here in this tutorials you will learn how to make a website in HTML, CSS and Bootstrap. I'll show you how to create responsive modern looking website step by step with stylish section border. You will learn how to create a website using #HTML #CSS and #Bootstrap.
This is a complete tutorials for web development to make a website from start to end in a single website design tutorial.
If this website development tutorial is helpful for you please like this video and subscribe my channel to watch more website development courses.

Watch video on: https://www.youtube.com/watch?v=ZNPedhK4Rkk
CSS for beginners from a beginner
Tags: ctrlshiftcode
Published: 2019-10-24 19:51:01

Cascading Style Sheets, fondly referred to as CSS, is a simply designed language intended to simplify the process of making web pages presentable. CSS allows you to apply styles to web pages. More importantly, CSS enables you to do this independent of the HTML that makes up each web page.
CSS is easy to learn and understood but it provides powerful control over the presentation of an HTML document. Cascading Style Sheet(CSS) is used to set the style in web pages which contain HTML elements. It sets the background color, font-size, font-family, color, … etc property of elements in a web pages.
There are three types of CSS which are given below:

Inline CSS: Inline CSS contains the CSS property in the body section attached with element is known as inline CSS. This kind of style is specified within an HTML tag using style attribute. 
Internal or Embedded CSS: This can be used when a single HTML document must be styled uniquely. The CSS rule set should be within the HTML file in the head section i.e the CSS is embedded within the HTML file.
External CSS: External CSS contains separate CSS file which contains only style property with the help of tag attributes (For example class, id, heading, … etc). CSS property written in a separate file with .css extension and should be linked to the HTML document using link tag. This means that for each element, style can be set only once and that will be applied across web pages.
Properties of CSS: Inline CSS has the highest priority, then comes Internal/Embedded followed by External CSS which has the least priority. Multiple style sheets can be defined on one page. If for an HTML tag, styles are defined in multiple style sheets then the below order will be followed.
    • As Inline has the highest priority, any styles that are defined in the internal and external style sheets are overridden by Inline styles. 
    • Internal or Embedded stands second in the priority list and overrides the styles in the external style sheet. 
    • External style sheets have the least priority. If there are no styles defined either in inline or internal style sheet then external style sheet rules are applied for the HTML tags.
What a beginner has learned about CSS
Tags: ctrlshiftcode
Published: 2019-10-25 14:43:58

Imagine that you’ve bought a house.  The structure is fine.  There are no problems with termites or previous flooding etc,  but you want to change a few things.   This is CSS (Cascading Style Sheets).  You step into the living room, and the first thing you’re going to change is take out the carpeting and replace it with wood floors.  Then you change the look of the mantle piece framing your fireplace... in fact, lets put in a wood burning insert... with a glass front so you can enjoy the glow of the fire as well as the efficiency of heat.  You decide you want to have taller ceilings, so you do the work necessary for that.  

Maybe you want to change a few of the walls.  As long as they are weight bearing walls, you know this is a possibility.  You add new colors to the walls and add nice touches with the decorative pieces you include.  After you’ve done everything inside that you want, you turn your gaze towards the exterior to improve the curb appeal.

You decide to add metal siding and drains.  You change up the landscaping ... to include a labrynthine maze of hedges... with a minotaur statue hiding around one corner!  Maybe you replace the shingles with a copper roof.  Lets even expand the porche to be a wrap around porch.  

By the time you’ve finished,  the entire house is unrecognizable from its original structure and form.  With CSS you can move things around, stylize, and shape things, so that all of the elements HTML brought to the page are still present, but look completely different.

There are different ways that CSS can be applied.  “inline” CSS is included straight into the HTML tags as an attribute.  An example might be `<p style=”color: red”>text of the paragraph</p>`.  Another way to apply CSS would be an “internal” insert on the HTML page as well contained within the `<style></style>` tag

<p class="codepen" data-height="265" data-theme-id="0" data-default-tab="html,result" data-user="wrensummerset" data-slug-hash="xxxrxRM" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="xxxrxRM">
  <span>See the Pen <a href="https://codepen.io/wrensummerset/pen/xxxrxRM">
  xxxrxRM</a> by wren (<a href="https://codepen.io/wrensummerset">@wrensummerset</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>


A third style, and the way considered “best practice” (because leaving the HTML document alone and linking to a seperate sheet with the CSS code is prefered) is called “external”.  This is where you have a seperate file for your .css page.  This way, your HTML file simply has the following tag to link to that file.  `<link rel="stylesheet" href="style.css">`

Simple, right?  Maybe, but I still haven’t gotten my website to center even after trying all three CSS styles.
Desisti de desistir
Tags: beginners, javascript
Published: 2019-10-26 14:26:42

Hoje eu decidi deixar de ser um completo inútil. Por mais que eu não sinta vontade alguma de permanecer neste planeta, mudarei totalmente a minha forma de sobreviver. A partir de agora vou respirar javascript e aprender definitivamente em 8 meses. Daqui à 8 meses voltarei aqui para exibir o que aprendi.
A look at itertools chain method
Tags: python
Published: 2019-10-26 20:06:03



The python itertools module is a collection of tools for handling iterators. I want to make an honest effort to break the habit of repetitive standard patterns of basic python functionality. For example...

We have a list of tuples. 

```
a = [(1, 2, 3), (4, 5, 6)]
```

In order to iterate over the list and the tuples, we have a nested for loop.

```
for x in a:
  for y in x:
    print(y)

 # output 

1
2
3
4
5
6
```
I have decided to challenge myself to start using all that itertools has to offer in my every day solutions. Today lets take a look at the chain method!

This first approach will only return the two tuples as as index 0 and 1. Instead of nesting another loop, lets apply the chain method.

```]
from itertools import chain

a = [(1, 2, 3), (4, 5, 6)]

for _ in chain(a, b):
  print(_)
 
 # output 
 (1, 2, 3)
 (4, 5, 6)
```

now we have access to iterate over the tuples without nesting another iteration with a for loop.
```
for _ in chain.from_iterable(a):
  print(_)

# output

1
2
3
4
5
6
```

I think the chain method gives the flexibility to use this as a default choice for list iteration.
Wish you everyone a happy Diwali!
Tags: html, javascript, css, canvas
Published: 2019-10-26 17:51:57

---
title: Wish you everyone a happy Diwali!
published: true
description: video demo of fireworks on html5 canvas
tags: html, Javascript, CSS, canvas
---

Hello world,

I'm sorry, I couldn't publish a post this week. I wanted to write about particle physics with JavaScript and html5 canvas. But the demo took too long to make and I was busy with Diwali shopping. So I present to you the video of the demo this week and the actual post next week.

> Diwali, in the true sense, means ending all evils, cruelty and hatred > towards one another. Get together to celebrate the spirit of the festival.

Happy Diwali! ✨🎆🙌🏽
[vim問題] iOSで利用できるVimは？
Published: 2019-10-27 05:30:37

この記事では、iOS環境(iPhone/iPad)で利用できる「Vim」について、ご紹介します。 [解答] iVim オープンソースとして公開されている、iOS版Vimこと「iVim」です。2019年現在、唯一定期的に更

つづきは[こちら](https://vim.blue/vim-ios-ivim/)。
[https://vim.blue/vim-ios-ivim/](https://vim.blue/vim-ios-ivim/)
[Vim問題] ウインドウを水平分割する方法は何種類？
Published: 2019-10-27 05:39:30

この記事では、Vimでプラグインを使わずに「ウインドウを水平分割する」ための方法について、ご紹介します。 [解答] コマンドもしくはキーバインドの2種類 Vimコマンド. 水平分割（上下の分割） :vsplit virt

つづきは[こちら](https://vim.blue/vim-window-vsplit/)。
[https://vim.blue/vim-window-vsplit/](https://vim.blue/vim-window-vsplit/)
Save forms temporary data
Tags: javascript, php, html
Published: 2019-10-27 10:29:05

By now you should have come to a point were you already coded some forms.
Used HTML to structure your form, JavaScript to get the data and PHP to save it, right ?
Maybe you have come to a point where you have a consistent form, with several inputs and options, however if this data isn’t validated on the server side the page will refresh and all the users inputs will be lost… obviously causing some frustration.

With this simple snippets my goal is to show you how to implement an almost generic form functions that will fetch the inputs values, save them on a temporary session variable and if something goes wrong the values are loaded again on the form.
This way you can have a safer server side validation and you visitors won’t have to refill the values if something goes wrong.
Let’s start with a really basic form (form.php);

```
<?php }

   // check if data is valid
   if (!filter_var($_POST["email"], FILTER_VALIDATE_EMAIL)) {

      echo("e-mail is not valid");

      // Something went wrong, load the user's data
      loadSessionVariables();

   } else {

echo "Welcome " . $_POST["name"] . ", you e-mail is: " . $_POST["email"];

   }

}

?>

<form action="form.php" method="post">

   First name:<br>
   <input required type="text" name="name"><br>

   E-mail:<br>
   <input required type="text" name="email"><br><br>

   <input onClick="saveData()" type="submit" value="Submit">

</form>
```

As you can see we have a basic form that gets the data and displays it.
Normally this data would be saved on a database of have further processing, although for the sake of simplicity we are just displaying it.
We will start by looping the form and save it’s input data, with this function:

```
function saveData(){

const forms = document.querySelectorAll('form');
    const form = forms[0];

    let array = [];
    [...form.elements].forEach((input) => {
        if ( input.type === "text" )  array.push(input.value);
    });

    sessionStorage.setItem("form-data", JSON.stringify(array ));
}

```

And if an error is detected we can load the data again with this one:

```
function loadSessionVariables(){ ?>

document.addEventListener("DOMContentLoaded",function(){

        if (sessionStorage.getItem("form-data")) {

            const forms = document.querySelectorAll('form');
            const form = forms[0];
            let retrievedData = sessionStorage.getItem("form-data");
            retrievedData = JSON.parse(retrievedData);
            let index = 0;

            [...form.elements].forEach((input) => {
                if ( input.type === "text") {
                    input.value  = retrievedData[index];
                    index++;
                }
            });

            sessionStorage.clear();

        }

    });

```

Overall you can find all the code here: https://github.com/jdsaraiva/Save-forms-temporary-data

Hope this simple code can help you to tackle this issue and make your website even more user friendly.

Let me know if it helped you out.
Best regards, João Dessain Saraiva.
What’s the biggest c*ck up you’ve made in an interview?
Tags: discuss, watercooler
Published: 2019-10-27 13:46:51

A few years ago now, I was interviewing for an internship as a Computational Biologist in my second year of university. I had a pretty shoddy CV so I had a google and copied/pasted a Software Engineers template and put in my skills.

In the interview, everything was going perfect — I was interviewing well — I think — met the team, met the boss, text-book stuff.

Then LateX happened. One of the interviewers asked me about LateX — at the time I knew nothing about LateX so I was honest and said "I don’t really know much about it". 

**”But you have it down as one of your skills”** 

“Is it?” Was my reply.

SHIT, I’d copied and pasted this CV without removing all the skills they’d put. I panicked, I started to make up some nonsense about when I’d used it but didn’t feel very confident with it. 

The whole interview was downhill from that point, I was shaking, embarrassed and just wanted to crawl in a hole.

So yeah, that’s my biggest cock up in an interview, I’d love to hear yours!

Oh yeah, I got the internship in the end, a bloody miracle if you ask me. 


Thank you, if you like my rambling check out my personal blogging site at https://codeheir.com/
Firefox (and other browsers) will be making better use of height and width attributes for modern sites
Tags: news, webdev, firefox, css
Published: 2019-10-27 16:07:05

This video goes into it all...

{% youtube 4-d_SoCHeWE %}

I'm excited about this because we deal with this problem on DEV. Generating the proper height and width attributes on user generated content is not table stakes, but this change makes ultimately getting it right _way_ less hacky.

I've been really annoyed by this browser behavior and considered some unconventional ways to deal with this. I'm glad we didn't try to do something overly hacky.

This is a total aside to this feature in general, but in case you're curious, I made an issue about how we can implement this on DEV's user-generated content if anyone wants to take a hack at it...

{% github https://github.com/thepracticaldev/dev.to/issues/4616 %}

If anybody has more info about this in Chrome than is mentioned in the video, please drop a comment.

Happy coding ❤️
binary: what? why? how?
Tags: binary, computerscience, hardware, numericsystem
Published: 2019-10-28 14:32:39

---
title: binary: what? why? how?
published: true
description: A quick guide to learn how to convert from decimal to binary and viceversa
tags: binary,computerscience,hardware,numericsystem
---
In simple words, **binary** refers to something that is composed of or relates to two things; something that can be broken into two groups or categories. In the context of computing and mathematics, **binary** is a numeric system consisting of just 0's and 1's. 

Everything needs to be translated into these 0's and 1's, so our computers get the appropiate signals to respond accordingly to the instructions and/or tasks we want them to perform. This translation is possible thanks to, among other components, the thousands, even billions of tiny transistors that when receiving voltage turn ON, representing 1's, and in the absence of said voltage turn OFF, representing 0's.

So now that we know what **binary** is, and why it is relevant to the computing world, let's look at how we can convert the numbers we are used to working with, to the Binary System.

These numbers that we use on a daily basis, are part of the Decimal System, based on powers of 10.

![Credits: msgarciamath.com](https://thepracticaldev.s3.amazonaws.com/i/6dkwi97jd78764f6jnnp.png)

As per the previous image, we can see that if we have a number such as **532**, it is the result of the following operation:

![Decimal Sytem Example](https://thepracticaldev.s3.amazonaws.com/i/udk0w0qanutdlufg1shg.jpg)

Now let's say we have a sequence of digits representing a binary number, such as **101**. How can we turn this number into our known "base ten" numbers? While the Decimal System uses powers of ten, the Binary System uses powers of two:

![Binary Sytem Example](https://thepracticaldev.s3.amazonaws.com/i/3dmpitavzmh2qxewusym.jpg)

So knowing that the Binary System is "base two", we could convert numbers to "base ten" by considering their position from left to right, and summing up the values where a 1 is present.

Each of these binary digits are considered bits, and 8 bits conform a byte. Do these terms sound familiar? More on this on another post :)
Intro To HTML
Tags: codeschool, html
Published: 2019-10-28 00:10:48

				


Week three of coding school. Have you ever been internet surfing and never even looked at the websites you were going to? Or even noticed them? Well I haven’t until just recently. We are starting our first big project this week in class. Building our personal websites. I was like this is going to be easy I will just click here and copy paste there and done. Um…. Boy was I wrong. Till this week I never knew was HTML was or CSS.  SO I have decided to share a few things about the first days of website development.
We are using HTML. HTML is a markup language  which is used by the browser to manipulate text, images and other content to display it in required format. At first I was a little intimidated and then realized I had been using it all along. So below are the 5 points of our element. 


1. Opening tag
2. Closing tag
3. The content
4. The element


By telling our compnter how to do this we are creating the format of how people will view your website. Now CSS  ( Cascading style sheets)is what makes your website look awesome and also where you can add all your personal touches.  I am looking forward to seeing my finished product.
Benefits of Educational Management Software from Warals Technology?
Tags: javascript
Published: 2019-10-28 11:53:27

The management system boosts the productivity of the institute. The reason of the increase in 
productivity is decreased time to maintain the track records and increased accuracy in organizing the 
data. We have developed all the required functions which can help to achieve the desired result with minimal effort and fewer resources and not to mention with easy to use interface.

WIMS is like a mini ERP for all kind of institute and training organization. Manage your operations like batch schedule, Student/Employee Management, Attendance and Course Tracker. We genuinely believe in customer success using our Products and Services.

Our Product WIMS is designed to reduce operational complexity and help to achieve the core goal of revenue generation of any Institutes/Training organizations. WIMS, as a specialized product is a result of collaborative efforts by our architects and end-users by getting the business requirements and aligning the flow according to them. 

Our reporting Tool helps in informed decision making, and Informative Dashboard provides a quick snapshot of overall business for managers and owners. The IMS Business report is the annual leading industry study that provides vital journalistic reports.

Get a free online demo....
What should a developer CV / resume look like?
Tags: discuss
Published: 2019-11-16 00:06:58

There's no doubt in my mind, my CV (it's a resume in other countries) from school is nothing like my CV today, it's got a layout which is a little bit unusual for a CV but not mad as a box of frogs either. I like my CV like I like my tattoos, black and white. But never mind what I think, should a developer open InDesign and get to work building something that looks more like a magazine layout. 

I am especially interested in hearing your thoughts!