256 Kilobytes

Home - Latest Content

Profile Photo - Some Guy

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

Answers in Spreadsheets | By Some Guy

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

Can you unset a variable in PHP?

Answers in Server-Side | By Some Guy

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

Connect Web FTP Dreamhost

Answers in Web Hosting | By Some Guy

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

How to get random pivot table values with Laravel seeders?

Answers in Frameworks | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:59 -0800 | Last update 6 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 6 months ago
🗨
1
🐏
0
👁
82
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 6 months agoSun, 02 Dec 2018 03:43:57 -0800 | Last update 6 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 6 months ago
🗨
1
🐏
0
👁
62
Profile Photo - Some Guy

[JavaScript] addEventListener to all in array?

Answers in Client-Side | By Some Guy

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

Laravel - Where to store utility functions?

Answers in Frameworks | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:50 -0800

Profile Photo - August R. Garcia

Last Reply If you're writing utility functions that are used for all/many of your controlelrs, you might consider defining them in the/a parent controller&#... August R. Garcia,

If you're writing ut...

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

How does concatenation work in Google Sheets?

Answers in Spreadsheets | By Some Guy

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

Profile Photo - August R. Garcia

Last Reply CONCATENATE works with ranges. https://support.google.com/docs/answer/3094123There is also the JOIN function, which works with ranges and allows a spe... August R. Garcia,

CONCATENATE works with ra...

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

What is HTML5? What is CSS3?

Answers in Style and Layout | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:47 -0800

Profile Photo - August R. Garcia

Last Reply HTML5 and CSS3 are the current set of standards. All HTML5 and CSS3 are HTML/CSS, but not the other way around. August R. Garcia,

HTML5 and CSS3 are the cu...

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

Does Laravel work on Dreamhost?

Answers in Web Hosting | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:45 -0800

Profile Photo - August R. Garcia

Last Reply Yes, Laravel sites work with Dreamhost. There are a few guides out there about getting a Laravel site up on Dreamhost as well.The short version is tha... August R. Garcia,

Yes, Laravel sites work w...

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

[Laravel Error] Class 'AppHttpControllersAuth' not found

Answers in Frameworks | By Some Guy

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

Profile Photo - August R. Garcia

Last Reply Make sure to include the Auth class. Add this line at the top of the file:use Auth; August R. Garcia,

Make sure to include the...

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

[Laravel] Create migration with model?

Answers in Frameworks | By Some Guy

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

Profile Photo - August R. Garcia

Last Reply Instead of:PHP artisan make:migration create_roles_table -mRun this:PHP artisan make:model Role -m August R. Garcia,

Instead of:PHP artisan ma...

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

[Laravel] Carbon Library without using Laravel?

Answers in Frameworks | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:40 -0800

Profile Photo - August R. Garcia

Last Reply Yes, it's completely possible. Carbon is a completely separate project and is maintained by completely separate developers. The official Carbon s... August R. Garcia,

Yes, it's completely...

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

[Radio Buttons] How to Make a Buttonset (Without Using Bootstrap)

Articles in Style and Layout | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:38 -0800 | Last update 6 months agoMon, 03 Dec 2018 06:38:38 -0800

Profile Photo - August R. Garcia

Last Reply Very nice, as they say. August R. Garcia,

Very nice, as they say.

Sun, 02 Dec 2018 03:47:37 -0800 6 months ago
🗨
1
🐏
0
👁
145
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply Here's an example that I used recently:=if(I2="-", "NULL", VLOOKUP(I2, {E$2:E41,B$2:B41}, 2,0))In Google Sheets, curly braces... August R. Garcia,

Here's an example th...

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

Can you make up arbitrary HTML tags?

Answers in Web Development | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:33 -0800

Profile Photo - August R. Garcia

Last Reply Yes, it's possible. For example, this looks like a bunch of eggs:<!DOCTYPE HTML><HTML><head> <style> body { bac... August R. Garcia,

Yes, it's possible....

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

Vim: How to vertically insert numbers in order?

Answers in Administration and Operations | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:31 -0800

Profile Photo - August R. Garcia

Last Reply A solution was posted on the Vim Wiki:1. Hover over top number2. Ctrl+V (start vertical select)3. Highlight vertically over all numbers4. Ctrl+G5. Ctr... August R. Garcia,

A solution was posted on...

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

How to access conditional formatting in Google Sheets?

Answers in Spreadsheets | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:30 -0800

Profile Photo - August R. Garcia

Last Reply 1. Highlight the cells that you want to format2. Right Click --> Conditional Formatting August R. Garcia,

1. Highlight the cells th...

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

How to change default Gmail account?

Answers in Administration and Operations | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:29 -0800

Profile Photo - August R. Garcia

Last Reply Did you try the solution from the Gmail help forum?https://productforums.google.com/forum/#!topic/gmail/H7O14c6NuxoSee below:"""Rocky -... August R. Garcia,

Did you try the solution...

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

What's the deal with Linus Torvalds?

Forum in Garbage Can | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:28 -0800 | Last update 6 months agoMon, 03 Dec 2018 06:41:25 -0800

Profile Photo - August R. Garcia

Last Reply ………………………………-~*")"/'~)||||||/''"/'~... August R. Garcia,

………&...

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

Converting URLs to domains and vice-versa?

Answers in Spreadsheets | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:26 -0800 | Last update 6 months agoSun, 02 Dec 2018 13:03:41 -0800

Profile Photo - August R. Garcia

Last Reply Solutions Using Google Sheets Extract domain from subdomain Example input: howtogoaround.wordpress.com =RIGHT(REGEXEXTRACT(D25, "\..*... August R. Garcia,

Solutions Using Google Sh...

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

[Laravel] Autocomplete a field?

Answers in Frameworks | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:24 -0800

Profile Photo - August R. Garcia

Last Reply Should be the same as any other autocomplete functionality, for the most part.1. Disable the browser's automatic autocomplete:https://www.w3schoo... August R. Garcia,

Should be the same as any...

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

What color is represented by red 255 green 255 blue 255?

Answers in Style and Layout | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:20 -0800

Profile Photo - August R. Garcia

Last Reply White</thread> August R. Garcia,

White</thread>

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

[Laravel Error Message] Maximum execution time of 30 seconds exceeded

Answers in Frameworks | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:19 -0800

Profile Photo - August R. Garcia

Last Reply This error message is almost always caused by an infinite loop, such as: <?php while(TRUE): // Do Something endwhile; And it can be s... August R. Garcia,

This error message is alm...

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

Can Laravel's Faker library get random IP addresses?

Answers in Frameworks | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:15 -0800

Profile Photo - August R. Garcia

Last Reply ~~The easiest way to get a random IP address when working with Laravel (or the Faker library in general) is to use the PHP function long2ip: long2ip(... August R. Garcia,

~~The easiest way to get...

Sun, 02 Dec 2018 03:47:14 -0800 6 months ago
🗨
1
🐏
0
👁
79
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply While Laravel has no built-in library for charts, there are a few options: Install a general-purpose JavaScript or PHP graphing library Write... August R. Garcia,

While Laravel has no buil...

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

What is the easiest way to generate random passwords in Google Sheets?

Answers in Spreadsheets | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:10 -0800

Profile Photo - August R. Garcia

Last Reply Have also run into this issue over the last few years. You'd think there'd be an easy way to do this. Messed around with a few options below... August R. Garcia,

Have also run into this i...

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

PHP function to fix (or remove) unmatched tags?

Answers in Server-Side | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:08 -0800

Profile Photo - August R. Garcia

Last Reply []Have seen some others recommend the HTML Purifier library, which seems to be able to do this as well as other similar input validation. You can find... August R. Garcia,

[]Have seen some others r...

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

[Laravel] Fix for "SQLSTATE[HY000] [2002] Connection Refused"?

Answers in Databases | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:07 -0800

Profile Photo - August R. Garcia

Last Reply Are you still using the .env file with credentials for your localhost DB? The error message generally indicates that your credentials do not match the... August R. Garcia,

Are you still using the ....

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

How to round to two decimal places in Javascript?

Answers in Client-Side | By Some Guy

Published 6 months agoSun, 02 Dec 2018 03:43:06 -0800

Profile Photo - August R. Garcia

Last Reply The function that you're looking for is .toFixed(2):https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFix... August R. Garcia,

The function that you&#03...

Sun, 02 Dec 2018 03:47:05 -0800 6 months ago
🗨
1
🐏
0
👁
97