teleren/devto huggingface dataset:
Madness of David Lynch
Tags: creativity, personalgrowth, inspiration
Published: 2020-10-16 15:28:43

---
title: Madness of David Lynch
published: true
date: 2020-09-30 15:43:59 UTC
tags: #creativity #personalgrowth #inspiration
canonical_url: https://www.atulprd.com/blog/madness-of-david-lynch/
---

David Lynch is one of the best filmmakers of this time. I watched the [Twin Peaks](https://en.wikipedia.org/wiki/Twin_peaks) series early this year and it still makes my heads turn. It’s his masterpiece.

Today, I stumbled upon this beautiful [video](https://www.youtube.com/watch?v=TqZpi8zAqe0) showing the madness behind the screen. Here are some lines that caught my attention:

### On getting ideas & embracing boredom

> “Ideas are so beautiful and they’re so abstract. And they do exist someplace. I don’t know if there’s a name for it. And I think they exist, like fish. And I believe that if you sit quietly, like you’re fishing, you will catch ideas. The real, you know, beautiful, big ones swim kinda deep down there so you have to be very quiet, and you know, wait for them to come along. …

### Never let good ideas go to waste.

> If you catch an idea, you know, any idea, it wasn’t there and then it’s there! It might just be a small fragment, of, like I say, a feature film or a song of a lyric or whatever, but you gotta write that idea down right away. And as you’re writing, sometimes it’s amazing how much comes out, you know, from that one flash…

### Listening to the muse

> So, you get an idea and it is like a seed. And in your mind the idea is seen and felt and it explodes like it’s got electricity and light connected to it. And it has all the images and the feeling. And it’s like in an instant you know the idea, in an instant…

### Sharing your idea with the world

> Then, the thing is translating that to some medium. It could be a film idea or a painting idea or a furniture idea. It doesn’t matter. It wants to be something. It’s a seed for something. So, the whole thing is translating that idea to a medium. And in the case of film, it takes a long time and you always need to go back and stay true to that idea…”

_P.S. If you haven’t watched [Twin Peaks](https://en.wikipedia.org/wiki/Twin_peaks) series, I highly recommend it._
ORM for Cassandra
Tags: help, cassandra, django, springboot
Published: 2020-09-30 15:39:33

So... I was wondering what is the best ORM for Django and Spring Boot to interact to Cassandra?

What I want is I don't want to write raw query, and the model and serialization is enriched.

One extra question.
Is it good to use Cassandra with TypeScript? Is there any good support?
Draggable and Resizable modal Pop ups in Angular | Part 2
Tags: angular, node, npm, javascript
Published: 2020-09-30 15:29:01

Please find the second part of the series having the step by step details mentioning how to create a draggable and resizable modals in Angular. 

If you have not watched the first part, I recommend you to watch it first and then go for second video. Please find the link for part 1:

https://dev.to/sridev2516/draggable-and-resizable-modal-popus-in-angular-2hib

The first part contains set up and demo of the app what we are going to build. The second part has the information how to create a angular app and adding responsive modals. 

Please find the step by step procedure in the below link.

https://www.youtube.com/watch?v=VnaMLMNWZZk
Assignment Template Creater
Tags: python, markdown, github, cli
Published: 2020-09-30 15:22:52

# Assignment Template creater

[github repo](https://github.com/rawho/assBOT)

This is a Command Line Interface (CLI) created using python. Using this you can create all necessary files for writing your assignment report.

I created this because, i am not getting ready with latex to create PDF, so i think of an alternative. What about creating PDF from our favourite markdown language!!

Actually inspired from my friend's Project [kickass](https://github.com/Roshan-R/kickass), Which is a one step c assignment maker!!

## Pre-requisites
1. VScode should be installed
2. You have to install an extension in VScode -> **Markdown PDF**
3. install **Markdown All in One** extension also. 

## Installation
open a terminal window and type:

    pip install fire
    git clone https://github.com/rawho/assBOT.git
    cd assBOT
    

## Usage
    python assbot.py create hello

This Will create a folder hello for you, Lets take a look at the folder

    hello
    |--cet-logo.jpeg
    |--demo.png
    |--hello.md

In the `hello.md` file you can see  a template will be created, There you can change the name, heading, etc..

`demo.png` and `cet-logo.jpeg` are the images used, you can add new images to this folder and add it in the markdown file

## Convert to PDF
- Open the `hello.md` file in VScode
- `ctl + shift + p` and search **export**, then select **Markdown PDF: Export (pdf)** 

Then Wait for few seconds and you can see a new pdf file is created in the same folder.


## Few Tips
- Probably if you follow above steps, You will get a pdf file, Inside it you can see that the code snippets is not highlighted, inorder to enable it, you can change the settings of the extension **Markdown PDF**
 
    for that press `ctl + ,` it will open the settings.

    from there go to **extensions** and **markdown pdf**, scroll down and  change the highlight style. There is a dropdown. You can select any one from it. My suggestion is *a11y-dark.css*
- for converting to pdf instead of searching, you can just right-click, there you can see the option to export

You can see some examples [here](https://github.com/rawho/assBOT/tree/master/examples)

PDF created using this tool - [lab report](examples/Data_Structures_Lab_Cycle_1/Data_Structures_Lab_Cycle_1.pdf)
Math.min array needs spread operator.
Tags: javascript, webdev, react
Published: 2020-09-30 15:22:43

Hello all,

I can not confused why Math.min only works on array if you use the spread operator. I tried googling and reading mdn docs.

```
const array1 = [2, 3, 1];

console.log(Math.min(...array1));
// expected output: 1

if you do 
const array1 = [2, 3, 1];

console.log(Math.min(array1));
// expected output: NaN
```

EDIT: ok i just read this
Spread syntax (...) allows an iterable such as an array expression or string to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected, or an object expression to be expanded in places where zero or more key-value pairs (for object literals) are expected.

```

console.log(sum(numbers));
// expected output: 6
```

I didnt know this
What keyboard do you use?
Tags: discuss, productivity
Published: 2020-09-30 15:21:53

Why? How is your experience with it? Is it your favo(u)rite ever? Would you replace it? What will be the next? 

<center>
<p style="text-align: center;">
  <small>Cover source: <a href="https://i.imgur.com/91wuJ5Z.jpg">arrows keyboard</a> (<a href="https://imgur.com/gallery/UZWX3vA">Tokyo Meet Collection</a>)</small>
</p>
</center>
JavaScript does not cache array.length
Tags: javascript, showdev
Published: 2020-09-30 15:20:47

#Myth: `array.length` is cached by JavaScript Engine

I have seen many comments and posts saying that JavaScript VM caches array.length for optimization.

So following piece of code is not required...
```javascript
for(var i=0,n = a.length;i<n;i++) {
    ...
}
```
And this one is automatically optimized by modern compilers.
```javascript
for(var i=0;i<a.length;i++) {
    ...
}
```

Well this is a myth, compiler can optimize but only if the for loop does not call any other method and performs simple mathematical steps.

{% jsfiddle https://jsfiddle.net/4fao0jpn/ %}

In above example, 

```javascript
function run(a, f) {

   for(var i = 0; i < a.length; i++) {
       f(a[i]);
   }

}

var a = [0,1,2,3];

run(a, function(n) {
   console.log(n);
   if (n == 2) {
      a.push(4);
      a.push(5);
   }
});
```

The output should be `0,1,2,3` if engine caches `array.length`, but if you notice, the output is `0,1,2,3,4,5`.

This means that `a.length` is read before every comparison.

# Optimization is expensive

Source level analysis of script is an expensive process, if JavaScript engine would spend time on detect complex logic to decide whether to cache or not, it would slow down startup time.
Codewars Kata Count the Monkeys with JavaScript
Tags: javascript, codenewbie, codewars, 100daysofcode
Published: 2020-09-30 15:14:58

{% youtube apz4h9_YFOg %}

To solve this problem, we'll take 3 different approaches.
Enjoy the video 😀🙏

Also written version https://losseff.xyz/katas/019-count-the-monkeys/javascript/
How do I attach my rails custom generator to the model one?
Tags: help, rails, ruby
Published: 2020-09-30 15:13:51

Currently, I created an independent generator. When I run `rails g query`, it works and creates my files well. 

Here that code:

```ruby
# lib/generators/rails/query_generator.rb

require_relative '../my_gem/named_base'

module Rails
  module Generators
    class QueryGenerator < MyLib::Generators::NamedBase
      source_root File.expand_path('templates', __dir__)

      check_class_collision suffix: 'Query'

      def create_model_query
        return if class_name.blank?

        template_file = File.join('app/queries', class_path, "#{file_name}_query.rb")
        template 'query.rb.erb', template_file
      end
    end
  end
end
```

Now, I want to run the generator when the people run `rails g model` but I can't achieve it.
I try to override the generator model class and use a `hook_for` to call it but it isn't working. Here the code:

```ruby
# lib/generators/model_generator.rb

require "rails/generators"
require "rails/generators/rails/model/model_generator"
require_relative './query_generator'

module Rails
  module Generators
    class ModelGenerator < ::Rails::Generators::ModelGenerator
      hook_for :orm, as: :model, in: :rails do |instance, model|
        instance.invoke Rails::Generators::QueryGenerator, [ instance.name ]
      end
    end
  end
end
```

I hope you can help me. Thanks!


## Update

Finally, I found the solution! With the help of [Railtie](https://api.rubyonrails.org/classes/Rails/Railtie.html), I could achieve the expected behaviour hooking from the rails model generator.

```ruby
# lib/my_gem.rb
require ...
require 'my_gem/railtie' if defined?(Rails)
 
# lib/my_gem/railtie.rb

require 'rails/railtie'

module ActiveModel
  class Railtie < Rails::Railtie
    generators do |app|
      Rails::Generators.configure! app.config.generators
      require_relative '../generators/model_generator'
    end
  end
end

# lib/generators/model_generator.rb

require 'rails/generators'
require 'rails/generators/rails/model/model_generator'
require_relative 'rails/query_generator'

module Rails
  module Generators
    class ModelGenerator
      hook_for :query, type: :boolean, default: true
    end
  end
end
```
Season Of Docs, Meeting-5
Tags: opensource, documentation, gsod
Published: 2020-09-30 15:09:08

On 23rd of September, I had a weekly meeting with regards to my Google's Season Of Docs project. The mentor's had assigned the following tasks :
1. Finish reading the Plugins Docs and include Plugins doc into the main docs.
2. Sending the Google doc containing relevant info from ACS research paper.
3. Solving the Table of contents issue.
4. Completing the implementation of API using the UI of SynBioHub.
5. Completing the setup page.
6. Include the link of the plugins table rather than the whole table on the plugins page.

I was able to accomplish the following tasks: 
1. Extracted out relevant info from the ACS research paper, though it was too much. Hence, on the advise of Prof. Myers I'm trying to reduce the content to 1 paragraph at max containing info. about Plugins ans Web-Of-Registries.
2. Solved the table of contents issues, thanks to My mentor and developer of ACE-documentation theme.
3. Included the link of plugins table in the documentation that has already been implemented, hence removing the whole table from the docs, which was not looking up to the mark.
4. I'm almost done including the Plugins doc into the Plugins section of the documentation. A little bit of formatting and editing is left to be done.
5. I was able to execute almost all the API's using the UI of SynBioHub.

Following are the issues that I'd faced this week:
1. Extracted out too much of information from the ACS research paper, hence on the advice of Prof. Myers, I've substantially reduced the content and plan to reduce it further.
2. I haven't used Sendgrid before, hence it was kind of a challenge for me to learn about it's nuances, but still I was able to complete the Setup page well on time.
3. I'm still encountering some challenges on running locally onto Ubuntu. Hence, I tried to run it on a Mac, on which it successfully ran without any glitches. I tried to do a bit of research, according to which I need to install docker again onto my PC.
4. The doc that Jet had sent contained a lot of information on plugins. I do have some doubts and I'll try to clarify them in the meeting.

I was able to complete almost all the tasks, this week well in time. Hope to discuss the upcoming tasks in the next meeting i.e. on 30th September!
Azure Migration Options: Enterprise Tooling in a Cloud World
Tags: azure, vmware, enterprise
Published: 2020-09-30 15:06:52

#### 📺 032 -Jeramiah Dooley 🎙️ Jason Hand

{% youtube 5OGfE7p_jMA%}

As a rule, much of the migration efforts that cloud providers focus on are around individual workloads: How do we move that application? How do we repackage that app? How do we move that database? By design, this places a lot of burden on the customer to do whatever work needs to be done in order to get the workload moved. For large and medium enterprises, where there's a significant amount of investment in tools and operational practices, this cost can be too high, and can lead to slowed or even abandoned plans to migrate. What if we could facilitate the migration of the entire platform itself?

### Useful Links

🔗 [VMware on Azure](https://docs.microsoft.com/en-us/azure/azure-vmware/introduction?WT.mc_id=allaroundazure-devto-jedooley)

🔗 [.NET Architecture](https://docs.microsoft.com/en-us/dotnet/architecture/modern-web-apps-azure/develop-asp-net-core-mvc-apps?WT.mc_id=allaroundazure-devto-jedooley)

### Learn more about Jeramiah Dooley

🔗 [@jdooley_clt](https://twitter.com/jdooley_clt)

🔗 [Bio](https://developer.microsoft.com/en-us/advocates/jeramiah-dooley)


### Find Us On

📺 [Twitch](https://www.twitch.tv/microsoftdeveloper)

🔗 [Twitter](https://twitter.com/jasonhand)

☁️
I want to find users for my new startup
Tags: startup, marketing, users
Published: 2020-09-30 14:58:40

---
title: I want to find users for my new startup
published: true
description: Just building an amazing product or a service doesn't drive customers. That's the unfortunate truth in this cruel world. You need to lay down a good launch strategy.
tags: startups, marketing, users
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/bkziplyeryscx2dame42.png
canonical_url: https://2.flexiple.com/no-vc-reports/i-want-to-find-users-for-my-new-startup
---

Just building an amazing product or a service doesn't drive customers. That's the unfortunate truth in this cruel world. So, laying down the right launch strategy is the goal of the sixth No-VC report!

The way I see it is that there are four kinds of channels in totality:

a. Social media: The obvious channel, though "the how to use it" part isn't as straightforward.

b. Launch platforms: These are the reliable traffic drivers like Product Hunt, Show HN, etc.

c. Relevant communities: Strong communities like Indiehackers which allow you to build and engage your audience.

d. Listing websites: More a hygiene factor that helps in SEO.

Now, in the report today (link at the end of the post), I share the relevant platforms under each category. But that's not it. The usage of these channels along with the timing of engagement on those is also super-critical. So do give it a read and let me know your thoughts!

Also, I share my reports regularly on twitter - you can follow me there :)

{% twitter 1311287101053259777 %}

There is a lot more in here: https://2.flexiple.com/no-vc-reports/i-want-to-find-users-for-my-new-startup. It is just 5 mins long!
Cute Laptop Stickers
Published: 2020-09-30 14:48:47

Laptop stickers allow students to express their individuality, but they can also help connect with classmates with similar interests. Besides the personality representation, the students also find that they give them the opportunity to interact with other students in quite unconventional ways.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/3fn03bp74skxcflektow.jpg)

Whether you decorate your laptop with devices you use for games or even just for fun, the stickers are sure to show how sporty and knowledgeable you really are.


There are a number of memes that are represented by laptop stickers, and there are many different types of stickers on the Internet.

You can also add text and contact information to your laptop sticker to ensure that no one confuses them with their own and ensures a safe return in case they are lost.

The laptop sticker covers can be made from a variety of different materials such as paper, plastic, wood, metal, and even glass, but you can also order them in different colors and sizes.

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

In the fast-growing open-source universe, stickers compete for limited laptop space, and smaller stickers offer a greater chance to squeeze in. For stand visitors and project fans who have additional stickers in the office or want to save on future laptops, you can order stickers.

You can select your favorites or cover your laptop with a bunch of different stickers and turn it off when you're ready for a new design. You may also want to avoid removing the stickers that you used to beautify your laptop so that you do not have to tear off the stickers to remove them.

Old stickers are shredded, then they become rubbery and dirty, and that can become a problem when trying to resell a laptop. If you plan to sell it, you should always switch between the stickers until it is in mint condition and you remove all the embellishment stickers.

Make your custom stickers with <a href="https://siraprint.ca">sticker printing</a> professionals in any shape or size.

The reasons why you should put stickers on your laptops can help you decide exactly what you want to stick around for the coming month.
When Does It Make Sense to Use Docker?
Tags: docker, devops, discuss
Published: 2020-09-30 14:46:14

---
title: When Does It Make Sense to Use Docker?
published: true
description: Pro tip.
tags: docker, devops, discuss
---

Using Docker / containers makes sense only if you need to standardize [deployment pipelines](https://dev.to/markoa/ci-cd-pipeline-a-gentle-introduction-2n8k). Otherwise it’s a waste of time.

When do you need to standardize anything? When you're dealing with a a large quantity.

So, either you:

1. Have many (as in, double digits) microservices comprising one system, or
2. Are in a *very* large organization with many development teams.

So if you have one or two apps running on Heroku / Beanstalk — leave them there. You’re not missing out on anything. It's pure overhead.
Are Gatsby websites fast?
Tags: gatsby, performance, webdev
Published: 2020-09-30 14:41:26

*Research on speed and performance of 1265 Gatsby built websites.*

I’m sure you must be wondering what’s behind a catchy title like this, right? Quite recently I’ve [analyzed 20k](https://www.searchenginewatch.com/2020/09/25/speed-and-performance-of-web-dev-seo-and-marketing-agencies-websites/) web dev, SEO, and marketing agency websites for speed and performance results, and what I learned is not that good...which is a different story altogether than the one I wanted to share here.

Now, only 0.27% of websites in that research were built with Gatsby. And with [Gatsby](https://bejamas.io/blog/static-site-generators/#gatsby) being one of the most favorite static site generators in the Jamstack communities I wondered how fast are Gatsby sites? On average of course. So, I needed more URLs.

The more data you have the better the quality of results (and conclusions) is. On the other hand, this type of work goes well beyond my **work duties**. 

I guess what I’m saying is that I had far less time and resources for this time. This also means I had to opt-out for [BuiltWith](https://builtwith.com/) data of websites across different verticals rather than web dev, SEO, and marketing agency websites only. And in a much smaller number.

But the results are interesting. Take a look:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/f4hillqrb9jlaa4ck0sd.png)
>Google color-coded perf scores according to these ranges:
0 to 49 (**Red**): Poor
50 to 89 (**Orange**): Needs Improvement
90 to 100 (**Green**): Good
You can read more about it [here](https://web.dev/performance-scoring/).

While waiting on [core web vitals](https://web.dev/vitals/) to kick in le’s look at the **Largest Contentful Paint** (LCP) results:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/elnafrefqi56stoh68l0.png)
### Instead of conclusion
In some ways comparing these results and the results of my previous research is like comparing apples and oranges. And the URL sample is small. But I do like what I see😋

I mean 7.2% of Gatsby sites with good pref scores vs 2.7% and 31.8% vs 20.2% with needs improvement scores sounds like we’re on the right path for both us as devs and audience the website we’re working on.

Let me know what you think in the comments. Thx.
Liman MYS 1.4 Sürüm Duyurusu
Tags: liman, management, opensource, linux
Published: 2020-09-30 14:37:41

HAVELSAN tarafından geliştirilmekte olan Liman MYS 1.4 sürümü 30 Eylül 2020 tarihinde Mert ÇELEN tarafından duyuruldu.

Değişim Günlüğü
-Connector yapısı sunucu objelerinden komple ayrıldı, böylelikle windows sunucu üzerine ssh kurulsa dahi yapı kurulabiliyor.
-Kasa üzerinden çoklu anahtar ekleme desteği getirildi, böylelikle anahtarlı eklediğiniz sunucunun anahtarını silerek tekrar uzak bağlantı haline çevirip, sonrasında tekrar anahtar ekleyerek eski haline getirilmesi sağlandı.
-Connector go servisine taşındı.
-Sandbox içerisine executeOutsideCommand fonksiyonu eklendi, bu fonksiyon ile connector aracılığıyla mevcut sunucu haricide komut çalıştırılabilme özelliği eklendi. Açılan bağlantılar arkaplanda tutuluyor.
-Dış bildirim desteği eklendi, token ile dışarıdan belirli bir ip bloğu filtrelenerek sistem bildirimi gönderilmesi sağlandı.
-Mail alt yapısı aktif edildi, isteğe göre aktifleştirilerek sistem bildirimlerinin tüm liman sistemi yöneticilerine gönderilmesi sağlandı.
-Liman'ın ingilizce çeviri desteği iyileştirildi.

 Emeği geçen Mert Talha Songür'e ve Baran Sekin'e teşekkürler :tada: