256 Kilobytes

Home - Latest Content

Profile Photo - Some Guy

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

Answers in Web Development | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:45:00 -0800 | Last update 6 months agoMon, 03 Dec 2018 06:21:18 -0800

Profile Photo - August R. Garcia

Last Reply Generally 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 -0800 6 months ago
🗨
1
🐏
0
👁
70
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply Depends on what "best" means to you. Pulled this function from a recent project. Generates array of a length between 2 and 10. Adjust as... August R. Garcia,

Depends on what "bes...

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

[Laravel] Pluck Method

Answers in Frameworks | By Some Guy

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

Profile Photo - August R. Garcia

Last Reply Collections: https://Laravel.com/docs/5.7/collections#method-pluck Queries (See "Retrieving A List Of Column Values"): ht... August R. Garcia,

Collections:

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

Can you use Machine Learning to solve reCaptcha v2?

Forum in Machine Learning | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:44:51 -0800 | Last update 6 months agoMon, 03 Dec 2018 06:31:16 -0800

Profile Photo - August R. Garcia

Last Reply Yes, it's possible. And yes, most bots that can click pictures of cars will use machine learning in some way.Roughly six months, I wrote a reCapt... August R. Garcia,

Yes, it's possible....

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

Failed to listen on 127.0.0.1:8000 (reason: Address already in use)

Answers in Web Hosting | By Some Guy

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

Profile Photo - August R. Garcia

Last Reply When I've seen this occur in the past, it was after I attempted to close and reopen the localhost server after running into a page getting stuck... August R. Garcia,

When I've seen this...

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

[MySQL] SELECT LIKE statement that ignores case?

Answers in Databases | By Some Guy

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

Profile Photo - August R. Garcia

Last Reply Yes, it's possible. Here are two options: SELECT * FROM `some_table` WHERE some_field COLLATE UTF8_GENERAL_CI LIKE '%some string%'; SELECT... August R. Garcia,

Yes, it's possible. H...

Sun, 02 Dec 2018 03:48:47 -0800 6 months ago
🗨
1
🐏
0
👁
69
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 6 months ago
🗨
1
🐏
0
👁
68
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 6 months ago
🗨
1
🐏
0
👁
118
Profile Photo - Some Guy

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

Answers in Spreadsheets | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
67
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
63
Profile Photo - Some Guy

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

Answers in Server-Side | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
68
Profile Photo - Some Guy

What is the default font family in HTML?

Answers in Style and Layout | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
65
Profile Photo - Some Guy

When will HTML6 and/or CSS4 be announced?

Answers in Style and Layout | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
52
Profile Photo - Some Guy

Is display:table bad practice?

Forum in Style and Layout | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
77
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 6 months agoSun, 02 Dec 2018 03:44:36 -0800 | Last update 6 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 6 months ago
🗨
1
🐏
0
👁
80
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
59
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
69
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 6 months ago
🗨
1
🐏
0
👁
54
Profile Photo - Some Guy

How to check "if classlist contains" using JavaScript

Answers in Client-Side | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
129
Profile Photo - Some Guy

Does PHP have a shorthand for IF statements?

Answers in Server-Side | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
69
Profile Photo - Some Guy

[Halp] Remove non-alphanumeric in Google Sheets?

Answers in Spreadsheets | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
68
Profile Photo - Some Guy

What is the difference between Bootstrap 3 and Bootstrap 4?

Answers in Style and Layout | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
67
Profile Photo - Some Guy

[CKEditor] Input validation?

Answers in Client-Side | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
101
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 6 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 6 months ago
🗨
1
🐏
0
👁
55
Profile Photo - Some Guy

Alternatives to Microsoft Access?

Forum in Spreadsheets | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:44:14 -0800 | Last update 5 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 6 months ago
🗨
1
🐏
0
👁
72
Profile Photo - Some Guy

Should a CSS class have a dot or hash sign?

Answers in Style and Layout | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
53
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
64
Profile Photo - Some Guy

Why is it called DuckDuckGo?

Answers in Garbage Can | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
96
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 6 months ago
🗨
1
🐏
0
👁
55
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

Published 6 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 6 months ago
🗨
1
🐏
0
👁
56