teleren/devto huggingface dataset:
Importing CSV data into InterSystems IRIS programmatically
Tags: database, productivity
Published: 2020-06-30 09:40:33

Sometimes we need to import CSV data to InterSystems IRIS either from CSV or from URL. And we expect the class with proper datatypes to be created and the data to be imported. You can do it manually via the IRIS management portal, but often we need to do this programmatically.

I published a module <a href="https://openexchange.intersystems.com/package/csvgen" target="_blank">csvgen</a> on InterSystems Open Exchange which does exactly that.

If you just need the CSV file to be imported into IRIS you can do the following:

```
USER>do ##class(community.csvgen).Generate("/usr/data/titanic.csv",,"Data.Titanic")

Class name: Data.Titanic
Header: PassengerId INTEGER,Survived INTEGER,Pclass INTEGER,Name VARCHAR(250),Sex VARCHAR(250),Age INTEGER,SibSp INTEGER,Parch INTEGER,Ticket VARCHAR(250),Fare MONEY,Cabin VARCHAR(250),Embarked VARCHAR(250)
Records imported: 891
USER>
```

Or if you have the CSV on the internet, e.g. <a href="https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_daily_reports/05-29-2020.csv" target="_blank">COVID-19 Data on Github</a> you can get the data in the following way:

    USER>d ##class(community.csvgen).GenerateFromURL("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/05-29-2020.csv",",","Data.Covid19")
    
    Class name: Data.Covid19
    Header: FIPS INTEGER,Admin2 VARCHAR(250),Province_State VARCHAR(250),Country_Region VARCHAR(250),Last_Update DATE,Lat MONEY,Long_ DOUBLE,Confirmed INTEGER,Deaths INTEGER,Recovered INTEGER,Active INTEGER,Combined_Key VARCHAR(250),Incidence_Rate DOUBLE,Case-Fatality_Ratio DOUBLE
    Records imported: 3522
    USER>
## Installation

You can install the package with [ObjectScript Package Manager ZPM](https://openexchange.intersystems.com/package/ObjectScript-Package-Manager-2):

```
USER>zpm

zpm:USER>install csvgen
```

The csvgen module is a wrapper of <a href="https://cedocs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?APP=1&CLASSNAME=%25SQL.Util.Procedures" target="_blank">CSV2CLASS method </a>.

[The ObjectScript Quality profile.](https://community.objectscriptquality.com/dashboard?id=intersystems_iris_community%2Fcsvgen)

It's not ideal, so [collaboration](https://github.com/evshvarov/csvgen) is very welcome!
Website page transition with CSS
Tags: html, css, javascript, webdev
Published: 2020-06-30 09:24:37

I am a beginner in website development. i was working on a project and i wanted to use page transition(but without javascript) in that but i was unable to find many methods and all methods are complex and using JavaScript.

After some time of research and google I found a library called swup.js . It's a easy to use library which uses CSS transition instead of JavaScript and you can also create cool things with swup events and javascript.

How to Use :

1. First include this library using CDN (https://unpkg.com/swup@latest/dist/swup.min.js).

2. wrap all code into a main tag and give it a id with name "swap" and class with any name
(example: id="swup" class="transition-fade")

3. Enable swup using JS :-
(only single line of javascript is needed)
const swup = new Swup(); 

4. animate main using CSS with class identifier :-
.transition-fade {
  transition: 0.4s;
  opacity: 1;
}


My Project with swup JS :- https://nvnamanvyas.github.io/portfolio/


![My Project using CSS page transition](https://dev-to-uploads.s3.amazonaws.com/i/apsjql70n7fh801bw6ee.png)
How to load custom JSON files into Laravel's config
Tags: laravel, php, webdev, tutorial
Published: 2020-06-30 09:20:26

Hi All, this is Adi, again with another Laravel blog post. This time I wanted to share my solution to loading custom settings from a JSON file into Laravel’s config. Firstly what’s the use case for this, there was a client project, where they had a huge list of configurations in a JSON file and I had to use them in the code. An ideal solution for this could be storing these settings in the database and query them on demand, but I was not able to persuade them to this option, so here’s my solution to how I did it.

### Loading the Settings file
First, let’s see how to load this file when the app initializes.

In the code below I load the `settings.json` that's in the `storage` folder in my `AppServiceProvider`'s boot method. But if you have a lot more logic happening in your service provider you can create a new one just for this purpose.

I check if the file exists, if so, I decode the JSON into a PHP `array` then add it to the app config. Now you are able to access all the key's from the settings file as `config('settings.name')` or whatever the key is.

![Loading the settings file](https://i.imgur.com/wty4f9v.png)

### Writing the Settings file
Now let's see how to edit or write to this file when you need to make new changes to the config.

In the below code, I show an example of getting the whole settings file's contents and saving it to the file. But you can customize this for your own need, let's say you just need to edit one property, you can do this by updating your config like so `config(['settings.name' => 'New Value'])` and you could `json_encode(config('settings'))` and save the results to the file system.

![Writing the settings file](https://i.imgur.com/RN3njOa.png)
### Conclusion
I hope this gives you some idea of how to handle JSON config files in your Laravel app. The code example I gave you might be basic but you can extend this to your own needs. Be cautious since you're reading and writing to the file system directly.

**For more Laravel resources visit [BestOfLaravel.com](https://bestoflaravel.com/?utm_campaign=laravel-json-config-article)**


> Thank You
> That's all for now, this has been Adi.
> If you are looking for a Freelance Web Developer you can [contact me](https://simplestweb.in/contact-me/?utm_campaign=laravel-json-config-article)
Why Business need RPA ?
Published: 2020-06-30 09:11:42

RPA stands for Robotic Process Automation. RPA is a type of business process technology, controlled by structured inputs and business logic, to automate those repetitive and rule-based tasks that are usually done by humans. By employing either a combination of user interface interactions, or connectors to mainframes, client servers, or HTML code, RPA can imitate actions that people take through applications.

RPA’s versatility is merely beginning to be recognized. Businesses can use RPA in several tasks, like generating mass emails, extracting data from media like PDFs and scanned documents, creating and sending invoices, employee history verification, and payroll automation.

Since the entire point of a business is to get revenue, RPA can help in quote-to-cash by automating sales operations, thereby not only executing transactions faster but also with a better degree of accuracy. the whole series of sales-oriented operational activities are often appropriated by RPA, leading to higher customer satisfaction.

Lastly, RPA are often wont to improve customer service operations. We’re not talking about RPA replacing human service reps; there are enough disgruntled people out there who complain about not having the ability to speak to an actual living person! No sense in alienating them any longer . Instead, RPA are often wont to tackle the repetitive, easy tasks that plague customer service representatives, thereby freeing the latter to deliver a far better experience to customers. RPA can update customer profiles, pull up billing data, and other mundane tasks that might otherwise consume customer service reps’ time.

If your business doesn’t have any RPA experts, then clearly, you would like to form some there in case, Intellipaat is here to form the task a  simple one. approach Intellipaat [RPA Certification](https://intellipaat.com/rpa-training/) course. Experts approach is helpful for you to learn everything about this tool.
Myth: TypoScript Is a Scripting Language
Published: 2020-06-30 09:10:02

Are you looking for an all-in-one article about TYPO3 + HTTPS? Then, You are at the right place. What & Why HTTPS, How to configure HTTPs in TYPO3, How to TYPO3 force HTTPs, Apache or Nginx force HTTPs configuration, etc.

TYPO3 is the most secure OpenSource CMS. But still, you should take care of basic security stuff like implementing HTTPs SSL to your TYPO3 website. It will help TYPO3 to improve more security on hacking attempts. And one more benefit, It will improve your SEO rank too. So, let’s quickly explore how to configure HTTPs to your TYPO3 website.

In this guide to TYPO3 SSL you'll learn
- What is HTTPS?
- What did Google say about HTTPS/SSL?
- Why should HTTPS be implemented at your TYPO3 website?
- Step-by-Step Guide to Configure HTTPS/SSL into TYPO3
- How can I configure HTTPS into a TYPO3 website?
- How to TYPO3 Force HTTPS?
- What should we do after HTTPS into TYPO3?
- Are there any TYPO3 Extensions for Force Redirect HTTPS?
- Bonus: Tips on HTTPs TYPO3
- Important HTTPS Checklist (for SEO)

Read the complete blog at - https://t3terminal.com/blog/typo3-https/
Top 10 No-Code Development Platforms In 2020

Tags: nocodedevelopment, software, apps
Published: 2020-06-30 08:55:32

Building web apps was a challenging task as it requires skilled developers, time, and money. But thanks to the no-code platform, it allows you to build apps without code. No code tools help you to get jobs done faster, easier, and cheaper. There are many more tools are available to build apps, some are free and some require payment. Hence it becomes more complex to select the best one within a pool. Here we came with the top 11 no-code tools in 2020.

**Top 10 Best No Code Platforms In 2020-**
*1. AppyPie-*


AppyPie is a popular no-code app builder because of its wide range of app features and competitive pricing plans. It allows you to build Android, iOS, and web apps within 10 minutes. Also, you can test these apps on real devices before publishing on app stores. It has an easy to use drag and drop interface. It has been trusted by 3 million small businesses. Appypie came with app monetization with Ads so that you can earn money even when you sleep.

*2. Zapier-*

Zapier allows end-users to integrate the web applications they use. You can chain commands together, which is good for automation. It provides a great way for many entrepreneurs, makers, startups to integrate their platforms with other popular web apps, which was not possible before. Integration of applications with code is a tough task but due to zapier it becomes easy and possible within a few clicks. Zapier has more than 2000 integrations including web apps like Google Sheets, Mailchimp, Hubspot. It is available with two plans- Free plan and $19.99 plan. With the free plan, you get 100 tasks per month and you can have 5 Zaps running at a time. With the next pricing plan, Starter provides you with 750 tasks per month and 20 Zaps for $19.99.

*3. AirTable-*
Know more at- [https://solaceinfotech.com/blog/top-10-no-code-development-platforms-in-2020/]
01 - Introduction to JavaScript | History | Current status
Tags: javascript, webdev, 100daysofcode, codenewbie
Published: 2020-06-30 08:55:05



# What is JavaScript

Javascript is popularly known as a powerful scripting language for controlling web pages.

Tho' It was originally designed as a scripting language for websites but it has evolved so much since then that now javascript is used everywhere. Through javascript, you can build web applications, create APIs, build mobile applications, even do Machine Learning, and what not...


# History of javascript

In September 1995, a Netscape programmer named [Brandan Eich](https://en.wikipedia.org/wiki/Brendan_Eich) developed a scripting language in just 10 days which was named Mocha.
Then it was named LiveScript and later *javascript* which became one of the most popular programming languages.

# What is ECMAScript

ECMAScript provides the rules, details, and guidelines that a scripting language must follow to be considered ECMAScript compliant. Thus javascript is a scripting language which is based on ECMAScript and follows the ECMAScript specification. Releasing a new edition of ECMAScript with new features does not mean that JavaScript will also be having those new features immediately. Javascript might take some time to adopt those new ECMAScript features.

Here is a list of ECMAScript Editions:

Version | Year
--- | ---
ES1 | 1997
ES2 | 1998 
ES3 | 1999
ES4 | Never Released
ES5 | 2009
ES6 | 2015
ES7 | 2016
ES8 | 2017
ES9 | 2018


# Current Status of Javascript

Javascript has a very large ecosystem and most importantly a great community. Tho' Javascript has a simple syntax and is easy to start with but is almost impossible to master. it is quite a funny language with lots of tricky parts which we are gonna cover in our upcoming articles.
A (new) place to start
Tags: programming, swiftui, career, webdev
Published: 2020-06-29 14:02:35

_This post is part of a (hopefully) long-running series of Dev Diary entires on my process of teaching myself Swift and Swift UI in order to build an app._

The past 13+ years of my career have been defined by constantly starting new things. In school, I thought I was going to be an interactive UI designer, designing the most beautiful and fluid interactive Flash (lol) web experiences you'd ever seen. But I discovered an itch for building instead of designing, and so taught myself to program instead (ActionScript at the time).

My first job right out of school then was as an Interactive Developer, despite getting a BFA in design. Not coming from a programming background and holding a programming job was terrifying, but the thrill to learn kept me at it, and I ended up building some [amazing][mario-kart-wii] [projects][warioland-shake-it].

But mastery over Flash and ActionScript was not job security, and sure enough a few years later Flash fell out of favor (rightly so, it had _so_ many problems) and web standards was the new hotness. So I buckled down and learned HTML, CSS, and JavaScript. Soon I was building [cool new products][vimeo-music-store] using [web standards][vimeo-video-player].

And on and on it went: learning C and Objective-C, Angular (when that was a thing), ES6, NodeJS, TypeScript, etc.

My favorite thing to tell new engineers that get frustrated by how often and quickly this field changes is this: because everything is constantly new, it means you're only ever 2 years behind the experts. Everyone is new at it, and every new start gives you an opportunity to be successful again.

And so here I am again looking towards another new start. But this time it's not driven by career advancement, but more just general curiosity. I've been wanting to scratch a specific itch of an App idea I've had for a few years, and all the new stuff Apple announced at [WWDC 2020][wwdc-2020] got me excited enough to try it out.

So I'm going to try something new again, but this time, two-fold: I'm going to teach myself Swift and [SwiftUI][swift-ui] while trying to build an app, and I'm going to document my learning and building process in public. My hope is that anyone reading this (and my future struggles and learnings) will be able to glean some kind of insight into how to learn something new.

And so here's to a(nother) new beginning.


[mario-kart-wii]: https://thefwa.com/cases/mario-kart-wii-experience
[warioland-shake-it]: https://thefwa.com/cases/wario-land-shake-it
[vimeo-music-store]: https://vimeo.com/blog/post/introducing-vimeo-music-store/
[vimeo-video-player]: https://www.wired.com/2010/08/vimeo-spreads-the-html5-love-with-web-native-video-player/
[wwdc-2020]: https://developer.apple.com/wwdc20/
[swift-ui]: https://developer.apple.com/tutorials/swiftui
Czy m-commerce ma przyszłość w Polsce?
Published: 2020-06-30 08:25:18

Wśród osób w wieku 15-24 lata 67% osób deklaruje robienie zakupów za pośrednictwem urządzeń mobilnych. Czy to oznacza, że mobile commerce w Polsce się opłaca? Oczywiście. Perspektywy rozwoju rynku m-commerce są coraz większe, postępuje digitalizacja, a technologia wciąż się rozwija. Co więcej, w dorosłość wkracza pokolenie wychowane w otoczeniu nowoczesnych technologii, w tym wszechobecnych smartfonów, dla których robienie zakupów mobilnych nie jest niczym nadzwyczajnym. Dlaczego jednak warto zainwestować w m-commerce, aplikacje dedykowane i oprogramowania dla sklepów?

Link: https://exaco.pl/czy-m-commerce-ma-przyszlosc-w-polsce/
Road to Genius: advanced #35
Tags: javascript, beginners, codenewbie, computerscience
Published: 2020-06-30 07:52:37

Each day I solve several coding challenges and puzzles from Codr's ranked mode. The goal is to reach genius rank, along the way I explain how I solve them. You do not need any programming background to get started, and you will learn a ton of new and interesting things as you go.

```JS
function maxProfit(prices) {
  let profit = 0;
  for (let i = 1; i < 🚀.length; i++) {
    if (prices[i] > prices[i - 1]) {
      profit = profit + ☃️[i] - prices[i - 💧];
    }
  }
  return profit;
}
let arr = [8, 2, 9, 1, 9];
let A = maxProfit(arr);

// 💧 = ? (number)
// 🚀 = ? (identifier)
// ☃️ = ? (identifier)
// such that A = 15 (number)
```

We have seen a similar challenge like this many episodes ago, I remember the function `maxProfit`. Here we have to fix 3 bugs, let's go over them one by one.

```JS
for (let i = 1; i < 🚀.length; i++) {
```
The first bug 🚀 on this line uses a property `length`, which is mostly used on arrays, and the only array we have here is `prices`.

The final two bugs appear on the same line:
```JS
if (prices[i] > prices[i - 1]) {
    profit = profit + ☃️[i] - prices[i - 💧];
}
```
You can already make a calculated guess for ☃️, it's going to be `prices` because its neighbor and the if-condition reveals it.

The final bug 💧 should be a number, my initial guess is that 💧 should be 1, because it also appears in the if-condition like that. But let's make sure by analyzing the code.

This code is designed to calculate the max profit, it iterates over the prices and the if-condition decides whether a sale should be made or not, because it recomputes the profit (upon selling). In other words, when the new price (`i`) is greater than the previous price (`i - 1`) it will "sell".

The prices are: `[8, 2, 9, 1, 9]`
Here's some pseudo-code:
```
profit = 0
i = 1
N = 2 (= new price)
O = 8 (= old price)
N < O  --> do nothing

profit = 0
i = 2
N = 9
O = 2
N > O --> profit = profit + N-O = 0 + 9-2 = 7

profit = 7
i = 3
N = 1
O = 9
N < O --> do nothing

profit = 7
i = 4
N = 9
O = 1
N > O --> profit = profit + N-O = 7 + 9-1 = 15
```

At the end `profit` is 15, which is exactly what the challenge expects:
`such that A = 15 (number)`

![coding challenge answer](https://dev-to-uploads.s3.amazonaws.com/i/8rylwbzgu1zxxvef278z.png)

By solving these challenges you train yourself to be a better programmer. You'll learn newer and better ways of analyzing, debugging and improving code. As a result you'll be more productive and valuable in business. Join me on the Road to Genius and upgrade your programming skills, at https://nevolin.be/codr/
Projects promoting Ruby on Rails to new learners?
Tags: ruby, rails
Published: 2020-06-30 07:50:46

---
title: Projects promoting Ruby on Rails to new learners?
published: true
description: A cross-post from the Rails forum.
tags: ruby,rails,
//cover_image: https://direct_url_to_image.jpg
---

_A quick note up front, this was originally posted on the Rails forum where it got some likes but no responses, so cross-posting here too to get a few more eyes on it, thanks!_ 

Hi everyone,

Following on from the apparent success of [A May Of WTFs](https://discuss.rubyonrails.org/c/a-may-of-wtfs/8), focused around Rails itself and making the experience for those new, or returning, to Rails less WTF-prone, I was wondering what efforts are ongoing to encourage more people to try Rails in the first place as I’d love to join in and get new learners started and help them see how quickly they can get something up and running and how much fun it is to work with Ruby.

Learners I’ve met recently, for example at [Ruby Hacknight London](https://www.meetup.com/ruby-hacknight-london/) seem to often have come to Rails via a number of different routes and it would be great to be involved in increasing their chances of arriving at Ruby/Rails and quickly seeing the benefits.

Do any of you know of more websites/projects looking for help in this area?

https://try.ruby-lang.org/
This is a great resource, I think this is the same project that used to have the great artwork on it (cool foxes?)

https://guides.rubyonrails.org/getting_started.html
The guides on the Rails site - amazing content but potentially aimed at those having already made the decision to dip their toe in the water?
EDB to PST converter 
Published: 2020-06-30 07:50:05

EDB to PST converter tool to recover corrupted Exchange EDB file into PST file along with respective EDB emails meta data in appropriate manner. It helps you with GUI interface to successively restored recovered EDB files including all items like all email, tasks, contacts etc into new PST file  withou any data losses. See more at: https://www.mozesoft.com/emailmigration/edb-to-pst-converter.html
How to make a script working for the first loading
Tags: gatsby
Published: 2020-06-30 07:49:04

Howdy,

I am building a static website with gatsby.
In one of my markdown file, I want to add a leaflet map. To do that, I put leaflet script and css into my helmet component of my hook with a conditional rendering (I only add the script and css file for this specific markdown post).
However, when I land to the page of my leaflet blog-post, the script is loaded (I can see it in my browser's network), but it is not working (blank spaces instead of the map). And when I go back through the menu, and click again on my post (without reloading), the map is working.

What am I missing?

Please be free to get some details on [stackoverflow](https://stackoverflow.com/questions/62635153/how-to-add-a-script-for-a-special-component-with-gatsby), and check my [repo](https://github.com/fabiendv/gatsbyBlog).

Thanks