256 Kilobytes

Home - Latest Content

Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply Models and functions from the base Laravel code should be located in a subdirectory of the 'vendor' folder. Using the Linux terminal to recu... August R. Garcia,

Models and functions from...

Sun, 02 Dec 2018 03:48:46 -0800 8 months ago
🗨
1
🐏
0
👁
90
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply Have seen a number of people recommend HTML Purifier:http://htmlpurifier.org/You might also look into PHP's strip_tags() function:http://php.net/... August R. Garcia,

Have seen a number of peo...

Sun, 02 Dec 2018 03:48:45 -0800 8 months ago
🗨
1
🐏
0
👁
165
Profile Photo - Some Guy

How to get word count of a cell using Google Sheets?

Answers in Spreadsheets | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:44 -0800

Profile Photo - August R. Garcia

Last Reply Can be done with:=COUNTA(SPLIT(A2, " "))https://www.techjunkie.com/word-count-google-sheets/Seems to returns 1 on empty cells -- adjustment... August R. Garcia,

Can be done with:=COUNTA(...

Sun, 02 Dec 2018 03:48:43 -0800 8 months ago
🗨
1
🐏
0
👁
86
Profile Photo - Some Guy

[Laravel] If not on a certain page redirect to that page?

Answers in Frameworks | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:43 -0800

Profile Photo - August R. Garcia

Last Reply Something along these lines should work for your purposes:if (Request::path() != "posts/some-post") return redirect('/posts/some-post&... August R. Garcia,

Something along these lin...

Sun, 02 Dec 2018 03:48:42 -0800 8 months ago
🗨
1
🐏
0
👁
93
Profile Photo - Some Guy

[PHP]/JS] Pass a PHP array to a JavaScript function?

Answers in Server-Side | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:42 -0800

Profile Photo - August R. Garcia

Last Reply The json_encode() function can do this. Ex:<script> insert_chart( 'pie_users_by_account_type' , <?= json_encode($arr); ?>, &#03... August R. Garcia,

The json_encode() functio...

Sun, 02 Dec 2018 03:48:41 -0800 8 months ago
🗨
1
🐏
0
👁
95
Profile Photo - Some Guy

What is the default font family in HTML?

Answers in Style and Layout | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:40 -0800

Profile Photo - August R. Garcia

Last Reply It depends on the browser that you're using.More information:https://www.granneman.com/webdev/coding/css/fonts-and-formatting/web-browser-font-de... August R. Garcia,

It depends on the browser...

Sun, 02 Dec 2018 03:48:39 -0800 8 months ago
🗨
1
🐏
0
👁
81
Profile Photo - Some Guy

When will HTML6 and/or CSS4 be announced?

Answers in Style and Layout | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:38 -0800

Profile Photo - August R. Garcia

Last Reply The answer is "In a long time or possibly never." The standards are more likely to be incrementally updated. Web development standards and t... August R. Garcia,

The answer is "In a...

Sun, 02 Dec 2018 03:48:37 -0800 8 months ago
🗨
1
🐏
0
👁
72
Profile Photo - Some Guy

Is display:table bad practice?

Forum in Style and Layout | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:37 -0800

Profile Photo - August R. Garcia

Last Reply Display:table can be changed where needed, which solves [one of] the largest problem[s] related to using table elements for layout/design. August R. Garcia,

Display:table can be chan...

Sun, 02 Dec 2018 03:48:36 -0800 8 months ago
🗨
1
🐏
0
👁
105
Profile Photo - Some Guy

In web.PHP line 23: The use statement with non-compound name 'Request' has no effect

Answers in Frameworks | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:36 -0800 | Last update 8 months agoMon, 03 Dec 2018 05:16:39 -0800

Profile Photo - August R. Garcia

Last Reply This is a bug that I ran into while testing a few things in the routes/web.PHP file. I had included the line: <?php use Request; While--... August R. Garcia,

This is a bug that I ran...

Sun, 02 Dec 2018 03:48:35 -0800 8 months ago
🗨
1
🐏
0
👁
114
Profile Photo - Some Guy

How to set up a Favicon for a site that uses Laravel?

Answers in Frameworks | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:34 -0800

Profile Photo - August R. Garcia

Last Reply This post covers how to set a favicon in Laravel: http://blog.stickyrice.net/archives/2014/how-to-change-your-laravel-site-favicon/ You mi... August R. Garcia,

This post covers how to s...

Sun, 02 Dec 2018 03:48:33 -0800 8 months ago
🗨
1
🐏
0
👁
85
Profile Photo - Some Guy

How to get the first 20 words from a string in Laravel?

Answers in Frameworks | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:31 -0800

Profile Photo - August R. Garcia

Last Reply The function you're looking for is str_limit(). https://Laravel-news.com/str_limit https://Laravel.com/docs/5.7/helpers#method-str-limit... August R. Garcia,

The function you're l...

Sun, 02 Dec 2018 03:48:30 -0800 8 months ago
🗨
1
🐏
0
👁
90
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply This is likely/generally related to the box-sizing property. One way to handle this is to make a CSS class like the following: .box-border-fix {... August R. Garcia,

This is likely/generally...

Sun, 02 Dec 2018 03:48:28 -0800 8 months ago
🗨
1
🐏
0
👁
75
Profile Photo - Some Guy

How to check "if classlist contains" using JavaScript

Answers in Client-Side | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:27 -0800

Profile Photo - August R. Garcia

Last Reply var c_menus = document.getElementsByClassName("c_menu");for (var iii = 0; iii < c_menu.length; ++iii) { c_menu[iii].addEventListe... August R. Garcia,

var c_menus = document.ge...

Sun, 02 Dec 2018 03:48:26 -0800 8 months ago
🗨
1
🐏
0
👁
172
Profile Photo - Some Guy

Does PHP have a shorthand for IF statements?

Answers in Server-Side | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:26 -0800

Profile Photo - August R. Garcia

Last Reply Yes. Example: <?php $t = ($user->is_staff) ? $user->name : FALSE; Should be covered in the PHP documentation: http://PHP.net/... August R. Garcia,

Yes. Example:

Sun, 02 Dec 2018 03:48:25 -0800 8 months ago
🗨
1
🐏
0
👁
84
Profile Photo - Some Guy

[Halp] Remove non-alphanumeric in Google Sheets?

Answers in Spreadsheets | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:22 -0800

Profile Photo - August R. Garcia

Last Reply []Look into how to write a REGEX:https://regex101.com/More information on Google Sheets' REGEX functions here:https://support.google.com/docs/ans... August R. Garcia,

[]Look into how to write...

Sun, 02 Dec 2018 03:48:21 -0800 8 months ago
🗨
1
🐏
0
👁
100
Profile Photo - Some Guy

What is the difference between Bootstrap 3 and Bootstrap 4?

Answers in Style and Layout | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:21 -0800

Profile Photo - August R. Garcia

Last Reply Should be covered in the patch notes: http://blog.getbootstrap.com/2018/01/18/bootstrap-4/ Also, there are separate Bootstrap 3 and Bootst... August R. Garcia,

Should be covered in the...

Sun, 02 Dec 2018 03:48:20 -0800 8 months ago
🗨
1
🐏
0
👁
86
Profile Photo - Some Guy

[CKEditor] Input validation?

Answers in Client-Side | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:17 -0800

Profile Photo - August R. Garcia

Last Reply Input validation through CKEditor is limited to the client-side, which means that the actual validation would occur on the server-side through PHP/Lar... August R. Garcia,

Input validation through...

Sun, 02 Dec 2018 03:48:16 -0800 8 months ago
🗨
1
🐏
0
👁
156
Profile Photo - Some Guy

[CSS] How to pin a button/badge to corners of a div?

Answers in Style and Layout | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:15 -0800

Profile Photo - August R. Garcia

Last Reply Here is one option:* Give the parent div the pin-board class* Give the badge/button the pin class* Combine the top, right, bottom, and left classes to... August R. Garcia,

Here is one option:* Give...

Sun, 02 Dec 2018 03:48:14 -0800 8 months ago
🗨
1
🐏
0
👁
77
Profile Photo - Some Guy

Alternatives to Microsoft Access?

Forum in Spreadsheets | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:14 -0800 | Last update 7 months agoSun, 20 Jan 2019 05:50:12 -0800

Profile Photo - August R. Garcia

Last Reply There is Libreoffice Base: http://www.thefrugalcomputerguy.com/libreoffice-base/Overview.php https://www.libreoffice.org/discover/base/... August R. Garcia,

There is Libreoffice Base...

Sun, 02 Dec 2018 03:48:13 -0800 8 months ago
🗨
1
🐏
0
👁
104
Profile Photo - Some Guy

Should a CSS class have a dot or hash sign?

Answers in Style and Layout | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:13 -0800

Profile Photo - August R. Garcia

Last Reply The hash symbol is used to refer to the id property. Dots are used to refer to classes. In general, you want to use classes when applying styles.<s... August R. Garcia,

The hash symbol is used t...

Sun, 02 Dec 2018 03:48:12 -0800 8 months ago
🗨
1
🐏
0
👁
71
Profile Photo - Some Guy

[Laravel] Get current date and time in a way that is human redable?

Answers in Frameworks | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:09 -0800

Profile Photo - August R. Garcia

Last Reply The diffForHumans function is a function of the Carbon library, rather than part of Laravel itself. To get the current date and time in a similar huma... August R. Garcia,

The diffForHumans functio...

Sun, 02 Dec 2018 03:48:08 -0800 8 months ago
🗨
1
🐏
0
👁
82
Profile Photo - Some Guy

Why is it called DuckDuckGo?

Answers in Garbage Can | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:08 -0800

Profile Photo - August R. Garcia

Last Reply For reasons:> He said of the origin of the name: "Really it just popped in my head one day and I just liked it. It is certainly influenced/der... August R. Garcia,

For reasons:> He said...

Sun, 02 Dec 2018 03:48:07 -0800 8 months ago
🗨
1
🐏
0
👁
141
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply Something like this should work:# "First Last" --> Email=REGEXREPLACE(lower(A1)&RANDBETWEEN(1,999), "([^A-Za-z0-9]+)", &quo... August R. Garcia,

Something like this shoul...

Sun, 02 Dec 2018 03:48:05 -0800 8 months ago
🗨
1
🐏
0
👁
76
Profile Photo - Some Guy

Where is the base model class located for a Laravel installation?

Answers in Frameworks | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:04 -0800

Profile Photo - August R. Garcia

Last Reply The base class for Model objects is located at this path:vendor/Laravel/framework/src/Illuminate/Database/Eloquent/ModelAt the top of the child class... August R. Garcia,

The base class for Model...

Sun, 02 Dec 2018 03:48:03 -0800 8 months ago
🗨
1
🐏
0
👁
69
Profile Photo - Some Guy

[JavaScript/Google Apps Script] Remove newlines in a Script Editor function?

Answers in Spreadsheets | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:03 -0800 | Last update 8 months agoSun, 02 Dec 2018 12:55:36 -0800

Profile Photo - August R. Garcia

Last Reply The script editor is essentially the same as JavaScript. This line should work for most cases: t = t.replace(/ /gm,""); August R. Garcia,

The script editor is esse...

Sun, 02 Dec 2018 03:48:02 -0800 8 months ago
🗨
1
🐏
0
👁
84
Profile Photo - Some Guy

Can you unset a variable in PHP?

Answers in Server-Side | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:02 -0800 | Last update 8 months agoSun, 02 Dec 2018 13:27:57 -0800

Profile Photo - August R. Garcia

Last Reply Yes, you can unset a variable. The PHP function is actually called unset: http://PHP.net/manual/en/function.unset.PHP August R. Garcia,

Yes, you can unset a vari...

Sun, 02 Dec 2018 03:48:01 -0800 8 months ago
🗨
1
🐏
0
👁
93
Profile Photo - Some Guy

Connect Web FTP Dreamhost

Answers in Web Hosting | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:44:00 -0800 | Last update 8 months agoMon, 03 Dec 2018 05:24:24 -0800

Profile Photo - August R. Garcia

Last Reply You could build your own Web FTP client in the time it takes to figure out the correct login credentials. August R. Garcia,

You could build your own...

Sun, 02 Dec 2018 03:47:59 -0800 8 months ago
🗨
1
🐏
0
👁
119
Profile Photo - Some Guy

How to get random pivot table values with Laravel seeders?

Answers in Frameworks | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:43:59 -0800 | Last update 8 months agoMon, 03 Dec 2018 05:26:57 -0800

Profile Photo - August R. Garcia

Last Reply The 'sync' method solves for the issue with duplicates causing errors. A piece of code similar to this is relatively concise and works for gen... August R. Garcia,

The 'sync' method...

Sun, 02 Dec 2018 03:47:58 -0800 8 months ago
🗨
1
🐏
0
👁
116
Profile Photo - Some Guy

Is it possible to have the pagination generated in a Laravel controller link to an anchor?

Answers in Frameworks | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:43:57 -0800 | Last update 8 months agoMon, 03 Dec 2018 05:28:57 -0800

Profile Photo - August R. Garcia

Last Reply The 'fragment' method allows for an anchor to be specified. A function along these lines should work: <?php public function show($id)... August R. Garcia,

The 'fragment' me...

Sun, 02 Dec 2018 03:47:56 -0800 8 months ago
🗨
1
🐏
0
👁
79
Profile Photo - Some Guy

[JavaScript] addEventListener to all in array?

Answers in Client-Side | By Some Guy

Published 8 months agoSun, 02 Dec 2018 03:43:56 -0800 | Last update 8 months agoSun, 02 Dec 2018 12:36:38 -0800

Profile Photo - August R. Garcia

Last Reply Use this instead of a static variable. for (iii = 0; iii < arr.length; ++iii) arr[iii].addEventListener("click", function(e) { this.... August R. Garcia,

Use this instead of...

Sun, 02 Dec 2018 03:47:55 -0800 8 months ago
🗨
1
🐏
0
👁
144