256 Kilobytes

Type AnswersAsk and answer questions, if that is something that you want to do. Category All

Profile Photo - Some Guy

How to implement an algorithm to calculate Levenshtein distance in JavaScript?

Answers in Scripting and Automation | By Some Guy

Published | Last Update

Profile Photo - Hash Brown

Last ReplyHere you go: function levenshteinDistance (str1, str2) { if (!str1.length) return str2.length; if (!str2.length) return str1.length;... Hash Brown,

Here you go:

Mon, 03 Dec 2018 12:48:11 -08001 year ago1
🗨 1
🐏 0
👁 138
Profile Photo - Some Guy

[Laravel] How to make a custom 404 page?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyThe easiest way is to create a file at: /resources/views/errors/404.blade.php Replace 404 with the HTTP code that you want to make a custom... August R. Garcia,

The easiest way is to cre...

Mon, 03 Dec 2018 07:07:11 -08001 year ago1
🗨 1
🐏 0
👁 193
Profile Photo - Some Guy

CKEditor replace by class

Answers in Client-Side | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyYes, it can be done. Something along these lines works. Can remove the try/catch statement at your discretion. try { // Intialize CKEditor Ins... August R. Garcia,

Yes, it can be done. Some...

Mon, 03 Dec 2018 06:23:50 -08001 year ago1
🗨 1
🐏 0
👁 317
Profile Photo - Some Guy

Is there a way to create a CSS color scale based on a div's value/innerHTML content (or vanilla JS)?

Answers in Client-Side | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyAm fairly sure there is no built-in way to do this with pure CSS, but definitely doable with JS/jQuery. August R. Garcia,

Am fairly sure there is n...

Mon, 03 Dec 2018 06:15:47 -08001 year ago1
🗨 1
🐏 0
👁 301
Profile Photo - Some Guy

Pls halp: Google Sheets' REPT function uses same random number for all repetitions.

Answers in Spreadsheets | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyAm fairly sure that this is not supported in Google Sheets. It might be possible to emulate behavior for your specific use case through a... August R. Garcia,

Am fairly sure that this...

Sun, 02 Dec 2018 12:25:48 -08001 year ago1
🗨 1
🐏 0
👁 246
Profile Photo - Some Guy

How to pass an argument to Laravel middleware (called from a in controller's constructor)?

Answers in Frameworks | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last Reply<?php $this->middleware( 'some.middleware:Some Value' ); August R. Garcia,

Sun, 02 Dec 2018 03:49:52 -08001 year ago1
🗨 1
🐏 0
👁 184
Profile Photo - Some Guy

[CSS] How to make a text shadow on all sides?

Answers in Style and Layout | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySomething like this will work: text-shadow: 0px 0px 4px black; The important part is to make the first to values be 0. These two values ind... August R. Garcia,

Something like this will...

Sun, 02 Dec 2018 03:49:51 -08001 year ago1
🗨 1
🐏 0
👁 154
Profile Photo - Some Guy

[CSS] Display none but keep space?

Answers in Style and Layout | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyUse the CSS visibility property. This article from CSS-Tricks covers the property in more depth: https://CSS-tricks.com/almanac/properties/v/vi... August R. Garcia,

Use the CSS visibility pr...

Sun, 02 Dec 2018 03:49:49 -08001 year ago1
🗨 1
🐏 0
👁 170
Profile Photo - Some Guy

What is port 25565 used for? How to open it? Should I open it?

Answers in Web Hosting | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySeems like that port is most commonly/mainly used for Minecraft servers. You should be able to run a Minecraft server from any port (probably). The... August R. Garcia,

Seems like that port is m...

Sun, 02 Dec 2018 03:49:47 -08001 year ago1
🗨 1
🐏 0
👁 194
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyTo extract between brackets: =REGEXEXTRACT(B113, "[(.*?)]") Also, see this thread: https://www.256kilobytes.com/content/sh... August R. Garcia,

To extract between bracke...

Sun, 02 Dec 2018 03:49:46 -08001 year ago1
🗨 1
🐏 0
👁 222
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyAre you using the Blade templating engine? When you use the double curly brace syntax to insert content, it uses the PHP htmlspecialchars() functio... August R. Garcia,

Are you using the Blade t...

Sun, 02 Dec 2018 03:49:45 -08001 year ago1
🗨 1
🐏 0
👁 374
Profile Photo - Some Guy

[Google Sheets] Extract text from parentheses?

Answers in Spreadsheets | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySee this thread: https://www.256kilobytes.com/content/show/230/google-sheets-how-to-extract-text-between-parentheses-or-brackets You also... August R. Garcia,

See this thread:

Sun, 02 Dec 2018 03:49:42 -08001 year ago1
🗨 1
🐏 0
👁 182
Profile Photo - Some Guy

[Laravel] How to show a user's account creation date and time?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyTry:<p>Account created <em title="{{$user->created_at}}">{{$user->created_at->format('r')}}</em>.</p... August R. Garcia,

Try:<p>Account crea...

Sun, 02 Dec 2018 03:49:41 -08001 year ago1
🗨 1
🐏 0
👁 142
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyThis solution worked when I ran into this issue: 1. Open the AppServiceProvider.php file vim app/Providers/AppServiceProvider.php 2. Mak... August R. Garcia,

This solution worked when...

Sun, 02 Dec 2018 03:49:40 -08001 year ago1
🗨 1
🐏 0
👁 228
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyOne option is to use a for loop:<div class='user-list'> @for($iii=0; $iii < sizeof($users); ++$iii) <div class='a... August R. Garcia,

One option is to use a fo...

Sun, 02 Dec 2018 03:49:39 -08001 year ago1
🗨 1
🐏 0
👁 208
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyPosted this in a different thread. Should work here as well:One way to handle this is to make a CSS class like the following:.box-border-fix { box-... August R. Garcia,

Posted this in a differen...

Sun, 02 Dec 2018 03:49:29 -08001 year ago1
🗨 1
🐏 0
👁 154
Profile Photo - Some Guy

[Laravel] How to create a route that redirects to another page?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySomething along these lines will work, if this is what you're referring to: <?php Route::get('/test-redirect', function () { return redir... August R. Garcia,

Something along these lin...

Sun, 02 Dec 2018 03:49:28 -08001 year ago1
🗨 1
🐏 0
👁 167
Profile Photo - Some Guy

How to create drop down list in Google Sheets?

Answers in Spreadsheets | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySelect the range you want to add drop down menus to Right click --> Data Validation Set conditions/values August R. Garcia,

Sun, 02 Dec 2018 03:49:27 -08001 year ago1
🗨 1
🐏 0
👁 175
Profile Photo - Some Guy

How does the soft delete feature work for Laravel projects?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySoft deletes are marked with a timestamp at the time of deletion/"deletion," but the data remains in the database (and can be recovered/unde... August R. Garcia,

Soft deletes are marked w...

Sun, 02 Dec 2018 03:49:22 -08001 year ago1
🗨 1
🐏 0
👁 206
Profile Photo - Some Guy

How to generate a random IP address in Google Sheets?

Answers in Spreadsheets | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyThis formula works for a random IPv4 address:=RANDBETWEEN(1,255)&"."&RANDBETWEEN(1,255)&"."&RANDBETWEEN(1,255)&amp... August R. Garcia,

This formula works for a...

Sun, 02 Dec 2018 03:49:18 -08001 year ago1
🗨 1
🐏 0
👁 162
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyTry this: =char(COLUMN(A1)+64) August R. Garcia,

Try this:

Sun, 02 Dec 2018 03:49:17 -08001 year ago1
🗨 1
🐏 0
👁 155
Profile Photo - Some Guy

How to use font-family comic sans in CSS?

Answers in Style and Layout | By Some Guy

Published

Profile Photo - August R. Garcia

Last Replyfont-family: "Comic Sans MS", cursive, sans-serif; August R. Garcia,

font-family: "Comic...

Sun, 02 Dec 2018 03:49:15 -08001 year ago1
🗨 1
🐏 0
👁 164
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyCovered on Stack Exchange:https://stackoverflow.com/questions/28956911/how-can-i-access-my-Laravel-app-from-another-pcCommand is something along the l... August R. Garcia,

Covered on Stack Exchange...

Sun, 02 Dec 2018 03:49:14 -08001 year ago1
🗨 1
🐏 0
👁 157
Profile Photo - Some Guy

Laravel vs. Wordpress

Answers in Content-Management Systems | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyIf you're making a site that is primarily for blogging or posting articles WP is good. Otherwise--unless you are specifically tied to the WP CMS-... August R. Garcia,

If you're making a s...

Sun, 02 Dec 2018 03:49:13 -08001 year ago1
🗨 1
🐏 0
👁 248
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyMight be covered here: Google products use RE2 for regular expressions. Google Sheets supports RE2 except Unicode character class matching. Learn... August R. Garcia,

Might be covered here:

Sun, 02 Dec 2018 03:49:09 -08001 year ago1
🗨 1
🐏 0
👁 215
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last ReplyTo summarize Mozilla's answer, the short version is that display:flex is one-dimensional, whereas display:grid is two-dimensional.https://develop... August R. Garcia,

To summarize Mozilla&#039...

Sun, 02 Dec 2018 03:49:08 -08001 year ago1
🗨 1
🐏 0
👁 152
Profile Photo - Some Guy

What does @forelse do?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyFORELSE is a feature built into the Blade templating engine used to mean "if items exist, loop through then, otherwise show something else e... August R. Garcia,

FORELSE is a feature...

Sun, 02 Dec 2018 03:49:04 -08001 year ago1
🗨 1
🐏 0
👁 170
Profile Photo - Some Guy

Help with Laravel Faker: What can you actually do with Faker?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyMuch of Laravel's functionality is implemented by including other exisitng libraries. This is also true in the case of Faker, which is a PHP libra... August R. Garcia,

Much of Laravel's fun...

Sun, 02 Dec 2018 03:49:02 -08001 year ago1
🗨 1
🐏 0
👁 160
Profile Photo - Some Guy

[Laravel] How to run a seeder using Artisan?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyReplace "DataBaseSeeder" with the name of your seeder: php artisan db:seed --class=DatabaseSeeder https://Laravel.com/docs/5.7/seed... August R. Garcia,

Replace "DataBaseSee...

Sun, 02 Dec 2018 03:49:00 -08001 year ago1
🗨 1
🐏 0
👁 170
Profile Photo - Some Guy

Why is right-click-->view-source hard to read?

Answers in Web Development | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyGenerally because websites minify their code (remove whitespace) before sending the code to your browser. When you view the source directly, it is sti... August R. Garcia,

Generally because website...

Sun, 02 Dec 2018 03:48:59 -08001 year ago1
🗨 1
🐏 0
👁 197