Posts by Fabio Souza • 1,859 points
116 posts
-
0
votes2
answers184
viewsA: i18n - Java Internationalization - Entity Validation Message
I found the ultimate solution to my problem. Turns out, when I created the @Bean MessageSource should have left the setUseCodeAsDefaultMessage as false (or had not included the line as the default…
-
0
votes2
answers184
viewsQ: i18n - Java Internationalization - Entity Validation Message
I have an app Spring Boot where I’m developing a system Web using Thymeleaf. The system has the translation functionality according to the language of the user, however, when using in the entity,…
-
-1
votes1
answer183
viewsQ: Set column order in database using Springdata
I would like to know if it is possible (if it is, how to do) to define the order of the columns in the banco de dados using JPA. I noticed that it creates the column Id first, and then the columns…
-
0
votes1
answer92
viewsQ: jquery.inputmask.Bundle.js duplicating the pressed characters
I’m using inputmask for the mask of CEP 99999-999 and after the object is cloned, there is the duplicity of character pressed. It usually occurs when it arrives at the separator (-). Ex. If I type a…
-
1
votes2
answers83
viewsQ: Is it possible to pass an array per parameter without instantiating it?
I wanted to pass one vetor (or a ArrayList) per parameter without instantiating it, but I’m quite lost on this, because usually I instate an object list and I add the data in this list, but as I…
-
1
votes1
answer43
viewsQ: Function explodes that ignores content inside quotes
I’m working on a project in PHP what you need to do import archival CSV, whose separator is by ;. I’m using explode to make the process, but the problem is that in some cases the content may come…
-
2
votes1
answer241
viewsQ: How to select by comparing two columns
Considering the following structure: Coluna_A | Coluna_B | 01 João | Carro | 02 João | Moto | 03 Maria | Moto | 04 José | Carro | 05 Maria | Moto | I’d like to perform a select to bring me the…
sql-serverasked Fabio Souza 1,859 -
0
votes1
answer35
viewsQ: Auxiliary tablet with composite PK
I have a supplier table: @Entity(name = "tbl_fornecedor") public class Fornecedor extends PessoaJuridica implements Serializable, Desativar { private static final long serialVersionUID = 1L; @Id…
-
1
votes1
answer57
viewsQ: Value passed in Pattern tag keys for class name
I am studying about Logback to implement in my company’s system, and at tag pattern I have the following: [%d{yyyy-MM-dd HH:mm:ss.SSS}] %level [%thread] %class{0} %method %line - %message%n I…
-
0
votes1
answer83
viewsQ: Seed Method for Many-to-Many Relationships
I am developing a simple application in MVC using Entity, being of registration of products, I am using the metodo seed to insert the values in the table, but in the relationship Many-to-Many I…
-
0
votes1
answer221
viewsQ: Recover Data from Firebase with Multiple Child
I’m using this structure to save the data: private void salvar() { Protocolo protocolo = new Protocolo(); protocolo.setAssunto(edtAssunto.getText().toString());…
-
0
votes1
answer275
viewsA: Listview displays only 1 item
I found the solution to my problem, which was actually in the Layout, because he was using the ListView within a ScrollView, and for some reason that I don’t know for sure doesn’t work, but I…
-
2
votes1
answer154
viewsQ: how to hide an item in the menu
I created a menu with buttons to save, back and add, and would like when you click add it to be hidden or disabled. I tried to use MenuItem item = menu.findItem(R.id.my_item); in which I saw in this…
-
0
votes1
answer275
viewsQ: Listview displays only 1 item
I’m trying to bring the list of friends to be displayed, but only the first registered appears. I’m following a tutorial and my code is identical to the one I’m following. public class…
-
0
votes1
answer560
viewsQ: Show Toast in a non-Activity class
I’d like to exhibit a Toastwhen the user does logout. I have this structure: Within ConexaoFirebase, I have a method called logOut: public static void logOut() { firebaseAuth.signOut(); } and within…
-
6
votes2
answers490
viewsQ: Difference between Activity and Content
I do not know if this is the right place for this, if it is not for guidance where I take this doubt. I’m learning to develop apps in Android Studio, and I’m following some tutorials. Some cases…
-
1
votes1
answer1014
viewsQ: Position button at the bottom of the layout
I would like to position the Exit button at the end of my layout. I am using Linearlayout. Some hint on how to position ? This is the Linear Layout code: <LinearLayout…
-
-1
votes2
answers675
viewsQ: Position the text in the center
I have this Textview: would like the text to be centered vertically and horizontally in relation to the black area, which is the background of Textview itself, which defined the height of 100dp,…
-
1
votes2
answers41
viewsQ: Return Updated Android Date Time
I made a class called Current Date containing this data: package com.projeto.projetov1.model; import java.text.SimpleDateFormat; public class DataHoraAtual { long date = System.currentTimeMillis();…
-
1
votes1
answer54
viewsQ: Máquina Dobradora
I’m studying for a programming challenge at College and my teacher gave some programming exercises to train. It was proposed the folding machine, but I am not able to develop the input process, in…
-
0
votes1
answer46
viewsQ: How to put a test site running on the same server
I have my company’s website, and wanted to assign another project for testing without needing another server. It would be basically like this: www.meusite.com/projectThis/pagina1.cshtml that is,…
-
0
votes2
answers187
viewsQ: load date time without javascript
I wanted to know if it is possible to send directly from the controller, for example the current date and time of the system without using javascript. Ex: <div class="form-group">…
-
0
votes2
answers161
viewsQ: Customized Viewbag, how to do?
I need a custom Viewbag, which brings the name of the teacher and the id, referring to the registered school, for this I did: ViewBag.ProfessorID = new SelectList(from u in…
-
0
votes1
answer82
viewsQ: I can’t do include
I try to make include, but the message appears : In some of the research I’ve done they say to include using System.Linq; using System.Data.Entity; but mine already contains these. My classes are:…
-
3
votes2
answers791
viewsQ: javascript paste command
How do I paste what’s in the clipboard? I did a lot of research, but what I found was just the copy, not the necklace! the only thing I found about necklace, it didn’t work, which was the…
-
1
votes1
answer112
viewsQ: Image Thumbnail via URL
I want to do so: There is a field where the user inserts the URL of an image, and wanted when pasting this url in the field, a thumbnail appears beside (or below) the field, similar to what FB does,…
-
-1
votes0
answers61
viewsQ: How to send email in C#
So much so that I researched, I saw the great difficulty that people have to send email, using the C#platform, so I am here providing the form I found for the realization of this feat.
-
4
votes3
answers16084
viewsA: How can I send an email via Gmail?
Note: This setting is for gmail, but it also works for other emails, for this you will have to follow the procedure from start to finish. First, create the class GmailEmailService.cs. By default it…
-
3
votes1
answer2169
viewsQ: Confirmation message YES/NO
As a PO request, using an attribute to copy the Mobile Phone number to the Whatsapp field, displaying a message to the user, as default is OK and Cancelar, but I would like the name of the buttons…
-
2
votes1
answer292
viewsQ: place Custom EN Message in required field
Assigns Required="true" in a password field, but the message is in English, as seen in the image below: I wanted to personalize this message by leaving it in PT-BR <div class="form-group">…
-
2
votes2
answers266
viewsQ: Association 1 to 1 Entity
I have a relationship between Address and Academy where 1 address has 1 gym, and 1 gym has 1 address. Academia class: public class Academia { [Key] public int AcademiaID { get; set; } ...…
-
3
votes1
answer412
viewsQ: Class attribute with predetermined values
I want to create a class attribute for sex (M or F), that by default one can already select. It is possible to create an array with these values (M and F) already default without having to type, or…
-
3
votes1
answer350
viewsQ: Entity Framework: Data Model with column with the largest number of characters possible
I’m creating the tables with the Entity Framework, and I’m using the Data Annotation to determine the amount of characters, I wanted to know which larger size was supported for typing text and…
-
0
votes0
answers22
viewsQ: Navbar - Link outside the Local Boostrap
I made a Jsfiddle to show my problem. The following happens: Navbar has an icon of a house, that when I click on it does not execute the link, but if you click a little more to the left the link…
-
2
votes1
answer1552
viewsQ: Open Facebook Profile in the app
I would like to know how to open the facebook application when clicking on the link. In the searches I did would be like this, but I did not give: <a href="fb://profile/PerfilPessoa" /> but…
-
2
votes1
answer56
viewsA: Hide a question when selecting another in jQuery
take a look at this site http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_hide_show has good examples. Maybe this will help you <!DOCTYPE html> <html> <head> <script…
-
5
votes3
answers41543
viewsQ: Alignment from side to side
I want to put both divs (green and red) aligned side by side as they are, but the green should be fixed aligned on the right, while the red line is aligned on the left, so I put the margin-left:0vw;…
-
0
votes0
answers75
viewsQ: Height with min and max in percentage x auto
I have a div, and your Heightis at 90%, but if you decrease the height of the browser the content goes out of the div, how can I keep you from div? I thought I’d use height-min:auto and…
-
1
votes1
answer74
viewsQ: Display clickable link coming from the database
I want to display the Link that can be clickable, is appearing as text: I’m using the code below, but it still comes as text and I can’t click: @Html.Raw(HttpUtility.HtmlDecode(item.Facebook))…
-
0
votes1
answer69
viewsQ: How to position the Section below the menu
I’m using Ancora menu, and when I click on the link it gets the top of the menu, how do I place it below the menu? How does it look: How it should look: code: Script <script> var menu =…
-
0
votes1
answer255
viewsQ: Fullpage.js + class="Section"
I’m using JS Fullpage to anchor the links, but each Section is 100% high, and sometimes it gets in the way of something in my css, which sometimes gets a larger font size or wrong position. I was…
-
0
votes1
answer1696
viewsQ: how to call the file function . js
I am unable to call a javascript function from a file. Ex: Filing cabinet: javascript inside the briefcase raiz/scripts/javascript.js function responsivo () { $('#responsivo').popover({ //trigger:…
-
1
votes1
answer876
viewsQ: Is it possible to pass the value of a Javascript variable to a C#variable?
The idea is to use javascript to detect the screen resolution, and take the value of the variable of this javascript and pass to the variable of C#. The only thing that’s crossed my mind is creating…
-
1
votes1
answer32
viewsQ: Heritages of CSS
Is it possible to inherit a class from one css to another css? Ex: .div1{ background: -webkit-linear-gradient(top, #088fad 20%, #00d5ff 100%); } wanted this div1 to inherit the class col-md-12 so…
cssasked Fabio Souza 1,859 -
0
votes2
answers807
viewsQ: Open Popover by clicking the tab and closing only by the button
I have this Popover and would like when loading the page to be opened, and only close after the user click on Entendi the code I’m using is this Script: $(document).ready(function () { // Associa o…
-
-1
votes1
answer173
viewsQ: Is hybrid hosting with a single domain possible?
I have a client who has a site in PHP, but the developer told him that there was no way to do with his database. He asked me to make a system for him that could make a customer CRUD. Since he has a…
-
3
votes1
answer382
viewsQ: How to rotate a letter?
I’m trying to rotate a letter of a word to make it look like the company logo. This would be the Logo: Here’s the code I tried to use to rotate <h1 class="text-center"><span…
-
1
votes2
answers554
viewsQ: Taking information from a select and passing an array
I want to take all the fields of one select and store them in a array. I thought I’d do it this way, but it didn’t work. var lista = []; lista = $('#Model').text(); $('#Model').append('<option…
-
3
votes2
answers646
viewsQ: Sort Dropdown with jquery after append
In case the user does not find the desired item in the list of dropdown, it can include a new item, for this I used the function promptof javascript, and then the user enters the name and click on…
-
0
votes1
answer963
viewsQ: Change Title to display tooltip
I’m validating the email using tooltip to display the message. If at first the guy puts registered email the search is made and displayed the message that the "Registered Email", if he changes the…