256 Kilobytes

Web Development Answers

Type AnswersAsk and answer questions, if that is something that you want to do. Category Web DevelopmentContent about developing websites, web applications, and other similar projects.

Profile Photo - August R. Garcia

[Solved] Implementing an "Estimated Time to Crack" Notification for Registration Forms

Answers in Client-Side | By August R. Garcia

Published 2 days agoFri, 06 Dec 2019 15:14:05 -0800 | Last update 2 days agoFri, 06 Dec 2019 15:15:37 -0800

Profile Photo - August R. Garcia

Probably edit slightly for a cleaner UI<...

MoreProbably edit slightly for a cleaner UI Code and demo: Message Here  <form> <input id="test" type="text" /> <span i...
🗨
0
🐏
0
👁
14
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

E.g., a validation rule where "<...

MoreE.g., a validation rule where "<p>This is a&nbsp;post</p>" is counted as 14 characters instead of 26 characters. Anyway, here'...
🗨
0
🐏
0
👁
33
Profile Photo - Twostntle

How to remove "proudly powered by WordPress and buddypress"?

Answers in Web Development | By Twostntle

Published 8 months agoWed, 20 Mar 2019 01:25:39 -0700

Profile Photo - August R. Garcia

Last Reply TFW you like this thread so much that you visit it an average of at least six times per day: Top 20 IP addresses for this thread.... August R. Garcia,

TFW you like this thread...

Tue, 03 Dec 2019 13:29:03 -0800 5 days ago
🗨
4
🐏
1
👁
24,503
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply To make CKEditor required on the client side, adding a "required" attribute to the initial textarea will not work. Instead, some JavaScript is require... August R. Garcia,

To make CKEditor required...

Tue, 03 Dec 2019 13:08:46 -0800 5 days ago
🗨
1
🐏
0
👁
198
Profile Photo - Some Guy

Best way to conduct server-side validation with CKEditor?

Answers in Web Development | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:24:05 -0800

Profile Photo - August R. Garcia

Last Reply While the exact steps vary based on your server-side programming language, here's the short version. 1. How to Get Data from CKEditor in PHP (Or Ot... August R. Garcia,

While the exact steps var...

Tue, 03 Dec 2019 13:05:21 -0800 5 days ago
🗨
1
🐏
0
👁
115
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

Last Reply Oh shit, that's probably even useful in some scenarios, specifically for resolving named hex colors like "red" and so on. Also, it will cycle between... August R. Garcia,

Oh shit, that's probably...

Mon, 02 Dec 2019 01:36:23 -0800 1 week ago
🗨
3
🐏
1
👁
30
Profile Photo - August R. Garcia

[Solved] Enabling Shades/Tints of All Colors in CKEditor

Answers in Client-Side | By August R. Garcia

Published 1 week agoMon, 02 Dec 2019 01:27:11 -0800 | Last update 5 days agoTue, 03 Dec 2019 12:53:14 -0800

Profile Photo - August R. Garcia

There is a CKEditor plugin called Color...

MoreThere is a CKEditor plugin called Color Button that can be used to add buttons to CKEditor instances to change font colors and background colors....
🗨
0
🐏
0
👁
18
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

Code:

MoreCode: <form> <button class="btn" onclick="doubleclick_confirm_submit(event, this);" type="button">Ban/Unban</button> <...
🗨
0
🐏
1
👁
31
Profile Photo - August R. Garcia

[Solved] CSS Effect for Custom File Input on Dragover/DragEnter

Answers in Client-Side | By August R. Garcia

Published 1 week agoTue, 26 Nov 2019 11:27:39 -0800

Profile Photo - August R. Garcia

Easiest solution I found was to add a cu...

MoreEasiest solution I found was to add a custom attribute based on ondrag[something] events and to then use a CSS attribute selector: <script>...
🗨
0
🐏
1
👁
22
Profile Photo - August R. Garcia

[Solved] Automatic Copyright Footer Dates in Laravel/Basically Vanilla PHP

Answers in Server-Side | By August R. Garcia

Published 1 week agoMon, 25 Nov 2019 15:05:52 -0800 | Last update 1 week agoMon, 25 Nov 2019 16:36:40 -0800

Profile Photo - August R. Garcia

The only part about this that isn't vani...

MoreThe only part about this that isn't vanilla PHP is using {{ $var }} as shorthand for <?= htmlspecialchars($var); ?>. <style> .footer...
🗨
0
🐏
0
👁
34
Profile Photo - August R. Garcia

[Solved] Favicon.ico Files not Caching on Chrome

Answers in Server-Side | By August R. Garcia

Published 2 weeks agoTue, 19 Nov 2019 18:52:51 -0800 | Last update 2 weeks agoTue, 19 Nov 2019 19:45:31 -0800

Profile Photo - August R. Garcia

Slash "solved."Truly a quality hack.

MoreAs discussed previously, there are a fair number of dumbass things that can be done with base64 encoding that are occasionally so dumb that they even...
🗨
0
🐏
1
👁
54
Profile Photo - August R. Garcia

[Solved] PHP/Laravel - Cache Query for Current Request/Pageload

Answers in Server-Side | By August R. Garcia

Published 4 weeks agoSat, 09 Nov 2019 12:03:54 -0800

Profile Photo - August R. Garcia

TL;DR: Use $GLOBALS

MoreThe Laravel caching functions seem to not have specific built-in functionality to cache a query for only the current pageload, but it can easily be do...
🗨
0
🐏
0
👁
79
Profile Photo - Dulybmx

What is the cheapest dedicated server (quality not super important)?

Answers in Web Hosting | By Dulybmx

Published 8 months agoWed, 20 Mar 2019 01:07:30 -0700

Profile Photo - August R. Garcia

Last Reply Obligatory shill for our Dreamhost affiliate article: https://www.256kilobytes.com/content/show/4478/dreamhost-review-faq-and-affiliate-program... August R. Garcia,

Obligatory shill for our...

Mon, 04 Nov 2019 06:03:02 -0800 1 month ago
🗨
3
🐏
0
👁
165
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

Call the currentPage and lastPage method...

MoreIncorrect: <h1>Page {{ $paginator->currentPage }} of {{ $paginator->lastPage }}</h1> Correct: <h1>Page {{ $pagina...
🗨
0
🐏
0
👁
101
Profile Photo - August R. Garcia

[Solved] Use CSS to show a child element when the parent element on parent element :hover

Answers in Style and Layout | By August R. Garcia

Published 1 month agoThu, 24 Oct 2019 18:36:54 -0700 | Last update 1 month agoThu, 24 Oct 2019 18:37:32 -0700

Profile Photo - August R. Garcia

Title

MoreTitle <style> nav#demo { background-color:beige; } nav#demo:hover { background-color:teal ; } nav#demo ul { display:none ;...
🗨
0
🐏
0
👁
76
Profile Photo - August R. Garcia

[Solved] Automatically apply color scale to HTML table with JavaScript

Answers in Client-Side | By August R. Garcia

Published 2 months agoTue, 08 Oct 2019 18:56:14 -0700 | Last update 2 months agoTue, 08 Oct 2019 19:08:22 -0700

Profile Photo - August R. Garcia

*Basically solved

MoreHere's some code. However, this code is fairly slow on large tables (adds roughly 50-150 milliseconds for 190 rows of four columns). Probably usu...
🗨
0
🐏
0
👁
79
Profile Photo - GulfWar

Dedicated server hosting for ARK: Survival Evolved?

Answers in Web Hosting | By GulfWar

Published 8 months agoTue, 19 Mar 2019 05:44:22 -0700

Profile Photo - Gamer

Last Reply FOrget about dedicated server, cost too much and requiers a lot of time. Buy a pre configured ark server at spam link removed with ddos protectio... Gamer,

FOrget about dedicated se...

Tue, 03 Sep 2019 02:26:39 -0700 3 months ago
🗨
2
🐏
0
👁
209
Profile Photo - August R. Garcia

[Solved] Adding an "active" class to <nav>/navigation menus in Laravel

Answers in Client-Side | By August R. Garcia

Published 3 months agoTue, 20 Aug 2019 16:25:41 -0700 | Last update 3 months agoTue, 20 Aug 2019 16:26:29 -0700

Profile Photo - August R. Garcia

Basically the same with PHP in general;...

MoreBasically the same with PHP in general; only real difference is the use of Route::currentRouteName(). Code: <nav> <?php $...
🗨
0
🐏
0
👁
94
Profile Photo - August R. Garcia

[Solved] How to automatically replace newlines with commas when data is pasted into an HTML <input>

Answers in Client-Side | By August R. Garcia

Published 3 months agoFri, 09 Aug 2019 19:14:14 -0700 | Last update 3 months agoFri, 09 Aug 2019 19:18:12 -0700

Profile Photo - August R. Garcia

Last Reply Can add a few more regex lines to trim empty commas: el.value = el.value.replace(/\n/g, ', '); el.value = el.value.replace(/\t/g, '... August R. Garcia,

Can add a few more regex...

Fri, 09 Aug 2019 19:44:27 -0700 3 months ago
🗨
1
🐏
0
👁
153
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

I'm going to fucking kill myself on live...

MoreThe problem was that two new helper files had been added. Similar to these: https://laravel-news.com/creating-helpers Fairly standard. A...
🗨
0
🐏
0
👁
137
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

See screenshot. Here's the solution:<br...

MoreSee screenshot. Here's the solution: Login to DreamHost Go to More > MySQL Databases Find the database user who you want to connect to th...
🗨
0
🐏
0
👁
136
Profile Photo - August R. Garcia

[Solved] Downloading arbitrary tables as TSV using JavaScript

Answers in Client-Side | By August R. Garcia

Published 4 months agoSun, 04 Aug 2019 05:42:57 -0700

Profile Photo - August R. Garcia

Title.

MoreTitle. <!DOCTYPE html> <html> <head> <title>Test Table Download</title> </head> <body> <h1&g...
🗨
0
🐏
0
👁
140
Profile Photo - Some Guy

What are some example ASP.Net interview questions?

Answers in Web Development | By Some Guy

Published 10 months agoWed, 06 Feb 2019 13:45:58 -0800

Profile Photo - Hash Brown

Last Reply >jhon smith Hash Brown,

>jhon smith

Wed, 26 Jun 2019 03:36:49 -0700 5 months ago
🗨
3
🐏
0
👁
277
Profile Photo - August R. Garcia

[Solved] Uncaught TypeError: $(...).autocomplete is not a function

Answers in Client-Side | By August R. Garcia

Published 5 months agoFri, 21 Jun 2019 13:23:54 -0700

Profile Photo - August R. Garcia

Include the jQuery UI library in additio...

MoreUse this: <!DOCTYPE html> <html> <head> <link href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" r...
🗨
0
🐏
0
👁
225
Profile Photo - Some Guy

Laravel - How can I check if a collection is empty?

Answers in Frameworks | By Some Guy

Published 1 year agoSun, 02 Dec 2018 03:44:19 -0800

Profile Photo - Scuffed Dog

Last Reply Thank you Univa, you're a very smart gentleman and also a nice companion in life. Scuffed Dog,

Thank you Univa, you're a...

Mon, 03 Jun 2019 09:12:06 -0700 6 months ago
🗨
2
🐏
0
👁
288
Profile Photo - Some Guy

When to Use Apache Cassandra vs MongoDB?

Answers in Databases | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:40:46 -0800

Profile Photo - Univa

Last Reply Cassandra can handle massive amounts of unstructured data. In cases where your database needs to rapidly scale with minimal increase of administr... Univa,

Cassandra can handle mass...

Sat, 01 Jun 2019 08:28:40 -0700 6 months ago
🗨
1
🐏
0
👁
245
Profile Photo - Some Guy
Profile Photo - Univa

Last Reply Eager loading is achieved using the Include() method. for example: LINQ Query Syntax: using (var context = new SchoolDBEntities())... Univa,

Eager loading is achieved...

Fri, 31 May 2019 11:17:29 -0700 6 months ago
🗨
1
🐏
0
👁
274
Profile Photo - Some Guy

[JavaScript] QuerySelector not working for multiple attributes?

Answers in Client-Side | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:36:26 -0800

Profile Photo - Default

Last Reply You should show some code. But this error generally is thrown when you use space between attributes. document.querySelector("[data-id='1'] [data-... Ali,

You should show some code...

Wed, 29 May 2019 05:23:00 -0700 6 months ago
🗨
1
🐏
0
👁
277
Profile Photo - Some Guy

What is the difference between Java and Javascript?

Answers in Client-Side | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:35:56 -0800

Profile Photo - Default

Last Reply There is much difference between them. Java completely Object Oriented language. JavaScript prototype-based programming language. Even if Jav... Ali,

There is much difference...

Wed, 29 May 2019 05:15:03 -0700 6 months ago
🗨
2
🐏
0
👁
273
Profile Photo - Some Guy

How to use DOMDocument::getElementsByTagName for multiple tags/types of tag?

Answers in Client-Side | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:36:16 -0800

Profile Photo - Default

Last Reply Another approach is a prototype based solution. Node.prototype.getElementsByTagNames = function (tags) { var elements = []; for (... Ali,

Another approach is a pro...

Wed, 29 May 2019 05:05:53 -0700 6 months ago
🗨
2
🐏
0
👁
257