teleren/devto huggingface dataset:
APK Kalkulator Toko. Menghitung dengan cepat
Tags: javascript, android, playstore, webview
Published: 2020-02-15 00:20:43

---
title: APK Kalkulator Toko. Menghitung dengan cepat
published: true
description: Dengan kalkulator ini, kamu lebih mudah dalam menghitung jumlah harga yang dibeli
tags: javascript, android, playstore, webview
series: APK
---

![Tampilan Kalkulator Toko di Play Store](https://dev-to-uploads.s3.amazonaws.com/i/gxn7nmxo7hefm7ezd834.png)

![Tampilan Kalkulator Toko](https://dev-to-uploads.s3.amazonaws.com/i/gto7knrcbwf4pb3brq5x.png)

# Mengapa aku membuat aplikasi ini?

Biasanya kan kalau di toko itu, orang membeli barang terkadang nggak hanya 1. Misalnya aja kayak list di bawah ini:

- Rantai 3 biji
- Ban dalam 12 biji
- Pelor 4 lusin (48 biji)

Kan bingung kita ngitungnya kalau pakai cara biasa pakai kalkulator kan?

Oh iya, aku buka toko sepeda. Makanya, untuk contohnya, aku pakai alat-alat sepeda. Hehehehe.

Untuk mendownloadnya, klik aja <https://play.google.com/store/apps/details?id=com.mzaini30.kalkulatortoko>
Getting started with PHP
Tags: php, beginners, tutorial
Published: 2020-02-14 23:59:11

If you're new to PHP, setting up your first project may be a pain. I'll walk you through to make this process as painless as possible. If you're familiar with running basic html pages in VS Code, this will be similar, but without the convenience of "Live Server". What we are setting up, is a small registration form, but starting in this post with outputting **"Hello World"** onto a web page, along with a way of running it on a web server. The final product can be found on my [GitHub](https://github.com/JadeJDoucet/php-form). 

## Setting Up Your Web Server
So, we need to run our page in our browser. The easiest way I've come across is by using [XAMPP](https://www.apachefriends.org/). Download this for whichever OS you're running. Keep track of where this file is downloading, it's important. You can un-check a few of the download options, you only really need PHP, Apache, and MySQL. Once you're done, open up the XAMPP Control Panel. Pressing start on the Apache server, click on Admin. This will navigate you to localhost/dashboard. This is simply a file path which is being served by the Apache web server, so we just need to add some PHP files to this path as options.

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

## Adding Files
This is a step which seems to be skipped by most tutorials. Open up the folder where you downloaded XAMPP and you'll see a folder called "htdocs". This is where you can add projects and files to serve. I created an empty file called "php-form" and opened it in VS Code. From here, let's create an index.php file and get started. 

## Creating Our Web Page
Opening our index.php file, we can write plain HTML in here, but it's a little more than that, we can also write our PHP code here. To make sure everything is working properly, let's create our first PHP code.
```
<?php

echo 'Hello World';

?>
```
Adding this into our project, we should be able to run our PHP file. Going back to our web server, we should be able to change the file path to **localhost/php-form/**. If you've saved the code, this should show "Hello World" in the top left of the web page. Let's break down this bit of PHP code though.

## The Code
Starting with ` <?php `, this tells our interpreter that the next section of code is going to be PHP. On the next line, we have ` echo 'Hello World';`, which just means to output "Hello World". This will be directly printed onto the web page. In some programs, you may not see the closing `?>` tag, in most cases, this can be omitted and it's perfectly fine. The **echo** keyword is something you should familiarize yourself with, it's used everywhere in PHP when displaying information on a page. [This article](https://www.tutorialrepublic.com/php-tutorial/php-echo-and-print-statements.php) is super helpful for more information on the echo keyword. 

## Conclusion
So, we've output 'Hello World', which is just our first step into the world of PHP. Keep an eye out, we'll be going deeper in the future. In the meantime, feel free to read through the [PHP documentation](https://www.php.net/docs.php).
Cómo restablecer de fábrica un teléfono Android [2 Métodos]
Tags: android
Published: 2020-02-14 23:54:22

**Método 1**: Reinicio suave
El reinicio suave es el método más simple y accesible que se puede utilizar para restablecer cualquier teléfono inteligente Android a los valores de fábrica. 

Todo lo que un usuario de Android necesita hacer para reiniciar su dispositivo puede hacerse sin siquiera tener que apagar el dispositivo.

Además, mientras que su contraparte tiene garantizado el borrado de todos los datos de un dispositivo Android, un soft reset sólo borra los datos almacenados en el almacenamiento interno del dispositivo, y eso también sólo la mitad de las veces. 
El soft reset se centra más en borrar todas las aplicaciones que no están en stock y deshacerse de todos y cada uno de los datos pertenecientes a ellas.

Los siguientes son los pasos que una persona debe completar para realizar un reinicio suave en un dispositivo Android:

1.Navegue hasta los ajustes del dispositivo.
2.Encuentra los ajustes de copia de seguridad y restablecimiento del dispositivo.
3.Pulse sobre Restablecimiento de datos de fábrica o una opción similar.
4.Lea atentamente las instrucciones y confirme la acción.
5.Espere a que el dispositivo se reponga a los ajustes de fábrica

**Método 2**: Hard Reset
En comparación con el soft reset, el hard reset es una medida más pesada, una medida que elimina todos los datos almacenados en un dispositivo Android y lo reajusta a la condición en la que estaba cuando fue sacado de su caja por primera vez, al menos en lo que respecta al software. Los siguientes son los pasos involucrados en un reseteo completo:

1.Apagar el dispositivo.

2.Arrancar en el modo de recuperación del sistema. En la mayoría de los dispositivos, se puede acceder al Modo de recuperación del sistema manteniendo pulsados los botones de Encendido y Subida de volumen simultáneamente, aunque este procedimiento difiere para algunos dispositivos Android.

3.Navegue hasta la opción de borrado de datos/restablecimiento de fábrica con el balancín de volumen y selecciónela con el botón de encendido.
4.Confirme la selección utilizando el botón de volumen para ir a la opción "Sí - borrar todos los datos del usuario" y pulsando el botón de encendido para seleccionarla.
5.Espere unos minutos y observe cómo el dispositivo se enciende como si acabara de ser sacado de su caja por primera vez.
Day 84 : Happy Valentine's Day
Tags: hiphop, code, coding, lifelongdev
Published: 2020-02-14 23:30:12

_liner notes_:
- Professional : Today went by really quick. Had some meetings and then it was the end of the day. haha Fit in some coding in there somewhere.

- Personal : Going through a lot of tracks for tomorrow's radio show. Did my laundry. Still got to iron. A lot to do. I recorded a video of my thoughts on Flashback Conference that happened earlier this week.
{% youtube kU5fuOLseLM %}

![Desert of Ica, Peru](https://dev-to-uploads.s3.amazonaws.com/i/aaxp45joax71o4yseer0.png)

Keeping it short. Got a lot to do in a short amount of time.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube b5HyMZdrNLY %}
Apakah di dev.to ada tulisan berbahasa Indonesia?
Tags: dev, indonesia
Published: 2020-02-14 23:21:38

---
title: Apakah di dev.to ada tulisan berbahasa Indonesia?
published: true
description: Aku pengguna baru Dev
tags: dev, Indonesia
---

Hey, aku pengguna baru di sini. Jadi, aku nggak tau apakah ada tulisan berbahasa Indonesia di sini. Rata-rata sih berbahasa Inggris. Aku menikmatinya aja sih. Tapi, siapa tau ada yang tulisan berbahasa Indonesia.
An Open Letter to my Readers and Followers – Thanks ️
Tags: developer, life, letter, readers
Published: 2020-02-14 23:16:50

Dear reader and follower,

I don’t know where you are now, but I have the luck to reach you thanks to this platform, our connections are powerful.

Probably for some of you, today is a normal day. However, for the rest is valentine’s day. A special day where we have the opportunity to express our affection and appreciation to our loved ones and friends. I already did it!


However, in this opportunity, being honest and frank with you, knowing your important value in my growth as a human being and developer. I just wanted to give you a bunch of thanks for being part of my story. Thanks for staying and deciding to travel with me along the way. Believe it or not, every letter, every word, every paragraph, every single piece read, makes us stronger and better at the same time.

> I am not different than you, I am an avid reader and follower too

Just like you, I am a hungry reader. I am an avid reader. I follow people who have de ability to inspire me and become a new version of myself with their pieces or videos. You have caused that I become an obsessive reader. The more pieces I read the better I become. And you are the like too. Reading makes us more conscious and better thinkers. I am learning from others because this world will not be better in another way around. I hope you are learning something from pieces, no matter if it is a big lesson, a refresh f something, or just a small lesson. I bet to say at some point you will remember these words.

> If you want to go fast, go alone if you want to go far, go together

I am so lucky that you are reading this humble letter now. Also, I am grateful you have taken to spend your priceless time to read any piece I have published before as well as for staying tuned for every next piece that will come out. That simply is awesome and it has no price!

 

I don’t have any intention to go fast on my journey. One day at a time is enough to be alive. However, my voyage is more fun if you travel with me. Together will arrive at a better port. You and I are growing and learning at the same time.

So, please accept my sincerest thanks for your support. Thanks for being part of this story. Earlier than later I bet I will be reading a similar letter from you.



***Feel free to reach on [my blog](www.mullinstack.com) and [Medium](https://medium.com/@blarz)***
Spinal Tap Case algorithm
Tags: replit, node
Published: 2020-02-14 23:06:57

---
title: Spinal Tap Case algorithm
published: true
tags: replit, nodejs
---

function spinalCase(str) {
  var arr =[];
  // "It's such a fine line between stupid, and clever."
  var y = /Allthe/gi; 
  var z = /_/gi; 
  var p = /thisIsSpinalTap/gi;
  for(let i=0; i< str.length; i++){
    var args = str.replace(y, "all the").replace(z, "-").replace(p, "this Is Spinal Tap"); 
  arr =  args.split(" ").join('-').toLowerCase();
  } 
  // --David St. Hubbins
  console.log(arr) 
  return arr;
}

spinalCase('thisIsSpinalTap');
spinalCase('The_Andy_Griffith_Show');
spinalCase('AllThe-small Things');
spinalCase('This Is Spinal Tap');
spinalCase('Teletubbies say Eh-oh');

{% replit @oscarhernandez6/Spinal-tap-Case %}
blazer server on IIS
Tags: blazor, help
Published: 2020-02-14 23:04:00

---
title: blazer server on IIS
published: true
description: blazer server on IIS
tags: #blazor #help
---

I need some help trying to set up blazer server side up on my IIS, which I have done.  It’s going to be an intranet page, I can access it but I get the this site is not secure and have to click the go to this page anyway.  What do you have to do?
How to use git cherry-pick
Tags: git
Published: 2021-02-03 09:40:43

---
title: How to use git cherry-pick
published: true
date: 2020-02-14 22:26:00 UTC
tags: git
canonical_url: https://dberri.com/how-to-use
---

This command is extremely useful when you need only one or few commits from one branch in another branch, but don't want or cannot `merge`.

Let's say that in your application you use the branch `main` to deploy to production and develop new code in another branch, say `dev`. You implement a few features, but realize one of them needs to be merged to `main` soon and cannot wait for you to finish whatever you were developing in the `dev` branch.

You can use the following git commands:

```sh
# Find and copy the commit hash that you want to send to another branch
git log

# change to the branch where this commit is needed
git checkout <branch-name>

# execute the cherry pick using the hash you copied earlier
git cherry-pick <commit-hash>
```

If there are any conflicts, resolve them and commit the new code. Done.
Первый код
Tags: codepen
Published: 2020-02-14 22:13:28

<h2>Что такое нейросеть</h2>
<p> Грубо говоря, это сложная программа, состоящая из многих программ поменьше, которая может самостоятельно учиться разным вещам. Скажем, вы 50 раз показываете ей, как собирать пазлы c Белоснежкой, а новый, 51-й пазл, она собирает сама. Примерно так же устроено и творчество нейросетей.</p>
<p>Недавно, например, нейросеть <a href="https://meduza.io/shapito/2016/06/28/neyronnaya-oborona-robot-napisal-teksty-pesen-pod-egora-letova">научилась</a> писать песни в стиле Егора Летова. Программа проанализировала корпус текстов «Гражданской обороны», выделила закономерности и на их основе составила собственные произведения. Подробнее о нейросетях можно почитать в наших карточках.</p>
<h2>Дорога</h2>
<p>Вечером второго дня я свернул в деревню Мшага под Великим Новгородом. Там я тоже нашёл заброшенный дом. Правда, местные жители пытались отговорить меня от того, чтобы ночевать в нём — потому что дом обрушивается. Но я не послушался и всё равно там спал. Вечером перед сном ко мне пришла женщина из деревни и принесла мне еду — гречку с котлетами, огурцы и помидоры. Я поел, почистил кровать, которая там стояла, постелил на неё спальный мешок и заснул.</p>
<blockquote> Вдоль трассы М10 очень много мёртвых или полумёртвых деревень, где очень легко найти пустующий дом для ночлега</blockquote>
<p>После того как я проехал Великий Новгород, дожди закончились, началась жара. На третий день я сильно сгорел и каждый день сгорал ещё сильнее — солнце припекало по свежим ожогам. Впрочем, к концу путешествия я к солнцу совсем привык.</p>
<h1>Источники и гейзеры Камчатки</h1>
<h3>Поселок Малки</h3>
<img src="https://netology-code.github.io/wm-homeworks/img/malki.jpg" alt="Поселок Малки">
<p>Малки – поселок в 132 км от Петропавловска-Камчатского. По местный меркам, далековато, поэтому если уж ехать, то, как минимум, на пару дней. А ехать, конечно, стоит. Малки – настоящий местный спа с горячими источниками посреди потрясающей красивой дикой природы.</p>
<h3>Налычевская долина</h3> 
<img src="https://netology-code.github.io/wm-homeworks/img/nalichevo.jpg" alt="Налычевская долина">
<p> Налычевская долина — народное название природного парка «Налычево». Со всех сторон она окружена вулканами, которые защищают долину от сильного ветра. В сезон здесь очень много грибов и ягод и погода стоит очень теплая, но я особенно люблю Налычевскую долину зимой.</p>
<h3>Паратунка Поселок</h3>
<img src="https://netology-code.github.io/wm-homeworks/img/paratunka.jpg" alt="Паратунка">
<p> Паратунка – санаторно-курортная зона с малоосвоенным туристско-рекреационным потенциалом. Паратунка славится своими термальными источниками, лечебной грязью, и прочими бальнеологическими возможностями!</p>
Wizar devlog 04: circular menu for React Native
Published: 2020-02-14 21:58:11

Not big advancements this week. I have integrated the circular menu in Wizar and began to convert it for React Native to prepare the next Release of [Sproutch UI](https://github.com/dagatsoin/sproutch/tree/release/0.0.4)

Here the result so far. Pretty like the web version but remains some kirks to fix, as the delay of the longtouch.

![Circular menu for React Native](https://i.imgur.com/MTKJvT0.gif)
golang switch
Tags: go, beginners
Published: 2020-02-14 20:50:28

If you want to evaluate cases in the <a href="https://golang.org">Go</a> programming language, you can use the switch statement. Like normal program execution, a switch statement is evaluated from top to bottom. 

Instead of having a long list of <a href="https://golangr.com/if/">if statements</a>, a switch statement provides much cleaner code.

## Switch example

The program below demonstrates the use of a switch statement. The switch statement exists in some other languages like C.

```go
package main

import (
	"fmt"
)

func main() {
        x := 3

        switch x {
	        case 0:
     		    fmt.Println("zero")
	        case 1:
     		    fmt.Println("one")
	        case 2:
     		    fmt.Println("two")	           
	        case 3:
     		    fmt.Println("tres")
        }
}
```

This outputs 'tres' because x is equal to 3. Instead of having a bulk of if statements you can use this.

The above program may not make sense, because we use a predefined condition. What if you you get it with keyboard input?

But instead of normal <a href="https://golangr.com/keyboard-input/">keyboard input</a>, you need integer input. You can scan an integer like this:

```go
fmt.Print("Enter x: ")
in := bufio.NewScanner(os.Stdin)
in.Scan()
x,_ := strconv.Atoi(in.Text())
```

So the switch statement with keyboard input gives:

```go
package main

import (
	"fmt"
	"bufio"
	"os"
	"strconv"
)

func main() {
        fmt.Print("Enter x: ")
        in := bufio.NewScanner(os.Stdin)
        in.Scan()
        x,_ := strconv.Atoi(in.Text())

        switch x {
	        case 0:
     		    fmt.Println("zero")
	        case 1:
     		    fmt.Println("one")
	        case 2:
     		    fmt.Println("two")	           
	        case 3:
     		    fmt.Println("tres")
        }
}
```
OOWLON 2020 Developer Code Cards 
Tags: codecard, epaper, iot, liveforthecode
Published: 2020-02-14 20:50:22

I think I am becoming obsessed with the Oracle Developer Code Card  - and I know what i will be doing this entire rainy weekend - lets see if I can get from NoCode, to GeekOut and reach SuperNerd level

`#LivefortheCode` `#e-paper`

* https://developer.oracle.com/codecard/
* https://community.oracle.com/community/groundbreakers/oracle-code-card
* https://learncodeshare.net/2019/09/24/you-went-to-oracle-open-world-19-and-got-a-code-card-now-what/
* https://github.com/cameronsenese/codecard
A developer's brain when starting a new position
Tags: career
Published: 2020-02-14 20:48:58

<a href="https://www.grantwatson.app/posts/starting-new-position" target="_blank">View Original Post</a>

<h1>Picture it, Sicily, 1922</h1><p>There comes a time in every person's life, not just developers and engineers, where we start a new position, at a new company or firm, and it can be nerve wrecking. Not from anxiety of going to a bad place, but the knowledge of the unknown. The knowledge of needing to go through the routine of finding a new routine in your new position.</p><hr/><center><em>And sometimes that alone is scary!</em></center><hr/><p>This Friday, Valentine's of 2020, will be my last Friday I share at my current desk for my current company, or parent company (because I am on a contract). And this following week, I start a new gig, which is catapulting me into the arena of play that I have been dreaming about doing ever since I started feeling comfortable with my coding skills.</p><p>You see, when I graduated in 2018 from Middle Georgia State University, I had the idea, deep in the catacombs of my mind, that one day, I would be able to own my own business. I just needed to put in a bit of work to save up, to build up my skills and my network, and maybe, <em>soon</em>, I would be running a successful freelance operation for myself. I am still in the process of gathering a heftier network, and bettering my skills as each day passes. But starting next week, I will be one step closer to managing myself as a freelancer.</p><p>You see, next week, I start as a remote developer for one company, and there are many more hopeful clients to come in the future. This is a big step for me, being this is really my first big win. At the same time, I am nervous, because I am going out on my own now. Starting a new adventure in a realm that is foggy to me. That idea brings about nervousness and anxiety, as well as excitement and happiness. I am taking the quote from MLK Jr. to heart:</p><blockquote>If you can't fly then run, if you can't run then walk, if you can't walk then crawl, but whatever you do you have to keep moving forward.</blockquote>
Use dot syntax to access dictionary key - Python Tips
Tags: python
Published: 2020-02-14 20:46:58

We can create our own class to use the dot syntax to access a dictionary's keys.

```python
class DictX(dict):
    def __getattr__(self, key):
        try:
            return self[key]
        except KeyError as k:
            raise AttributeError(k)

    def __setattr__(self, key, value):
        self[key] = value

    def __delattr__(self, key):
        try:
            del self[key]
        except KeyError as k:
            raise AttributeError(k)

    def __repr__(self):
        return '<DictX ' + dict.__repr__(self) + '>'

```

Our class `DictX` here inherit Python's builtin `dict`.

Now use it we just need to wrap a native dictionary with this `DictX` class:

```python
data = DictX({
    "name": "bo"
})

# use dot to get
print(data.name)
print(data["name"])

# use dot to set
data.state = "NY"
print(data.state)
print(data["state"])

# use dot to delete
del data.state
print(data)
```

Printed result:
```
bo
bo
NY
NY
<DictX {'name': 'bo'}>
```
OOWLON 2020 wrap up
Tags: oracle, edu, dev
Published: 2020-02-14 20:38:19

OK I admit drank too much oracle/illycoffee coolaid and ate too many mysql cupcakes 

so lets just wrap up what else i discovered at OOWLON 2020

* [Oracle GNU/Linux for ARM / Raspberry Pi](https://blogs.oracle.com/linux/announcing-the-general-availability-of-oracle-linux-7-for-arm)
* [Oracle Java for ARM / Raspberry Pi](https://www.oracle.com/java/technologies/javase-jdk7-arm-downloads.html)
* [Oracle Blockchain Platform](https://www.oracle.com/blockchain/)
* [Oracle Developer Code Card #LivefortheCode](https://developer.oracle.com/codecard/)
* [Oracle Education](https://academy.oracle.com/en/oa-web-overview.html)

NOTE : *Code Cards are available on a first-come basis at Oracle OpenWorld events to attendees who sign up for an Oracle Cloud trial account.*

Watch OVER 300 OOWLON sessions here
* https://events.rainfocus.com/widget/oracle/owlonglobal2020/cataloglondonow20?

and find YOUR nearest OOW here
* https://www.oracle.com/openworld/global/
Meme Competition - Judges and Contributors
Tags: twilio, sms, memes, sideprojects
Published: 2020-02-14 20:30:40

I was playing around with a way to find out what the funniest memes are, and who the funniest meme contributors are. Also trying to find a way to distribute everything via Twilio SMS. Makes it easy for anyone to join in the fun.

Text "Judge" to 385-217-9272 To sign up as a meme judge.

Sign up as a contributor on thememecity.com

Visit thememecity.com to see the best memes, and who the best contributors are!

Please give me any feedback :) yes I know it's not pretty :\

--Brett
ActiveRecord: Some Quick Tips
Published: 2020-02-14 19:54:55

---
title: ActiveRecord: Some Quick Tips
published: true
description: A journey in learning ActiveRecord
tags: 
---

The rules:
Base classes are memory objects
Migration classes are what's stored in the database
They only exist in conjunction because of ActiveRecord magic

A short and sweet background on ActiveRecord concepts. ActiveRecord::Base classes hold the object representation that will be held in memory. ActiveRecord::Migration classes hold how the object is represented in the database. Understanding these things is what finally made me stop wanting to throw my laptop across the room when using ActiveRecord.

Any time you have something that you don't care if it gets lost when you save it, store it in a base file. If you don't want to lose it when it's restored then make sure there's a variable for it in the database.