teleren/devto huggingface dataset:
Markdown Preview in Vim
Tags: productivity, vim, markdown, linux
Published: 2021-04-15 11:53:53

When we edit a markdown file in vim, we are not able to preview the markdown file simultaneously. I have also faced this situation, so I decided why not make one.

To be able to preview a markdown, first, we need a `markdown parser`.
I got to know about [Glow](https://github.com/charmbracelet/glow), which renders markdown on the Command Line Interface(CLI).

To install glow, you can follow the instructions given in the Github repo of [Glow](https://github.com/charmbracelet/glow).

After installing Glow I added a few lines to my vimrc

![Vim Function](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ktsv8vwvcf09im8efwvs.PNG)

This function finds the path of the current file and adds it in the `.lastpreview.log` file. After that `bel vert terminal` command is executed, which opens up the terminal buffer in vim, side by side.

```vim
nmap <F4> : call PreviewerMarkdown()<CR>clear<CR>glo $(cat ~/.lastpreview.log)<CR>
```

Also, I made this custom mapping in vimrc. I bound my `F4` key to the `PreviewerMarkdown()`. After PreviewerMarkdown is executed the `clear` command runs which clears the terminal buffer, and after this `glo` command runs, which is basically an alias I made for `glow -s dark | less`. The `glo` command opens the file path present in the `lastpreview.log` file with a `pager (here less)` and a suitable color scheme, and boom our markdown preview is now ready to be used.


There is room for adding more functionality to the `PreviewerMarkdown()`, but for this post, I chose to keep only the core functionality.
Iconic developers | part 2 🤓🦄🚫
Tags: programming, discuss, webdev, watercooler
Published: 2021-04-15 11:52:38

#🤓🦄🚫
Three more developer types! Thnx 
@annervisser and @keyboardsamurai
Please keep it going and make it even longer! 😁 

Leave your iconic developer type in the comments!
```markdwown
## 💻 [name]

#### Habitat

#### Best to ask for

#### Needs works on
```

___
## 🤓 The perfectionist
Spends their time making everything perfect, re-usable and beautiful. Sometimes forgets what they were actually supposed to be making.

#### Habitat
Can be seen staring at the same code file for hours. Usually has a perfect development environment with all the best tools.

#### Best to ask for
Advice on how to clean up or generalize your code. Can also help you get the best development setup available.

#### Needs works on
Keeping it simple and getting sh*t done.
___
## 🦄 The Unicorn
Do they really exist? It is told that some of them are in possession of the very rare early bird medal 🥇

#### Habitat
Rarely seen, some people seem to believe the unicorn developer hides somewhere on dev.to.. who knows

#### Best to ask for
Whatever, they are awesome all the way

#### Needs works on
Stage fright, please show yourself unicorn developers!
___

## 🚫 Doctor no
Doctor no, not the villain you'd expect.. They sometimes seem evil but really, they have a good heart! Are always sure there's a better way of doing things. If you come up with an idea they disagree by default and force their own view on the matter.

#### Habitat
Behind the computer searching for counter arguments.

#### Best to ask for
For getting different perspectives on the problem or if you need a good NO!

#### Needs works on
Listening to others and try to collaborate.
php ?? 연산자 (Null coalescing operator)
Published: 2021-04-15 11:49:28

PHP 7.0.x부터 도입된 **??** 연산자를 소개합니다.

기존의 삼항 연산자에 대한 더 편리한 방법이라고 해야 하나요?

## 사용방법

```php
$username = $_GET['user'] ?? '홍길동';
```

이것은 기존의
```
$username = isset($_GET['user']) ? $_GET['user'] : '홍길동';
```
과 같습니다.

___
더 확장하여 다음과 같이 사용할 수도 있습니다.
```
$username = $_GET['user'] ?? $_POST['user'] ?? '홍길동';
```

[출처](https://www.php.net/manual/en/migration70.new-features.php)
IAAS, PAAS, SAAS, On-Prem. Let's explain these with the brand new Pizza as a Service
Tags: security, tutorial
Published: 2021-04-15 11:48:06

{% youtube kWYFFRg4Ne8 %}

---

The Cloud is a great tool that allows you to scale up very quickly.
But all is not so gentle in the world of the Cloud. 🌩

Indeed, there are many possibilities for using a Cloud solution. ☁️

You can decide to be in charge of absolutely nothing.
Just manage the application.
Just to manage the machines.
Or manage everything. And in this case, it's not really Cloud for me anymore.

This diversity of operation is accompanied by a complicated nomenclature such as On-Prem, IaaS, PaaS or SaaS.

It is complicated to clearly understand what the differences are between these solutions. 🤔
Where does the first end, where the second begins.

To simplify all this, I decided to cook up a little video for you that explains this concept through the example of making and eating a pizza. 🍕
Let's call it "Pizza as a Service" and see how it will help us understand the concept of cloud solutions. 📺

---

Video produced by [Wild & Secure](https://wildnsecure.com), your consulting firm to all things security and real estate.

If you want to receive weekly quality content about security, subscribe to our newsletter on our website. [https://wildnsecure.com](https://wildnsecure.com)
What is Pickle in python ?
Tags: python, datascience, machinelearning, dseafam
Published: 2021-04-15 11:42:09

It is used for serializing and de-serializing a Python object structure.

**Pickling:** It is a process where a Python object hierarchy is converted into a byte stream and dumps it into a file by using dump function.This character stream contains all the information necessary to reconstruct the object in another python script. 

**Unpickling:** It is the inverse of Pickling process where a byte stream is converted into an object hierarchy.While the process of retrieving original Python objects from the stored string representation is called unpickling.we use load function to do this.

First of all you have to import pickle module through this command:
```python 
import pickle
```

Pickle has two main methods. The first one is **dump**, which dumps an object to a file object and the second one is **load**, which loads an object from a file object.

### **Examples**
#### **1). Pickling.**

```python
import pickle

a=[1, 2, 3, 4, 5, 6, 7]

# open the file for writing
pic_out=open("mypicklefile","wb")

#write object to file mypicklefile
pickle.dump(a,pic_out)

pic_out.close()
``` 

#### **2). Unpickling.** 

```python  
import pickle
# open the file for reading
pic_in = open("mypicklefile", "rb")
# load the object from the file into var a
a = pickle.load(pic_in)

print(a)
Output:[1, 2, 3, 4, 5, 6, 7]
```

**Use cases of Pickling:**
- saving a program’s state data to disk so that it can carry on where it left off when restarted (persistence)
- sending python data over a TCP connection in a multi-core or distributed system (marshalling)
- storing python objects in a database
- converting an arbitrary python object to a string so that it can be used as a dictionary key (e.g. for caching & memoization). 

[Official Docs](https://docs.python.org/3/library/pickle.html#:~:text=%E2%80%9CPickling%E2%80%9D%20is%20the%20process%20whereby,back%20into%20an%20object%20hierarchy.)
Software AG webMethods Service Designer 10.7 Release Announcement
Tags: integration, release, design
Published: 2021-04-15 14:14:11

---
title: Software AG webMethods Service Designer 10.7 Release Announcement
published: true
date: 2021-04-15 11:35:02 UTC
tags: #integration, #release, #design
canonical_url: https://tech.forums.softwareag.com/t/webmethods-service-designer-10-7-release-announcement/240524
---

**webMethods Service Designer 10.7 is available for download now from [webMethods Service Designer Free download](https://tech.forums.softwareag.com/t/webmethods-service-designer-download/235227). The license expires on October 31, 2021.**

Some of the key highlights of this release are:

- **Support for OpenAPI v3.0 provider**  

webMethods Service Designer provides support for an OpenAPI v3.0 based REST API descriptor. The REST descriptor can be developed using the OpenAPI-first approach. For OpenAPI, Integration Server supports authentication mechanisms such as OAuth, JWT, and Digest along with Basic. There is also support for media types with JSON/XML/multipart. The feature has support for complete OpenAPI defined extended JSON Schema. Support for servers, callbacks, and links provide more capability for users to define their APIs as per their business needs.

- **Support for HEAD HTTP method in REST resources**  

webMethods Service Designer in conjunction with Integration Server supports HTTP HEAD method while creating REST resources. Developers can send HEAD HTTP requests and they will be handled by the corresponding REST resource implementation.

- **Enhanced Support for Swagger-Based REST Consumer**  

webMethods Service Designer in conjunction with Integration Server provides enhanced support for the Swagger consumer. Developer can select one or more operations from operation list defined in the swagger descriptor and generates consumer operations for the selected operations only. This reduces the size and the complexity of the consumer code.

- **Enhanced support for graphical development of flat file schemas**  

webMethods Service Designer allows developers to define flat file schema using a graphical wizard. The new enhancements allow the developer to create a schema from a sample file that has multiple nested definitions. The new enhancements offer a better way to handle whitespaces and support different file formats.

- **Enhancement to Code Coverage Functionality**  

The code coverage functionality is now enhanced in Unit Test Framework to ensure that the validated information about mocked services is accurately depicted in the report.

- **Additional enhancements and bug fixes.**

[Read full topic](https://tech.forums.softwareag.com/t/webmethods-service-designer-10-7-release-announcement/240524)
How To Check Current Date Between Two Dates In Php? 
Tags: php, date
Published: 2021-04-15 11:06:44

In this artical, I will show you how to check current date between two dates in php. current date between two date check in using 
more..
https://itwebtuts.blogspot.com/2021/04/how-to-check-current-date-between-two.html
Array Methods
Published: 2021-04-15 10:50:35

>An array is a special variable that can hold more than one value at the same time. That is, they are used in Javascript to store multiple values in one variable.

As a programmer, you'll need to adjust/remove/add/replace/count etc elements in an array therefore you need to know the right method to use for any manipulation. There are different methods of manipulating an array and I will be showing some of them.

#concat()
This method is used to merge (concatenate) existing arrays. It returns the new array by combining previously declared array variables.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/me4ly25y9tbbfjqte0xv.png)

#splice()
This method changes the content of an array by adding and/or removing or replacing elements in an array.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nc665gcmj65rvz9fqaza.png)

#every()
This method returns true or false if every element in the specified array satisfies a condition specified in the callback function. Returns false even if a single element does not satisfy the condition.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eh7gn3ycto1bihyff5rh.png)

#filter()
This method returns a new array of all elements that satisfy a given condition.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xfy8l3lmifo9eqmdetu8.png)

#shift()
This method removes the first element of the array. Its return value is the removed element.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/is99escxqzjld8y9cmbn.png)

#pop()
Unlike shift above, the pop() method removes the last element from an array and returns that element.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lc154rjrk20qli3wt47a.png)


Other methods include but not limited to:

 Methods|Methods|
| ------------- |:-------------:|
| forEach     | map()       |
| indexOf     |reverse()    |
| join()      |lastIndexOf()|
| fill()      |fine()       |
|unshift()    |toString()   |
Javascript ,HTML,CSS with ASP.NET
Tags: mvc, javascript, aspnet
Published: 2021-04-15 10:46:37

I want to brush my Javascript/HTML/CSS and ASP.Net MVC, but most tutorials point to Javascript with ASP.Net Web forms. 

As ASP.Net Webforms is mostly obsolete, looking for learning materials of Javascript with ASP.Net MVC

Am in the right direction of technology selection ? If so, please provide JS links for ASP.NET MVC.
Improve SQL Performance for Date Range Queries
Tags: sql, tutorial, practice, codesnippet
Published: 2021-04-15 10:33:36

Date range queries going too slow for you?  SQL Performance got you down?  I have one weird trick that might just help you out! (SQL Developers hate this!)*

If you have a class that records timestamps when the data is added, then that data will be in sequence with your IDKEY values - _that is, TimeStamp<sub>1 </sub>&lt; TimeStamp<sub>2 </sub>if and only if ID<sub>1</sub> &lt; ID<sub>2 </sub>for all IDs and TimeStamp values in table_ - then you can use this knowledge to increase performance for queries against TimeStamp ranges.  Consider the following table:

<pre style="border: 1px solid rgb(204, 204, 204); padding: 5px 10px; background: rgb(238, 238, 238);"><code>Class User.TSOrder extends %Persistent 
{ 

Property TS as %TimeStamp;

Property Data as %String (MAXLEN=100, MINLEN=200);

Index TSIdx on TS;

Index Extent [type=bitmap, extent];

}</code>
</pre>

Populating this with 30,000,000 random rows with dates over the last 30 days, will give you 1,000,000 rows per day.  Now if we want to query the information for a given day you might write the following

    SELECT ID, TS, Data 
    FROM TSOrder
    WHERE 
         TS >= '2016-07-01 00:00:00.00000' AND 
         TS &lt;= '2016-07-01 23:59:59.999999'

A reasonable query, to be sure.  On my system, however, this took 2,172,792 global references and 7.2 seconds.  But, knowing that the IDs and TimeStamps are in the same order, we can use the TimeStamps to get an ID range.  Consider the following query:

    SELECT ID, TS, Data
    FROM TSOrder
    WHERE 
         ID >= (SELECT TOP 1 ID FROM TSOrder WHERE TS >='2016-07-01 00:00:00.00000' ORDER BY TS ASC) AND 
         ID &lt;= (SELECT TOP 1 ID FROM TSOrder WHERE TS &lt;='2016-07-01 23:59:59.999999' ORDER BY TS DESC)

The new query completes in 5.1 seconds and takes only 999,985 global references**!  

This technique can be applied more pragmatically to tables with more indexed fields and queries that have multiple WHERE clauses.  The ID range generated from the subqueries can be put into bitmap format, generating blazing speed when you get a multi-index solution.   The Ens.MessageHeader table is a great example where you can put this trick to work.

Let's be clear - this is an _EXAMPLE_ of a win.  If you have many conditions in the WHERE clause in the same table (and they are indexed, duh!), then this technique can give you **BIGGER** wins!  Try it out on your queries!  

* SQL Developers don't really hate this, but if the internet has taught us anything is that catchy blurbs get more traffic.

** When testing queries that return so many rows, the SMP cannot handle it, and most of the time is taken in displaying the data.  The proper way to test is with embedded or dynamic SQL, running through the results, but not outputting them for time, and using the SQL Shell for your global counts.  You could also use SQL Stats for that.
I made an app for beginners to habituate self-learning!
Published: 2021-04-15 10:32:17

Many people used to ask me how to learn web or how to learn android etc. and there's nothing wrong with them. The current era of tech is so much hierarchical that a newbie could feel like he stepped into an ocean. To solve this issue and to habituate self-learning I made an app called DEV!

## Features

* Roadmaps for popular domains (more soon!)
* Collection of best videos from youtube 
* Short 100 second videos for various concepts
* Articles from dev.to API for various topics
* Project ideas with implementation

## Download 

[here](https://play.google.com/store/apps/details?id=com.sw_dev)

## Screenshots

![alt](https://play-lh.googleusercontent.com/Ii4XruueSv0R2zrG6u48AY0aOCC-iWd1-1sZWHmuNIjyqwTQKI4IBy80ykOZZB7x3Q=w1707-h848-rw)

![alt](https://play-lh.googleusercontent.com/sJWyjVEFct1_JgjyqXpexFH-17FISyWzfEB6ZVK6M36gCui54eljFRWCATXxJ8gkA_o=w1707-h848-rw)

![alt](https://play-lh.googleusercontent.com/reNr8UGlyJnhTph8GVpvtI5Si14_-Hy1P6QTkS6iMpyKnJBi4fQmbcF0yFq3RoH3tw=w1707-h848-rw)

![alt](https://play-lh.googleusercontent.com/N8iP__TObvbJdoYM5j0jwW-JyptGp2WUrxqU2nUTvyXM5AqD0bBXp5aunTkfCpMz1sk=w1707-h848-rw)

![alt](https://play-lh.googleusercontent.com/y89KVUeDxE1jW9AyLFA2IqVaNv2BbsMw0o-GhGhCaOex_AfCMawiTJ1giLle2NSqdg=w1707-h848-rw)

![alt](https://play-lh.googleusercontent.com/KwwGCpQuVZaZKypSGT8gXabU2KWh3NOFgHZvWXDNqSvxK06oNo-dg3_6OSzS11-aaq4=w1707-h848-rw)

> Share your feedback on the play store 😇
INILAH KELEBIHAN OS ANDROID KITKAT
Tags: android, systems
Published: 2021-04-15 09:30:20


Setelah sukses dengan platform sebelumnya kali ini Android tampil dengan teknologi baru yang diberi nama Android KitKat. Beberapa kelebihan dan perbaikan dari versi sebelumnya telah di berikan, mulai dari memori, tampilan hingga beban platform yang cukup ringan. Untuk itu silakan simak beberapa kelebihan yang ada di Android KitKat.


Support :https://bahasbersama.com/2021/04/inilah-kelebihan-os-android-kitkat_12.html



Ikon Menu
Demi bisa mengahasilkan tampilan yang bagus, kali ini Google menghadirkan Android KitKat tampil dengan latar app yang awalnya hitam sekarang menjadi transparan. Kalau untuk ukuran ikon, Android KitKat menghadirkan ikon yang lebih besar, jadi layar hanya menampilkan ikon lebih sedikit saja.



Google Now
Tidak hanya di Jelly Bean saja yang memiliki Google Now tapi Android KitKat juga mengusung vitur Google Now juga untuk Anda.



Transparan Bar
Kalau versi Android Jelly Bean terlihat warna hitam pada bagian layar dan kali ini Android KitKat telah menghilangkan warna hitam tersebut jadi terkesan transparan.



Rotasi Layar
Sayang sekali untuk Android KitKat ini Anda tidak bisa merasakan seperti Android Jelly Bean yang bisa berubah rubah rotasi layar menjadi landscape, meskipun HP sudah Anda posisikan menjadi landscape. Ini terjadi pada Nexus 5, belum tahu kalau di Tipe HP lain yang menggunakan Android KitKat, Jadi kita tinggu Saja kejelasannya.



Phone App
Ini juga berbeda dari versi sebelumnya, sepertinya google menginginkan pengguna langsung memasukkan nama kontak ketimbang memasukkan Nomer telpon. Jadi pengguna harus menyimpan nomer terlebih dahulu sebelum melakukan panggilan. Namun bila pengguna harus melakukan panggilan menggunakan nomor, pengguna tinggal menekan ikon dial pad yang ada ditengan bawah.



Demikian informasinya, semoga ini bisa berguna untuk Anda, selain yang sudah disebutkan diatas pastinya masih ada banyak lagi perbedaan dan kelebihan yang ada pada Android KitKat ini. Terima kasih atas kunjungannya, salam sukses untuk Anda
Front-end developer (Old vs Modern) process from design to launch 
Tags: react, javascript, html, webdev
Published: 2021-04-15 10:23:44

Hello, I am UX designer and ex-frontend developer. i am trying to upgrade my front-end development skills as per modern trends for example JS libraries and frameworks (ReactJs, Angular, Vue etc).

The old process used to be something like:
Requirement -> Design(PSD) -> HTML5+JS+CSS (Front-end) -> Backend -> Testing -> Go Live

How the modern front-end developers works in the market. Does HTML template required before Reactjs/Angular or the interface should directly written from design to React/angular etc?
Kontent Alat Edukasi dan Info Digital Penjualan
Tags: edukasi, info
Published: 2021-04-15 10:14:56


Sejak 10 tahun tempo hari kamu sudah mengetahui istilah ini tidak "Kontent merupakan raja" di dunia internet penjualan. Sayang buat beberapa pemula yang baru saja terjun di dunia intenet atau digital penjualan buat usaha kurang mengetahui apa itu kontent, apa fungsinya dan bagaimana membuat.

Kalau anda mau menggunakan digital penjualan buat usaha mulai belajar membuat Kontent jadi modal awalannya, lantaran kalau tak sebab itu anda akan kesukaran ambil langkah selanjutnya, andaikata bisa di awal jadi tak kan bertahan lama.

Jenis kontent secara sederhana merupakan : gambar, video, text tulisan, dan suara, baik satu atau digabungkan. Jadi contoh artikel ini ada dua yaitu gambar dan text.

Di sini akan saya jelaskan lebih detail beberapa tipe Kontent Alat Edukasi dan Data digital penjualan

Jenis Kontent Berdasar pada Manfaat dan Artinya

1. Kontent info
Kontent baik gambar atau tulisan yang berikan info. Semisalnya apa usaha anda, bagaimana teknik pemesanan, di mana status toko atau alamat, apa visi misi perusahaan, dan info terkait profil usaha. Saya kira ini merupakan kontent amat dasar yang semestinya bisa anda membikin dengan enteng. Info betul-betul banyak dan betul-betul berfaedah buat pembaca.

2. Kontent edukasi
Sebagian orang terus cari kabar, terkecuali mau pahami mereka mau belajar satu soal apa untuk mereka berfaedah. Seperti artikel yang anda baca ini yaitu jenis kontent edukasi. Apalagi buat satu jenis produk atau pelayanan yang anyar, anda mesti mulai dengan kontent edukasi.Jenisnya seperti pedoman, cara, bagaimana, pengetahuan, dan apa yang berkaitan dengan topik usaha anda, sampai bisa menambah nilai dari alat digital penjualan yang anda gunakan

Kelebihan kontent info dan edukasi

Kedua jenis kontent di atas terkesan cukup menjual atau tidak pasarkan produk, namun sebetulnya betul-betul begitu penting, punya sisi yang amat positif yaitu membuat tingkat kepercayaan konsumen pada alat anda.

Ditambah lagi di dunia online yang belum sama tahu pada penjual dan pembeli, anda mesti bisa berikan kontent yang berfaedah buat mereka sebelum saat mereka tertarik membeli.

Source: https://sosialmediacctv.com