256 Kilobytes

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

Profile Photo - Some Guy

What is the term used to refer to a double colon in PHP?

Answers in Server-Side | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyThe scope resolution operator.Or, apparently "Paamayim Nekudotayim"Docs:http://PHP.net/manual/en/language.oop5.paamayim-nekudotayim.PHP August R. Garcia,

The scope resolution oper...

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

How can I monitor my GPU usage on Ubuntu?

Answers in Scripting and Automation | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyIf there is no usable/relevant GUI, this can also be done from the terminal with a looping BASH script like this: # Monitor GPU stats and usage... August R. Garcia,

If there is no usable/rel...

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

Is it UX or UI?

Answers in Style and Layout | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyAnswered here: UX design refers to user experience design, while UI design stands for user interface design. https://hackernoon.com/what-is... August R. Garcia,

Answered here:

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

Last ReplyWrap image in div (?) August R. Garcia,

Wrap image in div (?)

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

I am new to Google Sheets. What functions should I know about?

Answers in Spreadsheets | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyHere are examples of a few very commonly used formulas:Replace substrings in spreadsheets: =SUBSTITUTE("Today is Monday", "Monday"... August R. Garcia,

Here are examples of a fe...

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

Last ReplyThat error occurs because Chrome cannot focus hidden fields.Are you using a custom radio input setup that hides the actual radio button? August R. Garcia,

That error occurs because...

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

Last ReplyTry this function:#Change 1.3k to 1300, etc.=((VALUE(substitute(A1, "k", "")))*1000)=((VALUE(substitute(I201, "k", &quot... August R. Garcia,

Try this function:#Change...

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

[Google Sheets] Convert cell contents to (basic) HTML?

Answers in Spreadsheets | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyThis seems to work:// 1. Wrap entire cell in a <p> tag, then use REGEXREPLACE to address newlines// 2. Replace newlines with the end of the prev... August R. Garcia,

This seems to work:// 1....

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

Last ReplyRan into the same error when setting up a site on Dreamhost hosting. Ran 'PHP artisan migrate' from SSH.Issue was that evne though PHP versi... August R. Garcia,

Ran into the same error w...

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

Is there a good way to split/divide cells in Google Sheets?

Answers in Spreadsheets | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyThere is a built-in split function here:https://support.google.com/docs/answer/3094136?hl=enFor your use case, this function should work:=SPLIT(A1, &q... August R. Garcia,

There is a built-in split...

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

[Laravel Error] Non-static method should not be called statically

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyIIRC, this can occur if namespaces aren't handled correctly (?)Try:<?phpRequest::url() August R. Garcia,

IIRC, this can occur if n...

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

Is "brochureware" still a thing?

Answers in Web Development | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplySeems like a term that was likely used mainly around the dot com bubble/boom when companies pushed existing pamphlets onto the internet with no functi... August R. Garcia,

Seems like a term that wa...

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

[CSS] Can the
tag have a class and/or ID attribute?

Answers in Style and Layout | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyYes, the <pre> tag can have class and ID attributes. One common use is to put large dumps of information into a limited-height scrollable area w... August R. Garcia,

Yes, the <pre> tag...

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

[PHP Question] Unset an array by key?

Answers in Server-Side | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyYes. Ex: <?php   unset( $data['some_key'] ); August R. Garcia,

Yes. Ex:

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

What even are service providers in Laravel?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyLaracasts has videos that discuss service providers. You might start here: https://laracasts.com/series/Laravel-from-scratch-2017/episodes/24... August R. Garcia,

Laracasts has videos that...

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

Last ReplyOne potential approach is to use Levenshtein Distance. August R. Garcia,

One potential approach is...

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

Renaming files from BASH?

Answers in Scripting and Automation | By Some Guy

Published

Profile Photo - August R. Garcia

Last Reply# Convert clocks subfolders from png to jpgconvert */*.png */*.jpgfor f in $(find */*.png); do echo $f to $f--.jpg convert $f $RANDOM-RANDOM-.jpg r... August R. Garcia,

# Convert clocks subfolde...

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

Last ReplyTo get a random number in a range of 2k to 3k rounded to the nearest interval of 100: =round(randbetween(2000, 3000)*0.01)*100 August R. Garcia,

To get a random number in...

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

Tic Tac Toe using HTML, CSS, and JavaScript.

Answers in Web Development | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyPartial solution. IIRC, I didn't finish writing this before posting (?)  <!DOCTYPE HTML> <html> <head><title>P... August R. Garcia,

Partial solution. IIRC, I...

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

How do you add a CSS hover to pseudo-elements?

Answers in Style and Layout | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyThis post covers the reason why the :hover selector isn't working in your code:"You can not do ::after:hover because you can't detect t... August R. Garcia,

This post covers the reas...

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

Last ReplyThere is an attribute called $fillable that can be set for Laravel models. See this section of the Laravel documentation: https://laravel.com/d... August R. Garcia,

There is an attribute cal...

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

Last ReplyThere is no way to format numbers through CSS, but it can be done through PHP or JS relatively easily. PHP's number_format() function does this... August R. Garcia,

There is no way to format...

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

Last ReplySomething like this should work: <script> function create_thing(element) { // do something with an element passed to the function... August R. Garcia,

Something like this shoul...

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

Last ReplySix hexadecimal digits: 000000 to FFFFFF Hexadecimal is base 16: 0 = 0 1 = 1 [...] 9 = 9 A = 10 B = 11 C = 12 D = 13 E = 14... August R. Garcia,

Six hexadecimal digits: 0...

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

Any way to "put" all files and folders recursively via FTP/SFTP?

Answers in Web Hosting | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyTry: scp -r your_project your_username@yourdomain.com:/home/your_project/yourdomain.com As far as I know, there is no way to force the &#39... August R. Garcia,

Try:

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

How to check the current page in Laravel?

Answers in Frameworks | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyTo get the current path, you can use: <?php Request::path() August R. Garcia,

To get the current path,...

Sun, 02 Dec 2018 03:45:58 -08001 year ago1
🗨 1
🐏 0
👁 228
Profile Photo - August R. Garcia

Some Resources

Answers in Meta | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

Morehttps://jsonformatter.org/ https://laravel.com/docs/4.2/schema https://www.w3schools.com/cssref/css_colors.asp https://chrome.google.com/...
🗨 0
🐏 0
👁 342
Profile Photo - Some Guy

[Laravel] Collection to array? What is the difference?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

What is actually the difference bewteen...

MoreI am still getting the hang of how collections work in Laravel. After reading the documentation (link below), I am still unsure when and how to get th...
🗨 0
🐏 0
👁 193
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreJust a basic wave pattern. Nothing too fancy.
🗨 0
🐏 0
👁 228
Profile Photo - Some Guy

How to override the default resource routes for a Laravel project?

Answers in Frameworks | By Some Guy

Published

Profile Photo - Some Guy

MoreWhen you set a route as a resource through the /routes/web.php file, it seems that what is happening behind the scenes is that a number of specific su...
🗨 0
🐏 0
👁 153