teleren/devto huggingface dataset:
Safe mode in Windows 8
Tags: windows, safemode, errors, cmd
Published: 2019-03-10 13:01:17

---
title: Safe mode in Windows 8 
published: true
description: How to set safe mode from Windows recovery and how to set it to normal.
tags: Windows, safemode, error, cmd
---

So, i forgot my system password. Stupid me 😬. I have 2 systems and 3 vpn connections. Generally i remember my passwords well but today suddenly, out of nowhere i forgot which one is for which account ? 

Long story short, i wasted a good amount of time trying to reset it using windows repair module. (first time i ever did that)

tried `F8` , `Shift + F8`, `F5` nothing worked. :(

Went to couple of forums and figured that there is no direct way to open windows machine in safe mode. you will have to first run some commands (in CMD) and then system will restart in safe mode.

So, i started the System recovery options and somehow reached to CMD.

Here is a command that needs to be run there,

```
bcdedit /set {default} safeboot minimal

```

This sets boot manager to run in safe mode by default. 


**Once this is set your system will run with safe mode by default and if you wish to reset it (i mean to run as normal) you will have to delete above entry with this command.** (Note: Unless you delete above entry, system will run in safe mode only)


```
bcdedit /deletevalue {default} safeboot

``` 

# So, how did i recover/reset my password you may ask ? 😌 

Well, i tried with different combinations and finally remembered it 😂😂 (Wonder how that happens ? )



Wasted entire Sunday, But still i guess, i learned something. :)


Cheers, 
Pritesh
IntelliJでプロパティのnative2ascii変換をEclipse互換にする
Tags: java, intellij
Published: 2019-03-10 12:56:00

---
title: IntelliJでプロパティのnative2ascii変換をEclipse互換にする
published: true
tags: Java, IntelliJ
date: 20190310T12:56Z
canonical_url: https://qiita.com/shiena/items/5143a81f26907475713f
---
# IntelliJとEclipseのnative2ascii変換の違い

IntelliJでは`Settings`の`File Encodings`で`Transparent native-to-ascii conversion`をオンにするとJavaのプロパティファイルを透過的にnative2ascii変換してくれます。

```properties:元のプロパティファイル
log.error=エラーが起きました
```

```properties:IntelliJで変換
log.error=\u30A8\u30E9\u30FC\u304C\u8D77\u304D\u307E\u3057\u305F
```

ですが、Pleiades All in Oneに同梱されているProperties Editorを使うとIntelliJと違い小文字に変換されます。

```properties:Eclipseで変換
log.error=\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u307e\u3057\u305f
```

Eclipse使いが大半を占める中で一緒に開発していると、1文字変更しただけでも大文字小文字の違いでほとんどの値に差分が出てしまい、本当の差分が分かりにくくなります。

# IntelliJでも小文字に変換する

IntelliJではnative2asciiの大文字小文字変換のようなニッチな設定も可能です。
ニッチ故に少し面倒ですが`idea.properties`に以下の値を追加します。

```properties:idea.properties
idea.native2ascii.lowercase=true
```

## idea.propertiesの場所

WindowsとLinuxの場合はIntelliJをインストールしたフォルダの中にあります。

```console:WindowsとLinuxの場合
<IntelliJ IDEA installation folder>/bin/idea.properties
```

Macでも同じようにIntelliJをインストールしたフォルダの中にありますが、
`~/Library/Preferences/IntelliJIdea12/idea.properties`にコピーするとこちらが優先されます。
コピー先のフォルダはバージョン毎に異なるので、バージョンアップしたときは忘れないように再度コピーして設定してください。

```console:Macの場合
~/Library/Preferences/IntelliJIdea12/idea.properties
/Applications/IntelliJ IDEA 12.app/bin/idea.properties
```

これでEclipse使いが多い開発でも安心です。

# IntelliJ IDEA 2018.3 Help

以上の内容はIntelliJのヘルプを参考にしました。

* [Resource Bundle](https://www.jetbrains.com/help/idea/resource-bundle.html)
* [リソース・バンドル](https://pleiades.io/help/idea/resource-bundle.html)
Engineering Culture in a Remote Team
Tags: remote, engineering, culture
Published: 2019-03-10 12:25:10

---
title: Engineering Culture in a Remote Team
published: true
description: What would you like to know about remote company's engineering culture before considering to join them?
tags: remote, engineering, culture
cover_image: https://howtoapp.io/storage/posts/screens/2q6D9SSKv7Fh92WpshUg6AmweYPWqoOMCQ37TXXY.png
---

What would you like to know about remote company's engineering culture before considering to join them?

I currently have **1,700+ remote companies** listed on my site [RemoteHub](http://remotehub.io) – you can search for remote teams based on their size, tech stack, benefits and more. Teams have also listed **1,200+ remote cities they work from.**

I'm now starting to find out more about their development culture – my plan is to list some engineering topics and ask them to choose what fits with a quick description:

![Choose engineering topics](https://howtoapp.io/storage/posts/screens/059Gq2im9YYuq1E3pf41BOncqz1UQJS7lSDSzn5s.png)

So far I've came up with the following list:

👋 Daily standups
🤝 Pair programming
⚡️ Agile software development
🚚 Continuous delivery
🔓 Open source contributor
👶 Good for junior devs

I could then add these to my filters on the remote companies page and combining them with the existing options you could run searches something like "small remote companies with company retreats and daily standups hiring now".

![Remote companies](https://howtoapp.io/storage/posts/screens/1HW96gO4IadZbaPHX6HTM8qtbOnIppiRM2MtrBBS.png)

What would you like to know about remote company's engineering culture?
Ansible: check if a package is installed on a remote system
Tags: ansible, linux, devops
Published: 2019-03-10 14:10:02

---
title: Ansible: check if a package is installed on a remote system
published: true
tags: Ansible,Linux,devops
canonical_url: https://rtfm.co.ua/en/ansible-check-if-a-package-installed-on-a-remote-system/
---

![](https://rtfm.co.ua/wp-content/uploads/2015/03/ansible_logo_black_square-e1425716693260.png)Have a self-written `letsencrypt` role (see the [Prometheus: RTFM blog monitoring set up with Ansible – Grafana, Loki, and promtail](https://dev.to/setevoy/prometheus-rtfm-blog-monitoring-set-up-with-ansible--grafana-loki-and-promtail-58i) post).

Before running the Let’s Encrypt client to obtain a new certificate – need to check if NGINX is installed on a remote host.

Let’s use the [`package_facts`](https://docs.ansible.com/ansible/latest/modules/package_facts_module.html) module:

```
...
- name: "Check if NGINX is installed"
  package_facts:
    manager: "auto"
...
```

And add a conditional check with `when` using the `ansible_facts.packages` array:

```
...
- name: "NGINX test result"
  debug: 
    msg: "NGINX found"
  when: "'nginx' in ansible_facts.packages"

- name: "NGINX test result"
  debug: 
    msg: "NGINX NOT found"
  when: "'nginx' not in ansible_facts.packages"
```

Check:

```
...
TASK [test : Check if NGINX is installed] ****
ok: [ssh.dev.rtfm.co.ua]

TASK [test : NGINX test result] ****
ok: [ssh.dev.rtfm.co.ua] => {
  "msg": "NGINX found"
}

TASK [test : NGINX test result] ****
skipping: [ssh.dev.rtfm.co.ua]

PLAY RECAP ****
ssh.dev.rtfm.co.ua      : ok=3    changed=0    unreachable=0    failed=0
...
```

Remove NGINX:

```
root@rtfm-do-dev:~# apt purge nginx
```

Run again:

```
...
TASK [test : Check if NGINX is installed] ****
ok: [ssh.dev.rtfm.co.ua]

TASK [test : NGINX test result] ****
skipping: [ssh.dev.rtfm.co.ua]

TASK [test : NGINX test result] ****
ok: [ssh.dev.rtfm.co.ua] => {
  "msg": "NGINX NOT found"
}

PLAY RECAP ****

ssh.dev.rtfm.co.ua      : ok=3    changed=0    unreachable=0    failed=0
```

Done.


### Similar posts

- <small>03/10/2019</small> [Prometheus: RTFM blog monitoring set up with Ansible – Grafana, Loki, and promtail](https://dev.to/setevoy/prometheus-rtfm-blog-monitoring-set-up-with-ansible--grafana-loki-and-promtail-58i)<small> (0)</small>  
- <small>05/22/2018</small> [Ansible: теги, include\_vars и приоритеты переменных](https://rtfm.co.ua/ansible-tegi-include_vars-i-prioritety-peremennyx/)<small> (0)</small>  
- <small>07/13/2018</small> [Ansible: проверить конфигурацию NGINX перед рестартом](https://rtfm.co.ua/ansible-proverit-konfiguraciyu-nginx-pered-restartom/)<small> (0)</small>
A Quick Way to Aggregate Log Data/Drill Down to Investigate a Single Raw Log
Tags: logmanagement, logviewer, loganalysis
Published: 2019-03-10 10:14:51

---
title: A Quick Way to Aggregate Log Data/Drill Down to Investigate a Single Raw Log
published: True
description: 
tags: #log management, #log viewer, #log analysis
---

The simplest fastest way to view & search logs for insights is using a fully automated tool - one that collects and parses your logs in just a few clicks and suggest you out of the box reports and dashboards, to get insights in 3 more clicks. 

XpoLog 7 log viewer and log search also contain - 

1. Augmented log search to discover Unknown errors.
2. Predefined log filters and app-tags to get insights faster.
3. Centralized console to correlate transactions between different logs/events.
4. Enhanced view of several logs - from multiple remote data sources.
5. Multiple tools to access data - navigation, search, filters, live tail.
6. Complex search to build dynamic search queries - focus on time frames, servers, apps, and other log sources.

You can download free here: https://www.xplg.com/log-event-viewer-log-search
moving
Published: 2019-03-10 10:08:42

---
title: moving
published: true
description: 
tags: 
---

I need easy and kind-of-safe options to store and embed images on the posts. Therefore I'm moving the blog to https://atsushieno.github.io/ . I'm using jekyll + prose there and prose is far from an ideal solution especially wrt images, but I can kind of hack around it. So far, newer posts will appear there, unless I dump the new solution away (I'm still kind of indeccisive yet).
Android Story — Introduction 
Tags: android, softwaredevelopment, opensource, storytelling
Published: 2019-03-10 10:03:17

---
title: Android Story — Introduction 
published: true
description: Story of my Android development 
tags: Android, Software Development, Open Source, Storytelling
---

![Header](https://thepracticaldev.s3.amazonaws.com/i/da8tz0b5hvkwu0whzxh5.jpg)

Hello everyone! My name is [Pranav Pandey](https://pranavpandey.com) and I want to tell a story of Android development. I am a professional software developer and a little bit designer from India working on many technologies, especially from Google.

## Background

I am a self taught developer and working on Android since 2011 and now trying to setup my own app development business. In those years, I have faced many challenges related to self learning and software development. Some of them I have already overcame and still finding solution for the rest. My story is quite interesting as I have started with [reverse engineering](https://forum.xda-developers.com/search.php?searchid=453920248) the various Android apps and developing custom ROMs at [XDA](https://forum.xda-developers.com/member.php?u=3962236) followed by the native [app development](https://play.google.com/store/apps/dev?id=6608630615059087491) in 2013.

>Nothing is perfect but can be better. Developing such better things!

Then, I worked with a couple of start-ups for around two years and learnt a lot during that period. I have also travelled to [other countries](https://www.instagram.com/pranavpandeydev) and lead the software development of three Android devices. Thanks to all of my managers, team members and other co-workers.

## Future

Now, with the help of this series I want to share my experiences with others in which I will reveal the various hidden secrets of Android and software development. I will also discuss some of the mistakes that I made in the past so that you can learn and improve on them.

>Don't be afraid of failures, it makes you more confident!

## Open Source

I always believe in open source projects and helping others as I have learnt a lot from this community so, I am working on various [open source projects](https://github.com/pranavpandey) and giving back to the community.

This is my initial attempt on blogging so, please don't judge me as I will keep improving the future posts. Please comment to give suggestions and what you want to see in the future posts. Thanks for your time!
java.util.LinkedHashMap cannot be cast issue
Tags: react
Published: 2019-03-10 08:36:04

---
title: java.util.LinkedHashMap cannot be cast issue
published: true
description: Hi I am getting following error in my react js application how to resolve it
java.util.LinkedHashMap cannot be cast to com.resources.pojo.GenericReference (through reference chain: com.resources.pojo.Company["companyMsas"]->java.util.ArrayList[0]->com.espn.playbook.resources.pojo.CompanyMsa["contractType"])
tags: react js
---
Splatoon2のステージ情報を取得するコマンドを作っている 続き
Tags: go, splatoon2, splatoon, kingpin
Published: 2019-03-10 08:15:28

---
title: Splatoon2のステージ情報を取得するコマンドを作っている 続き
published: true
tags: go,splatoon2,splatoon,kingpin
---

こんにちは、.ごっちです。

[前](https://medium.com/@gggooottto/splatoon2%E3%81%AE%E3%82%B9%E3%83%86%E3%83%BC%E3%82%B8%E6%83%85%E5%A0%B1%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%82%92%E4%BD%9C%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B-108c3f248c1e)にこんなのを作ってたのですが、それの続きです。

## 作ったもの

{% github YutaGoto/ika2cli %}

![command](https://thepracticaldev.s3.amazonaws.com/i/fnkx00pr3rba3x2w0rur.gif)

## つかったもの

{% github alecthomas/kingpin %}

前は `cli` を使っていたんですが、気が変わって作り直しました。

[https://qiita.com/nirasan/items/169b5767032a6243282b](https://qiita.com/nirasan/items/169b5767032a6243282b)
の記事を参考に選定しました。

## 今回追加したもの

- サーモンランの直近2回分のステージとブキ編成を取得できるようになりました。
- 指定したルールが次にいつ始まるかチェックできるようにしました。

これはより便利になるのでは？(べんりなのでは? 🦑🐙)

## 所感

ロジック自体結構ゴリ押ししている感じがあるのですが、これ以上きれいに検索できる方法が思いつかなかったので一旦妥協しています。

サーモンランのコマンドは [YutaGoto/salmon_run](https://github.com/YutaGoto/salmon_run) で大変役にたっております。

リファクタリングはそのうち。
My first job in the world of coding
Tags: job, webdev, coding, developer
Published: 2019-03-10 08:04:58

---
title: My first job in the world of coding
published: true
description: First job in dev world
tags: job, webdev, coding, developer
---

## Dear People of the Dev Community!

It's been some time since I wrote a post as I had nothing really interesting going on. In my last one, I was writing about the [beginner's trap](https://dev.to/adamnkiss/a-beginners-trap-3ojo) and you guys gave me a lot of support and I made a new friend. :)

For the last 4 months I've been putting at least 4 to 7 hours a day of learning and practising **HTML**, **CSS** and mainly **JavaScript**.

I've been in the forex and cfd's industry for more than 8 years and I've come a long way, hence the reason I wanted to change. I needed something new, something hard, something **challenging**.

As I wrote before, I didn't have any unrealistic expectations to pursue, I put down my head and learnt as much as I could.

Lately, I've been very close to quitting from forex as I just had enough with everything around our business. 

I'm not sure about you, but **I do believe in miracles** - or at least rewards that happen for being a hard-worker.

So, last week I went to a party - haven't been in one this year so far - and my friend and his colleagues were there. They run a professional webdev company for a long time now.

Somehow I came up that I'm learning a lot, and will be looking into applying for some internship or start freelancing they started asking some questions, and 2 hours later they just gave me the question. 

_We've been looking for a person who knows coding and is good at sales_

At first, I told them that unfortunately I don't know anyone. Then, they told me, yea, **that'd be you**. :D 

I didn't even know what to say at that point. We agreed to have a proper meeting this week.

Fast-forward 5 days, I had the meeting on Thursday and I am happy to say that I'll be their Head of Business and I'll be able to learn a lot more about coding, highly likely to get down to actual coding at that company.

I know, I haven't become a programmer, yet. But I am get to be at a place where my main task will be dealing with the devs and our client's needs.

I have to **thank all of you for the support** you have given, and the awesome posts I can read on a daily basis! 

I hope that the beginners out there will get some confidence boost from reading this post as they can see that putting in the work and taking every single chance can help you achieve your dreams.

Thank you for reading this post.
Database Management Systems For Application Development: Introduction
Tags: database, sql, software, application
Published: 2019-03-10 03:45:49

---
title: Database Management Systems For Application Development: Introduction
published: true
description: An introduction to DBMS for application development.
tags: Database, SQL, Software, Application
---
Photo by [imgix](https://unsplash.com/@imgix) on [Unsplash](https://unsplash.com)

![Computer Server](https://images.unsplash.com/photo-1506399309177-3b43e99fead2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1648&q=80)

At the heart of all application is the database where all data related to the application is stored.  

In a series of posts I’ll be discussing how Database Management Systems are used in applications development.

In this introductory post I’ll be giving a quick overview of some Database terms.

# Whats is a Database Management Systems?

A Database Management Systems is a software used to properly store, retrieve and update data in a database. A database is a collection of interrelate data. 

A view is a subset of data returned from a query (A query is a request for data from a database). A view hides unnecessary details away from users and provide security to prevent users from accessing restricted data. 

The structure of data is very important in database management systems. The overall design of a database is called a Schema. Schema describes the logical design of a database. Schemas are the blueprint of how the database will be constructed.

The data model is a way to describe your data, relationships in your data and data consistency and constraints. There are four type of data models:
1. Relation Model
2. Entity-Relationship Model
3. Object-based Data Model
4. Semistructured Data Model

The Relation Model and the Entity-Relationship Model are the most widely used data models. 

Database System provides a data-definition language that is used to specify the database schema and a data-manipulation language that is used to interact with the database. These are not two separate languages, they form a single database language, such as the widely used SQL (Which we will be discussing in a later post). 

DBMS needs to ensure data is safe in the event of crashes and against unauthorized access. Since data in application are usually shared among multiple users, the DBMS must avoid inconsistent result. 

Application often perform multiple operations on the database that count as one unit of work. Transaction must hold the following set of properties:
1. Atomicity
2. Consistency
3. Isolation
4. Durability 

These properties guarantees reliability even in the event of errors or power failure.Transactions that are performed concurrently must be executed with out conflict.

Data is important to every application. The database can be considered the heart of an application.

In the coming series of posts I will be going in depth about different database topics using a well-know application as an example.
Nevertheless, Keyth Roy Coded
Tags: wecoded
Published: 2019-03-10 03:10:55

---
title: Nevertheless, Keyth Roy Coded 
published: true
tags: shecoded
---

## I started to code in 90's Just feel ok communicate with machines, It was easy understand humans problems and translate into algoritm solutions. In 2004 my First trainee position. It was great Found that a talent could be a job. I was 17, one of the analyst s 57 years old chased me saying he Fell in love... The Very same time i Also have to deel with a teacher who says ALL the time that engineering was not a place to women... It is difficult explain everything.. but nevertheless i still coding..
CSS shadows trick
Tags: css, webdev
Published: 2019-03-10 00:10:22

---
title: CSS shadows trick
published: true
description: 
tags: #css #webdev
canonical_url: https://www.jitbit.com/alexblog/275-css-always-use-transparent-colors-for-your-shadows/
---

I notice a lot of websites and apps using "box-shadow" like this:

`box-shadow: 0px 0px 20px 5px #ddd`

Which literally means "let's have a #ddd-colored shadow, with zero offset, 5 pixels wide and 20 pixels blurred". And it's perfectly normal, for the most part.

There's only one problem:

![Glow shadow](https://i.imgur.com/MDj7eI7.png)

See, the shadow looks pretty cool when positioned over the light background. But as soon as it moves over to the dark side (top area) - you get the ugly "glow" around your box.

The solution is to **always use black semi-transparent shadows** like this:
`box-shadow: 0px 0px 20px 5px rgba(0,0,0,0.15)` which now says "use a black shadow, but make it 15% transparent".

![Normal shadow](https://i.imgur.com/MNMm9qc.png)

Perfectly supported by IE9 and later. And as a bonus you get more consistent shadows across Firefox/Chrome which has always been an issue ("grey" shadows look darker in Firefox than Chrome).
Reduce memory usage of Gradle and Kotlin for Android development DevOps
Tags: devops, android, gradle, kotlin
Published: 2020-09-11 19:02:27

---
title: Reduce memory usage of Gradle and Kotlin for Android development DevOps
published: true
date: 2019-03-10 00:00:00 UTC
tags: [devops, android, gradle, kotlin]
canonical_url: https://mrpowerscripts.com/reduce-memory-use-gradle-kotlin/
---

When you’re building your android project locally your machines probably have a lot of horsepower. When you’re running in a DevOps workflow such as continuous integration and delivery you may not have as many resources. This can cause your builds to run out of memory. Here are some quick tips to help reduce the memory usage of your Gradle and Kotlin builds for Android development.

## Tell Java to chill out with the memory usage

Since android build tools are Java-based, and Java is a memory hog, you can first tell Java to limit its memory usage. You might see people put these same options in a `GRADLE_OPTS` variable but if the process gets forked those options won’t always get passed down into the forked process. It’s better to set an environment variable consumed direction by Java. `_JAVA_OPTIONS` environment variable is widely supported in Oracle based Java environments. Combined with the `-Xmx` configuration you can set the max heap size for use by Java, which is where it stores things like class objects into memory. Setting this value to 75% of the available memory will give Java enough room to store what it needs without choking the rest of the system resources. If you have 4GB available, then try setting it to 3GB. `_JAVA_OPTIONS=-Xmx3g`.

## Shut down the daemons

This is a tip for both Gradle and Kotlin as they each have their own daemons. The daemons run in the background and help speed up re-compilation times by storing generated project information from previous compilation times. Typically when running in a CI workflow you won’t be recompiling anything as environments are reset each time. In this case, the daemon will take up extra memory without providing any benefits.

Using these methods to control memory use in your Android DevOps lifecycle can reduce out of memory failures within environments that don’t have limited resources.