teleren/devto huggingface dataset:
How many hours a day do you think you work?
Tags: productivity
Published: 2020-01-22 09:18:19

<a href="https://www.buymeacoffee.com/peacefullatom" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" style="height: 51px !important;width: 217px !important;" ></a>

People usually think that they are working some exact number of time.

But that is not how our brain works.

Once the brain has a task, it will keep allocating part of its computing time to find the solution until it will complete the job.

Though it is also not the end of the story: after the brain will find the solution, it will spend some time to memorize the results.

Now, let's take a look at this simple timeline:

9 am - new task, complexity - inhuman!
10 am - meetup
11 am - read emails, etc.
Noon - hey it's lunchtime!
1 pm - concentrating on a task
2 pm - help request from your colleagues
3 pm - your boss wants to see you
4 pm - concentrating on a task
5 pm - coffee time!
6 pm - oops! time to go home!
7 pm - traffic jams
8 pm - dinner
9 pm - family time
10 pm - time to sleep
11 pm - the solution!

> Note that the above timeline is very simplified to catch the idea.

So, why the brain finds the solution even if you are busy with some different tasks?

The answer is simple - the brain was solving the problem all this time. But your higher level of consciousness was not aware of this work.

How is this possible?

Let's think about the brain as of the superset of neural networks. Every part of this superset is also a set of neural networks.

Can you imagine the complexity of this structure? Also, it is a genuine miracle that this superstructure is placed inside our skull!

Moreover, this super network always works. When you eat, walk, entertain, sleep, even if you are unconsciousness.

Another noticeable thing that all these networks are working independently. And that allows our brain to be a true multitasker!

> Having all of the above in mind, can you imagine the overall computing power of our brain?

The general simplified scheme of working of our built-in neural network looks like this:

- get the task
- divide the task into the chunks
- assign each chunk to some part of the network
- memorize the result after all of the assigned networks report back
- after the result is memorized start notifying higher-level network
- wait for a time-slot to report that the task is finished

Thanks to this approach, all of us have those "a-ha" moments. 
So, it is wrong to think that you are only working when you are in the workplace.

Depending on your overall experience and the complexity of a task, your brain will allocate as much time as it needs to find the solution.

So, the right answer is that your brain is always working, and so do you.
What is Web Scraping | Data Mining
Tags: webscraping, datamining
Published: 2020-01-22 10:54:11

Web scraping is a popular term for various significant methods used to extract web metadata or gather valuable information across the Internet. Generally, this is accomplished with exclusive software that simulates web surfing to gather specific bits of information from different websites.
{% link https://dev.to/anjankant/visual-studio-learn-free-webscriping-in-easy-10-steps-data-mining-htmlagilitypack-linq-618 %}
##Purpose of web scraping##
Throughout web scraping programs, some professionals or businessmen will be able to gather some web data to sell to other companies or users, for promotional intention.  Hence, Web scraping is known as screen scraping, data mining, Web harvesting or Web data extraction.
**[Subscribe YouTube Channel] (http://bit.ly/2lSE3r6)**
##Web scraping as data mining##
Web scraping as data mining helps in report collection of weather, auction information, market pricing for any product, or any other list of gathered information can be inherited or captured. Sometimes, web scraping is restricted by many websites with respect to data mining, but web scraping is widely utilized to collect aggregated data from different private or government data sources in spite of all legal challenges.
{% link https://dev.to/anjankant/free-video-library-be-an-expert-in-web-scraping-with-free-15-awesome-video-1oin %}
##Types of data mining##
Different types of data mining are practiced by developers. Four approaches are given below.
##1. Text pattern fetching##
A simple yet influential method to extract text from html pages can be based on the UNIX grep command or regular expression-matching facilities of programming languages (for instance Perl or Python).
##2. HTML parsing (Wrapping)##
In this data mining method, the wrapper extracts information or text from a specific web page having dynamically encoded data. The most important feature of the wrapper is it detects such dynamic templates in a specific information source, extracts its entire content and translates it into a relevant form. Wrapper making algorithms presume that input web pages of a wrapper orientation system conform to a common template and that they can be easily identified in terms of a URL common scheme.[3] Furthermore, some semi-structured data retrieving languages, like the HTQL and XQuery, can be utilized to parse HTML based web pages and to regain and transform html web page content.
##3. HTTP programming##
Static and dynamic web pages can be recovered by posting HTTP requests to the distant web server through socket applications.
##4. DOM (Document Object model parsing)##
By embedding a complete-matured web browser, like the Internet Explorer, Chrome or the Mozilla browser control, the application can recover the dynamic content produced by the client-side scripts. All these browsers also parse the website pages into a DOM tree, based on which web scraping applications can regain parts of the pages.
[>>> Original Source](https://www.technologycrowds.com/2020/01/What-is-Web-Scraping-Data-Mining.html)
What are the best Funniest code comments in the source code you have ever found?
Tags: devops, theycoded, webdev, codequality
Published: 2020-01-22 10:41:02

We have surfed the internet and hand-picked a few best code comments that the developers have written in their codes:

https://hostingpill.com/funny-code-comments/

Please share your findings if you have any.
How to Beautify PHP Code?
Tags: php
Published: 2020-01-22 10:35:48

Are you using PHP Code? If yes then this article is helpful for you because in this article I will show you how to beautify ugly, minified PHP code.

Most of the People like good looking codes including me because if code is written in a proper manner it is easy to understand.

Today in this article I will introduce [PHP Beautifier](https://goonlinetools.com/php-beautifier)

![php beautifier](https://thepracticaldev.s3.amazonaws.com/i/6trz3m4kjsutotyvzpxw.png)

### Here is How to Beautify PHP Code?

1. First Open [PHP Beautifier](https://goonlinetools.com/php-beautifier)
2. Click on Clear Button to Clear Demo Code
3. Paste Minified PHP Code
4. Click on Format Button
5. Now Press Copy Button to Copy Formatted PHP Code

Thanks for reading this article, If you have any questions regarding this then feel free to ask in comment box.
Image Enhancement Services
Tags: image, enhancement, services, service
Published: 2020-01-22 10:32:20

At IT-S, Our experienced graphic designers can enhance all types of images; we can give ordinary photos an outstanding look. From adjusting saturation, color balance, contrast, brightness and density of images to applying filters, removing background, blemishes, noise, and grains in images, we offer professional <a href="https://it-s.com/our-services/image-editing/image-enhancement-services/"> image enhancement services</a>in quick turnarounds and competitive rates. For more information visit Information Transformation Services.

Once in awhile is a photograph great. We offer an assortment of picture altering administrations, including foundation improvement, superfluous article expulsion, and embellishments to improve the general nature of your Images. We have dealt with different custom undertakings including gems photograph altering, Philippines Photo Editing, wedding photograph altering, Apparel Photo Editing, Ghost Mannequin Image Editing, Fashion and Glamour Image Editing, vehicle picture altering, online business picture altering, and so forth to give some examples.
Did you ever have to relocate due to work? What was that like?
Tags: discuss
Published: 2020-01-22 10:02:07

---
title: Did you ever have to relocate due to work? What was that like?
published: true
description: Did you ever have to move, especially to another country due to work? Were you alone or with family?
tags: #discuss
---

## Did you ever relocate due to work?

I just moved from Uruguay to Spain (last December), with my wife and kids... it's been interesting. There are cultural similarities, but also some major differences. We're still adjusting.

What about you? How far did you have to move? Were you alone? How long did it take for you and whoever moved with you to feel "at home"?
5 CSS Interview questions one should know
Tags: css, interviewquestion, developer
Published: 2020-01-22 09:24:02

---
title: 5 CSS Interview questions one should know
published: true
description: Are you preparing for the interview for CSS? Here are a few questions to consider.
tags: CSS, interview question, developer
---

#1. What is flex and CSS grids? Which to use when?
Answer: Flex and CSS grids are a great way to create a web page layout. However, the major difference here is: what are the features they have, which is more powerful and flexible, and which to use when?

Flex is 1D. It means with flex you can have either rows and columns not both at the same time. In CSS grids you can have both at the same time. CSS grids are powerful as it has a lot of powerful and useful features which will help in making the complex layout easy to develop and control.  

One can merge both by using CSS grids for layout and flex for content.

**The interviewer here wants to know if you know the different techniques of layout creation and contrast between them.**

#2. Explain how you maintain your CSS. Assuming you are handling enterprise projects.
Answer: Managing big CSS could be challenging. One way is to use pre-processor such as SASS or LESS. Both are great pre-processor and helps in managing the CSS files very well. They have features such as partials, variables, nested CSS, etc. It is an effective way to avoid the conflicts in the stylesheet as well as to manage big CSS files too.

**Here interview is interested to know do you have any experience in managing the CSS. As well as, do you consider this? **

#3. What is the difference between rem and em?
Answer: rem and em are both CSS units. rem means root-em. The difference between em and rem is, rem takes the value from the root whereas em takes the value from the parent element. This makes all the difference. 


#4. Explain the difference between position fixed and sticky
Answer: The positions are very interesting area when dev wants to develop the complex layouts. We know very well what is fixed position, it will remain 'fixed' to the position we have declared.sticky basically acts like position: relative until an element is scrolled beyond a specific offset, in which case it turns into position: fixed, causing the element to "stick" to its position instead of being scrolled out of view.

**Here interviewer wants to understand your knowledge on the positions. Positions are one of the most interesting part for creating the complex layout and controlling them on the different resolution is an art.**

#5. What is critical CSS?
Answer: Critical CSS is a technique that extracts the CSS for above-the-fold content in order to render content to the user as fast as possible. This is a good strategy for loading the webpage quickly with the basic stuff.

**Here interviewer would like to see does you know about performance and new concepts around how to do fast loading?**

Happy Learning!!
What was the weirdest bug you ever encountered?
Tags: watercooler, discuss, question, funny
Published: 2020-01-22 09:23:00

As developers we find and troubleshoot bugs everyday. What was the strangest bug you've ever stumbled upon?

![Bug saying Hello](https://media.giphy.com/media/3o7aCUQ7TsQ3cndExq/giphy.gif)
🔥 Debugging Frontend Apps inside VS Code!
Tags: productivity, vscode, tutorial, webdev
Published: 2020-01-22 09:19:15

Did you know that we can also debug client-side, frontend code right from VS Code, using its powerful built-in debugger? 🤯

In this 94-second video, we'll use the Chrome debugger extension to debug an event handler in a React app.

Although the demo is in React, the same knowledge applies to any frontend apps! 🥳

---

This video is part of my new 6-minute crash course series on YouTube 👉 [**Debugging in VS Code** 🔥](https://www.youtube.com/playlist?list=PLyNmzPg2z6Og_dyyeVviQxefnG06rq_FK)


&nbsp;

**Like this video?**

*I'm also on Twitter: [@hexrcs](https://twitter.com/hexrcs)*<br />*Check out my YouTube Channel: [The Method Coder](http://methodcoder.com/)*<br />*You can find me at my homepage as well: [xiaoru.li](https://www.xiaoru.li)*<br />
[ReactJS] Simple CRUD with Back4App - Create & Read
Tags: react, back4app, parseserver
Published: 2020-01-22 09:16:26

---
title: [ReactJS] Simple CRUD with Back4App - Create & Read
published: true
description: Using ReactJS and Back4App to build a CRUD webapp
tags: Reactjs, Back4App, ParseServer
cover_image: https://i.ibb.co/j59tfQT/33.png
---

Made a new tutorial about how to do CRUD with ReactJS and Back4App. I am no professional so don't judge but this blog post is for people like me, a newbie who is dying to learn ReactJS.   

###TL,DR
Here is the link the blog post [https://devjunior.com/blog/33/] (https://devjunior.com/blog/33/ "DevJunior")
   
   
###In the post, I've covered:
* **Some** background and merits of Reactjs
* **Packages**: npm, create-react-app, parse
* **Back4App**: registration, API reference, link from Reactjs
* **Reactjs**: basic structure, component, properties, state, JSX
* **CRUD**: Only Create and Read are covered in this post. Update and Delete will be covered in another post.
   
   
###The project
To show how to build an asynchronous web app using Reactjs, a dummy project - Travel Records, which allow user to *create*, *read*, *update* and *delete* travel records to and from Back4App database.
Bash: Dica rápida para executar testes múltiplas vezes
Tags: ptbr, webdev, bash, productivity
Published: 2020-01-22 09:13:07

Seguindo o [Mathias Buus](https://twitter.com/mafintosh) no Twitter, ele compartilhou um snippet bem legal em Bash para executar seus testes múltiplas vezes para garantir que não há nenhum erro randômico ("flaky tests").

{% twitter 1200399529490702336 %}

Extraindo o exemplo do tweet acima, teremos as etapas:

1. Declare em seu `.bash_profile`, a seguinte função:

```bash
reproduce () {
  for i in {1..50}; do
    $@ || return $?
  done
}
```

_Nota: Para ZSH a sintaxe deve funcionar, agora para Fish, eu não faço idéia 🤷‍♀️_

2. Execute os testes do seu projeto utilizando a função `reproduce` acima:

```bash
$ reproduce node tests.js
```

Isso irá executar seus testes 50 vezes, aumentando a confiança do resultado dos seus testes.

Você também pode usar `reproduce` recursivamente:

```bash
$ reproduce reproduce node tests.js
```

Executando seu processo 2500 vezes! _(um pouco demais, né? 😅)._

---

Você pode ver quem eu sigo [no meu Twitter](https://twitter.com/oieduardorabelo), ou é só me mandar um tweet! Até a próxima! 🥳
THE GRUB BUG
Tags: sysadmin
Published: 2020-01-22 08:55:51

what is the grub update bug ? it occurs you click UPDATE on ubuntu and xubuntu which then trys to update the GRUB which is the program that start up the os 

GRUB update fails to detect that GRUB is already installed asks you ridiculous and impossible to answer questions about /SDA and /SDA1

then even if you say YES it still gives you error messages

there is even a bug in the HELP popup itself !

![stupid grub questions](https://thepracticaldev.s3.amazonaws.com/i/9h5lqeq224xogbbulo3a.png)

workaround 

BUY A MACBOOK

is there a better one or cheaper one or even a fix anywhere ?
is it too late to save YOUR smugmug flickr photos ?
Tags: smn, photos
Published: 2020-01-22 08:46:49

why the outrage NOW about smugmug threatening to bankrupt flickr (and itself) ? 

i tried to raise awareness of this potential issue a year ago just search twitter for the #flickalt #flickrip tags 

if you want to save your flickr photos you need to copy them somewhere else ASAP there are even cloud api copier services you can use to automate the process

https://osde8info.wordpress.com/2019/01/02/how-to-move-your-photos-off-google-googdrive-and-googone-to-googphotos-and-save-an-unlimited-amount-of-money-cloud-photo-backup-flickralt-flickrip/

see also
* https://osde8info.wordpress.com/?s=flickralt
* https://osde8info.wordpress.com/?s=flickrip
IE is caching your function
Tags: azure, azurefunctions, caching, internetexplorer
Published: 2020-01-22 08:46:37

---
title: IE is caching your function
published: true
date: "2020-01-22T08:46:37.121Z"
tags: azure,azurefunctions,caching,internetexplorer
canonical_url: https://barranger.dev/IE-is-caching-your-function/
---

Hi my name is Barranger, and I hate Internet Explorer.

Now that we have that out of the way, let me describe to you the 2345678th reason for this hatred, by explaining what IE is doing with requests to your fancy new `HttpTrigger`-ed Azure Function (a waaaaaay less fancy function we'll use for this post [can be found here](https://github.com/barranger/iecache)): it's caching the response, even though we have not set the caching header.

If you look at the source code at the link you'll see I've created both a simple Azure Function as well as an extremely simple html file that will invoke the function, when they're both running it will look something like this:

![Screenshot](https://barranger.dev/static/9dbdec56d9d25e3629ebf9ce74199fe7/9fff5/Screenshot.png) 

*(please stop with all the offers for my design work, I know it's beautiful)*

If you click the refresh button over and over again you'll see that it updates as you'd expect in both Chrome and Firefox.  If you try it in IE however, it will always stay the same, and a quick peak at the developer tools will show you why:

![Cached Response](https://barranger.dev/static/a8e9e72c5729f23c0f6bc475e75cb45e/5200b/CachedResponse.png)

That's right! Even though no caching headers have been found, IE has decided that it's going to cache the value and just reuse it every time.  

Luckily there's a pretty easy fix for this:

```c#
req.HttpContext.Response.Headers.Add("Cache-Control", "no-cache");
```

... in your `HttpTrigger`-ed function and you've removed one of the many issues that IE will cause you:

![Not Cached Response](https://barranger.dev/static/d8ed9364d09b9cc036b1fcb54935325a/13a77/NotCachedResponse.png)

This may not be the cleanest way of dealing with the issue, but when it comes to IE, when is it ever clean.  If you know of a better way, [let me know on twitter](https://twitter.com/barranger).
Imgur Upload Image Function ⚡
Tags: github, javascript, opensource, webdev
Published: 2020-01-22 08:42:36

[Star Github Repo ⚡](https://github.com/realabbas/imgur-upload-image)

## Prerequisites

- `Imgur Client ID`

Click here to get your [CLIENT ID](https://api.imgur.com/oauth2/addclient)

The function selects the **input["input-image"]** and directly uploads it to the Imgur server and in response returns a URL.


**SAMPLE RESPONSE**

```
{data: {…}, success: true, status: 200}
data:
id: "BhbW61q"
title: null
description: null
datetime: 1579679274
type: "image/jpeg"
animated: false
width: 581
height: 1032
size: 29937
views: 0
bandwidth: 0
vote: null
favorite: false
nsfw: null
section: null
account_url: null
account_id: 0
is_ad: false
in_most_viral: false
has_sound: false
tags: []
ad_type: 0
ad_url: ""
edited: "0"
in_gallery: false
deletehash: "FQbXad5wfv1kGh3"
name: ""
link: "YOUR IMAGE LINK"
__proto__: Object
success: true
status: 200
```
why apple mac osx is for people & gnu/linux is for geeks
Tags: os, desktop
Published: 2020-01-22 08:38:34

the Ubuntu GNU/Linux GRUB BUG has resurfaced YET again ! 

it is completely unacceptable for a ONE CLICK system update to ask a regular user if they should install GRUB into /sda or /sda1 or both

APPLE understand this and thats why they forked BSD to make your life better - and i am sorry but GNU/LINUX remains unusable for everyday users
DEVTO is 1M X better than GOOG - here's the proof
Tags: todayisearched
Published: 2020-01-22 08:30:06

if you browse / navigate to https://www.google.com/search?client=ubuntu&channel=fs&q=ubuntu+install+fonts+globally&ie=utf-8&oe=utf-8

you will get over 1M results ! but there are NOT 1M answers ! 

there are maybe 100 answers BUT they are repeated on the internet over 100,000 X 

try the same query in DEVTO and you will get ONE result

https://dev.to/search?q=ubuntu%20install%20fonts%20globally

which UX do you prefer ?
Simple Xamarin.Forms - Button Samples
Tags: xamarin, beginners, buttons, xaml
Published: 2020-01-22 08:11:40

Here are few samples for Xamarin.Forms buttons.

![ButtonA](https://thepracticaldev.s3.amazonaws.com/i/hcz2lcbkm5b3hz1pgmqj.png)
```xaml
<Button Text="Button A" />
```
***

![ButtonB](https://thepracticaldev.s3.amazonaws.com/i/rulbeak1wqm8j9gnsyos.png)
```xaml
<Button 
    Text="Button B"
    CornerRadius="20" />
```
***

![ButtonC](https://thepracticaldev.s3.amazonaws.com/i/74liqvof2cpql883zsdq.png)
```xaml
<Button
    Text="C"
    CornerRadius="30"
    HeightRequest="60"
    WidthRequest="60" />
```
***

![ButtonD](https://thepracticaldev.s3.amazonaws.com/i/16rx5czx2dk6temv8522.png)
```xaml
<Button
    CornerRadius="45"
    HeightRequest="90"
    WidthRequest="90"
    ImageSource="image.png" />
```
***

![ButtonE](https://thepracticaldev.s3.amazonaws.com/i/xuir4mbbdiw446x5v0pb.png)
```xaml
<Button
    BackgroundColor="Transparent"
    ImageSource="image.png" />
```
___
What kind of button is missing that you would like to see here too? Let me know.
Reading Snippets [39 => Arrow Functions]
Tags: javascript, beginners, codenewbie, todayilearned
Published: 2020-01-22 08:11:02

Despite the similarities in functionality, arrow functions differ from regular JavaScript functions in several ways:


🏹 Syntax - Curly brackets are not required

🏹 Arguments Binding- Arrow functions do not have arguments binding

🏹 This Keyword- Arrow functions do not have their own <code>this</code>

🏹 New Keyword- Arrow functions can never be used as constructor functions

🏹 Parameters - Arrow functions can never have duplicate named parameters


<kbd><small>Source:<a href="https://medium.com/better-programming/difference-between-regular-functions-and-arrow-functions-f65639aba256">Ashutosh Verma,Medium 
</a></small></kbd>
How do you get out of procrastination in your carrer?
Tags: productivity, career
Published: 2020-01-22 07:59:05

I have a goal for this two months of 2020 I want to take the Associate Android Developer certificate from Google. I started to improve my knowledge by studing after work (9pm to 11pm) but in the last week I'm just procrastinating. I know exactly what I need to learn but it seems that I don't believe in my self.