teleren/devto huggingface dataset:
Fitbit clock face ANDv1
Tags: fitbit, clockface
Published: 2021-01-02 02:24:53


*Originally Posted https://darnahsan.medium.com/fitbit-clock-face-andv1-b95e12673085 Published on Nov 18, 2018*

20181121 — 0.0.1-rc-0.0.10 is now live

I have always found fitness tracker a great device to track health and keep fit. With the advent of smart fitness tracker it reduced the devices I had to wear on my wrist from 2 to 1. I own a Fitbit Ionic Smart Watch Adidas edition, its a great device and there are plethora of clock faces (weird why they call it a clock face when its a watch ¯\(°_o)/¯). One of the reasons I like fitness trackers is because of the amount of stats it provides. Over time it becomes annoying to scroll through the tracker or access app to find the stat to monitor your progress. The Fitbit App gallery is still young and has a lot of nice “clock face” but most of them are paid and the free ones are opinionated or minimal to my liking.

So I took it upon myself to make an opinionated “clock face” to my liking. Did a quick search on github and found a simple stat heavy clock face developed by anha1 as Acid Clock Face ([https://github.com/anha1/fitbit-acidclock](https://github.com/anha1/fitbit-acidclock)). I took that as a base template and built on top of it . The following is the result of the work I put in a Fitbit clock face for ionic and versa published to gallery and available ([https://gam.fitbit.com/gallery/clock/cf3cd90a-aac5-4dd4-8125-bad2b229cc57](https://gam.fitbit.com/gallery/clock/cf3cd90a-aac5-4dd4-8125-bad2b229cc57)). After publishing its has received positive feedback from the community with some requests which I have worked and published. The current version available as of this writing is 0.0.1-rc-0.0.8 and new version is awaiting review 0.0.1-rc-0.0.10 that adds the minimal mode. The source code is now part of OSS on github 
{% github ahsandar/ANDv1 %}

Some highlights of what is available on the clock face:

* The Battery is a bar at the top, changes colour for every 25% increment/decrement.

* The activity bars have current and target activity for steps, distance, elevation, calories and active minutes.

* The heart rate has active and resting hear rate with heart rate zone at the top.

* The basal metabolic rate and BMI is displayed under heart rate

* Date is day ,date, month and year at the bottom

* Time is 12/24hrs with seconds.

* Barometer reading from the sensor added for display in kPa.

* Minimal mode also available with BMI, BMR and Barometer reading visibility toggle.

* Heart Rate Zone visibility can be toggled also.

Screenshots of the clock face are below

Ionic

![](https://cdn-images-1.medium.com/max/10000/1*c6gPfxWbkzP5eyv2zAK21A.jpeg)

Versa

![](https://cdn-images-1.medium.com/max/10000/1*gCR3YiFVIYP86vhC_GyjYg.jpeg)
The Top Code Editors, My Experience
Tags: webdev, software
Published: 2021-01-02 02:12:11

Picking an editor is not really about what editor has the best plugins, the best looks, the best features, it’s more about your developer style. Most editors already have all the plugins and themes that you could ever think of anyways.

###You like things out of the box having all the tools at your disposal

If you’re a developer that likes to choose software and tools that give you the tools you need not having to installing much, then you should use Visual Studio. It is easily the most popular editor developed by Microsoft, many people really love Visual Studio while others find it bloated with all the tools and stuff.

![Visual Studio preview Image](https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fdab1nmslvvntp.cloudfront.net%2Fwp-content%2Fuploads%2F2019%2F04%2F1556692135visualstudio.jpg&f=1&nofb=1)

###Simplicity! You like to start fresh and install what you need  
Atom is the way to go if you want a fresh feel to the code editor with the ability to install advanced tools and extensions. Developed by GitHub, Atom creates an amazing experience simple, fresh and hackable plus amazing git integration. Some think that Atom is somehow bloated (I don’t know how they think that) while most views against Atom is that it doesn’t have the tools installed by default in Visual Studio.

![Atom preview image](https://github-atom-io-herokuapp-com.freetls.fastly.net/assets/index-teletype-screenshot-1de356892e9bab0f5a1e95b4a003dfecaab0d9e67a91fd60b63006a32f147db0.png)

###Fast, built in features, easy to use
If you are going for speed, Sublime is the way to go. It is significantly faster than both Visual Studio and Atom because it is an actual program and not a web app. Its got the basic tools and features installed by default and its easy to use. Drawbacks are the lack of extensions available and customizability. Sublime unfortunately proprietary software and you need to buy a license to use all the features.

![Sublime preview image](https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fitsfoss.com%2Fwp-content%2Fuploads%2F2015%2F07%2FSublimeText.jpeg&f=1&nofb=1)

###Bonus
If you live in the terminal because you are just that cool, you should try vim. There is even a bit of extensions to it and endless features to lean in vim.

![Vim image preview](https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F2000%2F1*MUyy8PyijV6teba92mATrg.png&f=1&nofb=1)


This is coming from my personal experience in each of these editors but let me know if there is something I am missing or is inaccurate.
To the brain, reading computer code is not the same as reading language

Published: 2021-01-02 01:56:56

“Understanding computer code seems to be its own thing. It’s not the same as language, and it’s not the same as math and logic,” says Anna Ivanova, an MIT graduate student and the lead author of the study.
https://news.mit.edu/2020/brain-reading-computer-code-1215
S3E10 Learn JMeter Series - Throughput Controller
Tags: performance, testing, tutorial, webperf
Published: 2021-01-02 01:49:57

Welcome to Learn JMeter Series!

In this Season 3, Episode 10, you will learn following:

🔹 Throughput Controller

{% youtube Lp_Shuf5tGE %}

☑ Buy me a tea 🍵 : https://www.buymeacoffee.com/qainsights
☑ [My Blog](https://qainsights.com)
☑ [My Udemy Course](https://www.udemy.com/course/performance-testing-using-truweb)

{% github QAInsights/Learn-JMeter-Series%}
Upcycle your old laptop don’t throw it away
Tags: upcycle, laptop, technology
Published: 2021-01-02 01:40:09

*Original post https://darnahsan.medium.com/upcycle-your-old-laptop-dont-throw-it-away-b8300b6ff29 Published August 13th, 2020*

So i bought hp dm3000-ea beats edition in 2012-2013 my 2nd laptop ( 1st one was gifted to me by my dad on graduating) this was probably the most expensive thing back then out of my pocket ever 
تب احساس ہوا عیاشیاں تو باپ کے پیسے سے ہوتی ہے اپنے سے تو صرف ضرورتیں ہی پوری ہوتی ہیں
So been using it till last year, after over 6 years of use it finally "died" on me. Before this in 6 years its RAM had degraded over time and had upgraded it from 3GB to 16GB which had degraded again and were up for replacement. Also the HDD had crashed 4 years ago and replaced it from 256GB to 1TB. So it was maxed out over time but then came its time the WiFi started failing and then the fan gave in and it "died" إِنَّا لِلّهِ وَإِنَّـا إِلَيْهِ رَاجِعونَ . As دنیا گول ہے then I bought the most expensive thing of my life hp Spectre x360.
کیونکہ لندن تو کیا میری تو سنگاپور میں بھی پراپرٹی نہیں یہی اوقات ہے ٹیکس پیئر کی۔
Being Pakistani a natural master in hoarding it has been kept well given its own space to honour its services over the years. New laptops don’t come with CD-ROMs now and having a portable storage is a must for we live in a digital age and being a software developer a single screen isn’t enough at times to work. As I was contemplating buying all of these I recalled having my prize buy lying around, my first thought was I can take the HDD out and make an external HDD of it (had done that with the old HDD already). Then I searched to see if I could get a case for CD-ROM and walla there it was and boom an external CD-ROM could also be made. Now for the last item a secondary screen for which I Google-d and there were a ton of articles and videos over how an old laptop LCD could be converted to an external display all l needed was a LCD controller board for my model and a 12V/3A power adapter, so ripped the old gun apart and searched for the LCD controller board on Ali Express. It being an old model still managed to find a couple of suppliers for it. Ordered all the items that cost me for an external HDD case (10 SGD) external CD-ROM case (9 SGD) LCD Controller board (27 SGD) power adapter ( 6 SGD) a total of 52 SGD. Had I bought all these Items it would have cost me somewhere between 300-500 SGD. If you have read it this far I hope it helps you in recycling your old electronics or upgrading your laptop to extend its life. Don’t waste money think before you throw away your old gadgets. Be #Pakistani 😉

![](https://cdn-images-1.medium.com/max/2160/1*eK8TnFxfxWrUrbknqAfBFQ.jpeg)

![](https://cdn-images-1.medium.com/max/2134/1*vlw3ok7oP1Ql8CNdh4CPKw.jpeg)

![](https://cdn-images-1.medium.com/max/2160/1*J21jUoGBdNdwIIjd3JBJKw.jpeg)

![](https://cdn-images-1.medium.com/max/2160/1*zS2BwSjyBJSuEPFrYO45-g.jpeg)
Attempt to simplify the fetch API
Tags: javascript, webdev
Published: 2021-01-02 01:24:08

The fetch API is awesome and super easy to use but I made an attempt to simplify fetch for my needs. I like to take API's or functions and simplify them as much as I can for my needs. Here was what I wanted to simplify about the fetch API.

1. One function for success and one function for all errors
1. Automatic JSON or text parse
1. Easily send body and easily change header data

Lets start with a fetch example with promises to try to simplify:
~~~js
fetch('https://example.com')
.then(x => x.text())
.then(y => alert(y))
.catch(err => console.error(err));
~~~
Now this is what I want to be able to do:
~~~js
fetcher('https://example.com')(alert)(console.error)
~~~

It looks odd but all its just a function that returns a function that returns a function that does what we want. Its called fetcher because fetcher is not fetch. Here is the code we could use to fulfill the above.

~~~js
function fetcher(url, options){
  options = {
    parse: 'text',
    ...options
  }

  return (done) => {
    return (error) => {
      try{
        fetch(url).then(x => x[options.parse]()).then(done).catch(error);
      } catch(err) {
        error(err);
      }
    }
  }
}
~~~

This is just the start to this idea. I will later add things like request body and headers to the options but this is it for now as a start.
Use this vanilla JS shortcut with $ function
Tags: javascript, webdev
Published: 2021-01-02 00:51:40

Jquery being 14 years old is still used by half of websites. The concept of Jquery is a great idea that is to simplify JS DOM manipulation, simplify AJAX and to make it easier to support IE. Now that AJAX is no longer needed as we can use the fetch API, and there is less of a need to support old IE browsers, there is no longer a real need for Jquery. But if I am writing vanilla JS I dont want to write document.querySelector every single time.
~~~js
var $ = document.querySelector
var $$ = document.querySelectorAll
~~~
Use these function shortcuts and it will make life much easier.
Procrastination Station
Tags: productivity, focus, motivation, work
Published: 2021-01-02 00:41:09

Wanna know how to get from Procrastination Station to Inspiration Nation with concentration and organization? 🤔 

🔆 You must first have the realization. 🔆

### Here is the situation:

You have that feature that is due this Friday. It is Tuesday, you made your branch yesterday but let's be honest, you haven't even started. 

Whatcha been doing all day? Arguably you have been productive, you cleaned your entire house, you planned dinner for tonight and tomorrow night and what the heck might as well plan Friday night's dinner or you will end up ordering take out again. Then you started some laundry cause that's just gonna pile up if you don't. You sat down, opened your code editor, then remembered you have been meaning to organize your closet. 

Now finally at your computer, you __realized__ you have been on Twitter for 45 minutes. 

### But this is good! You're at that million-dollar moment. 🔥

With the _realization_ that you have been unfocused, whether you feel guilty because you decided you needed to clean out your closet randomly or you just spent 45 minutes on Twitter, the trick is to quickly get over that guilty feeling as soon as you realize you are realizing it. 

![guy having a realization](https://media.giphy.com/media/12cwiPXDWlOmNa/giphy.gif)

You __must__ celebrate this realization before the next step: 

### Stop it 

Either stop scrolling or finish organizing that closet but remember to feel GOOD about that. Because it doesn't matter that you wasted time, what matters is that you realized it, stopped what you are doing, (or if you must, finish what you started first... but then seriously stop) and __*feel*__ that feeling of winning. That feeling will give you that slight push to move towards your goal. 

### Inspiration Nation 

Now, with this feeling, you are at Inspiration Nation. Use this feeling of inspiration to plan. 

Like my favorite artist, Big Sean wrote: 

>Look, think about it, close your eyes, dream about it
>Tell your team about it, go make million-dollar schemes about it
>
> -- <cite>One Man Can Change The World</cite>

Most likely, if you already felt even a little guilty, you know the thing you have been putting off and what you need to do. In this case, the plan is already there, but if this is not the case, well, figure it out, dude. 

### Have an Organization Revelation. 

Get organized the way you like to. Maybe it's clearing your desk of trash, making a detailed to-do list, or closing all those dang browser tabs. Beware this step doesn't take longer than 5 or 10 minutes. If you hit 15 minutes you are now back where you started: Procrastination Station. 

### Focused Attention and A Concentration Sensation

Getting yourself organized will allow you to start working. You can focus now. Congrats, your work will be done with a concentration sensation.
We are programmers, not typists [expletive deleted]
Tags: productivity
Published: 2021-01-02 00:13:15

In a very memorable episode from the original Narcos, there is a scene where Pablo Escobar's cousin - Gustavo is captured by the police and tortured. When he is asked for the location of Pablo, he replies - "I am a bandit, not a snitch".

{% youtube n24PUEhmidg %}

Identity is one of the strongest human motivations. As in the case of Gustavo, once he identified himself as a bandit, no amount of torture could have extracted any information from him.

I had been working as a software developer for a very long time before I changed my perspective and decided to identify myself as a programmer. Once I did that, I found that I approached problems differently than I would previously.

Here is an example. 
I work with a VueJs frontend which accesses a bunch of microservices. To access these services we use a `proxyTable` like so

{%gist https://gist.github.com/sudarshang/725bee5a1b53be01c0d340f5312c0a2d %}
Beautiful 100+ UI Blocks To Create Landing Pages.
Published: 2021-01-02 00:03:23

No more hassles and no need to think about design and inspiration because it lets you construct gorgeous landing pages with an excellent user experience in both mobile and desktop, quickly and easily by using a simple Copy-Paste method.

Save 200+ hours-worth of designing and coding: http://frontendor.com/?utm_source=dev&utm_medium=p&utm_campaign=al
How to delete a branch locally in Git?
Tags: git
Published: 2021-01-02 00:00:00

---
  title: How to delete a branch locally in Git?
  published: true
  tags: Git
  date: Sat Jan 02 2021 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/delete-branch-locally-git
  cover_image: https://melvingeorge.me/_next/static/images/main-5b0cc4bdcbfb513ebc265303f8898e53.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/delete-branch-locally-git)
  
To delete a branch locally in Git, you can use the `git branch` command and use a flag `-D` to set the command in deletion mode and pass the local name of the branch.

For example, consider a branch called `new-features`.

So the command looks like this,

```bash
git branch -D new-features
```

As you can see from the above command we have used the flag `-D` with the command which will instruct Git to delete a branch.

The flag doesn't have to be before the branch name, you can use the flag `-D` even after the branch name itself like this,

```bash
git branch new-features -D
```

Both ways of writing the command have the same effect.

### Feel free to share if you found this useful 😃.

---
How to add docker to Asp.net core MVC application
Tags: docker, dotnet, beginners
Published: 2021-01-01 23:46:14

Hello, i have uploaded a youtube video on How to add docker to Asp.net core MVC application. 

This is a brand new Youtube channel dedicated for dotnet development. Please subscribe and watch and comment on any topics that you want to see. Thank you

{% youtube ci4W-lTRfWg %}
Why dev.to store huge amount of data on mobile device
Tags: storage, dev, cache
Published: 2021-01-01 23:13:35


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

I never seen before that can any simplified web app use that amount of storage?

I know in google chrome browser allow to much of storage for storing different types of data.

But why dev.to use huge amount of storage.
My yearly theme for 2021
Tags: productivity, career
Published: 2021-01-01 23:09:11

For a few years now I've been following the idea of a **yearly theme** instead of the classic new year's resolutions. I've discovered this thanks to the [Cortex podcast](https://www.relay.fm/cortex), and for the last three years I've been using yearly themes with great success.

(You can learn more in [The Theme System's webpage](https://www.thethemesystem.com/), or you can also watch [this video](https://www.youtube.com/watch?v=NVGuFdX5guE) made by CGP Grey himself)

For the last two years, I've embraced the "Year of less", which I stole from CGP Grey, and I was really happy with the results. But this year I feel that I have incorporated the Year of less into my routine and my normal life altogether, so it doesn't make much sense to keep using it as a yearly theme anymore. Instead, I decided to try a new theme, the "Year of Visibility"

## The Year of Visibility

I chose this theme after two other candidates that didn't just "resonate" with me right now. They were Year of control and Year of investment, but who cares about those losers, let's talk about Visibility!

I feel that Visibility has many possible interpretations and I like the implications of all of them, so the Year of Visibility comes with many faces:

### Inward visibility

Gain more visibility about:
- My health: for a long time I have not paid enough atention to this and I am starting to feel the consequences.
- How I spend my time, how much productive time I actually have, how much my time is worth, etc.
- My finances: I don't have a fixed income, and I am not sure about how much I've earned or spent last year. 
- My own internal life: emotional and psychological.

My goal is that by having more visibility about these aspects, I will be able to anticipate possible problems, and also discover hidden ones.

### Visibility from the outside

Become more visible, and some examples of this could be:
- Create new projects or participate in projects that can give me an oportunity to make myself known.
- Make new contacts, clients, partners, friends, etc.

My goal is to break the isolation in which I have been living... all my life? I'm not going to stop being an introvert, it's not about that, it's about creating more oportunities for people to know me and my work. I have always struggled to get new clients other than by word of mouth and I want to change that.

### Visibility of others

Give more visibility to a cause or causes I believe in.
By helping spread awarenes, or volunteering to help something I feel passionate about can help improve the lives of others, and at the same time, find a healthy source of personal satisfaction other than work or play.

Do you have a yearly theme? Why or ahy not?
Why is UX important for process management?
Tags: agile, ux, beginners
Published: 2021-01-01 22:07:47

The higher management often thinks UX is only about user interface. To prove them wrong you have to speak their language.

# When is a process correct?
When we work we execute processes. Sometimes they are already defined and we just have to follow all tasks. But sometimes they are completely new and we do not have any experience yet. In order for a process to be correct it needs to be effective and efficient.

> effective: do the right thing
> efficient: do it right

# Best Case and Worst Case
Let's say it is cold in your apartment and your family sends you to buy a device. 

## Best case
The most effective device is a heater and to buy it efficiently you would go to the nearest store.

* effective: true
* efficient: true

## Worst case
But how does the worst case looks like? Before checking the answer think about it for a minute... ;)

* effective: false
* efficient: true

Oh well, how can a efficient process be the worst case? Instead of buying an heater you would buy a toaster but still get it from the nearest store. 

Later you show the toaster to your family and you get yelled at for wasting money. What happens next? You put on your shoes and go for a refund.

If you would gone to a store far away there was a chance that you would have changed your decision and bought a heater or that someone reminded you. You had more time to make that process effective.

> effective > efficient

# Why is UX important for process management?
Let's say I have a friend which has another friend and his cousin lately bought a closet from Ikea. Probably you have already seen Ikea's amazing [web app](https://www.ikea.com/addon-app/storageone/pax/web/latest/?range=pax&uiPlatform=web&locale=en-US#/planner) where you can design your own closet. 

Sadly that process was not foolproof and the worst case occurred. He managed quickly to design a beautiful closed and ordered it. A few weeks later Ikea delivered and built it in his apartment. Now it comes... that closet was too high! Sincerely, who knows how high his room is? Well, you can say someone would measure up his room before buying a closet. Looks like not everybody does that. ;)

## Consequences
Ikea has a policy where they exchange your stuff. Good for the user but bad for Ikea. The user and some employees lost time, energy and money for that mistake.

## Solution
I am pretty sure this was not the first time this happened. But how can we prevent such user mistakes? I do not know but someone who has experience would find a solution.

Some ideas:
* Remove the default height.
* Set a lower default height.
* Remind the user to check the height.

# Conclusion
The buying process of the closet was not effective but efficient. Fastly the user managed to order a wrong closet. Because of this the user and Ikea had unnecessary more work and costs. This could have been avoided if someone had focused on UX.