teleren/devto huggingface dataset:
Learning Julia (2): Operations
Tags: julia
Published: 2020-11-11 15:50:18

Get familiar with Operators in Julia.

###Mathematical operations###

```julia

# Math Operators + - * / \ ^ % div()
a = 2 + 3 #  5
b = 4 - 1 #  3
c = 5 * 4 # 20
d = 32 / 4 # 8.0
e = 15 / 2 # 7.5 #  Int divided by Int gives Float
f= div(15, 2) # 7 # floor rounded 
g = div(-15, 2) # -7
h = 5 \ 35 # 7.0
i = 12 % 10 # 2
j = 2 ^ 3 # 8 # power
k = (1 + 3) * 2 # 8    # (expression) has higher priority

println("a: ", a)
println("b: ", b)
println("c: ", c)
println("d: ", d)
println("e: ", e)
println("f: ", f)
println("g: ", g)
println("h: ", h)
println("i: ", i)
println("j: ", j)
println("k: ", k)
```
Output of this test:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zel6b7tsdr4k5zjfg2zc.PNG)


### Bitwise operations ###
```julia

# Bitwise operators: ~  &  | $ >>>  >>  <<
a = UInt8(5) 
b = UInt8(3) 
println("a: ", bitstring(a))
println("b: ", bitstring(b))
c = ~a 
println("c = ~a : ", bitstring(c))
d = a & b
println("d = a & b: ", bitstring(d))

e = a | b
println("e = a | b: ", bitstring(e))

f1 = a ⊻ b
f2 = xor(a, b)
println("f1 = a ⊻ b: ", bitstring(f1))
println("f2 = xor(a, b): ", bitstring(f2))

g = Int8(-7)  >>> 1  # logicalshift right
println("g = Int8(-7)  >>> 1: ", bitstring(g))
h = Int8(-7)  >> 1   # arithmetic shift right;
println("h = Int8(-7)  >> 1: ", bitstring(h))
i = UInt8(7)  << 1  # arithmetic shift left
println("i = UInt8(7)  << 1: ", bitstring(i))
```
Output:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/lxn6ano6prsje5emz8y5.PNG)


### Boolearn operations ###

```julia
a = !true # false
b = !false # true
c = 1 == 1 # true
d = 2 == 1 # false
e = 1 != 1 # false
f = 2 != 1 # true
g = 1 < 10 # true
h = 1 > 10 # false
i = 2 <= 2 # true
j = 2 >= 2 # true
k = 1 < 2 < 3 # true
l = 2 < 3 < 2 # false
m, n, o = k ⊻ l, k & l, k | l

println("a: ", a)
println("b: ", b)
println("c: ", c)
println("d: ", d)
println("e: ", e)
println("f: ", f)
println("g: ", g)
println("h: ", h)
println("i: ", i)
println("j: ", j)
println("k: ", k)
println("l: ", l)
println("m: ", m)
println("n: ", n)
println("o: ", o)
```

Output:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/jigxqaaxonpj1pn8mf58.PNG)
Season of Docs, Meeting-11
Tags: github, docker, documentation
Published: 2020-11-11 15:44:24

On 4th of November, I had a meeting with my mentors with regards to Google's Season Of Docs project. The mentors had assigned the following tasks:-
1. Make the first 6 sections a bit more descriptive. (Considering the User as a beginner)
2. Put in the basic format of the " Admin "section.
3. Generalise for all synbiohub instances.
4. De-capitalize in sentences
5.Downloads-Describe the types of files on can download using tabular form.
6. Adding a link to the SPARQL docs and improving the SPARQL section of the user docs.
7. Making a few corrections in the Installation section.

I was able to complete the following tasks:
1. Made the first 6 sections a bit more descriptive: I literally rewrote almost all of the first 6 sections. Adding the details enabled me to understand the complexities of SynBioHub to a much greater extent.
2. Added the Admin section. 
3. Generalised the user documentation for local as well as global instances.
4. Added a link to the SPARQL docs and improving the SPARQL section of the user docs.
5.  Made a few corrections to the Installation section.
6. Downloads-Described the types of files on can download using tabular form.
7. De-capitalized the first letters in the sentences.

I'd faced the following problems during this week:
1. I did not have knowledge regarding some technical terms while writing the **viewing a resource** section, hence I've left that section empty. I'll try and clarify these queries in the next meeting and fill up the blank spaces before the next week's meeting.

2. I don't have fundamental knowledge about what are remotes and specifically about ICE remote.

I hope to clarify all my doubts in the upcoming meeting i.e, on 11th November'20.
AzureFunBytes New Episode Reminder - 11/12/2020 2 PM EST - @Azure Key Vault w/ @wiredcanuck
Tags: azure, beginners, tutorial, security
Published: 2020-11-11 15:28:19

New #AzureFunBytes - 11/12/2020 2 PM EST

[Azure Key Vault](https://docs.microsoft.com/azure/key-vault/general/basic-concepts?WT.mc_id=devops-10833-jagord) is a cloud service for securely storing and accessing secrets. A secret is anything that you want to tightly control access to, such as API keys, passwords, certificates, or cryptographic keys.

This week, [Microsoft Sr. Cloud Advocate Pierre Roman](https://twitter.com/wiredcanuck) joins me to discuss how [Azure Key Vault](https://azure.microsoft.com/services/key-vault/?WT.mc_id=devops-10833-jagord) can be used to secure the secrets passed to your apps and servers.

AzureFunBytes! - Byte-sized content with a live Twitch show!

Learn about Azure fundamentals with me!

Live stream is available on Twitch at 2 pm EDT Thursday. You can also find the recordings there as well.

https://twitch.tv/azurefunbytes
https://twitter.com/azurefunbytes

Join me, ask questions, and learn about Azure!

[Microsoft Learn: Azure Fundamentals](https://docs.microsoft.com/en-us/learn/paths/azure-fundamentals/?WT.mc_id=blog-devto-jagord)
[Microsoft Azure: $200 Free Credit](https://azure.microsoft.com/en-us/free/?WT.mc_id=devops10833-jagord)

Microsoft Learn: [Configure and manage secrets in Azure Key Vault](https://docs.microsoft.com/learn/modules/configure-and-manage-azure-key-vault/?WT.mc_id=devops-10833-jagord)
[Azure Key Vault Basic Concepts](https://docs.microsoft.com/azure/key-vault/general/basic-concepts?WT.mc_id=devops-10833-jagord)
[Guidelines for using Azure Key Vault](https://docs.microsoft.com/learn/modules/configure-and-manage-azure-key-vault/2-key-vault-usage?WT.mc_id=devops-10833-jagord)
Using git with Glitch
Tags: git, glitch
Published: 2020-11-11 15:27:27

[Glitch](https://glitch.com/) is a great place to host code samples for blogging and sketching out projects. My goal is to have a single source of truth for that code. Glitch has all the parts to do this with 1 gotcha. 

## Finding the Git url to clone the project.

The key here is each project is a git repository. Glitch pulls this code from the `master` branch on an interval to update the web project. 

Either create a project or open an existing project in glitch. 

Once open navigate to *Tools -> Import and Export -> Your project's Git URL*

Click the copy button.

![Git URL in Glitch](https://dev-to-uploads.s3.amazonaws.com/i/repg7vmj1ta7szlyrrze.gif)

Clone the repository on your computer and start committing! 

## Push to Master Workflow

After making some changes it's time to commit and push to master. Turns out Glitch doesn't allow this by default but it can be overridden via the Terminal inside Glitch with the following command. 

`git config receive.denyCurrentBranch updateInstead`

Pushing will update and will change the output in a few minutes (non-scientific observation) but it doesn't sync up the IDE. For me this isn't a big deal as I would rather code locally.

To get the IDE in sync run the following command. 

![Resetting](https://dev-to-uploads.s3.amazonaws.com/i/gulkxb05v7lrswyx8ln3.png)

Hope this helps someone!
this was my second time in hacktoberfest and i really enjoyed it once again.
Tags: hacktoberfest
Published: 2020-11-11 15:23:16

<!-- ✨This template is only meant to get your ideas going, so please feel free to write your own title, structure, and words! ✨ -->


### [Intro Heading]
<!-- If you are new to the DEV community, introduce yourself and share a bit about why you joined DEV and decided to participate in Hacktoberfest this year.  --> 
### Background

<!-- Are you brand new to open source? What about coding in general? Tell us about how you got here →

### Progress

<!-- Share a bit about where you’re at in your Hacktoberfest journey. What stage are you at? How has the process been?  -->

### Contributions

<!-- This is where you can list the contributions you made and explain why you chose the projects you did. Don’t forget to add links!  -->


### Reflections
<!-- Overall, how has your Hacktoberfest 2020 experience been? If you’re a first-timer, will you participate again? What have you learned? Have you made any interesting connections? What is your next step in open source?  -->
How I created my first Flutter project - A Measurement Converter App.
Tags: flutter, mobile, android, beginners
Published: 2020-11-11 15:22:00

#Let’s start with the project overview.
Most of us are aware that when you travel to other countries, you may find different languages, culture, and food, but you would expect that at least numbers and measures would stay the same wherever you go, right? Well, this is not so.

Hence in this project, we will bring some order to this confusing world😁.Let’s build a measures conversion app, in which distance and weight measures will be converted from imperial to metric, and vice versa.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/kbb2o9t6xbpgwajpcsdo.gif)


###The code for the entire project can be found here:
{% github azim2429/Measure-Converter no-readme%}


###If you want a detailed explanation do checkout my blog:
{% medium https://abdulazim0402.medium.com/how-i-created-my-first-flutter-project-a-measurement-converter-app-805726c3725a %}
Introducing Xtra-Power CSS: Device Size No more a Challenge!!!
Tags: css, beginners, opensource, showdev
Published: 2020-11-11 15:08:08

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/gxrglsokfncivgpu4f1e.png)

# xp stands for Xtra Power Tools
The aim of this repository is to provide 'tools' with xtra-power. 
1. xp.css:
A front-end developer needs to make every thing responsive as per different device sizes. Just imagine, they get a css library that takes care of every thing to go responsive in any device size - small phones to TVs. For Instance,
The size of text , buttons, images, cards, menu etc.

Why xp was created:
(a) Linking one CSS library ensures the responsiveness of all users. 
(b) Unlike bootstrap or other libraries, you can modify code of xp.css as per your project. You dont need to scratch your head.

2. xp-backened
Just imagine you only need to define lables and you get a code in PHP, RUST , JS, C++ , Phython etc in a click. ( Coming Soon).

3. xp-Websitecreator
Drag and Drop beautiful site maker. Its Scalable... Share your snippet with others or use their in your website. (Coming Soon).


# xp.css [xtra power css]
This CSS Library makes everything super responsive. It calculate device size and outputing topography , images, div size, cards, buttons etc as responsive. You don't need to write media queries for different devices. This Library is modified version of w3.css. However, lot of addition is done in w3.css to make give it xtra-power.

1. Fast 
2. One Css Library for drawing mobile, tablet, desktop and TV apps.
3. Similar syntax like Bootstrap css. Therefore, easy to implement.
4. Production Ready.
5. Responsive Topography is replaced with fluid topography.
6. Size of button changes with device size. 

## How to use xp.css:
Just download and link it or 
link it by github link: https://raw.githubusercontent.com/Manishfoodtechs/xp/main/xp.css

Here is demo on codepen:
Check with potrait as well as landscape. See how elements changes size. Rotate your mobile phone.
{% codepen https://codepen.io/manishfoodtechs/pen/JjKexar %}

### Version xp.css: 1.0 ( Nov 2020)

##JOIN US:
Join development of xp.css. Pull Request Welcome :)
Urgently needed :) (Mail me on manishfoodtechs@gmail.com)

#Licence
MIT . You are free to use xp.css in personal and commercial projects
{% github Manishfoodtechs/xp %}
Image Maps with SVG — Back to the Future
Tags: html, css
Published: 2020-11-11 15:02:58

If you've been in the field of front-end development long enough, you might remember layouts made out of tables, hover states made using inline JavaScript, visitor counters, and the AltaVista search engine. CSS was much more primitive during that time, SVG probably wasn't supported by any browser, and most people called JavaScript DHTML (Dynamic HTML).

There is a tag in HTML called `map`. It was heavily used when web pages were often not cut to HTML and CSS, but just one image marked to link to other pages. It allows you to mark parts of the image and attach `href` (and `onclick` if that is what you need) to them, so when the user clicks on a particular area, it will behave just like a standard link.

[Read about map on MDN.](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map)

## Problem

Recently, we refactored the [platformOS.com](https://www.platformos.com/) website. The **Values** page had an image with absolutely positioned labels linking to the appropriate content: 

![Values map](https://dev-to-uploads.s3.amazonaws.com/i/mhzho7ps77jj7s4jeptn.jpg)

This was done with CSS `position: absolute` and media queries to set positions on different screens. I could leave it as is, but because the refactor included a rewrite of CSS to TailwindCSS (for both maintenance and performance reasons), I decided to do some research. 

## Solution

First, I tried to do the image map mentioned earlier, but it didn't work inside SVG. Then I discovered that you could do links in SVG. Every element in SVG has to have its `x` and `y` coordinates, so `a` link has features similar to HTML image `map`.

A link inside SVG looks very similar to an HTML link:

```html
<a href="https://www.platformos.com">
    <text x="10" y="25">platformOS - Limitless development platform</text>
</a>
```

This gives you the possibility, for example, to embed a link into your logo SVG so you don't have to use links every time you paste it. I decided to use it to have our values inside one image and not have to deal with media queries to position labels on every breakpoint.

Example:

```xml
<svg class="w-full" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1355.94 410.97">
  <g id="Performance">
    <a xlink:href="#performance">
      <rect x="598.2" width="167.65" height="26" fill="#d50037"></rect>
      <g>
        <!-- Letters -->
      </g>
    </a>
  </g>
</svg>
```

Inspect this page for the full version of the SVG (it is inlined): [https://www.platformos.com/values](https://www.platformos.com/values)  

I hope you will remember the `map` tag and the fact that SVG has `a` links when such a once in a decade opportunity presents itself to use any of them. :)

## Read more

If you are interested in more performance oriented content, follow me and I promise to deliver original, or at least effective methods of improving your website. 

{% link https://dev.to/platformos/using-webp-in-your-existing-webpage-809 %}

{% link https://dev.to/platformos/optimizing-images-for-the-web-18gc %}

{% link https://dev.to/platformos/3-tips-on-preserving-website-speed-5g0c %}
UI Dev Newsletter #30
Tags: html, css, javascript, webdev
Published: 2020-11-11 14:54:21

- [Chasing the Pixel-Perfect Dream](https://bit.ly/38oT6iS)
Josh Comeau answers questions about pixel-perfect development and shows tricks for the closer pixel-perfect execution.


- [5 ways to Identify Fonts in a Web Page.](https://bit.ly/3lbpEAn)
Rob Hope shows different ways to find fonts in a website.


- [What I Didn't Know in the 2020 State of CSS Survey, Part 1](https://bit.ly/3n6lvyi)
Max Antonucci documents all the things from the 2020 State of CSS Survey which he didn’t know and explains everything about them.


- [How to persistently change third party web sites with browser developer tools](https://bit.ly/3591PDC)
Chris Heilmann describes how to fix problems in web sites without getting access to the source code.


- [How to Animate the Details Element Using WAAPI](https://bit.ly/2Ihib4j)
Louis Hoebregts shows how to animate the native <details> element using the Web Animations API.


- [The lang attribute: browsers telling lies, telling sweet little lies](https://bit.ly/357rlJh)
Manuel Matuzović describes the negative effects a missing or wrong lang attribute that are not always evident.


- [Technical debt as a lack of understanding](https://bit.ly/32rexM6)
Dave Rupert explores and explains all about technical debt in web development.


- [Webbed Briefs](https://bit.ly/3keagBQ)
Heydon Pickering starts a new vlog with brief videos about the web, its technologies, and how to make the most of them.



Happy coding!

[Subscribe to the newsletter here!](https://bit.ly/34155z3)
Daily Challenge #306 - Largest Possible Product
Tags: challenge
Published: 2020-11-11 14:38:20

---
title: Daily Challenge #306 - Largest Possible Product
published: true
series: Daily Challenge
description: Given an array of integers, find the largest possible product obtained by multiplying two adjacent numbers in an array. 
tags: challenge
//cover_image: https://direct_url_to_image.jpg
---

Given an array of integers, find the largest possible product obtained by multiplying two adjacent numbers in an array. 

###Examples
`adjacentProduct([1, 2, 3])` ==> returns `6`
`adjacentProduct([3, 4, 5])` ==> returns `20`

###Tests
`adjacentProduct([3, 7, 9])`
`adjacentProduct([-3, -4, 15])`
`adjacentProduct([-4, -1, -10])`

Good luck!

***
_This [challenge](https://www.codewars.com/kata/5a4138acf28b82aa43000117) comes from MrZizoScream on CodeWars. Thank you to [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
Identity, Unlocked... Explained | Episode 3
Tags: security, identity
Published: 2020-11-11 14:37:20

What's new in .NET 5? Learn how .NET Core and .NET Framework evolve into the new cross-platform framework.
[Read more...](https://auth0.com/blog/dotnet-5-whats-new/?utm_source=facebookgroup&utm_medium=sc&utm_campaign=dotnet_5)
Comunidades Tech Increíbles de Argentina
Tags: watercooler, programming, devlife, code
Published: 2020-11-11 14:32:39

En argentina realmente hay increíbles comunidades de tecnología. Donde puedes conocer mucha gente, aprender y ayudarse, que es lo más importante para mí opinión.

Voy a dejar una lista con su respectivos enlaces de las que yo conozco. 

### Comunidades:

* [BeerJSCba](https://beerjscba.com/)
* [CoDeAr](https://codear.org/) (aquí vas a encontrar más comunidades y muchas cosas más)
* [FrontendCafé](https://frontend.cafe/)
* [Refactor Devs](https://twitter.com/refactordevs)
* [Vue Córdoba](https://twitter.com/vuecba)
* [WebConf LATAM](https://webconf.tech/)
* [Meetup.js](https://meetupjs.com.ar/)
* [DevOff!](https://twitter.com/devoffarg) (en realidad está es una competencia de programación al estilo BakeOff 👀)
* [AsaditoJS](https://twitter.com/asaditojs)
* [FreeCodeCampBA](https://freecodecampba.org/)
* [React Buenos Aires](https://twitter.com/react_ba)
* [Vuenos Aires](https://twitter.com/vuenos_aires)
* [ReactLadies](https://twitter.com/reactladiescba)
* [Comunidad MIT](https://comit.ar/)
* [Hackfun](https://hackfunrosario.com)
* [Chicas Programando](https://twitter.com/chicasprogar)
* [Women Who Code Buenos Aires](https://twitter.com/wwcodeba)
* [Chicas en Tecnología](https://twitter.com/chicasentec)
* [MeT](https://twitter.com/comunidadmet)
* [[LAS] de Sistemas](https://lasdesistemas.org/)
* [Javabsas](https://twitter.com/javabsas)
* [Service Design Club](https://twitter.com/servicedsgnclub)
* [Sysarmy](https://twitter.com/sysarmy)
* [Python Argentina](https://python.org.ar)
* [Facebook Developer Circles: Córdoba](https://twitter.com/devccordoba)
* [GDG Córdoba](https://twitter.com/GDGCordobaARG)
* [Indie Game Garage](https://twitter.com/indiegamegarage)
* [Córdoba Hacker Space](https://twitter.com/cbahackerspace)
* [Comunidad .NET Córdoba](https://twitter.com/dotnetcba)
* [NET-Baires](https://twitter.com/netbaires)
* [NoLo](https://redcircle.com/shows/el-podcast5407)
* [DoctArmy](https://twitter.com/doctarmy)
* [AWS User Group Córdoba](https://meetup.com/es/AWS-User-Group-Cordoba-Argentina)
* [Clean Code BA](https://meetup.com/es/Clean-Code-Buenos-Aires)
* [Underc0de](https://underc0de.org/)
* [Women In Games Argentina](https://twitter.com/womeningamesar)

Estas son algunas comunidades pero hay muchas más. 😱

Puedes dejar otras comunidades en los comentarios así los agrego a la lista. 

___
PD: La imagen de portada no tiene nada que ver con una comunidad tecnológica pero creo que se entiende. 😂
The Six Morning Habits of High Performers
Tags: productivity
Published: 2020-11-11 14:29:02

---
title: The Six Morning Habits of High Performers
published: true
description: 
tags: productivity
cover_image: https://images.unsplash.com/photo-1586224497705-389424b207fe?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2550&q=80
---

# S.A.V.E.R.S


## Silence

I get my best ideas often when I am not explicitly thinking, for example, when I am in the shower or when I am laying on the bed at night trying to fall asleep.

With mediation, I essentially am able to trigger this free flow of ideas and unlock the genius within me without waiting for it to happen to me spontaneously.

The only way to fail at meditation is to judge myself, for thinking a thought, for feeling bored, for not being able to control my mind. The first day of meditation is supposed to be the worst day of meditation.

## Affirmations

Not the ones where I lie to myself. If my goal is to be a happy person, a lying, feel-good affirmation would be to tell myself each day -

> I am happy.

Instead I make these four positive affirmations-

* affirm that I am committed to being happy
* affirm why is it meaningful for me to be a happy person
* affirm how do I plan on reaching this state of happiness
* affirm when specifically during the day will I be doing those activities that would lead me to be a happier person

## Visualisation

Visualising is day dreaming with a purpose. It helps me feel confident and keeps me motivated.

## Exercise

Even 60 seconds of jumping jacks in the morning or a light stretch followed by a small 10 minute home workout can help lower stress levels and boost my spirit for the day.

## Reading

Reading is my way to have access to everything that I want to know.

> “You may have tangible wealth untold. Caskets of jewels and coffers of gold. Richer than I you can never be — I had a mother who read to me.”

Excerpt from one of my favourite poems about reading by Roald Dahl —

> “So please, oh please, we beg, we pray,
Go throw your TV set away,
And in its place you can install
A lovely bookshelf on the wall.”

[Television by Roald Dahl](https://allpoetry.com/poem/8503169-Television-by-Roald-Dahl)

## Scribing

Just a fancy term for writing or journaling. Making small journal entries daily like -

* 3 things I am grateful for.
* 3 things that I can do today to make it a good day: Of all the infinite things that I can do today and of the things on my to-do list, what are the three things that would make a difference to me.

> “Be at peace with where you are, and take small steps daily to be where you want to be.”

Thanks for Reading! 

Originally posted [here](https://byrslf.co/the-miracle-morning-bbcb57a4341c).
Responsive Pricing Table Design
Tags: html, css, bootstrap, webdev
Published: 2020-11-11 14:27:21

Nowadays we see lots of websites offers a different kind of services on their website. For this reason, they include a pricing table or price table in their webpage's purchase section. Visitors see other types of package detail that the company is offering in the pricing table. The visitors can compare the deals according to the price. On top of it, users can see what kind of services or features they are getting within that price range.<a href="https://www.divinectorweb.com/2020/10/bootstrap-pricing-table.html">Download the code</a>