256 Kilobytes

Answers

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

Profile Photo - Some Guy

How to scale <canvas> elements without making them blurry?

Answers in Style and Layout | By Some Guy

Published 4 months agoSun, 02 Dec 2018 03:44:53 -0800 | Last update 4 months agoMon, 03 Dec 2018 06:30:01 -0800

Profile Photo - Some Guy

MoreThe charts that I've generated with JS and <canvas> elements look fine at the default size, but are unusably blurry at larger sizes. I...
🗨
0
🐏
0
👁
41
Profile Photo - Some Guy

[Laravel] Check if any elements in a collection have a certain id?

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

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

[Laravel] Can you run a query from a layout/template?

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

MoreI hope this question makes sense.
🗨
0
🐏
0
👁
37
Profile Photo - Some Guy

Does JavaScript have foreach loops?

Answers in Frameworks | By Some Guy

Published 4 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
👁
37
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

Published 4 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
👁
33
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
👁
29
Profile Photo - Some Guy

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

Answers in Style and Layout | By Some Guy

Published 4 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
👁
39
Profile Photo - Some Guy
Profile Photo - Some Guy

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

[Laravel] Specify foreign key name in model?

Answers in Frameworks | By Some Guy

Published 4 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
👁
43
Profile Photo - Some Guy

[Laravel] How to extend a controller?

Answers in Frameworks | By Some Guy

Published 4 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
👁
43
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

MoreTitle.
🗨
0
🐏
0
👁
49
Profile Photo - Some Guy

How does canvas.getContext() work?

Answers in Web Development | By Some Guy

Published 4 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
👁
44
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
👁
33
Profile Photo - Some Guy

[Laravel] Yield with parameter?

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

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

Why are there multiple unicode HTML notations for each character?

Answers in Web Development | By Some Guy

Published 4 months agoSun, 02 Dec 2018 03:43:54 -0800 | Last update 4 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
👁
57
Profile Photo - Some Guy

Zoscal Patch Notes 1.0

Answers in Meta | By Some Guy

Published 4 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
👁
72
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 4 months agoSun, 02 Dec 2018 03:43:51 -0800

Profile Photo - Some Guy

MoreIs this style rule possible?
🗨
0
🐏
0
👁
37
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 4 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
👁
35
Profile Photo - Some Guy

CSS - Space between without flexbox?

Answers in Style and Layout | By Some Guy

Published 4 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
👁
40
Profile Photo - Some Guy

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

Answers in Server-Side | By Some Guy

Published 4 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
👁
35
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

Published 4 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
👁
39
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
👁
30
Profile Photo - Some Guy

Anyone on here self-host their websites?

Answers in Web Hosting | By Some Guy

Published 4 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
👁
45
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 4 months agoSun, 02 Dec 2018 03:43:18 -0800 | Last update 3 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
👁
62
Profile Photo - Some Guy

[Google Sheets] What are pivot tables?

Answers in Spreadsheets | By Some Guy

Published 4 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
👁
40
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
👁
52
Profile Photo - Some Guy

[Laravel] Validate array with Validator object in constructor?

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

MoreSee title's question.
🗨
0
🐏
0
👁
36
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
👁
66
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

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

[Google Sheets] SUMIF cell is an even number?

Answers in Spreadsheets | By Some Guy

Published 4 months agoSun, 02 Dec 2018 03:42:55 -0800 | Last update 4 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
👁
36