256 Kilobytes

Comments

Type CommentsResponses to top-level threads. Category All Tag All

Profile Photo - August R. Garcia

Reply to How to round to two decimal places in Javascript?

Comments in Client-Side | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:47:05 -0800

Profile Photo - August R. Garcia

MoreThe function that you're looking for is .toFixed(2):https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFix...
🗨
1
🐏
0
👁
122
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

More// Get first element of an array=INDEX(SPLIT(B2, " | ", FALSE);1;1)
🗨
1
🐏
0
👁
64
Profile Photo - August R. Garcia

Reply to WTF is Google Analytics Premium and why does it cost $150,000

Comments in Garbage Can | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:47:02 -0800 | Last update 6 months agoSat, 19 Jan 2019 02:37:14 -0800

Profile Photo - August R. Garcia

MoreThat feel when the US government spends $200k on Google Analytics Premium: 3. [HHSM‐500‐2012‐00080C] Blast Design Studio Inc. dba Blast Adva...
🗨
1
🐏
0
👁
14
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreSomething like this should work:// Add a hidden input to store the IDsvar hidden_input = document.createElement("INPUT");hidden_input.setAtt...
🗨
1
🐏
0
👁
127
Profile Photo - August R. Garcia

Reply to What do curly braces do in Google Sheets?

Comments in Spreadsheets | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:59 -0800

Profile Photo - August R. Garcia

MoreCurly braces are used to combine ranges into arrays. []
🗨
1
🐏
0
👁
60
Profile Photo - August R. Garcia

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

Comments in Server-Side | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:58 -0800

Profile Photo - August R. Garcia

MoreThe scope resolution operator.Or, apparently "Paamayim Nekudotayim"Docs:http://PHP.net/manual/en/language.oop5.paamayim-nekudotayim.PHP
🗨
1
🐏
0
👁
87
Profile Photo - August R. Garcia

Reply to How can I monitor my GPU usage on Ubuntu?

Comments in Scripting and Automation | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:56 -0800 | Last update 7 months agoMon, 03 Dec 2018 05:21:21 -0800

Profile Photo - August R. Garcia

MoreIf 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...
🗨
1
🐏
0
👁
78
Profile Photo - August R. Garcia

Reply to Is it UX or UI?

Comments in Style and Layout | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:47 -0800 | Last update 7 months agoMon, 03 Dec 2018 06:48:39 -0800

Profile Photo - August R. Garcia

MoreAnswered here: UX design refers to user experience design, while UI design stands for user interface design. https://hackernoon.com/what-is...
🗨
1
🐏
0
👁
75
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreWrap image in div (?)
🗨
1
🐏
0
👁
70
Profile Photo - August R. Garcia

Reply to I downloaded a bunch of stock photos for testing. Is there a quick way to bulk rename in Bash (or something similar)?

Comments in Web Scraping, Data Analysis | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:44 -0800 | Last update 7 months agoMon, 03 Dec 2018 06:33:20 -0800

Profile Photo - August R. Garcia

MoreA script like run from the terminal or a Bash script works for this type of file renaming: INDEX=1; for i in *.jpg; do mv $i ${INDEX}_cover.jpg;...
🗨
1
🐏
0
👁
1
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreHere are examples of a few very commonly used formulas:Replace substrings in spreadsheets: =SUBSTITUTE("Today is Monday", "Monday"...
🗨
1
🐏
0
👁
69
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreAm working on this currently. General blog post. Includes misc. code snippets. Doing this currently to have an article to template from that actually...
🗨
1
🐏
0
👁
3
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreThat error occurs because Chrome cannot focus hidden fields.Are you using a custom radio input setup that hides the actual radio button?
🗨
1
🐏
0
👁
154
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreTry this function:#Change 1.3k to 1300, etc.=((VALUE(substitute(A1, "k", "")))*1000)=((VALUE(substitute(I201, "k", &quot...
🗨
1
🐏
0
👁
70
Profile Photo - August R. Garcia

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

Comments in Spreadsheets | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:37 -0800

Profile Photo - August R. Garcia

MoreThis 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...
🗨
1
🐏
0
👁
57
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreRan 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...
🗨
1
🐏
0
👁
344
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreThere 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...
🗨
1
🐏
0
👁
59
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreDepends on the context / what you mean by that.One situation that I run into is writing that lines up with the lines above/below. Ex:.bio...
🗨
2
🐏
0
👁
142
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

MoreIIRC, this can occur if namespaces aren't handled correctly (?)Try:<?phpRequest::url()
🗨
1
🐏
0
👁
88
Profile Photo - August R. Garcia

Reply to How to freeze a row in Google Sheets?

Comments in Spreadsheets | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:30 -0800

Profile Photo - August R. Garcia

MoreYes, freezing rows is supported:View --> FreezeYou can freeze as many rows and/or columns as desired.
🗨
2
🐏
0
👁
158
Profile Photo - August R. Garcia

Reply to Is "brochureware" still a thing?

Comments in Web Development | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:29 -0800

Profile Photo - August R. Garcia

MoreSeems 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...
🗨
1
🐏
0
👁
69
Profile Photo - August R. Garcia

Reply to [CSS] Can the <pre> tag have a class and/or ID attribute?

Comments in Style and Layout | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:27 -0800 | Last update 7 months agoSun, 02 Dec 2018 12:54:53 -0800

Profile Photo - August R. Garcia

MoreYes, 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...
🗨
1
🐏
0
👁
2
Profile Photo - August R. Garcia

Reply to [PHP Question] Unset an array by key?

Comments in Server-Side | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:26 -0800 | Last update 7 months agoMon, 03 Dec 2018 05:22:55 -0800

Profile Photo - August R. Garcia

MoreYes. Ex: <?php   unset( $data['some_key'] );
🗨
1
🐏
0
👁
2
Profile Photo - August R. Garcia

Reply to What even are service providers in Laravel?

Comments in Frameworks | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:25 -0800 | Last update 7 months agoSun, 02 Dec 2018 12:35:23 -0800

Profile Photo - August R. Garcia

MoreLaracasts has videos that discuss service providers. You might start here: https://laracasts.com/series/Laravel-from-scratch-2017/episodes/24...
🗨
1
🐏
0
👁
79
Profile Photo - August R. Garcia

Reply to How can I find the array element most similar to a string in a JavaScript array?

Comments in Scripting and Automation | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:24 -0800 | Last update 7 months agoSun, 02 Dec 2018 12:34:04 -0800

Profile Photo - August R. Garcia

MoreOne potential approach is to use Levenshtein Distance.
🗨
1
🐏
0
👁
62
Profile Photo - August R. Garcia

Reply to Renaming files from BASH?

Comments in Scripting and Automation | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:22 -0800

Profile Photo - August R. Garcia

More# 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...
🗨
1
🐏
0
👁
78
Profile Photo - August R. Garcia

Reply to [Google Sheets] Does anyone know how to get a random number rounded to a certain interval?

Comments in Spreadsheets | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:19 -0800 | Last update 7 months agoMon, 03 Dec 2018 05:22:09 -0800

Profile Photo - August R. Garcia

MoreTo 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
🗨
1
🐏
0
👁
66
Profile Photo - August R. Garcia

Reply to Tic Tac Toe using HTML, CSS, and JavaScript.

Comments in Web Development | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:16 -0800 | Last update 7 months agoTue, 04 Dec 2018 15:12:07 -0800

Profile Photo - August R. Garcia

MorePartial solution. IIRC, I didn't finish writing this before posting (?)  <!DOCTYPE HTML> <html> <head><title>P...
🗨
1
🐏
0
👁
4
Profile Photo - August R. Garcia

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

Comments in Style and Layout | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:15 -0800

Profile Photo - August R. Garcia

MoreThis 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...
🗨
1
🐏
0
👁
64
Profile Photo - August R. Garcia

Reply to Error Message - Anyone can help? -- Illuminate Database Eloquent MassAssignmentException

Comments in Frameworks | By August R. Garcia

Published 7 months agoSun, 02 Dec 2018 03:46:14 -0800 | Last update 7 months agoMon, 03 Dec 2018 06:57:53 -0800

Profile Photo - August R. Garcia

MoreThere is an attribute called $fillable that can be set for Laravel models. See this section of the Laravel documentation: https://laravel.com/d...
🗨
1
🐏
0
👁
89