256 Kilobytes

Answers

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

Profile Photo - Some Guy

Does JavaScript have foreach loops?

Answers in Frameworks | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:44:39 -0800

Profile Photo - Some Guy

MoreMozilla's documentation indicates that there is a foreach in JS:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/...
🗨
0
🐏
0
👁
126
Profile Photo - Some Guy

[Laravel] Validate a user's input in the model constructor?

Answers in Frameworks | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:44:35 -0800

Profile Photo - Some Guy

MoreCan you do this in a model's constructor? Or is it only possible to do this from the controller?[Laravel] Can you set a model's default valu...
🗨
0
🐏
0
👁
115
Profile Photo - Some Guy
Profile Photo - Some Guy

Specifically, is it possible to highligh...

MoreI have a spreadsheet full of client orders. I'd like to be able to highlight rows if the deadline for that order is within three days from the cu...
🗨
0
🐏
0
👁
100
Profile Photo - Some Guy

How to use display:flex-row with <canvas> elements?

Answers in Style and Layout | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:44:32 -0800

Profile Photo - Some Guy

MoreIs there a way to get the <canvas> elements in a flexbox to automatically scale in size?
🗨
0
🐏
0
👁
141
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHow do you do the thing in the title?
🗨
0
🐏
0
👁
126
Profile Photo - Some Guy

[Laravel] Specify foreign key name in model?

Answers in Frameworks | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:44:23 -0800

Profile Photo - Some Guy

MoreI am using a foreign key name that is not the default. Can I specify this in the model file for my class?
🗨
0
🐏
0
👁
151
Profile Photo - Some Guy

[Laravel] How to extend a controller?

Answers in Frameworks | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:44:20 -0800

Profile Photo - Some Guy

MoreFor a project that I set up previously, there are three controllers that all have similar functionality. I would like to make a parent controller that...
🗨
0
🐏
0
👁
124
Profile Photo - Some Guy

How does canvas.getContext() work?

Answers in Web Development | By Some Guy

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

Profile Photo - Some Guy

MoreI know that it is required when working with <canvas> elements, but am not sure what it actually *does.*
🗨
0
🐏
0
👁
151
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreIf anyone can provide an example or point me toward the right documentation, I am willing to figure out the rest from there.
🗨
0
🐏
0
👁
116
Profile Photo - Some Guy

[Laravel] Yield with parameter?

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

MoreSee title.
🗨
0
🐏
0
👁
103
Profile Photo - Some Guy

Why are there multiple unicode HTML notations for each character?

Answers in Web Development | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:43:54 -0800 | Last update 11 months agoSun, 02 Dec 2018 12:38:10 -0800

Profile Photo - Some Guy

MoreWhy does unicode have multiple ways to encode for HTML? For example, check out this page (Right Angle Bracket): https://www.fileformat.info/inf...
🗨
0
🐏
0
👁
143
Profile Photo - Some Guy

Zoscal Patch Notes 1.0

Answers in Meta | By Some Guy

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

Profile Photo - Some Guy

More03 November, 2018Site pushed to live currently. Everything seems to have been transferred correctly. Planning to dump DB and rebuild with real data sh...
🗨
0
🐏
0
👁
223
Profile Photo - Some Guy

[CSS] Set an element's height to be half of its width?

Answers in Style and Layout | By Some Guy

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

Profile Photo - Some Guy

MoreIs this style rule possible?
🗨
0
🐏
0
👁
105
Profile Photo - Some Guy

[Laravel] Is it possible to get a post's id in a controller's constructor?

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

MoreFor example, if you want to run middleware only if the current post's ID is equal to []. Is this possible?
🗨
0
🐏
0
👁
118
Profile Photo - Some Guy

CSS - Space between without flexbox?

Answers in Style and Layout | By Some Guy

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

Profile Photo - Some Guy

MoreTo get this to work:justify-content:space-between;It seems like the display:flex property is also needed.Is there a different property to do this with...
🗨
0
🐏
0
👁
133
Profile Photo - Some Guy

What does the double colon do when working in the Linux terminal?

Answers in Server-Side | By Some Guy

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

Profile Photo - Some Guy

MoreI found these threads on the Unix/Linux StackExchange, but not sure what they're saying?https://unix.stackexchange.com/questions/463560/bash-scri...
🗨
0
🐏
0
👁
132
Profile Photo - Some Guy

[Laravel] Validation for unique fields on update? Counts as non-unique?

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

In the controller for a Laravel resource...

MoreI set up the store function for a Laravel controller for a resource (posts). Posts must have a unique url/slug, which is set by the user.This works f...
🗨
0
🐏
0
👁
117
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreIs there a CSS selector that allows a parent element to be selected? I am attempting to write a custom radio button set where if the radio button is c...
🗨
0
🐏
0
👁
104
Profile Photo - Some Guy

Anyone on here self-host their websites?

Answers in Web Hosting | By Some Guy

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

Profile Photo - Some Guy

MoreWhat kind of setups do you all use for hardware/OS? Am considering various options.Before anyone asks, yes, I am aware of the pros and cons of self-ho...
🗨
0
🐏
0
👁
173
Profile Photo - Some Guy

Is it possible to inject jQuery into a web page via the developer console (inspect element)?

Answers in Client-Side | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:43:18 -0800 | Last update 10 months agoMon, 31 Dec 2018 00:59:21 -0800

Profile Photo - Some Guy

Like, into the Google Chrome inspect ele...

MoreLike, into the Google Chrome inspect element console. If I want to run jQuery to scrape another website (and that website isn't already running jQ...
🗨
0
🐏
0
👁
211
Profile Photo - Some Guy

[Google Sheets] What are pivot tables?

Answers in Spreadsheets | By Some Guy

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

Profile Photo - Some Guy

MoreEveryone talks about how pivot tables and VLOOKUP are the epitome of quality Google Sheets/spreadsheet features.But what exactly *is* a pivot table? W...
🗨
0
🐏
0
👁
114
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreCKEditor uses Magic to replace <textarea> elements with a bunch of Magic (iframes, etc), which seems to prevent use of "required" in t...
🗨
0
🐏
0
👁
177
Profile Photo - Some Guy

[Laravel] Validate array with Validator object in constructor?

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

MoreSee title's question.
🗨
0
🐏
0
👁
122
Profile Photo - Some Guy
Profile Photo - Some Guy

btw i use arch

Morebtw i use archhttps://www.reddit.com/r/linuxmasterrace/comments/9l5bcg/this_is_a_test_of_the_national_wireless_emergency/
🗨
0
🐏
0
👁
176
Profile Photo - Some Guy

[Laravel] How does the whereHas() method work with Eloquent?

Answers in Frameworks | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:42:56 -0800

Profile Photo - Some Guy

MorePls help.
🗨
0
🐏
0
👁
157
Profile Photo - Some Guy

[Google Sheets] SUMIF cell is an even number?

Answers in Spreadsheets | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:42:55 -0800 | Last update 11 months agoSun, 02 Dec 2018 12:36:00 -0800

Profile Photo - Some Guy

MoreAfter reading the documentation (below), I'm still trying to figure out how to sum only if a number is even/odd. Is this possible? Or is it only p...
🗨
0
🐏
0
👁
104
Profile Photo - Some Guy

[Laravel Validation] Check if foreign key exists?

Answers in Frameworks | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:42:53 -0800

Profile Photo - Some Guy

MorePls help.
🗨
0
🐏
0
👁
158
Profile Photo - Some Guy

How to get a random character (alphanumeric plus basic symbols) in Google Sheets?

Answers in Spreadsheets | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:42:51 -0800 | Last update 11 months agoMon, 03 Dec 2018 06:47:58 -0800

Profile Photo - Some Guy

MoreSpecifically, A-Z, a-z, 0-9, and the basic punctuation. Can this be done? You can use this to get a random letter: =char(randbetween(65, 65+2...
🗨
0
🐏
0
👁
115
Profile Photo - Some Guy

TP-Link Port Forwarding -- Is it supported?

Answers in Web Hosting | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:42:49 -0800

Profile Photo - Some Guy

MoreI'd like to allow clients to connect to projects that are being worked on locally before domain names are registed, since clients at times take a...
🗨
0
🐏
0
👁
155
Profile Photo - Some Guy

[Laravel] Order by last comment?

Answers in Frameworks | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:42:41 -0800

Profile Photo - Some Guy

MoreI'd like to have the posts on my website order by the most recent comment. Is this possible through Laravel?
🗨
0
🐏
0
👁
120