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

Renaming files from BASH?

Answers in Scripting and Automation | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:42:23 -0800

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 -0800 10 months ago
🗨
1
🐏
0
👁
121
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply To 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 -0800 10 months ago
🗨
1
🐏
0
👁
90
Profile Photo - Some Guy

Tic Tac Toe using HTML, CSS, and JavaScript.

Answers in Web Development | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:42:16 -0800 | Last update 10 months agoTue, 04 Dec 2018 14:59:39 -0800

Profile Photo - August R. Garcia

Last Reply Partial 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 -0800 10 months ago
🗨
1
🐏
0
👁
102
Profile Photo - Some Guy

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

Answers in Style and Layout | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:42:15 -0800

Profile Photo - August R. Garcia

Last Reply This 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 -0800 10 months ago
🗨
1
🐏
0
👁
88
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply There 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 -0800 10 months ago
🗨
1
🐏
0
👁
118
Profile Photo - Some Guy

Can you use CSS to add commas to numbers? Or is PHP/JS needed?

Answers in Web Development | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:42:04 -0800

Profile Photo - August R. Garcia

Last Reply There 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 -0800 10 months ago
🗨
1
🐏
0
👁
101
Profile Photo - Some Guy
Profile Photo - August R. Garcia

Last Reply Something 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 -0800 10 months ago
🗨
1
🐏
0
👁
192
Profile Photo - Some Guy

How many hexadecimal digits are used specify a color in a Web page?

Answers in Style and Layout | By Some Guy

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

Profile Photo - August R. Garcia

Last Reply Six 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 -0800 10 months ago
🗨
1
🐏
0
👁
93
Profile Photo - Some Guy

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

Answers in Web Hosting | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:42:01 -0800 | Last update 10 months agoMon, 03 Dec 2018 06:54:54 -0800

Profile Photo - August R. Garcia

Last Reply Try: 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 -0800 10 months ago
🗨
1
🐏
0
👁
125
Profile Photo - Some Guy

How to check the current page in Laravel?

Answers in Frameworks | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:41:58 -0800

Profile Photo - August R. Garcia

Last Reply To 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 -0800 10 months ago
🗨
1
🐏
0
👁
105
Profile Photo - August R. Garcia

Some Resources

Answers in Meta | By August R. Garcia

Published 10 months agoSun, 02 Dec 2018 03:45:55 -0800 | Last update 8 months agoSun, 20 Jan 2019 00:48:48 -0800

Profile Photo - August R. Garcia

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

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

Answers in Frameworks | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:45:36 -0800

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
👁
97
Profile Photo - Some Guy

Is there a not-complicated way to make a wavy border through CSS?

Answers in Style and Layout | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:45:31 -0800

Profile Photo - Some Guy

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

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

Answers in Frameworks | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:45:25 -0800

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
👁
87
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI have seen some tutorials use both and they seem to do the same thing. Which one is better to use? Or does it matter?
🗨
0
🐏
0
👁
92
Profile Photo - Some Guy
Profile Photo - Some Guy

Issue with Laravel's 'PHP arti...

MoreDoes anyone know how to solve this error message:> [Fri Nov 2 01:00:44 2018] Failed to listen on 104.153.200.240:80 (reason: Cannot assign request...
🗨
0
🐏
0
👁
129
Profile Photo - Some Guy

How exactly do you paginate a result with a hasMany relationship in Laravel?

Answers in Frameworks | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:45:08 -0800

Profile Photo - Some Guy

MoreBasic pagination is straightforward, but not sure how to do this.
🗨
0
🐏
0
👁
107
Profile Photo - Some Guy

[Laravel] Check if user is logged in?

Answers in Frameworks | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:45:07 -0800

Profile Photo - Some Guy

MoreHow can I make sure a user is logged in before doing something?
🗨
0
🐏
0
👁
89
Profile Photo - Some Guy
Profile Photo - Some Guy

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

MoreI'd like to avoid using jQuery for this project and am considering using summary/details tags to handle toggling element visibility, since this i...
🗨
0
🐏
0
👁
111
Profile Photo - Some Guy

[Laravel] Can you make a factory without a model?

Answers in Frameworks | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:44:56 -0800 | Last update 10 months agoMon, 03 Dec 2018 07:07:57 -0800

Profile Photo - Some Guy

MoreI am working on setting up seeders for my site to test everything with lorum ipsum text. I have a model/table for users, but want to write two separat...
🗨
0
🐏
0
👁
95
Profile Photo - Some Guy

[Laravel] How to query a many-to-many relationship?

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

MoreHalp.
🗨
0
🐏
0
👁
104
Profile Photo - Some Guy

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

Answers in Style and Layout | By Some Guy

Published 10 months agoSun, 02 Dec 2018 03:44:53 -0800 | Last update 10 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
👁
115
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

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

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

Answers in Frameworks | By Some Guy

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

Profile Photo - Some Guy

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

Does JavaScript have foreach loops?

Answers in Frameworks | By Some Guy

Published 10 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
👁
118
Profile Photo - Some Guy

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

Answers in Frameworks | By Some Guy

Published 10 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
👁
106
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
👁
92
Profile Photo - Some Guy

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

Answers in Style and Layout | By Some Guy

Published 10 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
👁
129
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHow do you do the thing in the title?
🗨
0
🐏
0
👁
118