teleren/devto huggingface dataset:
KVision v0.0.35
Tags: kvision, kotlin, tabulator, webdev
Published: 2019-04-27 21:18:17

---
title: KVision v0.0.35
published: true
description: KVision is an open source web framework created for Kotlin/JS.
tags: kvision,kotlin,tabulator,webdev
---

[KVision](https://github.com/rjaros/kvision) is an open source web framework created for Kotlin/JS. It allows developers to build modern web applications with the Kotlin language.

I have released KVision 0.0.35. Among other changes ([see changelog](https://github.com/rjaros/kvision/releases/tag/0.0.35)) there is new module with support for the [Tabulator](http://tabulator.info/) component, which allows to easily create interactive and reactive tables, with both local and remote data sources. There are also some other improvements and bug-fixes.

The new example application, [addressbook-tabulator](https://github.com/rjaros/kvision-examples/tree/master/addressbook-tabulator), has been added to the [kvision-examples](https://github.com/rjaros/kvision-examples) repository. It's a rewrite of an addressbook example app with the new Tabulator component instead of the hand-built table inside the data container.

You can read the new [chapter in the documentation](https://kvision.gitbook.io/kvision-guide/part-2-advanced-features/tabulator-tables) if you want to find more information and usage examples.

Don't forget to ⭐️ my [project](https://github.com/rjaros/kvision) if you like it!

Any feedback is appreciated!
Interview Candidates Against CSS Knowledge
Tags: jobs, interview
Published: 2019-04-18 15:24:00

---
title: Interview Candidates Against CSS Knowledge
published: true
description: Job Interview help
tags: Jobs, Interviews
---

Knowing CSS is a critical part of landing any front-end engineering position. Below is my [CSS interview question and answer guide](https://www.algrim.co/posts/170-css-interview-questions). The difficult part about CSS is that while yes, there is a way to ensure you can show an interviewer that you have great experience with CSS. There may still some questions which are a bit more specific to the person asking you the question. CSS does have personal styles to it. Meaning, the way its used is quite flexible at times and because of that, some developers use the various methods of CSS differently. You can’t really prepare for that in your interview though, its just important to recognize that being the case that you can explain to an interviewer that there’s a few different ways that something might be achieved and that you are willing to explain the ways of which the question might be achieved.

## 1. What is the primary job of CSS?
The primary job of CSS is to provide the HTML elements with their appropriate styles, imagery and overall User Experience. The function of CSS is to make all websites look as the designer intended. Meaning, a custom experience so that all visitors understand they are on a differently branded website. Nearly all websites you visit have CSS controlling their display.

## 2. How do you include CSS on a website?
You include CSS on a website by using the script tag. The script tag has an href associated to it which is where you link to the CSS file. The type of asset is called a text/css file.

## 3. What is inline CSS?
Inline CSS is when you are defining a style on an HTML element directly. Meaning, if I have an HTML object, I am putting a style=“” tag within its object brackets and defining my CSS styles within that style tag directly.

[Read more on Algrim.co](https://www.algrim.co/posts/170-css-interview-questions)
★ Video: getting started with event sourcing in Laravel
Tags: laravel, php
Published: 2020-01-02 23:23:46

---
title: ★ Video: getting started with event sourcing in Laravel
published: true
date: 2019-04-27 20:18:29 UTC
tags: laravel, php
canonical_url: https://freek.dev/1330-video-getting-started-with-event-sourcing-in-laravel
---

The last few months I gave a talk on how to get started with event sourcing at several conferences and user groups. I took the time to record the talk at home. It's now published on YouTube so everybody can enjoy it.

The video below is targeted at newcomers to event sourcing. We'll first explain a bit of theory before diving in with pratical examples on how to use [laravel-event-projector](https://docs.spatie.be/laravel-event-projector/v2/introduction). Enjoy!

{% youtube 9tbxl_I1EGE %}

Here are the links to the documentation, the introductory blogpost and the package itself:

- [Laravel Event Projector documentation](https://docs.spatie.be/laravel-event-projector/v2/introduction)
- [Introductory blogpost](https://freek.dev/laravel-event-projector-v2-has-been-released)
- [Sourcecode on GitHub](https://github.com/spatie/laravel-event-projector)

The Larabank examples used in the video:

- [Larabank traditional](https://github.com/spatie/larabank-traditional)
- [Larabank built with projectors](https://github.com/spatie/larabank-event-projector)
- [Larabank built with aggregates](https://github.com/spatie/larabank-event-projector-aggregates)

Want to know more about how the package is built? Here you go!

- [Implementing event sourcing: aggregates](https://freek.dev/implementing-event-sourcing-aggregates)
- [Implementing event sourcing: improving the developer experience](https://freek.dev/implementing-event-sourcing-improving-the-developer-experience)

EventSauce is an excellent, framework agnostic, alternative.

- [EventSauce on GitHub](https://github.com/eventsaucephp/eventsauce)
- [Bindings for Laravel](https://github.com/spatie/laravel-eventsauce)
- [Larabank built with EventSauce](https://github.com/spatie/larabank-eventsauce)

Also check out [the other open source packages](https://spatie.be/open-source) [our team](https://spatie.be) has released previously.
Zooming a pane in Vim
Tags: vim, productivity, devtips
Published: 2019-05-16 02:53:23

---
title: Zooming a pane in Vim
published: true
tags: vim,productivity,devtips
canonical_url: https://blog.chilcutt.com/2019/04/26/zooming-a-pane-in-vim.html
---

<figure>
<img alt="zoom" src="https://cdn-images-1.medium.com/max/800/1*cIHErwIINhL0eRp1xee4_Q.jpeg"/>
<figcaption>
Photo by <a href="https://unsplash.com/photos/7KLa-xLbSXA?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Paul Skorupskas</a>on<a href="https://unsplash.com/search/photos/lens?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
</figcaption>
</figure>

When coding with vim, I tend to pretty heavily use split panes and tabs in my workflow. Having different files open side-by-side helps me trace through the code to identify where I need to make changes.

Once I find where I want to make an edit, I usually want to shift my focus to just one file. That’s where a handy [little plugin called ZoomWin](https://github.com/vim-scripts/ZoomWin) comes in. With the ZoomWin package installed I can just toggle zooming a pane with `<c-w> o` (control + w, followed by o).

![](https://cdn-images-1.medium.com/max/2168/1*FCd4GfSAFWTtmAfTGrajzA.gif)
Monopoly Official - Text Version Board Game
Tags: replit, python
Published: 2019-04-27 19:41:35

---
title: Monopoly Official - Text Version Board Game
published: true
tags: replit, python
---

Welcome to Monopoly, a 2-player text version where you buy/trade/manage properties. The goal is to be the last player alive. Enjoy!

{% replit @BrentTersol/Monopoly-Official %}
Android ADB Commands (Part 1) Battery
Tags: android, mobile, testing
Published: 2019-04-27 18:58:50

---
title: Android ADB Commands (Part 1) Battery
published: true
description: Better product, easier debugging with adb commands
tags: android, mobile, testing
---

# ADB Commands

According to documentation:

> Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.

[Link for more info.](https://developer.android.com/studio/command-line/adb)

I will try through a series of posts to go through my favorite commands.

1) Set battery level
> adb shell dumpsys battery set level 5

The command above, sets the phone's battery to 5%. This could be used to test how the app behaves with low battery level, or if your dark theme is being enabled etc.

Reset the battery level back to the **real** one with
> adb shell dumpsys battery reset


[Part two available now](https://dev.to/neokleoys2005/android-adb-commands-part-2-1gog)
Python Programming Challenge
Tags: python, challenge, discuss
Published: 2019-04-27 18:51:37

---
title: Python Programming Challenge
published: true
description: Finding the minimum difference between the product of left and right subarrays.
tags: python, challenge, discuss,
cover_image: https://thepracticaldev.s3.amazonaws.com/i/f3gofwp79d58b6o4jcq1.jpeg
---

I came across this problem in an online hiring challenge.


# The Challenge

Find a position *X* in the array *A* consisting of *N* elements, such that the difference between A[0] x A[1] x ... x A[X] and A[X+1] x A[X+2] x ... x A[N-1] is **minimum**.

How would you approach this problem in time as well as space efficient way?


# My Approach #1

I had two arrays *leftArr* and *rightArr* that store the left and right subarray product for each element in the array A.

Then I created another array *difference* to hold the absolute difference between corresponding elements in *leftArr* and *rightArr*.

I used *index()* and *min()* function to find the index of the smallest element in the difference array.

**RESULT:** Memory Limit Exceeded! (for almost all test cases except 2)


# My Approach #2

I found the two product arrays to be redundant. 

This time, instead of storing the product in arrays, I used two variables *leftProduct* and *rightProduct*.

I got rid of the *difference* array too and instead, had new *minDiff* and *minDiffIndex* variables to find the minimum difference and it's index.

Initially, I calculated the product of the entire array and stored it in the *rightProduct*.

Then, I iterated over the array once again and at each stop, I multiplied the current number with the *leftProduct* and divided the *rightProduct*.

Simultaneously, I calculated the difference and saved the index if the difference was found to be smaller than the *minDiff*.

Finally, I printed the *minDiffIndex*.

**RESULT:** Time Limit Exceeded! (for the same test cases)


# Conclusion

After being unsuccessful, I gave up and came over to dev.to to ask for better approaches and suggestions.

If you have a better approach in mind, do comment below!

Cheers!
I'm SEO Consultant, Ask Me Anything!
Tags: ama
Published: 2019-04-27 18:46:23

---
title: I'm SEO Consultant, Ask Me Anything!
published: true
tags: ama
---

Hi everyone ! I'm an independent international SEO Consultant, speaker and i write about [SEO](https://www.aymen-loukil.com/en/) in my blog
⏩ Launch Rails tests without ever leaving VS Code
Tags: vscode, rails, testing, hottips
Published: 2019-04-27 17:53:15

---
title: ⏩ Launch Rails tests without ever leaving VS Code
published: true
cover_image: 
description: Tests are a first-class citizen at Doctolib. Learn a few tricks we use to optimize the development cycle at our engineering team.
tags: vscode, rubyonrails, testing, hottips
---



Moved to Medium: 
https://medium.com/doctolib/automated-rails-tests-in-vs-code-331ac26f71ec
the feeds I read
Tags: webdev, javascript, learning
Published: 2019-04-10 19:03:03

---
title: the feeds I read
published: true
description: "My colleague Eric asked me how I keep up on development trends, so I made this list of the main RSS feeds I follow."
tags: webdev, javascript, learning
---
*\[cross-posted from [my web site][blog].\]*

My colleague Eric asked me how I keep up on development trends, so I
made this list of the main RSS feeds I follow (with [Feedly][]/[gReader][]).

## news

- [Vue.js News,](https://news.vuejs.org) because I'm just really into Vue.
  Also available as a podcast. Friends, I read it *and* I listen to it.
  That's how into Vue I am.
- [JavaScript Weekly](https://javascriptweekly.com)  is a big (but not
  too big) list of links every week: articles, announcements, tools,
  tutorials, and job ads.
- [The Changelog](https://changelog.com) covers open source generally.
  I don't read as many
  links from here, but it helps me keep tabs on what the wider developer
  community is talking about. This is the reason I know I should probably
  know what Kubernetes is.
- I wasn't subscribed to [CSS Tricks](http://css-tricks.com/) until
  I made this list, but I seemed to wind up reading a lot of articles from
  there anyway, so now I am.
- Also I just found [Web Platform News](https://webplatform.news/)
  and it looks useful.
  
## views

- [A List Apart](https://alistapart.com) is more design-focused than
  my other reads, and it goes both deep and wide – like this is where
  I read last week about how to support
  [users with vestibular disorders][vestibular].   
- [Sandi Metz](https://www.sandimetz.com) hasn't published a blog post
  in over a year, but I'm still subscribed because I know when she does
  it'll be worth reading and then thinking about until the next one.
- [Avdi Grimm,](https://avdi.codes) like Sandi, is just a smart person who
  thinks
  a lot about how to write better software, or write software better.
  And then, lucky for us, he shares his thoughts.   

Also I'm [here](https://dev.to), of course, and I follow a bunch of people on [Twitter][], but that's for another day. What do you read?

[feedly]: https://feedly.com
[greader]: https://noinnion.com/greader/
[vestibular]: https://alistapart.com/article/accessibility-for-vestibular
[twitter]: https://twitter.com/erikostrom


[blog]: https://www.erikostrom.com/code/words/the-feeds-i-read
Magento 2 Sale Category
Tags: magento2, magento, magento2salecategory, magento2sale
Published: 2019-04-27 16:51:14

---
title: Magento 2 Sale Category
published: true
description: 
tags: #magento2 #magento #magento2salecategory #magento2sale
---


<p>The <a href="https://www.ulmod.com/sale-category-for-magento-2.html">
The Sale Category extension</a> auto-generates a list of products with specials price and products from catalog price rules under a selected sale category. Come with a bunch of features such as countdown timer, include/exclude out-of-stock products, auto-remove expired sales products from the sale category, cron job to auto generates sales products at a scheduled time, and more.
</p>

<p>Check more details here : <a href="https://www.ulmod.com/sale-category-for-magento-2.html">https://www.ulmod.com/sale-category-for-magento-2.html</a></p>
Magento 2 Customer Approval 
Tags: magento2, magento, magento2customer, magento2approval
Published: 2019-04-27 16:48:25

---
title: Magento 2 Customer Approval 
published: true
description: 
tags: #magento2 #magento #magento2customer #magento2approval
---


<p>The <a href="https://www.ulmod.com/customer-approval-for-magento-2.html">The Customer Approval for Magento 2</a> extension allows store owners to take the whole control of any new account creation at the frontend. Display a customized disapproved and pending accounts messages right at the storefront. Approve only real customers account and reject all spam accounts. Notify customer by email on account approval and rejection. Notify admin by email after each new account registration.</p>

<p>Check more details here: <a href="https://www.ulmod.com/customer-approval-for-magento-2.html">https://www.ulmod.com/customer-approval-for-magento-2.html</a></p>
Magento 2 Order Comments Pro
Tags: magento2, magento, magento2order, magento2comment
Published: 2019-04-27 16:44:55

---
title: Magento 2 Order Comments Pro
published: true
description: 
tags: #magento2 #magento #magento2order #magento2comment
---


<p>The <a href="https://www.ulmod.com/ordernotes-for-magento-2.html">The Order Comments Pro for Magento 2</a> allows customers to leave notes/comments before and after ordering and receive store administrators replies via email and under customer account at the frontend.
</p><p>
Notify both customers and admins for any additionals notes added to the order. Customers can add additionals notes and reply to the admin message under my account page. Order notes/comment historical available at both the admin side and frontend side (customer account). Insert order notes on email template to display on confirmation emails. An efficient tool for Magento 2 order communication</p>

<p>Check more details here : <a href="https://www.ulmod.com/ordernotes-for-magento-2.html">https://www.ulmod.com/ordernotes-for-magento-2.html</a></p>
Magento 2 Custom Option Absolute Price
Tags: magento2, magento, magento2absolute, magento2price
Published: 2019-04-27 16:37:47

---
title: Magento 2 Custom Option Absolute Price
published: true
description: 
tags: #magento2 #magento #magento2absolute #magento2price
---


<p>The <a href="https://www.ulmod.com/custom-options-absolute-price-for-magento-2.html">The Custom Option Absolute Price</a> for Magento 2 add an absolute price in the Magento 2 custom options of any type: radio buttons, checkbox, drop-down, and multiple select. Display absolute price at the product, cart and checkout pages. Support all product type. More feature included.</p>

<p>Check more details here : <a href="https://www.ulmod.com/custom-options-absolute-price-for-magento-2.html">https://www.ulmod.com/custom-options-absolute-price-for-magento-2.html</a></p>
Which books are you reading right now? 📚
Tags: discuss, books, learning, growth
Published: 2019-04-27 14:27:14

---
title: Which books are you reading right now? 📚
published: true
description: 
tags: #discuss #books #learning #growth
---

> “I find television very educating. Every time somebody turns on the set, I go into the other room and read a book.” - Groucho Marx

You know that moment a book grabs a hold of you and won’t let you go? Recently I experienced that amazing feeling as I started reading [Why We Sleep - Unlocking The Power of Sleep and Dreams](https://www.amazon.com/Why-We-Sleep-Unlocking-Dreams/dp/1501144316/ref=sr_1_3?crid=1EUS1A8W3EYT&keywords=why+we+sleep&qid=1556374843&s=books&sprefix=why%2Caps%2C198&sr=1-3) by *Matthew Walker, PhD*. This book is an eye-opener and has helped me understand the importance of sleep in our lives. 

For example, learning about the two factors Sleep pressure and circadian rhythm that regulate our sleep cycles and the impact they have on functions such as memory, learnability, and decision making.🤯 This should be required reading for everyone in the tech industry where lack of sleep is a badge of honor. 

Your turn. 👇🏼

**I would love to know which books are you reading right now and if what you love about the book?**

Cheers! 😊

----

Photo by Suad Kamardeen on Unsplash
Magento 2 Custom Order Number
Tags: magento2, magento, magento2order
Published: 2019-04-27 16:35:05

---
title: Magento 2 Custom Order Number
published: true
description: 
tags: #magento2 #magento #magento2order
---


<p>The <a href="https://www.ulmod.com/custom-order-number-for-magento-2.html">The Custom Order Number for Magento 2</a> extension allows customizing order, invoice, shipment and credit memo numbers to keep your business info private. Bunch of features included such as any combination of letters, numbers and dates/times for all order, invoice, shipment and credit memo, custom increments, length, manual and auto reset the counter and more.</p>

<p>Check more details here : <a href="https://www.ulmod.com/custom-order-number-for-magento-2.html">https://www.ulmod.com/custom-order-number-for-magento-2.html</a></p>
How To Start Android Emulator Without Starting Android Studio
Tags: reactnative, react, javascript, android
Published: 2019-04-27 15:57:15

---
title: How To Start Android Emulator Without Starting Android Studio
published: true
description: How To Start Android Emulator Without Starting Android Studio 
tags: #reactnative #react #javascript #android
---

Source : <a href="https://www.skptricks.com/2019/04/how-to-start-android-emulator-without-starting-android-studio.html" > How To Start Android Emulator Without Starting Android Studio</a>

This tutorial explains how to start android emulator without starting android studio. In general developer use the android emulator after starting android studio application but some situation developers don't need it android studio for mobile application development like react native. They only requires emulator to run their android application, So in that case this tutorial will be helpful for you. Here we will show you a quick way to start Emulator without running Android Studio. There are main two steps:
1. Know Android SDK location and Emulator name.
2. Write and save batch script.

<img scr="https://4.bp.blogspot.com/-CABr-WkkoIg/XMR3OpK47zI/AAAAAAAACs0/Wy9c--2oplgrEFVELihyWzxu_I6xGa4VwCLcBGAs/s640/a1.png" />

<a href="https://www.skptricks.com/2019/04/how-to-start-android-emulator-without-starting-android-studio.html" >Click here to see demo </a>
Magento 2 Custom Order Status
Tags: magento2, magento, magento2orderstatus, magento2order
Published: 2019-04-27 15:24:44

---
title: Magento 2 Custom Order Status
published: true
description: 
tags: #magento2 #magento #magento2orderstatus #magento2order
---


<p>The <a href="https://www.ulmod.com/custom-order-status-for-magento-2.html">The Custom Order Status extension for Magento 2 </a> allows creating an unlimited number of custom order statuses to improve the order process for both customers and admins. Come with a bunch of features such as assign custom statuses to order states,
display all custom order statues to the customer account, notify customers when every order status change, use separate email templates per status and store view, easily manage all custom order statuses from the backend, and more.</p>

<p>Check more details here : <a href="https://www.ulmod.com/custom-order-status-for-magento-2.html">https://www.ulmod.com/custom-order-status-for-magento-2.html</a></p>