Posts by Oralista de Sistemas • 23,115 points
435 posts
-
1
votes1
answer949
viewsA: Parameterized query error: Must declare scalar variable
There are two possibilities here: You use Stored Procedures? If yes, change the value of the property CommandType of your SqlCommand for CommandType.StoredProcedure. Thus: com.CommandType =…
-
-1
votes2
answers1169
viewsA: Fiscal Printer
Bematech has emulators for its printers. Epson also. Daruma, as far as I know, has no emulator. You have to do your tests with a physical printer. I don’t know about the other manufacturers. I would…
-
0
votes2
answers1649
viewsA: Name over image when mouse passes css
If bold formatting is not so important, you can add attributes alt and title image. I.e.: <img src="imagem.png" title="Ó o gás!" alt="Pessoas dançando para uma meme."> The attribute title…
cssanswered Oralista de Sistemas 23,115 -
2
votes3
answers620
viewsA: Check when global variable changes
You can take advantage of the accessor set of the property. Store the real value of the property in a separate field and use the property to encapsulate your access, thus: public class Foo { private…
c#answered Oralista de Sistemas 23,115 -
4
votes2
answers197
viewsA: Check if it is the class
You can do it like this: function contemClasse(elemento, classe) { for (int i = 0; i < elemento.classList.length; i++) { if (elemento.classList[i] == classe) { return true; } } return false; }…
-
2
votes1
answer1060
viewsA: Spell Checker in Portuguese - Alternativa ao Webspellchecker
There is a free option which is to use native browser correction. According to the official documentation: By default, browser Native Spell check Functionality is disabled in the editor. Use the…
ckeditoranswered Oralista de Sistemas 23,115 -
2
votes1
answer270
viewsA: Lock reading, opening and editing file
Instead of creating the object StreamWriter with the file path, create a FilesTream and the pass to the StreamWriter. For example: string diret = saveFileDialog1.FileName; using (FileStream arquivo…
-
1
votes2
answers1655
viewsA: Create spreadsheet by C# without having excel installed
You will need the SDK from Office. I leave it to you to install it. That said, the code may seem complex at first - until you know the structure of the files. I’ll put a step by step. To work with…
-
2
votes2
answers234
viewsA: Base64 biometrics generating different codes for the same digital
As Roberto Fagundes said, with this type of biometrics we work by approximation. If you take any phone with digital recognition, it asks you to insert the fingerprint of each finger five to ten…
-
2
votes1
answer108
viewsQ: Work with sound on . NET
In . NET it is relatively easy and simple to work with images. It is possible to use the class System.Drawing.Bitmap to open images in Bitmap, Jpeg and PNG formats and play with your pixels. The…
.netasked Oralista de Sistemas 23,115 -
9
votes5
answers1059
viewsA: Is it possible to convert a 16-bit number to a single byte?
Since a byte is usually composed* of eight bits, the highest value you can represent in general is 255 even. Explanation: Integers are represented in general as sums of powers of 2. Each bit with…
-
2
votes3
answers148
viewsA: Table showing Undefined that does not exist
The return of document.write is always undefined. When you call the print method, you will render everything, including this. Just use: tela_impressao.window.print(conteudo); p.s.: Mounting HTML in…
-
4
votes1
answer221
viewsA: The photo appears when selecting it by an upload field
I found the problem interesting and found a solution in Stack Overflow in English. I will steal and translate the answer marked as correct in: Preview an image before it is uploaded You need some…
jqueryanswered Oralista de Sistemas 23,115 -
2
votes1
answer75
viewsA: Is it possible to have an array of arrays?
Editing According to the questioner, in reply: has to look like this format { "1":[ {"name":"John","Age":"21"} ] "2":[ {"name":"Jone","Age":"22"} ] } Apparently you want to mount a JSON, where each…
javascriptanswered Oralista de Sistemas 23,115 -
1
votes1
answer573
viewsA: PHP: passing session variables from one domain to another domain
In fact, it is impossible to pass session variables from one domain to another directly. Which doesn’t mean there aren’t other ways to solve your problem. If you have two different domains running…
-
5
votes2
answers3965
viewsA: What Development Environments (IDE) for Android and IOS using Lua?
The list is long. To develop in Lua, you can check a very extensive, but not exhaustive, list on the moon-users. Follow the list if the link falls: IDE’s that work with Lua through the use of…
-
2
votes3
answers1548
viewsA: Find pair and odd in variable float language C
Can’t. Parity (the property of being even or odd) is unique to whole numbers. Variables of the type float represent numbers by approximation - will never represent an integer, as Francis said. If…
canswered Oralista de Sistemas 23,115 -
11
votes1
answer601
viewsQ: What’s a B tree?
What types of problem is it suitable for? How and why should it be used? It is possible to include an example of code?…
-
2
votes1
answer109
viewsA: Dll and Exe with the same name = Problem?
There is no problem in having the two with the same name (disregarding the extension). Are the assemblies who may not have the same name. The . dll and . exe files are not the assemblies themselves,…
visual-studioanswered Oralista de Sistemas 23,115 -
5
votes2
answers208
viewsA: Working with Github
Ideally, you have an account for the company, not the server. If the company has other projects later on, you can create one repository per project. With a single account for the company you can…
-
2
votes3
answers1664
viewsA: How to use a Global variable in two Jquery codes to perform conditions?
In Javascript, a variable is global if it is declared without var, or declared in the overall scope. That’s local: function () { var foo = 1; } This is always global: bar = 1; This is also global,…
-
7
votes1
answer2656
viewsA: How does a virtual keyboard work for security purposes?
These keyboards generate the numbers in random positions, which will vary between user accesses. So, even if you manage to know which buttons the user used, you are not sure of the correct password.…
-
0
votes2
answers74
viewsA: Control video volume in Banner Interstitial Admob
You cannot download the volume of the device using an advertisement for security reasons. Imagine if any advertisement could control this sort of thing - so we would have advertisements powering…
-
6
votes1
answer68
viewsA: Security in php failing
This code will not work if you have already logged in and filled in these values in the session. The session exists on the server, regardless of what you do in the browser, and only dies after…
-
6
votes3
answers156
viewsA: How to know the most used word in all records
You need a dictionary. Interestingly, in PHP arrays can work as dictionaries. I discovered this now by searching to answer the question. So let’s get started: $dicionario = array(); The logic is as…
phpanswered Oralista de Sistemas 23,115 -
1
votes5
answers3695
viewsA: Regular expression to find bar
With Javascript, you can do so: function validarMeuCampo(texto) { var captura = texto.match(/[A-Z][A-Z]\/[0-9]+/); var valido = !!captura && captura.length == 1 && captura[0].length…
-
5
votes2
answers304
viewsQ: Get the remote name
In the bash Git, to update the branch place in use from a branch remote, we use the command: git pull nomeDoRemote nomeDoBranch Still in the bash, when navigating to a project directory, we see…
gitasked Oralista de Sistemas 23,115 -
23
votes1
answer1699
viewsQ: How does a CAPTCHA work?
I understand that a CAPTCHA is a way for me to ensure that the user who interacts with my system is a human being and not a script. But this is the simple explanation that we give to laypeople. How…
captchaasked Oralista de Sistemas 23,115 -
7
votes2
answers3578
viewsA: Is there a size limit for data transmitted via POST?
In theory the maximum limit of a post request is unlimited. The actual limit depends on each server application. Matthew has hinted at how this can be configured in Linux environments (of which I…
httpanswered Oralista de Sistemas 23,115 -
3
votes2
answers681
viewsA: C# - Windows Service only runs once
I suggest reading the official documentation. Besides there are some things here that need to be reviewed: The timer must be a property of the class Service1. Otherwise, it will be deleted from…
-
0
votes2
answers1126
viewsA: Highlight in SMS excerpt
As far as I know, text messaging protocols don’t support text formatting. The reason for this is that each device can have different treatments for the texts it receives. This has never been unified…
-
1
votes1
answer145
viewsA: Visual Studio 2015 - Extension Error
For some reason, an extension has been installed more than once. This seems to be a common problem. The most comprehensive solution I found is in the English OS. Disregards the tag used there,…
visual-studio-2015answered Oralista de Sistemas 23,115 -
8
votes1
answer312
viewsA: Installer recognized as a virus
Your virus was not recognized as a virus. It was marked as a program from a source not recognized by Microsoft, which is very different. Every "computer boy" knows that parente leigo com acesso de…
-
2
votes4
answers1660
viewsA: Function js to run at a given time
I don’t think it is possible to build and persist a cookie with only pure HTML and Javascript. The most root solution to doing something every day at midnight, just with Javascript, would be…
-
2
votes5
answers1583
viewsA: How to read data from the Mysql database of an application in c#?
Two things. First, the error occurs by syntax. If you search for strings, they have to be surrounded by single quotes. That’s wrong: ... WHERE nick = x 'Cause the bank thinks you want to compare the…
-
2
votes1
answer99
viewsA: To consist of the back button page in MVC
You cannot control the behavior of coming back from the browser. This is for security reasons. What you can do to solve your problem is the following: If users are authenticated in the system, that…
asp.net-mvcanswered Oralista de Sistemas 23,115 -
4
votes6
answers2425
viewsA: Arrays are pointers, right?
Being short and thick... Yes, a vector is a pointer, although the opposite is not always true. First let’s get to the definitions: A pointer stores a memory address. On a 32-bit architecture, an…
-
-1
votes2
answers192
viewsA: Doubt visibility of attributes in class diagram
A class diagram is an abstraction of how things are going to be implemented. The amount of detail depends on the tool used and does not always (in fact almost never) accurately represent how the…
-
4
votes3
answers6518
viewsA: How to access the code behind a Stored Procedure?
If you want the text in a result cell, you can use this query: select [text] from sys.syscomments comm inner join sys.procedures procs on procs.object_id = comm.id where procs.[name] = 'foo' Just…
-
6
votes2
answers412
viewsA: What is the Demetrius Law about?
There’s a translation error there. Wikipedia on that law: It is so named for its origin in the Demeter Project, an adaptive Programming and Aspect-oriented Programming effort. The project was named…
oopanswered Oralista de Sistemas 23,115 -
2
votes2
answers482
viewsA: How to add another day using "new date()"
The canonical way, cross-browswer, documented and that works anywhere is you add the amount of milliseconds a day to your date. I.and.: var agora = new Date(); var agoraAmanha = new…
javascriptanswered Oralista de Sistemas 23,115 -
1
votes2
answers2745
viewsA: Change the site color by clicking the contrast button
The code you wrote just arrow the proriness of the document in a way that tends not to affect the page. You could do what you want with the following code: function contraste(){ $("body")…
-
53
votes3
answers1348
viewsA: Should systems force the user to create a strong password?
Banks afford to allow you to use weak passwords for two reasons: They can lock your password with impunity without losing you as a user. Not that it’s bad. After all, it’s your money they’re…
-
0
votes1
answer48
viewsA: Normalize encoding of an entire solution
There is no built-in solution for this, but as Paulo mentioned in the comments... We are programmers, we can solve this ourselves. Follow my solution, adapted from one posted to Stack Overflow in…
-
2
votes1
answer4115
viewsA: Problem in HTML checkbox size
The checkbox is varying in size according to the size of the text. If you sufficiently increase the text of the first checkbox, it is smaller than the second. This is because of display: flex in…
-
1
votes2
answers519
viewsA: JSON Javascript external file
"Cross origin requests" is the key term here. With that file://c: there, you are trying to upload something from your user’s file system. If this would work, your page could actively access the disk…
-
2
votes1
answer23
viewsA: Advantages of Watch compared to Break point
Is there any advantage of using watch instead of break point to debug code? Which? When you have to check the value of five variables at once, or the state of the instance that executes your logic,…
-
1
votes2
answers195
viewsA: How to make menu with different drawing?
Doing the inclined part only with HTML and CSS can lead to the gambiarras that: will come back to haunt you when you have to maintain; will give trouble to stay minimally nonoffensive to the eyes on…
-
3
votes1
answer256
viewsA: Error while sending Json
Two things can happen here: Missing type of content Add the property contentType with the value "application/json" in the ajax function object. This makes the server understand that you are sending…
-
2
votes3
answers15107
viewsA: How to change the color of the text typed in the input?
It’s simple, just put the CSS attribute color input with the color you want. For input type text box, property color refers to the color of the text. Something like: input { color: white } Or input…