Posts by Paulo Gustavo • 1,319 points
38 posts
-
2
votes1
answer398
viewsQ: Problems with git merge
Guys, I’m having a problem I’ve never caught before with git.. In our flow we have a branch called DEV which is where everyone else comes out. And all tasks after finishing go through a merge from…
gitasked Paulo Gustavo 1,319 -
0
votes0
answers29
viewsQ: Javascript Webworkers
I’m studying a little webworkers and created that scenario: <html> <head> <meta charset="utf-8" /> </head> <script src="index.js"></script> <script…
-
3
votes1
answer86
viewsQ: Javascript singlethread - Doubt
I’m having a strange doubt, I’d like your help to try to clarify.. Since Javascript is singlethread and asynchronous calls try to bypass this "weakness", what happens when a Webkit process crashes ?…
-
0
votes1
answer368
viewsA: Grey screen in videos
This image is called "poster". It serves to show something before the video starts playing, it usually appears when the video is being loaded. I realized the problem by adding the following code to…
-
1
votes1
answer368
viewsQ: Grey screen in videos
I’m playing videos on android (versions above 5 only) using a webview along with the tag <video> of html. The video plays perfectly and triggers all events correctly, but every time a video…
-
2
votes1
answer217
viewsQ: Controllers in includes Angularjs 1
I am having a very strange problem and I would like if someone understands my doubt, could explain to me why it happened. My application is a player and this one is composed by some timeouts for…
angularjsasked Paulo Gustavo 1,319 -
3
votes1
answer988
viewsQ: Alternatives for not using Webview
There are alternatives other than webview android to use? I’m having a problem that from what it seems, a lot of people have that is to run videos on the tag video of Html5. Many people say that the…
-
3
votes4
answers1025
viewsQ: How to make a LOOP run according to the return of a Promise (promise)?
How can I make my loop wait for the return of a Promise? Let’s say I have the following code: for (var i = 0; i < 10; i ++) { // algumalógica fazAlgumaCoisa(array[i]); } var fazAlgumaCoisa =…
-
0
votes0
answers77
viewsQ: Is it possible to make javascript wait for a given async of android?
Imagine this scenario: I have an application developed in Angularjs that runs in some environments like proprietary hardware and computers. We are currently adding our software to the android…
-
1
votes1
answer99
viewsQ: Treat 404 on video Html5
How can I handle errors like 404 in the Html5 video tag? I took a look at all the available events and the only one who was supposed to serve in this case was the onerror, however, when I define it…
-
3
votes1
answer54
viewsQ: Objects in javascript
When we work with objects in javascript, and with the Angularjs framework, where we write the code of the objects? For example, I’m going to create an object that looks something like this: var…
-
1
votes1
answer407
viewsQ: Should we avoid circular dependencies?
When working with Angularjs it is very common to have applications where services contain only HTTP calls to the server that will store the data. However, in an application where we will not have a…
angularjsasked Paulo Gustavo 1,319 -
1
votes3
answers617
viewsA: Create temporary lock on the app
How to do the lock has already been answered, the doubt is now on how to unlock. I think do a service background would be the good solution. As @ramaral suggested and @Fernando commented, blocking…
androidanswered Paulo Gustavo 1,319 -
3
votes3
answers738
viewsQ: Hybrid applications optimize webview?
How the frameworks Do hybrids work? In my view what they do is they spin everything on top of the webview platform native, just packaging the JS code inside an application directory, such as Assets.…
-
1
votes2
answers207
viewsA: How to create multiple vectors dynamically with Javascript?
One way to do it is like this: var criarArrays = function(n) { var arrays = []; for (var i = 0; i < n; i++) { arrays[i] = []; } return arrays; };…
-
7
votes3
answers161
viewsQ: Are objects similar to arrays?
Objects are arrays in Javasscript? I have difficulty understanding how this is possible: var obj = { title: 'some value' } console.log(obj['title']); // some value In my conception the use of square…
-
6
votes1
answer80
viewsQ: How long is the data allocated to functions?
In one language, (I don’t know if there’s any difference in others, but you can consider Javascript) when I have this situation: function a() { b(); } function b() { c(); } function c() { d(); }…
-
-2
votes1
answer146
viewsQ: Advanced android course
Guys, anyone knows any institution that offers an advanced android course? What do I mean by advanced android? I want someone who has already created their own version of android, who has changed…
androidasked Paulo Gustavo 1,319 -
0
votes0
answers74
viewsQ: Create event to check display duration of images, similar to video in HTML5
Guys, I was checking out the tag video of Html5 and saw that this has enough control events, as that, so it is possible to know when a video is about to end and also trigger an event when it ends. I…
-
1
votes1
answer36
viewsQ: Doubts regarding the Grunt
I’m not very experienced in javascript and wanted to know what would be a production version. I’m using the Grunt to concatenate and minify my application in order to make it smaller. The files…
-
13
votes2
answers2794
viewsQ: What is the difference between setInterval/setTimeout and Web Workers?
I was taking a look at some HTML5 features and came across this Webworkers whose definition is: When executing scripts in an HTML page, the page Becomes unresponsive until the script is finished. A…
-
4
votes1
answer2299
viewsQ: JS + HTML Image Preload
Guys, I have an embedded application where our processor is not the best, which ends up giving some problems. Let’s say I need to display images of 10 to 10 seconds, in theory, it would only be to…
-
1
votes2
answers140
viewsQ: Angularjs - A service is not "static"?
Starting from the idea that services are singletons (All Services are singletons), if I create a simple service with "local" variables and modify this in a controller, when accessing this value in…
angularjsasked Paulo Gustavo 1,319 -
1
votes2
answers848
viewsA: Desktop application audit log
Here where I work, we part ways logs and audit. To logs, such as system errors, etc., we use the Logback, which enables us (if running on server), to analyze in real time what is happening and also…
-
3
votes1
answer72
viewsQ: Angularjs Protocol file://
Guys, I’m making an embedded application in Angularjs that when the system (operating, not the application) starts, it opens the index.html that contains the application made in angular. The front…
-
1
votes1
answer58
viewsQ: Javascript - Settings Steps
I have a problem that is: I need my app to make a number of settings when starting. I tried to do it using state machine, and I ended up finding this:…
javascriptasked Paulo Gustavo 1,319 -
3
votes1
answer271
viewsQ: State Machine with Angularjs
I’m having trouble implementing a state machine using Angularjs.. On my first try, I tried using this one made in JS: https://github.com/jakesgordon/javascript-state-machine I could not make it work…
-
0
votes0
answers58
viewsQ: Suggestion with JS system architecture
Hello, all good? Currently I have a system made in AS2 that has the functionality to run videos and images. It works with a concept similar to finite state machine. How is the code done? It runs…
javascriptasked Paulo Gustavo 1,319 -
20
votes4
answers3187
viewsQ: Should one use break in going?
I have a question about the loops of repetitions. I had a class in which my teacher said that one should never use the for if you don’t execute it from start to finish. Only I’ve seen many, many…
-
2
votes1
answer1168
viewsQ: Problems with localhost application with Angularjs and Nodejs
I’m having some questions and problems trying to create a server with nodejs. The point is I have an application developed with Angularjs very simple and want to do another in nodejs which basically…
-
3
votes0
answers172
viewsQ: Embedded application with Javascript and Angularjs
all good? I am in need of a light. I will describe a brief scenario: Imagine a FLASH application (for viewing videos, streaming, dynamic media, etc.) and C (memory control, internal http server for…
-
3
votes2
answers247
viewsQ: Doubts regarding the use of the Java 8 stream
I’m practicing some new things that came with Java 8 and between those the use of Stream. I have heard that when we do some action in a list using the stream, it does not change the value of the…
-
7
votes2
answers739
viewsQ: Problems with Hibernate Lazy
Friends, all good? I have a problem that is the famous: org.hibernate.Lazyinitializationexception:. I know this is because the session has been closed and Hibernate can’t connect to make the selects…
-
9
votes1
answer234
viewsQ: Encapsulation and Java Access Modifiers
A very simple question: Given that class: public class User { private String nome; //get/set public boolean fazQualquerCoisa(){ **duvida**.equals("algumacoisa"); } } Within the method did All() I…
-
2
votes1
answer170
viewsQ: What is the best IDE to program in AS2?
I will start programming in an AS2 application and would like to know which is the best IDE to use. I searched and found these two: Flashdevelop and Intellij IDEA. I’ve worked with Android Studio…
-
1
votes1
answer161
viewsA: Problem using JSF Applicationscope
Well, I managed to solve it. I will post the final code: Bean da Applicationscope: package view.point; import javax.faces.bean.ApplicationScoped; import javax.faces.bean.ManagedBean; import…
-
4
votes1
answer161
viewsQ: Problem using JSF Applicationscope
I’m having a problem using the ApplicationScoped in JSF to save my country list. I made this managedBean: package view.point; import javax.faces.bean.ApplicationScoped; import…
-
2
votes0
answers488
viewsQ: Questions with Flashscope
Hello, all good? I have a question regarding the use of flashScope and would like your help. When we put an attribute inside Flashscope, how long does it stay there? I mean, the attributes of the…
jsfasked Paulo Gustavo 1,319