Posts by João Paraná • 3,277 points
69 posts
-
0
votes3
answers170
viewsA: Create markup with predefined symbols
Updating: According to this link https://www.mathjax.org/cdn-shutting-down/ the CDN quoted by @Bacco will be out of operation and should be replaced by…
-
2
votes1
answer117
viewsA: Google Polymer and ANGULARJS (2016)
I use the Polymer and I see no need to use the Angular and explain why. To understand this we must answer the question: How Angularjs 2.0 and Polymer are related ? Direct answer: they are unrelated.…
polymeranswered João Paraná 3,277 -
2
votes2
answers541
viewsA: Is there a list of all properties that need prefixes?
I suggest you use Build software such as Gulp. In this case you can use a plugin that will automatically match the prefixes in your CSS. Example of Plugin:…
-
0
votes1
answer97
viewsA: JASS implementation in JSF + Tomcat
In his method getMensagemI18n you do not check the integrity of the parameter String chave. Any of the instructions below can return null in any segment. FacesContext context =…
-
3
votes1
answer186
viewsA: What is the gain of "unifying" the resources . css and . js of a site?
In the case that the files are together only a single request to the server is required to get the content. Moreover file compression tends to work better than in the files separately. For this…
-
2
votes1
answer585
viewsA: The chmod command does not work as expected when using MINGW32
MINGW works slightly differently than a linux distribution. It requires a Shebang at the beginning of Shell to change the file attribute. $ cat ~/bin/minha-shell #!/bin/bash echo "Esta é minha…
-
4
votes2
answers185
viewsA: In what order is the init() method invoked in the GO language?
The GO connection has a very own way of dealing with module initialization/Packages. There is a description of this boot problem in http://golang.org/doc/effective_go.html#initialization To simplify…
golanganswered João Paraná 3,277 -
3
votes2
answers2468
viewsA: How to edit my JS files inside Docker container using Sublime 3?
You can use the functionality VOLUME for that reason. Suppose your Dockerfile directory is on ~/Desktop/meu-site and that the Document Root of the Apache (Container) site is on /var/www/html Do the…
-
10
votes3
answers2587
viewsA: What are the advantages of using Docker instead of Vagrant?
The maintenance of Development, Homologation and Production environments has a great impact on Application Lifecycle Management (ALM - Application Lifecycle Management), due to the great complexity…
-
5
votes4
answers1708
viewsA: Pass javascript object by parameter in ajax callback
The solution is simple: just do it like this: onclick="popularEdicaoRetrofit(meuNamespace.data);" But on the turn of the dice via Ajax do this: var meuNamespace = meuNamespace || {};…
-
4
votes3
answers6360
viewsA: What is Google Polymer?
Complementing the @Danguilherme response follows some important details: Benefits There are many benefits of Polymer where we can highlight: Declarative Programming Lets you implement Domain…
polymeranswered João Paraná 3,277 -
1
votes1
answer112
viewsA: Polymer - Assign a default value to a content tag
João Paulo, I do not believe it is good practice to change the content of the "Insertion point" from its component because it destroys the encapsulation. The "Insertion point" serves to implement…
-
2
votes3
answers342
viewsA: JSON integration with Swift
Another solution: Try this on your Playground from Xcode 6.1.1. Playground is quick to test, then you migrate to your project. import Foundation let jsonObject: [AnyObject] = [ ["name": "João",…
-
1
votes3
answers619
viewsA: Rotation on certain screens
Do the following: create a project on Xcode 6.1.1 with the template Tabbed Application because it is faster to develop and demonstrate the functionality. I did it in Swift but it should be the same…
-
1
votes1
answer625
viewsA: How do I send data from a Jtable to my BD?
You will need to do the following: Connect to the database using the appropriate credentials and the corresponding JDBC driver. For each Jtable row map the data to a record to be saved (it can be an…
-
3
votes1
answer905
viewsA: Java use library . DLL
You can use this Github project to make your life easier: https://github.com/twall/jna Step by step: Create a Maven Project Create the source C Create the Java interface Create the Java class…
-
1
votes2
answers141
viewsA: How to access a Cocoa Touch Framework module on Playground Swift
Try this on your Playground from Xcode 6.0.1 import Foundation let jsonObject: [AnyObject] = [ ["name": "João", "age": 20], ["name": "Pedro", "age": 45], ] func JSONStringify(jsonObj: AnyObject)…
-
1
votes2
answers470
viewsA: How to run PHP Data Import code for Wordpress site?
For this problem of importing products from WooCommerce there is a very good plugin with a free version https://wordpress.org/plugins/wp-all-import/ that has an Add-on to WooCommerce…
-
10
votes4
answers42074
viewsA: What are the main differences between jQuery and Angularjs?
Jquery is simply an API for easy handling of the DOM (Document Object Model) Angularjs is a complete MVC Framework with support for Data Binding, Dependency Injection, Custom HTML Element Creation…
-
2
votes2
answers757
viewsA: Angularjs Directive - Good practice
Four different grammar alternatives have been created to meet the needs of all developers, from those developing for older versions of Internet Explorer to those developing apps for iOS and Android…
-
0
votes2
answers988
viewsA: How to position a div side by side with JS/jQuery
Suppose you want to align the chat windows on the right then you have to assign the value of the right attribute in CSS via Jquery as well. Assign increasing values in 205px quantity as the width of…
-
0
votes3
answers217
viewsA: Is it possible to use Controllers hierarchically in the Angular JS?
I don’t know about the earlier versions but tested in version 1.2.19 Angular and ran smoothly. See code below: <!DOCTYPE html> <html ng-app="ctrlhierarquicos"> <head> <meta…
-
4
votes1
answer777
viewsA: bbPress official translation into Portuguese
If you already have an account at http://translate.wordpress.org use it otherwise create one and log. Then download the files .po and .mo, version 2.4 or later in…
-
5
votes1
answer1714
viewsA: Wordpress with friendly URL - Apache error - How to resolve?
Check in your file /etc/apache2/httpd.conf the following conditions: The line below should be uncommented LoadModule rewrite_module libexec/apache2/mod_rewrite.so The lines that define whether .…
-
12
votes2
answers2271
viewsA: How do you really learn how to use Javascript promises?
You can think of the promise as an implementation of Design Pattern Remote Proxy. A promise is a method of solving a value (or not) asynchronously in a natural way. Promises are objects that…
javascriptanswered João Paraná 3,277 -
3
votes3
answers9080
viewsA: On-demand paging with Angular or Javascript
What you need is the Angular-UI. Among other components it provides the Pagination. See the goal of the project: Native Angularjs (Angular) Directives for Bootstrap. Small Footprint (5kb gzipped!),…
-
2
votes1
answer74
viewsA: I cannot access website served by Grunt server from another computer on LAN
This problem can be solved easily. Switch in your configuration arquivo Gruntfile.js the following: Of hostname: 'localhost' For hostname: '0.0.0.0'. When you put localhost address is only allowed…
-
2
votes2
answers1057
viewsA: How to format JSON message to read easily
There are several formatters for JSON message but what I like most is JSBeautifier. You can use it by simply copying your code to the Clipboard and opening the site Jsbeautifier.ORG and then gluing…
-
0
votes2
answers1059
viewsA: How to automate login to Gmail?
There is currently a better alternative because Google has provided a platform for programming Scripts to run as a WEB application or linked to Google Drive documents. This solution is called Google…
-
10
votes3
answers8540
viewsA: Javascript floating point account realization with absolute precision
Javascript performs all numeric operations using floating point mathematics (because the type is Double compatible with the definition IEEE). Using floating point numbers works well for engineering…
-
2
votes1
answer377
viewsA: How to ensure that a Servlet is Deployed in Tomcat 7 using Servlet Container 3.0?
If you use the Tomcat Embedded may force Tomcat to view your Servlet programmatically and not need to edit JEE descriptors in XML. Here’s an example below where you don’t need to use the annotation…
-
5
votes3
answers22495
viewsA: How do I start Tomcat as a service on Linux?
Assuming Tomcat7 is installed in /usr/local/tomcat you can put the following shell in the directory /etc/init. d You must create a Tomcat user so that you can run the shell inside his sandbox.…
-
10
votes1
answer426
viewsA: How do I Debug BASH Scripts?
Use the following: sh -x script [arg1 ...] bash -x script [arg1 ...] This allows to make a trace of what is being executed. Another useful option is -n which means in Execution and -v which means…
-
2
votes2
answers560
viewsA: How to view data from a Cordova database?
On your Desktop install the Chrome Browser extension Adobe Edge Inspect CC. On your Mobile Device install the "Edge Inspect App" Put the two on the same Wifi network. On your Mobile Device create a…
-
2
votes1
answer1549
viewsA: How to write a file to ISO-8859-1 without losing accentuation
You should use the java.nio.charset.Charset class when building an object String. With this you are ensuring that you are building an object in the same encoding you specified in Eclipse. In your…
-
6
votes1
answer11313
viewsA: Oracle 11 is expiring the passwords. How do I reset this?
To verify which profile name is associated with a given set of users: SELECT username, profile FROM dba_users WHERE username in ('SYSTEM', 'HR'); To check how a certain Profile is defined (relative…
oracleanswered João Paraná 3,277 -
3
votes1
answer1710
viewsQ: How to export data from an Oracle 11 database and import into an Oracle 10?
I am having trouble exporting data from an Oracle 11 to another Oracle in version 10. I tried to copy the binary exp from old machine to new but as they are different architectures (32/64 bits) did…
-
3
votes2
answers964
viewsA: Why doesn’t polymorphism work with Generics?
There is an interpretation error in your question when you say "Why doesn’t polymorphism work with Generics?" because the code List dogs = new Arraylist(); is polymorphic in relation to the…
-
1
votes2
answers180
viewsA: C++ compiler
Use GNU running on Mac OS X, Linux, Free BSD and Windows (the Mingw implementation is the easiest to use). You can use the Eclipse IDE which has a distribution for C and C++ developers called CDT -…
c++answered João Paraná 3,277 -
9
votes5
answers1698
viewsA: How can I ask the user for confirmation in a bash file?
From what I understood a possible solution is this below : echo "Tem certeza que blá, blá, blá ? Digite SIM para continuar ou qualquer outra coisa para terminar" read resp if [ $resp. != 'SIM.' ];…
-
3
votes1
answer933
viewsA: How to override variable defined in POM with specific value at the time of mvn execution?
To overwrite a property defined in the POM use the parâmetro -D typical of any Java application when invoking the mvn For example to deploy assets shared by applications to a TEST directory : mvn -P…
-
9
votes5
answers41645
viewsA: What are the advantages and disadvantages between Mysql and Postgresql?
To choose the best DBMS solution for your project you need to know more information about the architecture, for example, whether it is a WEB application with layered architecture or client/server,…
-
1
votes2
answers1059
viewsA: How to automate login to Gmail?
You can create a java or C++ server that plays the role of a Proxy for the content of the desired email. This server must use the Google Apis to connect to the email service. Your web page can…
-
0
votes2
answers1451
viewsA: Virtual machine created on X computer does not work with Y computer
The Virtualbox (by Oracle) https://www.virtualbox.org/ works on MAC, Windows and Linux and you can use it with virtual machines created by Vmware. I successfully use Windows to open and run virtual…
vmwareanswered João Paraná 3,277 -
3
votes2
answers2530
viewsA: Maven - Configuring the Mainclass
Should you did not have external dependencies of other Jars just use the Maven-jar-plugin and put the complete reference to your class that has the method public static void mais(String[] args) as…
-
1
votes1
answer808
viewsA: Convert string to WE8MSWIN1252
Except for some minor differences WE8MSWIN1252 is equivalent to ISO-8859-1 in this way if you use UTF-8 on your PHP pages you should look for a function that converts the UTF-8 Strings to…
-
12
votes1
answer295
viewsQ: Can CORS be configured for Websocket?
I have an application that needs to communicate via Websocket with two servers each on their own independent domain. It is possible to configure CORS to allow this double and simultaneous…
-
3
votes2
answers999
viewsA: How to wait for the result of a Restful API in Nodejs
AWS services are intrinsically asynchronous. Of the two one, either you adopt this paradigm or you should use a library or module of Node JS transforming this paradigm asynchronous for a…
node.jsanswered João Paraná 3,277 -
3
votes6
answers7569
viewsA: Use of global variables and class variables in Delphi
In any development environment that provides scope facilities for variables so you can create members in the Class (Java, Delphi, C#, etc.) always use these features instead of global or class…
-
1
votes1
answer3767
viewsA: dynamic path out of context in Servlet
Do so: OPTION 1 String path = this.getServletContext().getRealPath("../imagens"); File f = new File(path); String imagensHome = f.getCanonicalPath(); You can then create a Servlet to fulfill the…