Posts by Paulo Sérgio Duff • 1,201 points
52 posts
-
0
votes0
answers38
viewsQ: Are there Patterns shared between functional and object-oriented paradigm?
Desing Patterns is a subject that has strong appeal to object orientation. We can hardly see in the literature these subjects associated with another paradigm. However, in version 16.8 of React came…
-
1
votes1
answer75
viewsQ: How to receive a list of parameters in a property correctly?
I’m using this widgets library: https://pub.dev/packages/flutter_rounded_date_picker The library makes it possible to disable certain dates within a calendar. Originally in the original documented…
-
0
votes0
answers25
viewsQ: Why is a POST request redirected to localhost using Angularjs and apache2?
I am making a POST request to use an authentication API. The sample code works perfectly on the original server in this documentation Follow the code used: <!DOCTYPE html> <html>…
angularjsasked Paulo Sérgio Duff 1,201 -
-1
votes1
answer538
viewsQ: What does the Storage folder in the Laravel do?
In the Laravel installation, the Storage folder appears, but I never knew the real function of it. Also common is a folder of the same name in the opencart CMS.
-
5
votes2
answers97
viewsQ: What are the consequences of not working on data typing?
I want to create an application where the client can create a new form or table, in which he can choose the data type of the field, such as number, text, binary, etc. An "easy" solution would be to…
-
1
votes1
answer106
viewsQ: How to convert a javascript object to user presentation?
I need to present the results of a firebase query to the user. To perform tests, debug code manually and check conditions, we usually use some function such as console.log, Alert, json returns,…
-
0
votes1
answer290
viewsQ: How to inject a dependency of a service of its own into a certain syntax?
Imagine a traditional service injection in an Angularjs application <!DOCTYPE html> <html> <script…
-
1
votes1
answer1833
viewsQ: How to get the ng-value value of checkbox in Angularjs/Ionic
Imagine a traditional application in Angularjs <!DOCTYPE html> <html ng-app> <head> <script type="text/javascript"…
-
0
votes1
answer347
viewsQ: How to save records of a mysql query in C++
I’m using a C++ library that does the query in the database. My goal is to make a query, and save the data in a txt file, perhaps even manipulating to stay in json format. The problem is that I…
-
1
votes2
answers574
viewsQ: How to consume JSON files in PHP in different ways?
This topic differs from subjects such as: "How to consume JSON in PHP"; "Extract json value in php"; "Read string json on php" or "Recover JSON in PHP" Although there is co-relation on various…
-
5
votes1
answer4090
viewsQ: What is a 3rd Party and what is its importance for traditional application development?
Although there is a definition in wikipedia, most often, this term is co-related to game development. Due to the specific way the term is treated, the question arises whether this concept is applied…
terminologyasked Paulo Sérgio Duff 1,201 -
1
votes1
answer97
viewsA: How to remove the warning not to use VAR in Netbeans?
To declare an attribute within a class in PHP, you declare the visibility, then the attribute. Right <?php Class MinhaClasse{ public $atributo; } Wrong Class MinhaClasse{ $atributo; }…
-
2
votes4
answers1531
viewsA: Adding my files to Github
Git is a version control tool created by Linus Torvalds to aid in the creation of the Linux kernel. The tool has its own culture, language-specific terms and concepts. Research is highly recommended…
-
1
votes4
answers1413
viewsA: Know what day falls next Monday
Although the author already has an answer, I will put here my contribution to those who go through problems involving programming logic in PHP. Name the cattle.. It is very common for programmers to…
-
1
votes1
answer702
viewsA: Help with the google maps api
Simple answer: Too much PHP (or the server language of your choice), too much javascript, too much documentation reading and a bit of HTML Not so simple answer: This will require some of your…
google-mapsanswered Paulo Sérgio Duff 1,201 -
3
votes1
answer140
viewsA: Using Hash, without adding a Salt string to the password, can make the password vulnerable?
There is not a point where it is totally safe to use an algorithm of hash. A problem is the dictionary attack on hashes. Services such as https://crackstation.net/ can easily break a hash such as…
-
-6
votes2
answers281
viewsA: What is the correct syntax to use C# object orientation using . NET Core?
The problem has been solved with the questions below. Errors involving C# So I guess there must be some import (in C# they use the expression "using" + import), anything that allows me to just…
-
-4
votes2
answers281
viewsQ: What is the correct syntax to use C# object orientation using . NET Core?
I have to familiarize myself with the implementation of object-oriented code in C#development. However, the materials I’m learning assume that I have Windows environment and Visual Studio installed…
-
0
votes1
answer447
viewsA: How to generate JSON dynamically to feed future application?
Just put the full path of the URL you want to get the JSON read in the jsonPHP.php file. Rather than include with code and everything, this will cause only the HTTP output of the file to be…
-
1
votes1
answer447
viewsQ: How to generate JSON dynamically to feed future application?
What I want to do is this: Create a minimalist application that does a database search, returns the result in JSON, and this result is interpreted by external applications via http, with no change…
-
2
votes0
answers763
viewsQ: Iframe opens in full screen in webview in Android Studio
Every time I put an iframe, instead of opening it inside the page, the iframe opens in full screen. It follows project codes Mainactivity.java package com.example.duff.webviewoficial; import…
-
0
votes1
answer83
viewsQ: How and why does getElementById not perform on page loading?
Business problem: I’ll create a system that will run on a server-less platform. It can be a local administration area interface (a client for a service), or a mobile app. The application will load…
-
2
votes2
answers80
viewsQ: How to fit all content on the screen? Edge at the bottom of the page does not appear in the viewer or browser
I’m trying to create a fully responsive layout**, and I have problems with the end of the div border. I purposely put a red border around the div, in case something goes wrong I identify…
front-endasked Paulo Sérgio Duff 1,201 -
4
votes2
answers951
viewsA: Site in dynamic HTML
According to what you wrote, you are a student/front-end developer, and for this reason, some points are extremely important to advance before you get bored with customers or your own code. HTML is…
-
0
votes1
answer526
viewsQ: How to create a Video Game style scroll horizontal menu?
I’m trying to create a menu with the following features: Horizontal with scroll Running via mobile touch/scroll. Leave the mid div option selected, with a Javascript/Jquery event (or a div inside a…
-
1
votes1
answer154
viewsA: jQuery Mobile does not allow internal links
Solution: Jquery Mobile is a framework for hybrid applications. Including mobile applications. With this, some requests are taken care of, for this reason COR (Cross origin requests) does not have…
-
8
votes4
answers517
viewsA: Why Artificial Intelligence and Machine Learning are different subjects?
Attention: The approach of this post is just one of the ways to treat a totally broad subject like artificial intelligence. It should be understanding as objectively and briefly didactic and should…
-
3
votes3
answers2785
viewsQ: How to have a full-screen Webview?
My specific question: How to open a WebView in full screen at Android Studio? Change Theme in Manifest? Change Theme in XML? Force a JAVA script? Change view margins? Change code in Style? All these…
-
4
votes2
answers176
viewsA: PHP/HTML/CSS and JAVASCRIPT script block
It does exist. It’s the Syntax Highlighting plugin Found in https://highlightjs.org/ I hope I’ve helped!
-
1
votes1
answer154
viewsQ: jQuery Mobile does not allow internal links
I am creating HTML 5 application sketch to run on device mobile. In my project, I needed to use different versions of jQuery for events to work: <script…
-
0
votes2
answers947
viewsA: How to manipulate Divs with different CSS rules?
Slow option - > Unlock all code until the Javascript functionality that influences the CSS is exposed. Changing each function, attribute and even CSS properties. It is an exhaustion method. Not…
htmlanswered Paulo Sérgio Duff 1,201 -
1
votes2
answers1411
viewsA: Separate the backend frontend or not?
There is no right way. While there are many reasons to separate the back end of the front end in many projects, there are specific situations (which I’ve already passed a few) that implementing a…
-
4
votes1
answer372
viewsQ: What formats are used to represent values (color, contrast, brightness) in digital images?
What I want to do is: recognize pixel patterns in a file, or know how Assembler treats it (to make it easier to recognize these patterns). Always wanted to create some application to manipulate…
-
0
votes1
answer41
viewsQ: Javascript generated link does not work
I have tried several ways to create a way to remove the animated menu I created. Via function, link, getElementById, etc. But any link generated by JS crashes. Code below. I’ve fixed errors by…
javascript-eventsasked Paulo Sérgio Duff 1,201 -
1
votes2
answers60
viewsA: Session without www and www php
It’s about the domain. Some domains are natively your site.com.br or www.seusite.com.br . Try setting up your hosting CNAME. Some Dnss should point to different places. Consequently generating…
-
0
votes2
answers272
viewsA: Animation manually Jquery
I find a small problem of concept with the question of the topic. Javascript in was created precisely for interactivity. So the idea of a slide not having interactivity, it’s totally weird, even…
-
1
votes1
answer40
viewsA: How to send registered data
You have to have a very basic knowledge of PHP. If you choose a database for this, you have to know a little bit about Mysql/php. If you choose file writing (which I find easier for beginners), you…
phpanswered Paulo Sérgio Duff 1,201 -
8
votes3
answers1426
viewsA: How does the HTTP protocol process requests?
HTTP is the theoretical model for hypertext communication systems. By comparison, it is a list of rules so that two foreigners can have a successful communication. Total communication is all…
-
1
votes3
answers2853
viewsA: Pass variable value inside text with echo
Variables can only receive the value inside double quotes. Single quotes is for literals in PHP. Right: echo "$minhaVariavel"; Wrong: echo '$minhaVariavel';…
-
0
votes3
answers1171
viewsA: submenu bootstrap
It’s rarely the target code! It is usually some accidental change in another part of the project. So only with this code you passed we probably won’t find out. You can force the menu to open with…
-
0
votes3
answers1171
viewsA: submenu bootstrap
If you want to make it more interesting, use the Jquery library’s Animate function Follows the code: <!DOCTYPE html> <html> <head> <title> </title> <script…
-
1
votes2
answers947
viewsQ: How to manipulate Divs with different CSS rules?
I’m creating a working time alert with scroll for tablets and mobile phones, based on the Spinning Wheel project, found in https://github.com/mcfedr/Spinning-Wheel/blob/master/index.html The…
htmlasked Paulo Sérgio Duff 1,201 -
3
votes1
answer3175
viewsA: Configuration Webview step by step
Browsing the internet, I found a solution on the site of developers of google Chrome. The link is in English, but is quite understandable even for those who do not master the language. Found in the…
-
1
votes1
answer3175
viewsQ: Configuration Webview step by step
I am developing an HTML5 application for devices mobile. Initially I used tools like Adobe Phonegab Build and App Inventor. For future projects, I have to use Android Studio. The problem is that…
-
1
votes1
answer323
viewsQ: Javascript or Jquery Draggable Vertical 3d Carousel
I’m on an Html5 app project aimed at mobile. One of the tools of this app, works like a clock. I try to get that clock set up by dragging the buttons up and down. Setting the numbers for me to…
-
0
votes2
answers742
viewsA: Jquery load function does not work
Problem solved! Cause: Ignorance about AJAX. By a misinterpretation I had of the AJAX technique, I associated it only as a client-side. Which is not true. I just put it in the Apache server folder…
jqueryanswered Paulo Sérgio Duff 1,201 -
0
votes2
answers742
viewsQ: Jquery load function does not work
Even following the official documentation of Jquery, my script does not work. Something from day to day. I do not know if I changed something unintentionally. Follows code below <!doctype…
jqueryasked Paulo Sérgio Duff 1,201 -
7
votes1
answer5161
viewsQ: How do I send push/php notifications with the site window closed?
From time to time (I think 2014 onwards), facebook has been making browser notifications using the HTML5 Notifications API. The curious thing is that facebook can send notifications, even though…
-
0
votes1
answer103
viewsA: Sending of SMTP Email
Check that your server is enabled to send via SMTP. For more doubt efficiency, tell us what kind of server you’re using. Is using in environment Linux? Are you using some test server for Windows as…
-
0
votes1
answer66
viewsA: Are there techniques to reduce the use of memory (on the part of development) regarding the use of javascript?
This is an architectural problem. What I would do is to do a new step of surveying requirements. It may be that there are events where there is waste of functions, objects, etc. Try to make requests…