john carlo

1

votes
1

answer
41

views

How to change directory (outside directory i.e. desktop) of file system in node.js

Hello I'm having difficulties in creating files in nodejs, when i try to create a file it only creates within the folder of my program. For example, I created test.txt then it will create on the program folder. what i want is to create a file outside the program folder. For example, I wanted to crea...
1

votes
0

answer
30

views

Carbon diffForHumans() not working on datetime

my home tab(All) just works perfectly fine, but when i go to the 2nd tab which is div load content, the diffForHumans() will no longer work. this is the code from my model: protected $dates = ['schedule']; and this is from my home.blade.php: @if($match->status == 'ongoing')  LIVE @elseif($match->st...
John Carlo
0

votes
0

answer
9

views

Left join key constraint data already exist

this question is about how do I implement a scope where in, the user will claim a reward on a specific level and once they claim their rewards, the reward field will no longer display the reward that they have claimed. So for example: The user is on level 20, on his reward panel, there are 3 availab...
John Carlo
1

votes
1

answer
45

views

How to Split <ul>'s every different variable

I want to split every different variable_name I tried inserting ul inside the if statement but it wont work. Is it possible to put ul without putting it outside the if statement? Let's say my variable_name = [dog,dog,dog,cat,cat,mouse,mouse,mouse,mouse]; and the output i want is: dog dog dog...
-2

votes
0

answer
29

views

PHP LEVELING EXPERIENCE SYSTEM LARAVEL

this question is about how to case the experience point in the leveling system, the exp needed for level 1 is 1000, level 2 is 1,400. If I will gain the exact amount of exp depending on the exp needed of the level, it just works fine, so if I will gain an experience of 2,400 I will jump to level 3 r...
John Carlo
1

votes
0

answer
70

views

How to load a laravel blade file without refreshing the home page?

I'm currently working on a task by categorizing 3 matches; (ALL)(DOTA2)(CSGO)(NBA) Assume that I have the blade files home.blade.php, dota2.blade.php, csgo.blade.php and nba.blade.php, and this is the container: < div class='m-container2' id='right'> MATCHES I did the latest load content jquery I'v...
John Carlo
2

votes
4

answer
337

views

value doesn't change when I'm trying to toggling the checkbox

I have this code, when im trying to toggle the checkbox (I can view the changes in inspect), the value of the checkbox doesnt change Facility is far
John Carlo Velasquez
2

votes
2

answer
488

views

How can I display the output(HTML) depending on its id on node js using sqlite

Here is my code on Node JS. And can you give an example what will i add in the HTML code. Thank you exports.get = function(req, res){ db.all('SELECT * FROM f11', function(err,rows){ rows.forEach(function (row) { console.log('row: ' + row.GIVENNAME); }); // console.log(rows); res.render('form...
John Carlo Velasquez
0

votes
1

answer
795

views

Android Studio Internal IDE Error

I am having an internal IDE error in my android studio. The component properties panel never shows anything. And when I click on a component, there's an error in the event log which says: IllegalArgumentException: Missing attribute definition for focusable This is the error details. Missing attribut...
John Carlo Dionson