Posts by Enzo Tiezzi • 1,194 points
38 posts
-
1
votes1
answer271
viewsA: Cardview inside a scrollview
In this case, all child components of your ScrollView have to own the property height being match_parent and the property height of your ScrollView be a fixed value.…
-
1
votes1
answer11
viewsA: How to use the AS operator with the Library Room?
The correct one in the clause WHERE at your command would be >= nay => @Query("SELECT SUM(item_valor) AS total FROM Itens WHERE SUM(item_valor) >= :data") Itens getMes(String data); That…
-
0
votes3
answers62
viewsA: How to use a button along with a function?(Javascript/HTML)
I don’t know if I understand your doubt, but come on. 1 - Methods in javascript follow the pattern camelCase, the first letter of the lower case method and the first letter of the remaining…
-
0
votes1
answer50
viewsA: How to maintain cohesion in my REST API?
Based on some documentation (even the Microsoft Webapi), we have a "REST standard" to keep the API organized and "beautiful". your domain api/servicos GET List => api/servicos GET Single =>…
-
4
votes1
answer374
viewsA: Is it correct to use H1, H2 with None display in order to SEO or are they penalized by search engines?
No, it’s not right, as long as it’s not done abusively. And yes, there is the penalty, so if we take sites like: Vacancies, Infojobs and Catho, the bulk of the word density are in: links, css…
-
1
votes3
answers5090
viewsA: How to make eclipse auto-complete code automatically without pressing Ctrl+space?
Go on Window -> Preferences -> Java/Editor/Content Assist In "Auto Activation" Edit the Auto Activation triggers for Java field for "abcdefghijklmnopqrstuvxwyz." So pressing any key it will…
-
1
votes2
answers238
viewsQ: Httphostconnectionexception - Android
I did in the Visual Studio Community 2013 a simple Web API to register a person and receive a person, and I’m trying to consume this service with an android app, I’m emulating the application by…
-
1
votes0
answers81
viewsQ: Generic Handler - Parser Error, Could not create type
Next guys, I made a simple Generic Handler, just to give me back one person, just for the record, the code is this way public void ProcessRequest(HttpContext context) {…
-
3
votes1
answer93
viewsQ: MSI Installer - customizing the installer
Good people, first I need to know if it is possible in an MSI installer (I use the setup project itself you have in VS) to select which application I want to install. For now I have an installer for…
visual-studioasked Enzo Tiezzi 1,194 -
1
votes1
answer561
viewsA: Sorting method of a name array
In java you can use an object of the type Collator to make the ordination. Follow an example of use: Collator brCollator = Collator.getInstance(new Locale("pt","BR")); public static void…
-
1
votes1
answer1383
viewsA: How to display a Double Chained Circular List
First, put the method signature exibirElementos1 shortly after the declaration of struct lista void exibirElementos1(struct lista * node); Make a recursive function that will pass through your…
c++answered Enzo Tiezzi 1,194 -
3
votes1
answer685
viewsA: Linkedlist Recursive Method
An example for implementation to add a value recursively in your simply linked list would be: private Node lista; public void addLast(int valor) { addLast(lista, valor); } private void addLast(Node…
-
1
votes1
answer216
viewsA: How to know if a function has been called by another form?
Yes, there is this possibility, you can do the following instead of form.Show() you can use a form.ShowDialog() bool clicado = false; private void btnFormulario2_Click(object sender, EventArgs e) {…
-
2
votes1
answer300
viewsA: Is it possible to create an agenda on Android Eclipse?
Yes, that’s possible, I see 2 ways to do it. The basics are 2 buttons like yourself said, and each button will load a different list, the code to change from Activity would be basically the…
-
1
votes1
answer59
viewsA: Problem in the organization of the data of a Listview - Basedapter
Instead of making the following code : for (String k : dados) { ip = new InfoPessoais(); ip.setNome(k); ip.setEndereco(k); ip.setBairro(k); ip.setCep(k); ip.setTelefone(k); ip.setObs(k);…
-
0
votes1
answer316
viewsA: Return Websql query as Array for a global variable
By the fact of the method executeSql be asynchronous, and have to use Callback, which will only be executed when everything related to it is "OK", the program ends up executing the bottom lines, and…
-
1
votes3
answers7273
viewsA: Load image and insert into a DIV
You can use the class FileReader to read the dataurl of the image and play in the div, which in this example mine, is a tag <img>even var oFReader = new FileReader();…
jqueryanswered Enzo Tiezzi 1,194 -
4
votes2
answers141
viewsQ: Displaying massive amount of data
From the moment we work with a very large amount of data(eg: more than 3 million records), and we need to display this data on the screen while the user uses the page, always having the best…
-
5
votes2
answers1991
viewsQ: Changing the Culture of the System
Developing a system for a Bolivian company, in a windows with Culture pt-BR, some objects like datetimepicker has its internal components according to the language in which the system was installed.…
-
1
votes1
answer728
viewsQ: Expect response from a method to proceed
I have the following problem, I am doing a popup to display on the screen information, almost in the same way as a ShowDialog(), being so: GeneralPopUp popupErro = new GeneralPopUp("Titulo",…
-
3
votes1
answer92
viewsQ: "Monitoring" use of apps
Is there any way to monitor how long the user uses each application? Google Analytics has the ability to do this?
-
0
votes2
answers1834
viewsQ: Updating object value of a Form by a thread
I need 2 Abels of my form to be updated every 1 second, so I threaded it myself load of Form: Thread threadUpdate = new Thread(new ThreadStart(UpdateState)); threadUpdate.Start(); And my method…
-
3
votes1
answer133
viewsQ: RSA, Sslstream - Key Exchange
Good people, I am using Sslstream to communicate between a client and server, using OPENSSL. And this client of mine, is a machine (Digi), which as a requirement has to use RSA encryption. Then I…
-
0
votes1
answer98
viewsA: Rsacryptoserviceprovider, Sslstream(Openssl) - Encrypt, Decrypt
Necessary to make the key exchange, after authentication of both parts, fractionating the public key into 2 parts (Exponent and modulus), which are the only values within the public key.
-
0
votes1
answer98
viewsQ: Rsacryptoserviceprovider, Sslstream(Openssl) - Encrypt, Decrypt
After server authentication from the certificate generated with openssl. sslStream.AuthenticateAsClient(serverName); Client data encryption is done as follows: string messsage =…
-
2
votes1
answer652
viewsQ: Rsacryptoserviceprovider - Decrypt
Using RSA encryption, I pass the encrypted data from client to the server decrypt. When trying to decrypt, it returns an exception CryptographicException with the message: Specified invalid flags. I…
-
0
votes1
answer384
viewsQ: Exception when trying to authenticate SSL connection
On my client when trying to authenticate an SSL connection an exception of type is raised AuthenticationException. Errors found in the certificate are RemoteCertificateNameMismatchand…
-
3
votes1
answer416
viewsQ: Sslstream - Certificate
1 - To make a secure communication between a client and a server, I decided to use SSL using Sslstream, from example msdn site, but the issue is that it is not a server on the web, even not being a…
-
1
votes1
answer73
viewsA: Startactivity inside Broadcastreceiver
Required to add FLAG_ACTIVITY_NEW_TASK.
-
0
votes1
answer73
viewsQ: Startactivity inside Broadcastreceiver
I want to go to another Victoria when I enter onReceive of my receiver, but always stops working on startActivity, the code I’m making is like this: @Override public void onReceive(Context context,…
-
0
votes1
answer328
viewsQ: Take Latitude and Longitude from an address
Until last week this code that I had made was going well, until today I went to test again and I see this: 05-28 08:22:12.851: E/AndroidRuntime(19605): FATAL EXCEPTION: main 05-28 08:22:12.851:…
androidasked Enzo Tiezzi 1,194 -
0
votes1
answer435
viewsQ: Alarmmanager - Time-specific notification
I’m trying to trigger a message on the screen through the AlamManager and BroadCastReceiver. The specific time is being picked up by a TimePicker exactly as you should. But the notification ends up…
-
27
votes6
answers8712
viewsQ: How and when to use Finally after a Try?
First I would like to know why in using the finally What are its advantages? It really only serves for when an exit occurs from within the scope of a block try-catch, as when some return or goto…
-
3
votes2
answers4464
viewsQ: Getting the full path of a client file in ASP.NET
On the server side, you can get full path of a file sent by a client using the tag <input type="file">? For example, if the user sends the file C:\Users\Documents\a.txt, has how the server can…
-
4
votes2
answers1107
viewsA: Update the value obtained in an Edittext
The variables are NULL because they are only initialized in the method Calculate(), that is not being called when the button is clicked.
-
1
votes2
answers160
viewsA: Nullpointerexception when creating a View on Android
Ending - For the declaration of constants. Now on to good practice, that line of code of yours. final TextView txtResult = new TextView(this); In my case I maintain good practice and do the…
-
6
votes2
answers257
viewsQ: Asynctask x Multithreading
When it is most advantageous to use Asynctask, and when to use Threads. For example: Download a file (e.g., JSON). Which would be more advantageous in this case and why??…
-
4
votes1
answer491
viewsQ: How to create a Managed Thread in C++ similar to the example in C#
In C# I use the following code to create Managed Thread: Thread thread = new Thread(new ThreadStart(minhaFuncao)); In C++ i made: using namespace System::Threading; . . Thread^ thread = gcnew…