Posts by lipesmile • 358 points
23 posts
-
1
votes2
answers1529
viewsA: How to set up an SSL certificate for an application that runs on Express?
This video author teach you how to deploy a Node application with ssl and Nginx: https://www.youtube.com/watch?v=kR06NoSzAXY There’s the guy’s blog with the copy and paste commands, and I put the…
-
0
votes2
answers81
viewsQ: Error calling function
When I call this function: def check_bit4(input): mask = "0b010" desired = input & mask if desired > 0: return "on" else: return "off" This error appears: Traceback (most recent call last):…
-
0
votes4
answers382
viewsA: How to call function in JS only once
You can use the onload function in the page’s HTML: <body onload="final()"> It will run soh when the user enters the page, then Voce has to remove the call in the Ajax code not to load all the…
-
1
votes5
answers391
viewsA: Concatenation in C
I did some research and thought about it: string_desliga[31] = ""; char vetor[2][15] = {"192.168.2.200", "192.168.2.201"}; for(int i = 0; i < 2; i++){ strcat (string_desliga,"shutdown -m ");…
-
6
votes1
answer7991
viewsA: Hosting for Node.js
I know two ways: 1-) First Form: You could take a machine from AWS, Azure or Digital Ocean and install the two applications on it and mongodb as well. In this video the guy explains how to deploy a…
-
0
votes1
answer637
viewsQ: Validation of the update in the Standard
I have a problem to validate the update on Laravel. My Controller is like this: public function editar(EspecieRequest $request, Especie $esp) { $especie = Especie::find($esp->id_especie);…
-
0
votes1
answer777
viewsQ: White space in bootstrap menu
Good afternoon, I’m trying to split a menu with a white line in the middle with css. I managed to do, but on the right side the menu is with a space without the line and in the items below is the…
-
2
votes1
answer933
viewsQ: Running a git project on my machine
I put a Laravel project of my machine into git with git ignore default. Then to use it on another PC I downloaded it from git from the command line and tried to install Composer: composer install…
-
0
votes0
answers175
viewsQ: Say more with less in the UML class diagram
I’m having a question on how to draw up a diagram for this scenario: Application in Laravel MVC Too much code equal in the view and controller layers wanted to omit this Work of the facul I wondered…
-
0
votes2
answers139
viewsQ: I can’t find the model generated by Artisan
I used the command php artisan make:model Exemplo and I couldn’t find where he saved this generated model so I could change it. I looked in the app/html folder and found nothing. My db is ready, so…
-
1
votes2
answers414
viewsQ: Is there a security problem using the public schema in Postgresql?
First time I’m working with postgresql and I’m wondering if you have a security problem using the public Schema it creates ? Or if it’s just a matter of organization
-
0
votes0
answers624
viewsQ: Error connecting a postegresql bank to Laravel
I’m having a problem using Laravel with postgresql on Linux, when trying to connect with the database it says it does not find the postgresql driver, I have already enabled postgresql in php.ini so:…
-
2
votes1
answer599
viewsQ: How to commit using command line in SVN
Empty folder created in SVN. I need to put the content in it, but I don’t want to do one by one all file and folder additions. I am on linux and I would like to do by command line, but I haven’t…
-
0
votes3
answers667
viewsA: Does the PHP method have line limits?
The rray response is good, just add one thing: You let the less specific methods have to do with code reuse, with less specific methods you can reuse them more. Maybe this is best seen when you’re…
-
1
votes1
answer423
viewsQ: Implementing Regular expression in Java
I need to make a program that reads a file and can count how many classes and methods there are. The reading and separation part by line I have done, I need to identify class and method. I am…
-
0
votes1
answer634
viewsQ: 1:N and N:M Mongodb parse-server relationship
I have two questions about modeling a database 1: In 1: N, with mongodb, I must save in the child entity the ID of the parent entity object, or the parent entity save an Array with the child Ids? In…
-
1
votes2
answers275
viewsQ: How to know which button called the page?
I have a page with 3 buttons that call the same page and wanted to know if it has how to see which of the 3 buttons called the page. Are buttons Web Forms. What I did was put them to add a value to…
-
0
votes0
answers262
viewsQ: Firebase, Parse-Server or "in the nail"
I have a school project and my team will use the mobile solution with a backend side, in the backend we have a problem, whether we will "do" and configure everything, which is to set up and create a…
-
1
votes2
answers1190
viewsQ: Swap Hidden field to text with javascript
All right guys ? So, I have a field of type Hidden, I need to assign a value to it and change it from Hidden to text after the calculation function calc(){ var myVar = formCalc.myCamp.value;…
-
1
votes1
answer2252
viewsQ: Calculate with Javascript and return to html
So guys, I just need to get some HTML information and get back the result of the calculation, but I couldn’t. <html> <head> <title>Calculadora</title> <script…
-
1
votes2
answers1257
viewsQ: Assign a value to checkbox in javascript
I have a form that contains some checkbox that when they were marked I wanted to be assigned the value 1 to do the Insert on the server, I’ve seen how to check if it is marked, using…
-
2
votes2
answers644
viewsQ: Error in select with PHP + Mysqli
I’m trying to use a query to pull one ID specific that comes from another page. I can receive the ID for $_GET, i printed the query to see if it was right, even so of the error and does not show me…
-
0
votes2
answers964
viewsQ: How to take a string arraylist value, for a File array
I have a job to do, to do it, I need to pass information from an array composed of strings (which are the paths) to an array of files for reading these paths, I tried to get the value directly from…