Posts by Latrova • 1,997 points
28 posts
-
2
votes3
answers283
viewsQ: How to run a great user story or how to split it
I’m new to this methodology, and I’m having a lot of problems with the following user story: 1 As store manager, I would like to register a product so that it can be sold. And on the card details, I…
-
4
votes1
answer212
viewsQ: Why the operating system uses SWAP when it still has RAM
I learned that virtual memory (SWAP) was only used when RAM had reached its maximum capacity (or almost). But, I realize that it is not so, according to this image I took of the performance of my…
-
2
votes1
answer326
viewsQ: JSON generated by json_encode gives error in character "{"
I don’t understand what’s going on, I’m using a function json_encode in PHP and what it returns is invalid?! I am using the jsonlint as validator, and he claims that the error is in the first {. If…
-
2
votes3
answers13033
viewsA: Split to separate part of a string considers first separator
Can you use LINQ? If you can, it worked for me: Console.Clear(); string teste = "_2910_0908_401 _600_ERV__P_119552_GUARITA ERV SEM ENERGIA RADIO INOPERAN_TE SEMAFOROS P TRENS E VEICLS APAGADOS_PSG…
-
2
votes1
answer228
viewsQ: Differentiate product from ingredient
I am trying to make a system for sale of açaí. In an açaí can add many ingredients like paçoca, milk powder, fruit and etc... Açaí can also be sold in 250ml, 500ml and 750ml pots. Depending on which…
-
4
votes5
answers13026
viewsA: Coin style in a Textbox in Winforms
If you accept the use of events, you can use it this way: Function to put the mask private void RetornarMascara(object sender, EventArgs e) { TextBox txt = (TextBox)sender; txt.Text =…
-
1
votes1
answer161
viewsQ: How to know if the client is already open on another computer?
I’m building a system that can and will open on possibly two to seven computers. There is concern in the following case: PC1 opened the João client file and began editing. PC4 opened the João…
-
5
votes2
answers2331
viewsQ: How to use the nhibernate Fluent appropriately?
A problem I have encountered due to the inexperience with this type of tool is HOW to use Lazy load without interfering with the software architecture. I use the following architecture: HMI (Human…
-
29
votes2
answers12489
views -
3
votes1
answer1774
viewsQ: How to group by 2 properties and sum the values
I have no idea how to do this consultation on LINQ. How can I from sales list. Separate the sales per hour, then group the products and add up the quantities sold? public class Venda { public int Id…
-
2
votes1
answer71
viewsQ: How to make a global event
I develop a system in which, a user can send a message to another, (which is saved in the database, to have a conversation history), but I would like that while the user is using other functions of…
-
1
votes1
answer69
viewsQ: How to pass two tables to one and update codes
Long ago I created two tables, under different names, (for lack of experience), today I noticed that they had exactly the same fields. So I decided to unite them. However, I need to do this without…
-
2
votes1
answer1238
viewsQ: Does C# support GPS?
It is possible via a computer I find the location of a cell phone with altitude, longitude and latitude using C#? Is there a library for that? Do I need any specific hardware to be able to put into…
-
2
votes3
answers240
viewsQ: How to display "from" inside the Datetimepicker
In the DateTimePicker I can display anything using d to day, MM or MMMM for month and yy or yyyy to year. However, I would simply like to display on the property customformat: April 15. But when I…
-
7
votes1
answer3070
viewsQ: To sort a list of objects by TWO properties
On this topic: How to sort list with complex object by one of its properties? is explained as ordering by a property, but as ordering by two? Taking into account the following product class:…
-
18
votes1
answer2218
viewsQ: What I need to sell a C#system
If I want to sell a standalone system in C#, do I need a microsoft license? Any special registration? Any specific contract? I have some limitation?
-
1
votes1
answer364
viewsQ: How to get a Mysql output Parameter via C#
I researched and applied what I saw, but is giving error: MySqlConnection con = new MySqlConnection(banco.Conexao); MySqlCommand comando = new MySqlCommand("sp_venda", con); comando.CommandType =…
-
-2
votes1
answer2062
views -
9
votes3
answers740
viewsQ: Is sending data to the same form a good method?
I have a login form, which after given submit he is sent to himself with the information via POST, and if it is wrong, it displays an error message and shows the same form again. I did so to avoid…
-
15
votes6
answers11947
viewsQ: How to create a password reset link?
I am developing a site that has user registration area, the password is encrypted to increase security on the site, but when the user forget the password how will it be possible to return his…
-
24
votes3
answers36150
viewsQ: How to use Mysql on Android
After some searches, I saw that the only database that Android can use is Sqlite, It is correct this information? Because I have an application that connects to an online database (Mysql) and would…
-
1
votes3
answers232
viewsQ: Why CSS properties change in browsers
Why is there a need to use different properties depending on the browser? For example: FIREFOX -moz-column-width:150px; ANOTHER -webkit-column-width:150px; There are many other cases, but what I…
-
1
votes7
answers2949
viewsA: How to use multiple SQL commands (in the case delete on ORACLE) in one line only on C#?
Try something like that: string script = "DELETE FROM TB_CR_INDICADOR WHERE COD_INDICADOR = " + codigo + "; DELETE FROM TB_CR_INDICADOR_PERIODO WHERE COD_INDICADOR = " + codigo + "; DELETE FROM…
-
3
votes1
answer1046
viewsQ: What is the best way to make an online database backup
There is a client of mine who owns two machines, one of them is the server where all the data of the bank is, and the other is the cashier. However, there is customer concern in case something…
-
1
votes9
answers2644
viewsA: Best practice for creating if
The alternative "A", is very worthwhile if there is a greater chance of the message being "HI". For example, it is known that there are more men than women in a given state. When making the…
-
3
votes8
answers26648
viewsA: How to backup Mysql Database Diaries?
There is a class (very good, recommend) that does this Mysqlbackup.Net It is very simple to understand and use, and you can configure numerous things, such as which tables you want to receive the…
-
35
votes8
answers45010
views -
0
votes4
answers1099
viewsA: When to implement header functions?
At first I noticed a mistake... MODULE. H #include <stdlib.h> #ifndef MODULO_IMPLEMENTACAO #define MODULO_IMPLEMENTACAO ... (restante) MODULE. C #include "modulo.h" ... (restante) The ideal is…