Posts by Max Rogério • 423 points
34 posts
-
0
votes1
answer107
viewsQ: Restore dump with nodejs
Precise restore a postgres database nodding... My routine downloads the latest backup (custom dump) by ftp, and creates the database (without the structure). Now I need to run this file I downloaded…
-
0
votes2
answers477
viewsQ: Nodemon and Nodejs
I am learning nodejs and would like to know how to add nodemon so that every time I save the project the same update my web page. I installed nodemon globally and put it in the package.json call {…
-
1
votes1
answer299
viewsA: Chartsjs export PNG automatically
Just call the function: downloadImage();, so when the page loads it performs the function without the need of click. I put the function in your Jsfiddle, and I had the code run again and downloaded…
-
0
votes1
answer1029
viewsQ: Difficulties with PHP - lastInsertId()
I’m having trouble getting the last id inserted in my table using the php PDO function lastInsertId() How do I get the last id inserted in my table using my structure? Connection to the bank class…
-
0
votes1
answer121
viewsQ: Slow return subscribe - Angular4
I started the studies with angular4. I made a simple request that returns me one json. So far so good... When making the comparison in my component with the data returned from my service, it also…
-
1
votes1
answer1368
viewsQ: Return of Request - Angular4
I started the studies with angular4, and I’m trying to get the return json a simple request through a service. But when calling the method that makes the request, it presents me the following error…
-
1
votes1
answer183
viewsQ: Roles and Roles Api
Is there an API that lists job positions and functions? (In Brazil) Example: Informática -> DBA, Programador, Suporte Técnico. Among other types of jobs. It doesn’t necessarily have to be an API,…
apiasked Max Rogério 423 -
-2
votes1
answer138
viewsQ: Ionic v1 build windows 10 or 8.1
I’m trying to build a trial app for windows 10 or 8.1. I’ve already added in config.xml: <preference name="windows-target-version" value="10.0" /> Ai on the console I run the following…
-
0
votes1
answer1501
viewsQ: How to use Boolean in Json
I have the following JSON, and within my code I have a check to see if autoLogin is enabled. Object {autoLogin: "true", autoLoginKey:…
-
1
votes2
answers135
viewsA: Using Templates with PHP
If you get via get the content parameter, try this way: Assuming you are redirecting to a page called home. And you created the files home.css, home.js, home.php URL will be the parameter via get…
-
0
votes1
answer770
viewsQ: Access database via Mysql Workbench
I cannot access a database from Mysql Workbench. The following message appears: However, through PHPMYADMIN, I can. How do I access via Mysql Workbench?…
-
2
votes0
answers68
viewsQ: Doubt: Web Sockets and how to use
I was seeing this question link. Then I did not read in the answer about nodejs and researched about, but I did not understand much. How to apply this technology (nodejs)? I am developing a site in…
-
1
votes2
answers904
viewsQ: Generate empty row (null) in sql server
I don’t have much knowledge of sql, but I need to do the following procedure: User gives a number. Sql generates the amount entered by the blank/null record user. After generated the blank records,…
-
0
votes0
answers924
viewsQ: Create . exe or . bat to open file as another user
How do I create a file to run a .exe with another user, with user values and password set. Ex: user:max.rogerio and password: 123456 I tried to use the run as but every time it starts windows he…
-
0
votes1
answer2915
viewsQ: Pick table value with jQuery
I would like to take the value of one column of the table, but in a way that I could reuse the function to take values from other tables. I tried it this way, but it does not present me anything on…
-
0
votes3
answers1136
viewsA: load content after an element
I was able to solve it this way: function getTemplate(string){ $.ajax({ type : 'GET', url : string, dataType : 'html', success : function(data){ //remove o conteudo caso já tenha carregado //e evita…
-
2
votes3
answers1136
viewsQ: load content after an element
I am trying to make a function to load a content with .load() of jQuery, the .load() receives a parameter param which would be the archive address. And I’d like that html was loaded after a specific…
-
0
votes0
answers38
viewsQ: Which is safer PDO or mysqli_*?
I was reading and I saw that many say, PDO merely simulates the prepared statements and consider a disadvantage, I wonder then... Which is safer? Or which is more susceptible to SQL Injection or any…
-
1
votes1
answer977
viewsA: Fatal error: Class 'Connected' not found in C: xampp htdocs home.php on line 5
So the problem is in __autoload, that is not working properly. Does echo $_SERVER['DOCUMENT_ROOT'] and see what it shows, normally DOCUMENT_ROOT brings up to the root of the project which in your…
phpanswered Max Rogério 423 -
1
votes3
answers477
viewsA: How to use Friendly Urls in GET method search
I have a little project that I am developing for knowledge purposes in which the user url method is as follows: .htaccess RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond…
-
1
votes3
answers1037
viewsA: How to dynamize a numerical sequence of 3 in 3 numbers following the order?
I used jQuery <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ var n = 0;…
javascriptanswered Max Rogério 423 -
1
votes2
answers938
viewsQ: Push in JSON Object Angularjs
How do I add 1 item to a json object in Angularjs. In case I have: {COD: 29, MOTIVO: "teste"} And I’d like you to stay: {COD: 29, MOTIVO: "teste", ID : 12345789} I tried it this way:…
-
1
votes2
answers615
viewsQ: Json filter in Angularjs
I would like how I can filter this JSON by COD and bring only the chosen one. I am bringing the value of the code by the url and would like to filter only to display the name of the chosen option.…
-
0
votes1
answer45
viewsA: E-mail using the Phpmailer class
Try using this setting... In mine it’s working... NOTE: It is set to gmail <?php require_once '../PHPMailer/PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->isSMTP(); $mail->CharSet =…
-
0
votes0
answers90
viewsQ: Top Ionic menu
I’m trying to make a top menu in Ionic but this menu is getting on top of the content, I would like to know how to leave the content below the menu Follow the page code: <!DOCTYPE html>…
-
0
votes2
answers888
viewsA: How to compare 2 cells in different columns - SQL
Try to use different operator != SELECT * FROM nome_tabela WHERE Val1 != Val2
-
-2
votes3
answers109
viewsA: How to determine what will be loaded in HTML?
Try in your css like this: @media (max-device-width: 991px) { #header-video { display: none; } }
-
1
votes1
answer93
viewsQ: Doubt in Phpmailer
I started using the PHPMailer, and is working but would like to know if there is how the sender is the email that the user typed in my form. Note: It sends the form data field: name, subject and…
-
2
votes1
answer66
viewsQ: DOUBT: Division of layout
I am new in the area of development and I am developing a project for learning. Here I have a question about the layout division. What is best practice? Have separated the parts header sidebar…
-
0
votes2
answers612
viewsA: JSP - Using request in a method
You create methods or function to not rewrite things over and over again. In your case you just created a method and nothing else. For it to work you have to call it. // criando metodo ou funcao…
-
2
votes2
answers3743
viewsA: To set a select field with a preset value
I don’t really remember jsp But that’s the idea if(endereco.getEstado().equals("sp")){ //manda printar o html aqui //exemplo <option value="<%=endereco.getEstado()%>"…
-
-1
votes2
answers3743
viewsA: To set a select field with a preset value
Use html to leave an option marked <select name="estado"> <option value="sp" selected>São Paulo</option> </select>…
-
0
votes1
answer1148
viewsA: User when logging in has 2 types of menus and before that the system must understand whether it is logged in or not to display another menu
Dude, you’ll have to submit the menu as per the permissions the user has through if Type <?php if($_SESSION[ 'permissao']=="Nivel1" ]){ ?> <li>Mostrar Tag do menu ADM</li> <?php…
-
0
votes1
answer142
viewsQ: INTEL XDK + IONIC error while installing apk
Good afternoon, I’m developing a study app... I followed the tutorial videos of FULL STACKER DEVELOPER and modified as wanted. The app works on localhost and on intel xdk Simulator (using an online…