Posts by Celso Marigo Jr • 2,774 points
106 posts
-
0
votes1
answer149
viewsA: Android studio error 2.2 osx
This error is due to the amount of memory you have set on the device you are emulating. It is being suggested in the setar message for 1024Mb. To do this, use AVD Manager and configure the device’s…
android-studioanswered Celso Marigo Jr 2,774 -
1
votes2
answers816
viewsA: Rotate Canvas in Delphi
Dude, a way I found on google is bit by bit. I didn’t know it had to be like this. procedure Rotate90(Source: TGraphic; Target: TJpegImage); var SourceBmp, TargetBmp: TBitmap; r, c: Integer; x, y:…
-
1
votes1
answer37
viewsA: Pass tableview value to tabbar
The problem seems to be here: //Labels da primeira viewcontroller Detalhe1.ID.text = arr1[indexPath.row] //Labels da segunda viewcontroller Detalhe2.ID.text = arr2[indexPath.row] You should not pass…
-
1
votes1
answer163
viewsA: JAVACV with Ma Ven?
See that to build the project you need to download the files mentioned in the project read me. In page Github’s project is explained this. You should compile the projects separately. But note that…
-
3
votes2
answers817
viewsA: Check if string starts with number
The expression for this is very simple: "^\d" In a function is something like this: using System; using System.Text.RegularExpressions; class Program { bool ComecaComNumero(String s) { Regex r = new…
-
2
votes2
answers2045
viewsA: Postgresql Hibernate Id Generation Strategy
I think the best way is for you to create the quence for each table in the database and then set in the model to use it: To create Quence, use: CREATE SEQUENCE seq_empresa START 1; To tell Hibernate…
-
2
votes1
answer2703
viewsA: How to develop in Android Studio with Firebird database?
Let’s go in parts. You can try connecting with Firebird using the specific JDBC for this. The fact that you use the Eclipse or Android Studio does not change anything in this sense. So it may not…
-
1
votes0
answers55
viewsQ: Demoiselle Appletexecute error in manual
In the Demoiselle documentation of the link: http://demoiselle.sourceforge.net/docs/components/certificate/reference/2.0.0/html_single/#applet-configuracao To create the example applet, add the…
-
1
votes1
answer480
viewsA: Wamp Server how to send an email using a gmail account using a php on the localhost?
Your code worked here in my test, the only thing I changed was how to do the include of the Phpmailerautoload.php class. require './PHPMailer/PHPMailerAutoload.php'; Whereas the Phpmailer directory…
wampanswered Celso Marigo Jr 2,774 -
1
votes2
answers3258
viewsA: Add dependency on android studio
Android Studio uses the Gradle as Database and dependency manager, but still uses the Maven central repository to resolve these dependencies. When I need something like: 1 - i search for the…
-
10
votes3
answers1195
viewsA: PHP + Delphi(Pascal), issue real-time warnings
I suggest the following architecture: - PHP Webservice on the server; - Desktop Application, Delphi, consult the WS server. For the desktop application, has not much secret, use the Timer, and make…
-
2
votes2
answers1576
viewsA: Bring QR Code data to my fields
You can use the Split to separate the string in an array using a delimiter, in the example you posted, its delimiter is "|", so do something like this: String[] resp = result.getText().split("|");…
-
-1
votes3
answers1573
viewsA: How to send parameters to a server?
I do it using parameters in the URL, cryptograph the parameters and upload and parse these on the server side. To send the POST envelope a look at this Stackoverflow response in English:…
-
7
votes2
answers22340
viewsA: What is assert in Python for?
The assert exists in most programming languages and always has the same function, ensure a condition to continue the implementation of the code. If the condition is not met, an exception is…
pythonanswered Celso Marigo Jr 2,774 -
3
votes2
answers7769
viewsA: Log table using Mysql
One option I’ve met recently is an auditor, there is an audit component provided by Mysql, the Mysql Audit Enterprise, and there is also the Mariadb Audit Plugin, of Mariadb, which is an auditor,…
-
5
votes3
answers1685
viewsA: How to handle large volumes of data in a database?
I think that you should not, nor should, be recording the SERIAL, in the Input and Output tables, in this case to do the Insert you would need to do using a Stored Procedure, because you would be…
-
0
votes4
answers364
viewsA: Error saving form data in php
Your query is wrong. You cannot just pass the variables as if they were parameters, so instead of doing this: $sql = "INSERT INTO dados_pessoais (matricula,nome,data_nascimento,…
-
1
votes2
answers677
viewsA: How do I enable Netbeans to open a folder on the system (Open in system browser)?
Use this plugin Quickopener, tested and working! Reference: https://stackoverflow.com/a/2624485/1997073…
-
1
votes2
answers4197
viewsA: Firebird - Select with date less than 10 days
The Firebird DATEDIFF function returns the difference between a date and another, according to the first parameter of the function, which can be: day : difference in days; month : difference in…
-
4
votes3
answers1117
viewsA: Read Remote Server log.txt on Real-Time Local Server
I know that in Windows when I need something like use the Plink, utility of Putty via SSH runs commands on a remote server bringing the output of the remote to Windows. Something like that, for…
-
3
votes1
answer650
viewsQ: Javascript with ajax, function return. Why doesn’t it work?
I made a code Javascript to enable some buttons and inputs in a FORM, according to the user’s permission, stored in a SESSION. Had done so: function showEditButtons() { if ( verUserPermissions(8)…
-
0
votes2
answers55
viewsA: I cannot delete a range of words in a string
The @Will solution looks good, but she takes what’s inside the tags and, I made a simpler solution using: replace : To catch a substring; strpos : To find the position of a substring. Stayed like…
-
0
votes2
answers3179
viewsA: Read a received SMS
If the string la of the end of your code already contains line, message, which you read in the line below: String mensagem = msg.getDisplayMessageBody(); You can use Split, as already mentioned by…
-
5
votes3
answers666
viewsA: In bash, what is the difference between <, << and <<?
Basically: < - Input operator, the previous command receives what is passed after the '<'; << - Input operator, with append, you can use for more than one input line. I do not see much…
bashanswered Celso Marigo Jr 2,774 -
5
votes3
answers4489
viewsA: Like "startar" a Node server?
Probably, although you create the NODE_ENV variable, it is not in the Windows PATH, this is necessary for Windows to recognize the command you are running, in case Node -v. Do this in the advanced…
-
1
votes2
answers335
viewsA: Library that reads text and turns into audio
I found! http://www.masswerk.at/mespeak/ Very interesting even!
-
0
votes1
answer23
viewsA: Do you display texts in the APP by strings?
If the data is fixed you can store in a sqlite database, and present to the user. Now, if the data is dynamic, and provided by a web-service, and you need it to be offline, you should update your…
androidanswered Celso Marigo Jr 2,774 -
1
votes1
answer1864
viewsA: Access with another user in postgres
Use the psql: psql -h HOST -U USUARIO -W See some useful links: Summary of useful Postgresql commands Basic psql commands via SSH Postgresql: basic commands…
postgresqlanswered Celso Marigo Jr 2,774 -
4
votes1
answer116
viewsA: Intel XDK + SVN(Subversion)
With SVN it is possible to control code version, in text format, such as Java, Javascript, C, etc, and even binary file versions, such as compiled code. Obviously the advantages are more visible,…
-
0
votes1
answer1299
viewsA: Creating Schedule to transfer CSV files from Winscp to FTP
You certainly know the Putty, he has a utility called PSCP, which does file transfer via SFTP, or SSH. It can use a session created within Putty for the connection, something like this:…
-
0
votes2
answers287
viewsA: Share button for Linkedin
You should implement their API, take a look at: https://developer.linkedin.com/ Choose the language you want to use.
-
2
votes2
answers1042
viewsA: How to make the use instructions screen when starting an app
Try these two: Robodemo Showcaseview This is no longer in development but may be useful.…
androidanswered Celso Marigo Jr 2,774 -
0
votes2
answers50
viewsA: Is there an API to create a similar Google Directory API service?
Maybe the Maven website generator can help you in this task, because it is possible to generate websites with project documentation and additional items, from a look: Maven - Creating a Site…
-
1
votes1
answer752
viewsA: @Size, using Hibernate Validator, accuses error in value that should pass validation
Basically both are redundant according to the Documentation of Hibernate: But note that in the case of Length, the field in the table will have the size set in Max, and this is only valid for…
-
2
votes2
answers111
viewsA: Combining column value with Mysql
I was curious, I tried using Binary operators and it worked. select count(entidade) as Total, SUM(evento_a | evento_b) as EventoDisparado from evento; Return: Total: 10, Eventsigned: 6 Reference:…
-
0
votes2
answers345
viewsA: Android sqlite order by com case
The @ramaral response is almost correct, works with the parameters but the class is not compiled in the posted way, below as it was: String query = "SELECT PD.ProCodigo, PD.ProDescricao,…
-
0
votes2
answers345
viewsQ: Android sqlite order by com case
I need to sort a query like the example below, where, the searched text is 'un', it first brings the items that start with 'un'. This is exactly what I need, to order the output of the query, so…
-
2
votes3
answers9295
viewsA: Email verification in Java
Does Your Email Class Need a Main Method? If you want to record an informed email to it a builder would make more sense. public class Email { static String email; public Email(String email){…
-
2
votes1
answer269
viewsA: Login with facebook
First you need to register your application on facebook: https://developers.facebook.com/ After that you will have a key-api and secret-api that identify your application on facebook. Done this you…
-
1
votes1
answer634
viewsA: Error connecting Postgres to remotely
You need to release the permission in the file: /var/lib/pgsql/data/pg_hba.conf Add a line to release an IP address or range: host all all 192.168.94.0 255.255.255.0 md5 At doubt of a look at the…
-
1
votes1
answer166
viewsA: How does social application integration work?
The protocol used for application integrations is O-Auth. I never implemented it on the side of my application, just tested the use of integration with applications like those cited in your…
-
3
votes1
answer192
viewsA: How to Mount a Slide
If you want to do it from scratch, see: http://tableless.com.br/criando-slideshow-zero-com-javascript-puro-2/ I would use the Prezi is a great tool for making slides: https://prezi.com/…
-
2
votes1
answer592
viewsA: Slim Framework PHP Routes
Good morning. I don’t have much experience with Slim, but the way I’ve done and it’s worked: $app->get('/hello', function() use ($app) { ... } My . htaccess, it’s like this: RewriteEngine On…
-
1
votes4
answers7856
viewsA: Calculate Total Hours by identifying Equal Time Intervals
I would like to propose a solution: I would do with an auxiliary table, totaling, something like that: MATRICULA | HORA_INICIO | HORA_FIM | ACIONAMENTO XXX | INICIO_ACIONAMENTO 1 | NULL | 1 When…
-
0
votes1
answer82
viewsQ: Demoiselle-Nimble: Error generating CRUD Vaadin
I’m using the class below, Banco.java, below: @Entity public class Banco implements Serializable { private static final long serialVersionUID = 1L; @Id…
-
0
votes2
answers161
viewsA: Version Control Help - GIT/ SVN
Here in the company we have used Subversion for a long time. http://svn-ref.assembla.com/subversion-server-guide-linux.html As for migration issues I don’t know what to tell you.…
-
0
votes3
answers375
viewsA: Demoiselle Error deploying to Jboss
This problem has been solved. But a new one came up when deploying another application this time an example using Vaadin: 11:47:56,436 ERROR [org.jboss.as.controller.management-operation]…
-
5
votes1
answer81
viewsA: When deleting a character, how do I execute something?
It’s not very clear what you want to do, but if you want to check if the last character is a dot, do it: int length = texto.length(); if (texto.substring(length - 1, length).equals(".")) {…
-
3
votes3
answers375
viewsQ: Demoiselle Error deploying to Jboss
When trying to deploy the example application, registration, of the Demoiselle tutorials in Jboss, I got the following error: 11:34:16,873 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7)…
-
0
votes3
answers707
viewsA: Sum table values
As a suggestion, I would let the database solve the problem, look at this article, very good, in English!…