teleren/devto huggingface dataset:
PHP Fatal error:  Uncaught ReflectionException: Class mailer does not exist
Tags: laravel
Published: 2020-06-17 05:08:45

---
title: PHP Fatal error:  Uncaught ReflectionException: Class mailer does not exist
published: true
description: Sorry. only japanese.
tags: laravel
//cover_image: https://direct_url_to_image.jpg
---

よくあるハマりどころ。大体は Facade の書き出しが失敗してたりするのが原因っぽい。

他の考えられるのは、classmap を作成時に全く関係ない箇所でエラーが出ているが `App\Exceptions\Handler` で地道なエラーメール通知をしてるので、 `Mail::` を使ってない？とかそこらへん。

## 確認箇所 その1 -- check point 1

file : `app/Exceptions/Handler.php`

If it send a email in `report' method, You do comment out it.

The Upgrading work and some error catch the report when the email facade does not compiling it.

## やってみること その1 -- try 1

`config/app.php` の `providers` に `Illuminate\Mail\MailServiceProvider::class` が抜けていないか確認

You check the `Illuminate\Mail\MailServiceProvider::class` in the `providers` at `config/app.php`.

## やってみること その2 -- try 2

`composer dumpautoload`

## やってみること その3 -- try 3

```
> rm -rf vendor && composer install
```

## やってみること その4 -- try 4

If exists `bootstrap/cache/compiled.php`, delete it.

```
> rm -f bootstrap/cache/compiled.php
```



## 参考

- [Stack overflow -- ReflectionException: Class mailer does not exist](https://stackoverflow.com/questions/54151821/reflectionexception-class-mailer-does-not-exist)
- [Stack overflow -- Laravel Class mailer does not exist](https://stackoverflow.com/questions/38503654/laravel-class-mailer-does-not-exist)
- [Class mailer does not exist when using ANY artisan command](https://stackoverflow.com/questions/55976631/class-mailer-does-not-exist-when-using-any-artisan-command)
- [Update to laravel 5.4, class Mailer does not exist](https://laracasts.com/discuss/channels/forge/update-to-laravel-54-class-mailer-does-not-exist)
Awesome hackathon prizes?
Tags: discuss, hackathon
Published: 2020-06-17 20:17:55

---
title: Awesome hackathon prizes?
published: true
description: 
tags: #discuss #hackathon
cover_image: https://p21.p4.n0.cdn.getcloudapp.com/items/E0uzny0E/Image%202020-06-17%20at%201.25.07%20PM.png?v=308f6c24bfd818eebfaae443a5268394
---

I’ve been to so many hackathons I can’t count anymore. When it comes to prizes, I thought I have seen them all¹ until I saw "Zneakers" in my Twitter feed yesterday. 😍

{% twitter 1272654699498336258 %}

My question to you is, what are some awesome hackathon prizes you’ve seen (or won)? 

1. Oculus Rifts Arduinos, shirts, socks, drones, etc.
HTML Clickable Image Alternative
Tags: html
Published: 2020-06-17 06:03:40

Yesterday we had a look at the [`HTML` `map` element](https://daily-dev-tips.com/posts/html-image-map/), and as mentioned, there might be a better solution nowadays.

Today we'll be looking at creating a very similar effect, but with cool hovers.

## HTML Structure

```html
<div class="container">
  <img
    width="467px"
    src="https://images.unsplash.com/photo-1491378630646-3440efa57c3b?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=934&q=80"
  />
  <a href="#sky" class="overlay overlay-sky"></a>
  <a href="#sea" class="overlay overlay-sea"></a>
  <a href="#sand" class="overlay overlay-sand"></a>
</div>
```

So what we are doing is creating a container div, with the image inside and our overlay areas. We are making three areas here to click on.

## CSS Structure

We are going to use `position: absolute` to position the area's correct. Therefore the container needs to be relative and inline.

```css
.container {
  position: relative;
  display: inline-block;
}
```

And then for the overlays the share the following `CSS`:

```css
.overlay {
  position: absolute;
  width: 100%;
  left: 0;
}
```

And then for the specific ones:

```css
.overlay-sky {
  height: 150px;
  top: 0;
}
.overlay-sea {
  height: 300px;
  top: 150px;
}
.overlay-sand {
  height: 255px;
  bottom: 0px;
}
```

And last we will add a very simple hover to demonstrate.

```css
.overlay:hover {
  background: rgba(0, 0, 0, 0.3);
}
```

View and play on this Codepen.

<p class="codepen" data-height="265" data-theme-id="dark" data-default-tab="html,result" data-user="rebelchris" data-slug-hash="yLeaagr" style="height: 265px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="HTML Clickable Image Alternative">
  <span>See the Pen <a href="https://codepen.io/rebelchris/pen/yLeaagr">
  HTML Clickable Image Alternative</a> by Chris Bongers (<a href="https://codepen.io/rebelchris">@rebelchris</a>)
  on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://static.codepen.io/assets/embed/ei.js"></script>

## Browser Support

So this can be supported by every browser! It might need some hacks in the old Internet Explorers.

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
My attempt at recreating AWS
Tags: html, javascript
Published: 2020-06-17 11:16:18

For the last 3 months or so, I have been making a new project that is a service- providing  (almost) the same services as Amazon Web Services (AWS).

Not releasing the name in this post yet.

Basically you navigate to https://pws-cluster-list.glitch.me and you'll be on our 'cluster' page, a set of open-source community-run web desktops. The whole service runs on glitch.com and has been a good thing to do.

Some help decoding the names:

- SR1 = Server: has applications designed for use with servers/WS (Due to SSH issues we will remove xTerm at some point)
- W2 = Write: Mainly for writing, with a PDF reader and text editor alongside other apps.
- C3 (beta) = This is kinda a first look at the new cluster software (AuoraOS 4), it has a configuration wizard, a welcome screen alongside other apps. I would leave this for a few days while we add more to it :)

-----------

They each have a Virtual File System and are regularly updated

I might take a break from cluster computing (let word spread) and start working on a database as a service- idk yet.

Cluster software  - OS.js (SR1/W2 clusters) auoraOS 4 (C3 clusters)*

*- update expected soon which will switch us to auoraOS, stay tuned! 

<b> self host our clusters, goto https://github.com/ProTech-IT-Solutions/PWS-server-cluster-temp ( published without configuration wizard )

Check the wiki for self hosting instructions! 

<small> visit ProTech IT Solutions website at https://ptuk.tk</small>
Hacktoberfest broke its promise
Tags: hacktoberfest, digitalocean
Published: 2020-06-17 09:34:57

It's almost a year from last Hacktoberfest, same as a many of my friends in Germany, we didn't receive for Hacktoberfest T-shirt of 2019, because their fund was limited! so when I tracked my shirt it comes to Germany but after 3 day return to US. and Now it was destroyed! I'm very frustrated now!
So I Have This New Idea
Tags: devjournal, womenintech, codenewbie
Published: 2020-06-17 09:57:58

_This post was originally published on June 17, 2020 on [my blog] (https://alexlsalt.github.io/blog)._

If you know me at all (and by 'know,' I mean that generously as in 'if you've read some of my blog posts'), you'll know that I love new ideas and sometimes can't contain them and then they end up bursting at the seams of my brain.

It's a fun thing to experience, but it can be overwhelming if I get overly existential about it.

Kind of like when people get sad when they think about the fact that they will literally *never* in their lives be able to hug *every* single puppy or kitten in the world, or be able to read *every* single book ever written, or meet *every* single individual worldwide who could potentially be an awesome fit as a friend...

It's kind of like that for me with ideas in my mind.

While I try my best to see them through, it just so happens that sometimes the idea has to pass through or by us before moving on to someone else who can perhaps better bring it to life (a paraphrased idea coming from Elizabeth Gilbert's Big Magic, which I recently read for the second time).

Anyway, as I was in the shower just now, I had an idea to develop a little web app to help me keep track of chores that need doing around my apartment.

Coincidentally, it's the same structure as I used for my [Wellbean project] (https://alexlsalt.github.io/wellbean/) in keeping track of contacting friends and loved ones. So maybe it's something I can spin up this weekend. We shall see... I'm excited about it! Hehehe.


Thanks for reading! [Now let's be friends over on Twitter >>] (https://twitter.com/alexlsaltt)
Neumorphism (aka neomorphism) : new trend in UI design
Tags: neumorphism, ux, webdesign
Published: 2020-06-17 10:43:49

---
title: Neumorphism (aka neomorphism) : new trend in UI design
published: true
date: 2020-06-17 10:40:00 UTC
tags: Neumorphism, UX, webdesign
canonical_url: https://www.ma-no.org/en/web-design/ui-ux-design/neumorphism-aka-neomorphism-new-trend-in-ui-design
---

This area, which arises from a basic human need, such as the urge to communicate, is constantly changing thanks to the advances of the technological era. Today, we invite you to reflect on the origin of this discipline and its future challenges.Graphic language has always been present throughout our lives as a way of representing reality. We've seen this ever since the caveman started painting the cave walls. His drawings were mostly hunting images made with materials such as charcoal, resin, blood and plants. While they used their hands or reeds as a tool to apply them on the wall.We… !

[Read all](https://www.ma-no.org/en/web-design/ui-ux-design/neumorphism-aka-neomorphism-new-trend-in-ui-design)
Noticeable technology changes related to racism
Published: 2020-06-17 15:07:33

It is a lot happening around recently. I couldn’t stop writing about it as each voice matters. It's time to come out of that mindset that existed and existing.

As I work in technology space, highlighting few significant tools who took noticeable steps supporting the cause. Some changes were years old and some are new.

Link to original article: https://www.linkedin.com/pulse/noticable-technology-changes-related-racism-ramesh-rajagopal/?trackingId=zr1VDUJuQNaV6DmBxcpxaw%3D%3D
Configure Emacs for Clojure
Published: 2020-06-17 15:15:43

# Basic configuration to start using Clojure with Emacs

## Create the init.el configuration file

Open a terminal and create a directory: *mkdir ~/emacs.d*
Enter the newly created directory: *cd emacs.d*
Create file: *touch init.el*

## Install MELPA repository

Editing file: *emacs init.el*

    (require 'package)
    (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
                        (not (gnutls-available-p))))
           (proto (if no-ssl "http" "https")))
      (when no-ssl (warn "\
    Your version of Emacs does not support SSL connections,
    which is unsafe because it allows man-in-the-middle attacks.
    There are two things you can do about this warning:
    1. Install an Emacs version that does support SSL and be safe.
    2. Remove this warning from your init file so you won't see it again."))
    (add-to-list 'package-archives (cons "melpa" (concat proto ://melpa.org/packages/")) t)
      ;; Comment/uncomment this line to enable MELPA Stable if  desired.  See `package-archive-priorities`
      ;; and `package-pinned-packages`. Most users will not need or want to do this.
      ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
      )
    (package-initialize)
With this code we have installed the MELPA repository, this repository contains many packages for expanding Emacs

## Install CIDER

CIDER is the Clojure(Script) Interactive Development Environment that Rocks!

    (use-package cider
      :ensure t)

Save the file *C-x C-s* close *C-x C-c* and restart Emacs

This is a basic configuration for using Clojure with Emacs
Day #7: Number of possible decodable messages
Tags: python, prolog, beginners
Published: 2020-06-17 15:31:23


  
  
Hello everyone.
Today is the Day 7 of the #100DaysOfCodeChallenge.
And it's a week!!!!
Received a problem previously asked by Facebook with a hard tag to it.
  

## The Question On Day #6:


Given the mapping a = 1, b = 2, ... z = 26, and an encoded message, count the number of ways it can be decoded.

For example, the message '111' would give 3, since it could be decoded as 'aaa', 'ka', and 'ak'.

You can assume that the messages are decodable. For example, '001' is not allowed.

  

## Algorithm

 - The algorithm is similar to the concept behind fibonacci series. For every increase in the value of n is fibonacci we added it to the n-1 sum.
 - Similarly, for every increase in the length of the message, we add a particular value to the number of possible ways, based on certain conditions.
 - Points to check:
	 - a 1-digit number is considered a message only if it is greater than 0, because a is represented by 1 according to the question.
	 - a 2-digit number is considered a message only if it has 2 in the ten's place and digit<7 in the one's place or 1 in ten's place and any digit in one's place.

## **Python Code**

{% gist https://gist.github.com/nmreddy1911/b68ce4c953a8ca458e70e18b04fce539.js %}

**Output**
    Number Of Ways: 3
# Visualiser
You can look into the visualiser to understand the BTS of the logic [here](http://pythontutor.com/visualize.html#code=message%20%3D%20%221212121%22%0Al%20%3D%20len%28message%29%0Aa%20%3D%201%0Ab%20%3D%201%0Ac%20%3D%200%0Afor%20i%20in%20range%282,%20l%2B1%29%3A%0A%20%20%20%20m1%3Dmessage%5Bi-1%5D%0A%20%20%20%20m2%3Dmessage%5Bi-2%5D%0A%20%20%20%20if%20i%20!%3D%202%3A%0A%20%20%20%20%20%20%20%20a%20%3D%20b%0A%20%20%20%20%20%20%20%20b%20%3D%20c%0A%20%20%20%20%20%20%20%20c%20%3D%200%0A%20%20%20%20if%20m1%20!%3D%20'0'%3A%0A%20%20%20%20%20%20%20%20c%20%3D%20b%0A%20%20%20%20if%20%28m2%20%3D%3D%20'1'%20or%20m2%20%3D%3D%20'2'%29%20and%20m1%20%3C%20'7'%3A%0A%20%20%20%20%20%20%20%20c%20%2B%3D%20a%0Aprint%28%22Number%20Of%20Ways%3A%22,%20c%29&cumulative=false&curInstr=46&heapPrimitives=nevernest&mode=display&origin=opt-frontend.js&py=3&rawInputLstJSON=%5B%5D&textReferences=false).

Feel free to reach out for any query clearance.

**Thanks and cheers:)**
Real World Learning
Tags: beginners, developer, learning
Published: 2020-06-18 17:46:59

#Overview
Learning new things is the key to success. But if you are waiting for a good time to launch yourself and keep learning till then, apparently you are going to lose a lot of great opportunities. Let's see how Learn and Stack in brain is way different from Learning By Doing. I'll try to emphasis on why learning by doing is better than learn and stack. This post is much useful for the new developer rather than old one.

#How you are learning things?
Are you one who learn and store data like HDD? Learning from courses and documentation for the purpose of learning new things and stacking them in mind is very popular among new developers. Are you one of them? Perhaps, you are learning new things which are cool and fun to learn. But, are you really making difference to your knowledge for good? Let's see further does it really worthful learning, learning, and learning all the way till job.  

You may be thinking that learning new things is good then why it is not strongly endorsed yet. Think of the time when things were started creating. When Larry Page and Sergey Brin created Google; they were not experts in dozens of languages. After Google was created and other new technologies came into scene they didn't go back to any course or college learning to learn them and make a pile of them in brain. They learned all the new technologies into action. Either by using in Google or by doing other projects. This is what learn by doing. Just doing the work using the technology by reading the documentation is great rather than just learning and stacking in the brain. This is wastage of time, as your learning growth will be slow by learning, learning, and learning. When you will try these things in action you might need some docs or reference to recall the stored material. 

#Conclusion 
Don't wait for the moment to start working on the things by learning bunch of languages and other technologies. Suppose, you started learning new framework of JavaScript. No doubt, you solved some basic practise assignments. What about real world problems? They are not as real as these tiny things. So, if you find an opportunity to do work on actual projects by freelancing or open-source contribution don't waste it assuming you are learning yet and way behind real world.
How to: Automate file creation with node's fs module
Tags: tutorial, webdev
Published: 2020-06-17 16:23:57

## TL;DR
Do you ever find yourself creating the same files over and over again and wish for a script to do the boring work for you without having to use a third-party library? 

## The story
I've been creating a lot of React components lately and wanted to find a way to automate file creation. Specifically, a script that could create a *ComponentName* folder containing the following files:
* `index.tsx`
* `styles.tsx` 

After doing some research, I found that [node's fs](https://nodejs.org/api/fs.html) module is able to meet my needs. Specifically, 

* `fs.mkdirSync(path)` synchronously creates a directory given a path (+ other options) 
* `fs.writeFileSync(filepath, content)` synchronously creates files in the given filepath and optionally fills them with content

## Step 1: Defining the file templates
```Javascript
// src/scaffold.js
const templates = {
  index: `// Comment to begin our index file`,
  styles: `// Comment to begin our styles file`,
};
```

## Step 2: Write functions to create the component folder and files

```Javascript
// src/scaffold.js
const fs = require("fs");
const args = process.argv.slice(2);

function createFolder(component) {
  const directory = `./src/components/${component}`;

  if (!fs.existsSync(directory)) {
    fs.mkdirSync(directory);
  }
}

function writeFile(component, type) {
  const filepath =`./src/components/${component}/${filename}.tsx`;

  fs.writeFile(filepath, templates[type], (err) => {
    if (err) throw err;
    console.log("Created file: ", filepath);
    return true;
  });
}

function generate(component) {
  createFolder(component);

  const fileTypes = ["index", "styles"];

  for (let type of fileTypes) {
    writeFile(component, type)
  }
}

generate(args[0]);
```
* `createFolder(component)` creates a folder named `component` if it does not exist in the specified path
* `writeFile(component, type)` creates files in the specified folder and fills them with content specified in `templates[type]`

## Step 3: Adding the script

Finally, add the following script to `package.json`
```javascript
 "scripts": {
   "component": "node scaffold.js"
 },
```
That's it! The magic command that is `yarn component <ComponentName>`. 

![freedom](https://media.giphy.com/media/L4OddMkP5JYEAjIe83/giphy.gif)

Let me know your thoughts in the comments below :point_down:
How to Verify Your Instagram Account ✅ in Just 4 Minutes (2020) | Instagram Blue Tick Account
Tags: instagram, socialaccount, instagramaccount
Published: 2020-06-17 17:44:49

Watch Here: https://www.youtube.com/watch?v=pUNVdRTenZc

In this video, you learn about how to verify your Instagram account ✅ in Just 4 Minutes | Instagram Blue Badge Account in 2020 | Genuine Process. In this video you are going to learn a practical work.

If You looking for the genuine process that how to apply for the Instagram official account watch this video till end.

You can also contact us for the process.

Also Check if watch to learn about Facebook Leads Ads

https://www.youtube.com/watch?v=kRJf5...

Subscribe Our Youtube Channel
https://www.youtube.com/channel/UCkWv...

Know more about Digitalmise:

Digitalmise is one of the Best Web Development and Digital Marketing company that helps you to build a strong online presence of your business. We have expertise in Website development, App Development, Ecommerce Optimisation, Search Engine Marketing, Facebook Marketing, Instagram Marketing, Linkedin Marketing, Twitter Marketing and other Social Media Channels.

We create this youtube channel to share our knowledge about digital marketing, social media, tip and tricks about SEO and advance seo. So subscribe our channel and turn on the notification.

Visit our official website: https://digitalmise.com

#Instagram #VerifyAccount #Verification #Bluetick
IsAnagram? - Quick Hack
Tags: python, useful, quickhack
Published: 2020-06-17 18:39:58

Hello folks,

Just sharing a quick hack to find out if two words are anagrams of each other or not.

```
def isAnagram(word,word2):
    return sorted(word.lower().strip().replace(" ","")) == sorted(word2.lower().replace(" ",""))
print(isAnagram("Dormitory","Dirty room"))
print(isAnagram("School master", "The classroom"))
```

This function returns a boolean output based on whether they're anagrams or not. 

Using sorted() to compare two words in an orderly manner to check their anagrammatic property & it just makes things a lot easier! :)

<ul>
<li>Added the "<code>.lower()</code>" to convert the uppercase to lowercase (if there's an upper case letter) and check since different letter cases impact the result.</li>

<li>Also, using "<code>.replace(" ","")</code>" to remove whitespaces.</li>
</ul>

<code>Code on</code> -- Cheers!

<i> Thanks to the brilliant comments, made some edits to change the logic from set() to sorted() to rule out false positives</i>
yaml quote escape
Tags: yaml
Published: 2020-06-18 01:14:55

> In double quoted strings if you need to include a literal double quote in your string you can escape it by prefixing it with a backslash \ (which you can in turn escape by itself). __In single quoted strings the single quote character can be escaped by prefixing it with another single quote, basically doubling it.__ Backslashes in single quoted strings do not need to be escaped.
[Easy]: Truncate a table and restart Sequences (Identity and cascade)
Tags: postgres, sql
Published: 2020-06-18 07:55:50

Sometimes you may have to delete or truncate your records in the table for your local or dev testing. Easy way is to do with the below command.

```
  delete from <table> where <condition> = <value> 
```

This Works!!!

But above command doesn't restart the sequences i.e; `IDENTITY` and `CASCADE` associated with table columns.

```
 TRUNCATE <table_name> RESTART IDENTITY CASCADE;
``` 

References:
[Stack Overflow](https://stackoverflow.com/questions/5342440/reset-auto-increment-counter-in-postgres)