teleren/devto huggingface dataset:
Top 10 trending programming languages 2020
Tags: python, javascript, kotlin, go
Published: 2020-08-28 07:03:17

![Programming languages](https://dev-to-uploads.s3.amazonaws.com/i/bf8yjepgb6gi36zdy45z.jpg)

ITShifting.com [analyzed Google search queries](https://itshifting.com/blog/top-10-trending-programming-languages-2020) and found out the top 10 trending programming languages as well as top countries showing the highest interest in those languages.

Google Trends is a tool that shows the relative popularity of search queries — the ratio of a query’s search volume to the sum of the search volumes of all possible queries. The resulting numbers are scaled on a range of 0 to 100 based on a topic’s proportion to all searches, where 100 speaks of the maximum interest.

Over 12 months ending in August 2020, the most searched programming languages were JavaScript, Kotlin, and Python — the average ratio of queries related to these terms exceeded 90. 

Other popular languages include TypeScript, Groovy, Go, Powershell, Assembly language, Ruby, and C#, with ratios of 85 or more.

![Top 10 programming languages](https://itshifting.com/photos/content/pl-trends.png)

ITShifting.com also looked at the interest by region to see in which locations terms related to programming languages were most popular over the last 12 months. 

For all top 10 queries, the maps look almost alike, with China leading in popularity of search terms. Here are several examples:

![Programming languages by country](https://itshifting.com/photos/content/geomap-js-kotlin-python-ts.png)

China is the location with the highest popularity of all top 10 terms (popularity ratio 100) except Powershell (popularity ratio 39). However, a higher value means a higher proportion of all queries of total searches in that location, not a higher absolute query count.

In other countries, terms related to programming languages are less than half as popular. If we exclude low search volume regions, countries with the popularity > 10 of the top 5 terms are South Korea, Israel, and Belarus. 

Locations with higher interest also include Armenia (JavaScript and C# related queries), Singapore (Python-related queries), Luxembourg, Switzerland, Denmark, New Zealand, Netherlands (Powershell related queries), Ethiopia and Pakistan (Assembly language), and Japan and Tanzania (Ruby search queries). 

Source: [ITShifting.com](https://itshifting.com/blog/top-10-trending-programming-languages-2020)
TinyMCE Django form won't submit.
Tags: tinymce, django
Published: 2020-08-28 06:22:32

---
title: TinyMCE Django form won't submit.
published: true
description: How to fix the issue when TinyMCE won't let a Django form submit.
tags: tinymce, django

---

I'm building a django application that uses TinyMCE. Forms that had the TinyMCE widget were not submitting.

My models were:

```
    title = models.CharField(max_length=255)
    slug = models.SlugField(max_length=255)
    content = models.TextField()
```

The problem is that in order to use TinyMCE you have to change any TextFields to include `blank=True`.

Your code would end up like so:

```
    title = models.CharField(max_length=255)
    slug = models.SlugField(max_length=255)
    content = models.TextField(blank=True)
```

I was using a `ModelForm` which inherits certain properties from the model.

PS. Spent 2 hours with this. Hope I saved you as much time.
5 key elements that can make your website successful 
Tags: webdev, webdesign, ux
Published: 2020-08-28 06:19:19

A website isn’t meant just to showcase your services or products, it is created to generate leads, increase sales and grow business. So, you need to ensure that your website engages with your visitors in the right way.

With the help of experienced web designers in Melbourne, let’s take a look at the five basic elements that can contribute in their own way to the overall user experience of your website.  1.      Content 


‘Content is King' because it plays a massive role in Search Engine Optimisation (SEO). The content you share is one of the main reasons why people visit your website. Therefore, you really need to put some efforts into creating first-class content like videos, blogs, news/information and high-resolution imagery for your website. This will keep your users on your website for longer. 


2.      Usability and navigation


If the usability and navigation of your web pages are poor, your visitor will instantly move away from your website. The user should be able to find the relevant content on your website with ease.So, make sure your website is easy-to-navigate, intuitive, accessible and mobile-friendly. 


3.      Visual appearance and responsiveness


In this digital age, it is crucial to create a website that is visually impressive across all devices. Indeed, you must maintain your brand image. This means that the design of your website must reflect who you are as a business. It is important for you to visually connect with the audience. This not only improves your brand awareness but also increases your credibility.

Make sure the website is responsive and compatible with all types of devices and web browsers. 


4.      Visibility 


No matter how aesthetically pleasing and user-friendly your website is, it would still be unsuccessful unless it’s easy to be found. The most visible websites are the ones that have high rankings in search engines. This can be achieved through digital marketing campaigns including SEO, social media and email marketing. You must understand how your website can be easily found, what platforms to target and how to utilise your content. 


5.      Interaction 


The final element of a successful website is how it engages with the audience.It is important for you to hold their attention, direct them through the stages of your website and finally encourage them to click on call-to-action (CTA).

With these above-mentioned elements, you can make your website engaging for the users. These are tested and proved elements incorporated by most successful websites all over the world. 


Do you want to update your website design? Feel free to contact our experts of web design in Melbourne today. 

https://www.digitalpieces.com.au/contact-us/

Originally published at https://website-design-tips-melbourne.blogspot.com/2020/05/key-elements-can-boost-your-website.html
Check Out My Roda Starter Pack
Tags: ruby, roda, vue, showdev
Published: 2020-08-28 06:01:25

---
title: Check Out My Roda Starter Pack
published: true
description: A DIY MVC Project Setup with Vue and User Flows.
tags: Ruby, Roda, Vue, Showdev
//cover_image: https://roda.jeremyevans.net/images/roda-logo.svg
---

[May the source be with you... Fork Me.](https://github.com/AndyRosenberg/Roda_Stack)

I'll keep this post relatively brief.

A few months ago I discussed how Rails alternatives need to be emphasized in the Ruby community. While COVID lockdown hasn't been my wellspring of inspiration, I have worked on this stack that I believe can push the needle on more DIY Ruby stacks.

Please note that the stack is inspired by Rails and even includes ActiveRecord, ActiveSupport, and Turbolinks. But it is a take-as-you-need approach that won't likely end up with a 250+ line `Gemfile.lock`.

In my stack, Vue and Bulma quarterback the frontend, and a Vue component corresponds with each action and erb template. The backend sports full MVC architecture, Sidekiq jobs, and better extensions of Roda with a few extra convenience methods (i.e. to render json and display validation errors).

So with the above repo, user CRUD and forgot password flows come for free. I'll be using it for my next side project, and once that's in a good state I'll post that on here as well. Let's get some more DIY stacks out there!
*testing in GO
Published: 2020-08-28 05:56:56

I have recently been learning golang & out of plethora of features this language offers one specifically caught my eye.
Golang  provides support for automated testing of Go packages.

Lets go through a simple function that we want to test.

Problem: reversing string in place
Solution : **reverse_string.go**
```
package praveen

func reverseString(list []string) []string {
	start := 0
	end := len(list) - 1

	for start < end {
                // swap the values at indices
		common.Swap(list, start, end)
		start++
		end--
	}
	return list
}
```

Simple enough right.
Lets see how we can test it

first import the testing package

```
import "testing"
```

testing function in go looks like **TestXxx**
so lets create a function for testing the reversal of string

```

func TestReverseString(t *testing.T) {

}

```

next lets create an array of struct containing input and expected values

```
tests := []struct {
		in       []string
		expected []string
	}{
		{[]string{}, []string{}},
		{[]string{"a"}, []string{"a"}},
		{[]string{"a", "b"}, []string{"b", "a"}},
		{[]string{"a", "b", "c"}, []string{"c", "b", "a"}},
		{[]string{"a", "b", "c", "d"}, []string{"d", "c", "b", "a"}},
	}
```

here we have initialised an anonymous struct with input and expected values of our choice so we can test the reverseString function.


Next, we go through the tests array 

```
import "reflect" 

....

for _, tt := range tests {
		result := reverseString(tt.in)
		if !reflect.DeepEqual(result, expected) {
		    t.Errorf("should be %v instead of %v", expected, result)
	}
	}

```

Here we check if the result thart we got from reverseString function is deep equal to the expected value
 {% reflect https://golang.org/pkg/reflect/#DeepEqual %}

Bringing everything together we get 
**reverse_string_test.go**

```
package praveen

import (
	"testing"
        "reflect
)

func TestReverseString(t *testing.T) {

	tests := []struct {
		in       []string
		expected []string
	}{
		{[]string{}, []string{}},
		{[]string{"a"}, []string{"a"}},
		{[]string{"a", "b"}, []string{"b", "a"}},
		{[]string{"a", "b", "c"}, []string{"c", "b", "a"}},
		{[]string{"a", "b", "c", "d"}, []string{"d", "c", "b", "a"}},
	}

	for _, tt := range tests {
		result := reverseString(tt.in)
		common.Equal(t, tt.expected, result)
	}
}
```

to test it run

```
go test praveen/reverse_string_test.go
```
78: Making one's Algorithm structure. 
Published: 2020-08-28 05:48:47

###**Step 1 | Proposition | I am a mathematical person. (Actually 😉)**

Because I finally found out how my brain processes when I face the problem.

I have not been setting the priority myself, I did not consider it as its necessity. I used to think that is selfish. Because Everything was precious for me. How do I choose wiser? The importance of the priority is that it can practically help me to take care of my precious things in order.


---------------------------------
###**Step 2 | Proof | Problem Solving | The Table | Truth or False**

So, There should be several reasons to prove the proposition. Given one example, when you want to decide which country is the next destination for travel, How can you decide? In this case, I’d make a list to do and limit my budget. It can lead take the most realistic trip. This is decision-making. We could make it this program using a conditional statement!

* Understanding the intention | Why do CS require math skills?
* Tests | Researching the origin of the Algorithm and Computer Science
* Delete | Filtering the falses out and Purify to truths
* Abstraction | Simplification following the mathematical laws
* Generalization | Creating Algorithms and Publish it


---------------------------------
###**Step 3 | FeedBack | Reporting to Public | Develop**

* Try | Challenge | Experience
* FeedBack | Review | Communication
* Choice | Revise | Change | Be Happy!


---------------------------------

Then, there will be the time I can choose any language, It can be 'Ruby', 'Python', 'Javascript', 'Java' or else... It's all same, I was obsessed with vanilla Javascript and computer science fundamentals to know what is the essence of studying programming. It is now simple! Encode My solution. and try, and try, and try.
CORS in short
Tags: webdev, computerscience, security, codenewbie
Published: 2020-08-28 05:47:50

#### What is CORS ❓

CORS is actually a method to access the resources📁 that are forbidden 🚫  to be used by the client🌐, by default. There exists a _*same-origin policy*_ which ensures clients can only access the resources in their own domain. That means if I am a client with domain `xyz.com` I can only access resources in the domain `xyz.com`.If I try to access something from `lmn.com` it will be blocked 🚫 by the browser.

![cors]
(https://media.giphy.com/media/DFj5uwugndWt2IHs4q/source.gif)

#### Why CORS❔

The CORS mechanism in the browser helps us to use the resources available in a different domain. With all the CORS enabled ✅ request there is an `Origin` header that gets added. In the response sent from the server 🗄️, there will be an `access-allowed-origins` header which contains the details of the origins which can utilise that response. The browser will see 🔍 if the origin matches the allowed ones. If it is matched, the response can be consumed by the client. Else, it will throw the CORS error ⛔.

One point to understand is, CORS is only applicable to clients like browsers. It will not come into picture when the cURL or postman requests are being made. 

The same-origin policy is beneficial 👌 because it prevents 🚫 malicious 🦠  websites and servers from accessing our data. As I told, if the resource is to be accessible, it should be either in the same origin or should be whitelisted 📄 by the server.
Automatically creating the release for a WordPress theme
Tags: actionshackathon, wordpress, github
Published: 2020-08-28 05:44:05

The new GitHub Action I’ve set up will build a new downloadable copy of a WordPress theme when I create a new release or tag in its GitHub repository. In this regard, it’s still fired off by a manual action, but the uploaded file is automatically attached to the new release. This way I can create a new release and just concern myself with writing the description, without having to manually build the theme and upload its zip file.

### My Workflow

My WordPress theme uses Justin Tadlock's Mythic starter theme as its base. As such, it has both Composer and npm dependencies, both of which must be included for the theme to work. To that end, I've created a new GitHub Action called "Generate Installable Theme and Upload as Release Asset" to automate this process.

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

The action is fired off when I create a new release (through either the Releases or Tags tab), which will download the production build's Composer and npm dependencies. (These are slightly different than a development build, which has linting utilities not used in production.) The theme's internal build process uses webpack to compile CSS and JavaScript assets, so this same process is invoked by the action once all dependencies are downloaded.

The final result is a zip file suitable for upload and installation in WordPress, which is then attached to the aforementioned release (or tag).

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

### Submission Category: 

* DIY Deployments

### Yaml File or Link to Code

[main.yml](https://github.com/peiche/garrick/blob/master/.github/workflows/main.yml)

{% github peiche/garrick no-readme %}

### Additional Resources / Info

I took inspiration from Leonardo Losoviz's [post](https://dev.to/leoloso/automatically-creating-the-release-for-a-wordpress-plugin-3j1l) on how he accomplished a similar process for a WordPress plugin. I probably would have had a more difficult time figuring this out without his code to learn from.

----

_This post was originally published on [Bold Oak Design](https://boldoak.design/blog/automatically-creating-the-release-for-a-wordpress-theme/)._
Increasing Confidence in Infrastructure Changes
Tags: devops, gitlab, pulumi
Published: 2020-08-28 05:33:10

Pulumi is an infrastructure as code platform that lets you write cloud infrastructure using popular general-purpose languages (Go, JS, TS, Python, and .NET).

Running [Pulumi in GitLab CI/CD](https://www.pulumi.com/docs/guides/continuous-delivery/gitlab-ci/) is very easy and if you have ever wondered "is there a tool that tells me how my changes will affect my infrastructure", then that's exactly what running `pulumi preview` will give you.

Outputs of all Pulumi CLI commands are viewable in the [Pulumi Console](https://app.pulumi.com) too. You could also view any Pulumi command executions in realtime on the Console.

![Summary output as viewed in the Pulumi Console](https://dev-to-uploads.s3.amazonaws.com/i/guo58mv9pus57amsgqe9.png)
<figcaption>Summary output as viewed in the Pulumi Console</figcaption>

![Types of logs](https://dev-to-uploads.s3.amazonaws.com/i/8m2q1zjrc7ux4ajl4kcx.png)
<figcaption>Use the toggler to view different types of logs</figcaption>

![Diff output as viewed in the Pulumi Console](https://dev-to-uploads.s3.amazonaws.com/i/k7usjzldqzgyk1hqjwnc.png)
<figcaption>Diff output as viewed in the Pulumi Console</figcaption>

There is one problem, though. How do you, as the reviewer, ensure that you see this summary during your review? You could check the Pulumi summary in the build pipeline logs, but it can be a bit cumbersome to have to navigate to the pipeline logs if you have to do that repeatedly. It is also likely that reviewers miss looking at the pipeline builds and thereby potentially missing some crucial unintended impacts to your infrastructure.

Enter [Pulumi integration](https://www.pulumi.com/blog/gitlab-project-integration/) for GitLab Merge Requests.

![Pulumi integration for GitLab](https://dev-to-uploads.s3.amazonaws.com/i/1ibeohf6j2z91dye2cfx.png)

![Infrastructure summary as a comment](https://dev-to-uploads.s3.amazonaws.com/i/nc7c8s41uj5j75jqmdrx.png)
<figcaption>Infrastructure summary in the comment</figcaption>

So there you have it, folks! A summary of your infrastructure changes delivered right to your comments in the merge request, so you never miss a change again.

Haven't started with Pulumi yet? What are you waiting for? Click [here](https://pulumi.com/start) to get started.
Getting Error in SqlAlchemy
Tags: python, flask, sqlalchemy
Published: 2020-08-28 05:30:58

I was trying to define one to many relationship in sqlalchemy in flask.
This are my model.
```
class Storm(db.Model):
    __tablename__='storm'
    __table_args__ (
        db.UniqueConstraint('name','year'),
    )
    id=db.Column(db.Integer,primary_key=True)
    name=db.Column(db.String(50),nullable=False)
    year=db.Column(db.Integer,nullable=False)
    cat=db.Column(db.String(50))
    pos=db.realationship('Position',backref='storm_info',lazy=True)

    def __repr__(self):
        return '<storm_name : {},storm_year : {}>'.format(self.name,self.year)

class Position(db.Model):
    lat=db.Column(db.Float)
    longi=db.Column(db.Float)
    storm_id=db.Column(db.Integer,db.ForeignKey('storm.id'),nullable=False)
    pressure-db.Column(db.Float)

```


I want compound uniqueness for name and year.
but i am getting this error - 
NameError: name '__table_args__' is not defined.
can anyone please suggest what is the problem and how i can define it ?
and whats the difference between this and defining by declarative model?
Thanks in advance
5+ Best TYPO3 Feedback Extensions 2020
Published: 2020-08-28 05:16:42

Feedback is the key to improvement! The best way to learn more about how your customers experience your website is to ask them. TYPO3 Feedback Extensions make that possible for TYPO3 websites, but how do you choose which one is best for your website?

For TYPO3 websites, user feedback extensions are ideal for TYPO3 users who are looking to get feedback forms up and running on their website in a matter of seconds. 
Feedback is a really good process to improve your business, service, resolving queries, giving support, getting suggestions or ideas, etc.. If you are not using the power of feedback, then you are losing the essential techniques of doing business.

These TYPO3 feedback extensions have lots of features that help you to collect the feedback in an efficient way. With the help of these plugins, you can manage multiple polls, view poll analytics & text responses & control the exact timing of polling your visitors.

Without taking much time, let's check out these TYPO3 feedback extensions positioned with numbers 1 to 6 according to their number of features from our views. 

Choose your favorite one from the following extensions!

- All in One Feedback TYPO3 Extension
- Rating AX
- Guestbook TYPO3 Plugin
- Simple Survey TYPO3 Extension
- Simple Poll TYPO3 Extension
- Master-Quiz TYPO3 Extension

Read complete detailed article at - https://t3terminal.com/blog/typo3-feedback-extension/
Quick Guide to Harden TYPO3 Security
Published: 2020-08-28 05:14:56

History says TYPO3 is one of the most secure OpenSource CMS. But, security is a never-ending task, In this article, I want to introduce Helmut’s popular “TYPO3 Secure Web” package to more secure your TYPO3 site.

We as a whole see that it is so essential to maintain the TYPO3 Security of your site. Google blacklists around 10,000+ websites every day for malware and around 50,000 for phishing continuously.

Fortunately, TYPO3 has better built-in firewall security because the core architecture of TYPO3 is robust. But, TYPO3 Security never-ends. The TYPO3 Community is always serious about security and performance, and always develops something which improves security.
This article covers the following aspects of TYPO3 Security,

- TYPO3 - Most Secure OpenSource CMS
- WhyTYPO3 Security Matters?
- What’s the Ideal TYPO3 Code Structure?
- Access to Private
- Access to Public

Interesting right?
Read complete article at- https://t3terminal.com/blog/typo3-security-web/