teleren/devto huggingface dataset:
database management System🚀
Tags: database
Published: 2021-04-30 07:38:49

Important Terminologies that are to be remembered before getting into the interview room.:)
 
DATABASE: This term can be defined as a collection of inter-related data which helps in efficient retrieval, insertion, and deletion of data from the database and organizes the data in the form of tables, views, schemas, reports, etc. For Example, a university database organizes the data about students, faculty, and admin staff, etc. which helps in efficient retrieval, insertion, and deletion of data from it.

key points to be remembered - {inter-related data ,retrieval,insertion and deletion} + examples.


DATABASE MANAGEMENT SYSTEM: It is the software which is used to manage the database is called Database Management System (DBMS) 
An example could be Mysql, Oracle.




Technical Jargons :
1) Data Definition
2) Data Updating
3) Data Retrieval
4) User Administration



Thank you :)
COVID vaccination scheduling scheduling AI
Tags: java, ai, optaplanner
Published: 2021-04-30 07:38:15

Vaccination scheduling is more difficult than you'd expect. With constraints such as distance reduction, 2nd dose shots and priority groups, a constraint solver comes in handy:

{% youtube LTkoaBk-P6U %}

See also [Paul's in depth article](https://www.optaplanner.org/blog/2021/03/04/OptimizingCovid19VaccinationScheduling.html).
How do you deal with unproductive days?
Tags: watercooler, productivity, writing, coding
Published: 2021-04-30 07:25:49

---
title: How do you deal with unproductive days?
published: true
description: 
tags: watercooler, productivity, writing, coding
cover_image: https://blog.hubspot.com/hubfs/unproductive%20day.jpg
---
We all have unproductive days. For content creators, this state is often referred to as 'the writer's block' or 'the wall'.

How do you fill up these days?
Do you take the day off from content creation or coding (if possible) or do you still have some tasks you like to do?

For example, I try to relax the mind as much as possible (usually longer activities outside, sports).
Using Azure DevOps REST APIs to automatically create Team Iterations
Tags: azuredevops, devops, automation, azure
Published: 2021-04-30 07:07:59

![Cloud with Chris Logo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xea3wl8co4ylrpcvmuuh.png)

**This post was originally published on Sun, Jun 16, 2019 at [cloudwithchris.com](https://www.cloudwithchris.com/blog/azure-devops-team-iterations-script/).**

Consider this scenario. You are managing a software project using Azure DevOps, and you have multiple teams working towards a common cadence. Perhaps that cadence is managed by a central team. To gain the most value from your sprint planning, you would need to associate the iterations from the project level with each individual team.

This is a scenario that I have for my fictitious Theatreers project, but also a scenario I encountered recently with a colleague. I have been helping them setup an Azure DevOps project to track the development of IP and collateral, so that they can more accurately forecast what they expect to land and show the value being delivered by the team.

As we continue planning for the project to be piloted, I realise that the iterations at the project level have not yet been associated with the individual teams. Furthermore, at this point, I also realise that this is something that would need to be setup across all of those teams.

This project has about 18 teams, and started with about 6 iterations. I could have manually added the iterations one-by-one for each team, but where's the fun in that? Instead, I opted for a scripted approach.

You can find a Gist below showing the example script.

{% gist https://gist.github.com/chrisreddington/649c472a058385a01308348c756f4b26 %}

I realise that the above can of course be improved further, such as more robust error checking, looking through multiple depths of iterations in the project configuration, etc. However, This solves my immediate need. Why over-engineer if it solves my problem? Re-architect as the need arises.

That being said, if you think this script could be useful but needs some modifications, please do contribute to it. I have a 'permanent' copy of the script available in my [Useful Scripts GitHub Repository](https://github.com/christianreddington/useful-scripts/blob/master/AzureDevOps-AddProjectIterationsToTeams.ps1).
Exploring the Consensus Algorithms of Blockchains

Published: 2021-04-30 06:52:26

Since the Blockchain network is a decentralized network, an inherent challenge of validation arises. For any block to be added in a blockchain, it has to undergo validation. Blockchain is like a database containing valuable information, therefore, it becomes imperative for all the nodes to make sure they have the most updated and verified copy of it. Part of what makes Blockchain technology so popular is its robust security and validation.
The mechanism through which the blocks are verified and made secure is called a consensus algorithm. Providing a method for every new block in a blockchain to be the only true version that is agreed upon by all the nodes. Different protocols and rules exist in the consensus agreement which provides trust for unknown nodes to agree upon the present state of the distributed ledger. Essentially, consensus algorithms provide a criterion for all the nodes to agree upon a common validation process.
Seemore: https://js9766501.medium.com/exploring-the-consensus-algorithms-of-blockchains-58b2505da990
5 Tips to earn money without any investment

Tags: lotterygames
Published: 2021-04-30 04:29:00

Earn Money through Lottery Games in India
Are you wondering how to win a <a href="https://assamtouch.com/khanapara-teer-result-shillong-teer-result-juwai-teer-result/">Assam Teer</a> lottery game in Bhutan, Nagaland, Assam, Kerala, and other lottery legalized states than you must know how to take tickets for each day's games? There is a game called Teer in the Northern States which is very famous in the local area. Each day Teer Bookie earns a lot of money just by selling Teer Tickets to the Teer Players. The amazing thing about this game is that Teer Bookie no needs to invest in this game! Teer Players and Teer bookie both are earning daily. 

Earning Techniques Must Know
So there are various lottery game in one of the states of India where you can either set up your business as a Bookie or Players for example you can also opt for Kerala Lottery, Punjab Lottery, Sambad Lottery, Bodoland Assam Lottery, Dhankesari Lottery, etc There are various techniques you can follow to win and lottery game or to earn money using those games. In order to crack those games, you can follow your dreams. There are many online sites available that will help you to convert your dream into numbers 

How to play lottery games in India!
If you want to play <a href="https://www.assamteerresults.com/dhankesari-lottery/">Dhankesari Lottery</a>, Bhutan Lottery, Khanapara Teer Game, Shillong Teer Game you need to take tickets from your nearest bookie. You need to invest pocket money say 1-2 rupees only. In lieu of 1 rupee, you will get up to 70 rupees. Just imagine if you invest 1000 rupees in a day, you can win 70,000 rupees in a single shot! Before taking numbers you must go through the Teer Dream numbers or Teer Common Numer so that you can easily crack the games!

<a href="https://www.teernews.in/new/kerala-jackpot-results">Kerala Jackpot Lottery</a> a similar to Khanapara Game played in Meghalaya. Lots of pro archer comes to shoot the target. On basis of the target, Teer results numbers are calculated in two rounds First & Second. There is a gap of two 1 hours between the rounds. In this gap, you can again invest money for the second round to earn handsome money!

Wrap Up

Hope you got the idea regarding the rules of both Lottery and Teer games. You must keep in find whether you are investing in Lottery or Teer games. you need to have your sure numbers which you can find from the bookie itself. But as an advanced player, you can also calculate those numbers using the previous game results. You can also follow this below link for your target numbers
4 Python functions that make reading easier
Tags: python, programming
Published: 2021-04-30 06:09:05

A function in Python is a block of coordinated, reusable code that is utilized to play out a solitary, related activity. Functions gives a better seclusion to your application and a serious level of code reusing.

In this post we're going to see 4 Functions that make reading Python code easier. 

---

### Globals

```python
>>> globals()
{'__name__':'__main__', '__doc__': None, ...}
```

As it name implies, the `globals()` function will display information of global scope. For example, if we open a Python console and input globals(), a dict including all names and values of variables in global scope will be returned. 

### Locals

```python
def top_developer(): 
   name = 'DevWriteUps'
   country = 'Canada'
   print(locals())

top_developer()
# {'name':'DevWriteUps', 'country': 'Canada'}
```

After understanding the `globals()`, `locals()` function is just a piece of cake. As its name implies, it will return a dict including all local names and values. By the way, if we call the `local()` in **global scope**, the result is identical to `globals()`. 

### Vars

```python
class TopDeveloper:
  def __init__(self):
   self.name = "DevWriteUps"
   self.county = "Canada"

me = TopDeveloper()
print(vars(me))
# {'name':'DevWriteUps',  'country':  'Canada'}
print(vars(me) is me.__dict__)
# true
```

The `vars()` function will return the __dict__, which is a dictionary used to store an object's attributes. Its result is the same as calling the `__dict__` directly. 

### DIR

```python
class TopDeveloper:
  def __init__(self):
   self.name = "DevWriteUps"
   self.county = "Canada"
me = TopDeveloper()
print(dir(me))


# ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'age', 'country', 'name']
```

The `dir()` function helps us demonstrate a list of names in the corresponding scope. In fact, the dir method calls `__dir__()` internally. 


---

Thank you For Reading🤩 Subscribe to our  [newsletter](https://www.devintro.com) , we send it occasionally with amazing news, resources and many thing.
How hard is it to learn how to code?
Tags: coding
Published: 2021-04-30 06:08:16

---
title: How hard is it to learn how to code?
published: true
description: There have been many misconceptions with regards to the question 'how hard is it to learn how to code?' In this video, I share my experience with learning to code and being a programmer for six years.
tags: coding
cover_image: https://res.cloudinary.com/dlwivxwf8/image/upload/v1619762622/umuks__1.png
canonical_url: https://blog.godswillumukoro.com/how-hard-is-it-to-learn-how-to-code/
---

Learning how to code is a topic that has been massively campaigned both by people who code, and people who do not code. 

There have been many misconceptions with regards to the question 'how hard is it to learn how to code?' 

In this video, I share my experience with learning to code and being a programmer for six years.

**You can watch the Video here:**

{% youtube obi69xDw3sk %}
#45 What would you do if you had a million?
Tags: motivation
Published: 2021-06-08 18:07:03

---
title: #45 What would you do if you had a million?
published: true
date: 2021-04-30 06:04:39 UTC
tags: motivation
canonical_url: https://blog.mastykarz.nl/what-would-you-do-million/
---

![#45 What would you do if you had a million?](https://blog.mastykarz.nl/assets/images/2021/04/creative.jpg)

What would you build? What problem would it solve? How would it work? What if you had only half a million? How would it change? What if you had no budget and just the tools that you already have? How could you solve the same problem?

When solving problems we often take them at face value. But if add some constraints, we get challenged to look for more creative ideas.

The first idea is rarely the best. Don’t stop thinking. Add constraints to tap into your creativity.

<small>Photo by <a href="https://unsplash.com/@alicegrace">Alice Dietrich</a> on Unsplash</small>
Day 47 of 100 Days of SwiftUI
Tags: swift
Published: 2021-04-30 05:54:06

I just started Day 47 of 100 Days of SwiftUI. I implemented the list of activities view for the Habit tracking app today.

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

Here's a [link](https://github.com/sanmiAde/HabitTracker) to the source code.
Anyone else installed more than one desktop env in one machine?
Tags: linux, desktopenvironment, discuss, help
Published: 2021-04-30 05:44:56

I successfully install Xfce after KDE, but

https://bbs.archlinux.org/viewtopic.php?id=265916

- Chromium signed out, if I tried to use the same account inside Xfce4, then back to KDE.
- `ibus-daemon` started up automatically in Xfce4 as well, but as KDE version (`ibus-daemon -drx --panel=/usr/lib/kimpanel-ibus-panel`), and it doesn't work for Xfce.

Now, I want to try Enlightenment, but I fear I'd lose Chromium settings.
How do you stay productive?
Tags: watercooler, productivity, programming, devops
Published: 2021-04-30 05:25:51

I'm sure everyone had one of those days when you're just not up for any tasks that and you just want to relax all day and do nothing. This can easily turn into a habit so it's really important to find a way to stay productive especially in the situation of working from home.

What I try to do in the morning in order to stay productive is to make a coffee, do a little workout (it's more like stretching exercises), create a to-do list with the things I need to complete for the day and last but not least I try to ignore all social media until noon (courtesy to @bobbyiliev for this one.)

I'm curious what else you do in order to stay sharp and focused on your daily tasks. Please feel free to share your tips in the comments!
Class for Ajax applications
Tags: php, mezon, ajax, application
Published: 2021-04-30 05:20:35

# Intro
Let me introduce my small class for creating Ajax based applications.

[Mezon Framework](https://github.com/alexdodonov/mezon) provides simple class for creating ajax applications. This class uses all functionality of the [Mezon Application Class](https://github.com/alexdodonov/mezon-application) also provides usefull functionality:

- automatic creation of the routes '{RouteName}' from methods like 'action{RouteName}';
- [routes setup from config](https://github.com/alexdodonov/mezon-application#loading-routes-from-config-file).
- [action messaging](https://github.com/alexdodonov/mezon-application#action-messages).

# Installation

Just print in console

```
composer require mezon/ajax-application
```

And that's all )

# Exception handling

For better debugging exception handling is performed in a special way. If the ajax request will be failed to process, then on the front end you will get JSON object with fields:

- *code* - code of the occured error;
- *message* - textual description of the occured error;
- *call_stack* - call stack for the call wich lead to the error.

# Finishing request processing

After finishing request processing you can mark it as successfull:

```php
function ajaxRequestSuccess(): void
```

Wich will return `{"code": 0}`

Or return any other result:

```php
function ajaxRequestResult($result): void
```

In this case $result will be encoded in JSON and outputted.

Or in case of the error you can call

```php
function ajaxRequestError(string $message, int $code = - 1): void
```

Wich will return object `{"code": $code, "message": "message"}`

# Learn more

More information can be found here:

- [Mezon Framework](https://github.com/alexdodonov/mezon)
- [Twitter](https://twitter.com/mezonphp)

# It will be great if you will contribute something to this project. Documentation, sharing the project in your social media, bug fixing, refactoring, or even [submitting issue](https://github.com/alexdodonov/mezon-ajax-application/issues) with question or feature request. Thanks anyway ) I'll be very glad if you'll press "STAR" button )
Delete merged branches using one command
Tags: git, github, branches, command
Published: 2021-04-30 04:52:42

Here is a command that you can use to delete all the branches that have been merged to `master` branch from both local and remote using just one command. Instead of deleting branch one by one, I use below commands to delete all the branches that have been merged.

#####Delete local merged branches:
```
git branch --merged master | egrep -v "(^\*|master|dev)" | cut -d/ -f2- | xargs -n 1 git branch -d
```

#####Delete remote merged branches:
```
git branch -r --merged master | egrep -v "(^\*|master|dev)" | cut -d/ -f2- | xargs -n 1 git push --delete origin
```

You can change branch name from master to any other branch name that you refer to as your main branch.

#####Also you can use it as alias by adding it in .bashrc file.
```
alias gclb='git branch --merged master | egrep -v "(^\*|master|dev)" | cut -d/ -f2- | xargs -n 1 git branch -d'
alias gcrb='git branch -r --merged master | egrep -v "(^\*|master|dev)" | cut -d/ -f2- | xargs -n 1 git push --delete origin'

```

It has been a lot easier for me to use it this way. If you do it differently or have better way please comment below.
Gson and R8 force final object to be null at runtime
Tags: gson, r8, android, gradle
Published: 2021-04-30 04:29:40

I had this weird issues that a field is null only on release build, even if I checked it's nullity before access it,
it turns out that R8 when it minify code and you use Gson Library the reflection can alter final fields to be null, WHAT, ya that is the case,final values are able to be modified during reflection - which is how Gson updates final values, that is the statement from one of google employees comment on the issue,

ok how we end up fixing this issue is by adding proguard rule
```
#Prevent R8 from leaving Data object members always null
-keepclassmembers,allowobfuscation class * {
 @com.google.gson.annotations.SerializedName <fields>;
}
```
you can check this issue on issue tracker 
https://issuetracker.google.com/issues/136600124
I had so many hours trying to check null, build release and try ,so here is the issue and here how to fix it.
I hope it helps any who will face this issue.
I read a couple of posts that advocate against Gson and advertise Moshi, I am starting to believe.
49 Days of Ruby: Day 38 - Rack
Tags: ruby
Published: 2021-04-30 04:21:10

---
title: 49 Days of Ruby: Day 38 - Rack
published: true
description: Join us on a 49 day learning journey through Ruby!
series: 49 Days of Ruby
tags: #ruby
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/9m73qaetuse3nm3y3it8.png
---

**Welcome to day 38 of the 49 Days of Ruby! 🎉**

Now that we have looked at building API calls, and using SDKs, it is time to explore Rack!

What is [Rack](https://github.com/rack/rack)? From the README:

> Rack provides a minimal, modular, and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call.

In a couple of short days, we will start looking at web frameworks, and no matter how impressive they appear, they owe their existence to Rack.

Rack defines the underlying architecture for how our code interacts with the web. That code can be a couple lines or an entire web framework, like Ruby on Rails!

Let's take a look at an example:

```ruby
class WebApp
  def call(env)
    status  = 200
    headers = { "Content-Type" => "text/plan" }
    body    = ["My first web app, wow!"]

    [status, headers, body]
  end
end

run WebApp.new
```

The `#call` method is a necessary component of the Rack architecture. Inside, the `#call` method, we can provide various criteria that define what happens when a browser or other web client reaches it.

In this case, we want to return a HTTP status of `200`, which means, `OK`, or in general terms, this works! Then, we return some web headers, namely, saying the content will be plain text. Lastly, we define the `body`, which is the content.

The `run` keyword is another part of the Rack flow.

Rack has a helper utility called `rackup` that you can run from your console. With the code above saved in a file called `app.rb`, run `rackup app.rb` from your console.

You should see something like this:

```bash
$ INFO  WEBrick::HTTPServer#start: pid=00000 port=9292
```

Now, in your browser, go to `http://localhost:9292`. What do you see?

That's right, you just created your first web application. Congrats!

That's it for today. Tomorrow, we'll explore the power of *middleware* using Rack.

**Come back tomorrow for the next installment of 49 Days of Ruby! You can join the conversation on Twitter with the hashtag [#49daysofruby](https://twitter.com/hashtag/49daysofruby).**
49 Days of Ruby: Day 37 -- APIs: Using SDKs
Tags: ruby
Published: 2021-04-30 04:20:52

---
title: 49 Days of Ruby: Day 37 -- APIs: Using SDKs
published: true
description: Join us on a 49 day learning journey through Ruby!
series: 49 Days of Ruby
tags: #ruby
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/9m73qaetuse3nm3y3it8.png
---

**Welcome to day 37 of the 49 Days of Ruby! 🎉**

During the past couple of days, we discussed how to get data off the web programmatically. First, we looked at web scraping. Then, we explored making calls to APIs.

The API route is very common, and it is very powerful for all the ways that it lets you customize your criteria.

That customizability though can come at a cost of complexity. This is why for oft-used APIs there are often SDKs that are created.

An SDK, a software development kit, is a library that wraps the various functionality of the API into reusable methods for users to utilize in their applications. This can make building robust applications with APIs a lot easier than custom building your own methods.

Today, we'll take a look at one example from the [Vonage Ruby SDK](https://github.com/vonage/vonage-ruby-sdk).

## Making an API call with an SDK

Perhaps, you wish to send an SMS message using the SMS API. If you want to build the API request by hand it would look like this:

```ruby
require 'net/http'

url = URI("https://rest.nexmo.com/sms/json")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
req = Net::HTTP::Post.new(url)
req["Accept"] = "application/x-www-form-urlencoded"
req["Content-Type"] = "application/x-www-form-urlencoded"

form_data = URI.encode_www_form(
  {
     :api_key => 'apiKey', 
     :api_secret => 'apiSecret',
     :from => '12222222',
     :to => '1221222222,
     :text => 'Send a message!'
  }
)

req.body = form_data

response = http.request(req)

JSON.parse(response.body)
```

Now, the same request using the Ruby SDK:

```ruby
require "vonage"

client = Vonage::Client.new

client.sms.send(from: '1222222', to: '12122222', text: 'Send a message!')
```

As you can see from that one example, an SDK can save you a lot of time writing code!

Did you know most of the popular services you may have heard of have Ruby SDKs? Do some research today and find out about the Google Cloud, Twilio, IBM Watson, and other Ruby SDKs!

**Come back tomorrow for the next installment of 49 Days of Ruby! You can join the conversation on Twitter with the hashtag [#49daysofruby](https://twitter.com/hashtag/49daysofruby).**