Posts by Loudenvier • 1,374 points
35 posts
-
1
votes2
answers371
viewsA: Build Gradle Dependencies Version Conflict
In its dependency tree there are references to older versions of firebase, which refer to play-services-based:11.6.0 which use the older support library (25.2). They should refer to version 11.8.0…
-
4
votes2
answers2784
viewsA: Code to capture signature
Your question is not very well defined, but I’ll try to help anyway. There is nothing ready on "official" Android to do this, you need to assemble the pieces, or use a third party library not very…
androidanswered Loudenvier 1,374 -
5
votes4
answers931
viewsA: How to verify variables that are not used?
Visual Studio Input Versions There is nothing embedded in Visual Studio (in the incoming versions) except warnings during compilation. These warnings inform the variables never used (note that a…
-
1
votes2
answers607
viewsA: How to select a database blob and transform into bitmap?
Your image is certainly too big to be drawn on surface of a bitmap, because it bursts the maximum allowed size for the texture memory of Android. If you use the Android Monitor within the Android…
-
2
votes3
answers950
viewsA: Local communication through online application
If the communication with the server is sporadic, and/or initiated by the user (for example, by clicking on an Update button), you must implement the search of the data in the client using AJAX, in…
-
0
votes1
answer347
viewsA: Return to View two tables using Homeviewmodel?
First it would change its view model class to: public class HomeViewModel { public HomeViewModel() { // apenas para garantir que NUNCA seja nulo! Facilica código na view PreviewImages = new…
asp.net-mvcanswered Loudenvier 1,374 -
1
votes1
answer70
viewsA: Remove serial column creation Entityframework + Npgsql
You need to mark the column to not generate the sequence. This should solve for you: modelBuilder .Entity<*nome_da_entidade*>() .Property(m => m.*campo*)…
-
1
votes1
answer566
viewsA: Listing the return of a Viewbag for View?
To fill the InitialPreviewConfig the same idea of what was done with the initialPreview. We add the fields Size and Name to send in the new field (we do not need to add values for this data in the…
-
1
votes1
answer1580
viewsA: Return the data to the View using Json.net or javascript-Asp.net mvc
To create the script already with the initialPreview completed it will not be necessary to create a method that returns JSON. It will be more efficient to modify the View that today generates the…
-
2
votes2
answers938
viewsA: How do I keep the Imageview ratio in Android Studio?
The problem is simple, but it really is almost a prank! You are assigning the background from Imageview, and actually the Imageview background doesn’t maintain the proportions: it at all times…
-
3
votes1
answer51
viewsA: Leave some data from a Java interface not required
This is not possible in Java, nor is it possible in any language (except the dynamics) I know. This is contrary to the idea of interface, because the concept of interfaces implies that a class that…
-
1
votes1
answer890
viewsA: Image blob and cache problems
Recording the images directly into the database is, most of the time, conceptually wrong. It should be avoided with all force to record images in database blobs. What should be stored in the…
-
6
votes1
answer285
viewsA: Problems with Android Studio + Firebase
You are using FireHelper before I start it, so NullReferenceException. See the code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
1
votes1
answer816
viewsA: Working with camera and gallery
The problem is simple, but it is also a common source of confusion of who is starting to work with image capture with Intent on android. The 'X' of the question is here: bitmap = (Bitmap)…
-
1
votes1
answer592
viewsA: Scroll bars of the dataGridView c#
Usually, when some columns are frozen ("Frozen") the scrollbars however do not appear. See if any of the columns is "Frozen". Use the image below as a reference (withdrawal of a similar response in…
-
5
votes1
answer117
viewsA: SQL doubt with COUNT
Your query is quite wrong. You should not join a Count. When adding a Count it will perform an aggregation, and fatally return a single line. I believe the query you are looking for is the…
sqlanswered Loudenvier 1,374 -
14
votes1
answer1382
viewsA: What is the advantage of using an interface if I always get the same behavior using simple classes in Delphi?
Not everything you do with interfaces can be done with classes. An interface is a contract, it does not imply any implementation, whereas a class implies an implementation, even if it has the…
-
0
votes1
answer161
viewsA: Mysql Trigger - Error syntax: DECLARE @sale INT' at line 3
The loop in Mysql does not use @@FETCH_STATUS as in SQL Server. Similarly, after Insert triggers are defined differently. It seems to me that it will be much simpler than your cursor code: CREATE…
mysqlanswered Loudenvier 1,374 -
4
votes1
answer373
viewsA: Working with high quality images in sqlite3
First of all, how good we are developers, we are also lazy: Let’s not invent the wheel! Dealing with images on Android is not simple, so we will use a library to make our life easier. The benefits…
-
2
votes2
answers739
viewsA: Comparing typed string with string in database
In Java the operator == does not test for the equality of the content of String, that is, it is not a test of the equality of the values of each string itself, but rather a test of the equality of…
androidanswered Loudenvier 1,374 -
1
votes1
answer96
viewsA: Set Popup Size - Gridlookupedit
You should treat the event QueryPopup and modify the popup size by assigning a Size with the values you wish: private void gridLookUpEdit1_QueryPopUp(object sender, CancelEventArgs e) {…
-
0
votes1
answer188
viewsA: Field formatting Dateedit devExpress Windows Forms
You need to modify the editing mask: dateEdit1.Properties.Mask.Culture = new System.Globalization.CultureInfo("pt-BR"); dateEdit1.Properties.Mask.EditMask = "dd/MM/yyyy"; // como você usou…
-
2
votes2
answers115
viewsA: FATAL EXCEPTION error when loading image gallery using Asynctask
Its implementation will fatally fail on large images and/or many images. You need to use a list component that implements recycling of the items displayed/not shown on the screen, as well as make…
-
2
votes1
answer654
viewsA: Receive json array value for string - Java
Your object definition is wrong. Alternate is a collection of objects with two fields: "type" and "element". The following class definition represents the data of the informed json: public class…
-
3
votes1
answer4024
viewsA: Print PDF file using Printdocument
It will not be possible to print Pdfs using this routine. In it you are reading, line by line, a text file and "drawing" in hand, using the DrawString() the content of the line in a graphical…
-
5
votes1
answer5798
viewsA: Insert into table if not available
The simplest way I suggest is to add to the field name one CONSTRAINT single index. When trying to insert a new entry for the same name, Mysql will generate an error (which can be handled by caller…
-
1
votes1
answer165
viewsA: Query with subquery
To list the customers who have already rented absolutely all the movies from the rental company catalog, you can use (among others) the following query: SELECT C.nome, C.endereço FROM CLIENTES C…
sqlanswered Loudenvier 1,374 -
1
votes1
answer294
viewsA: ID sequence advances +1 during error [Postgresql]
Sequence generation is/needs to be transaction independent. The idea is that it always maintains a unique, growing value: they are in sequence but it is not guaranteed that they are contiguous.…
-
2
votes1
answer3294
viewsA: Invalid postback or callback argument
This is because you are probably modifying server controls (with runat="server") in the client dynamically, or you are sending the form but not the "expected" button by ASP.NET, i.e., not a script…
-
0
votes1
answer739
viewsA: LINQ Return from the list is with all the repeated records
The code below should work perfectly, if it is returning wrong probably the problem is in the View, in the tables involved, or in the data involved: var vwPessoaAcomp =…
-
3
votes1
answer234
viewsA: Separation of Identity Bank from Application
Just from the point of view of object orientation, avoid using inheritance in this case, use aggregation. What you are calling Usuario in your business model is not a user, is a Pessoa (or another…
-
2
votes2
answers2096
viewsA: Find a string anywhere in the List c#
From the type of question it seems to me that, in fact, it is the implementation of Full Text Search, where several, possibly all properties of an object are considered during a comparison to find…
-
2
votes1
answer250
viewsA: make a button to end user session (Asp)?
Don’t invent the wheel! Number 1 system development rule :-) Use the control LoginView that already implements this logic and facilitates a lot. Below an idea, based on the part of code you…
-
4
votes2
answers111
viewsA: Is it right to use string when the value is integer?
There is no correct or wrong itself in this case. There is the indicated and the most efficient. If the fields are integers, treat them as such. It may seem like you don’t have anything stopping you…
-
11
votes2
answers2134
viewsA: Which loop is faster for or foreach in C#?
Before actually answering I think it is very important to point out that for 99.99% of all applications developed in C# the differences in performance between for and foreach should not even be…