Posts by MeuChapeu • 5,875 points
107 posts
-
0
votes2
answers89
viewsQ: Group columns with the Bulma CSS framework
I would like to create the following layout using the Bulma CSS framework. I have the following code. <div class="columns"> <div class="column is-2">AQUI</div> <div…
-
2
votes3
answers198
viewsQ: CSS Color beyond element size
I’m building a layout using the framework Bulma.. So far it’s as follows. My question is: How to do with CSS all my div side get painted? As in the image above, I want to paint the white space that…
-
2
votes1
answer419
viewsQ: Pass $route as parameter to a Vue JS function
It is possible to pass $route as a parameter for a function? <v-btn color="info" v-on:click="getProximo('this.$route')"> Próximo </v-btn> I need to get a parameter that’s in $route, but…
-
1
votes1
answer117
viewsQ: Vue js render video
I have the following component: <div v-for="video in videos" :key="video.title"> <video class="video-js" controls preload="auto"> <source v-bind:src="video.src" type="video/mp4">…
-
3
votes2
answers510
viewsQ: Create class instance in threads
Imagine I have a class: Class Animal { //Propriedades } Now creating multiple instances of the class I do as follows: Animal[] animais = new Animal[10]; for(int i = 0; i < 10; i++) { animais[i] =…
-
2
votes2
answers304
viewsQ: How to Manipulate Objects in a Thread?
I have the following code: MinhaClasse[] obj = new MinhaClasse[QtdUsuario]; Thread th; For(int i = 0; i < QtdUsuario; i++) { obj[i] = new MinhaClasse(); th = new Thread(new…
-
0
votes3
answers630
viewsQ: Problem accessing api using jQuery $.ajax
I’m having trouble accessing the api using the function $.ajax({}) jQuery. The Error: My code: <!DOCTYPE html> <html> <head> <script…
-
4
votes1
answer291
viewsQ: How to model in a correct way
I have the following table structure: First: it is right this modeling? Second: is there any way to improve? Reduce the number of tables? The system will work as follows: Each Candidate has a…
-
0
votes1
answer289
viewsQ: Field return in Laravel
I have the following field stored in my database: When trying to return it in view by Laravel 5.2 he is returning only the 45 the rest is not. the field is defined this way in the bank: But other…
-
4
votes1
answer58
viewsQ: Field code in option value attribute
I have a table CategoriaCNH with the following fields CodCategoriaCNH and Descricao. and I have this piece of code html: <select name="categoriaCnh"> <option value="" disabled…
-
5
votes1
answer1303
viewsQ: Authentication Laravel 5.2
I am trying to log in to Laravel 5.2 but it is not authenticating the user in the table. in the archive auth.php I changed the validation table to login: 'guards' => [ 'web' => [ 'driver'…
-
8
votes1
answer832
viewsQ: Use cases Concept and use cases Process
In software engineering we have the famous use cases. On a college assignment I come across the following: UCC - Concept use cases CPU - Process use cases UCR - Cases of use of Relay UCR - would be…
-
3
votes1
answer295
viewsQ: Error using a function within a PHP array
I’m using the laravel 5.2 and in my class IndexController I am trying to create an array with the function date('Y') thus: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use…
-
5
votes1
answer139
viewsQ: Django generating strange code
I am using the visual studio community and created a web project with Django, but when making the homepage, is generating me this code: And the code I have is this: {% load staticfiles %}…
-
5
votes2
answers1731
viewsQ: Conceptual model
I was looking at the conceptual model diagrams, I saw some that contain the attributes and entities like this: And others who only have the Entity: Which model is correct? or are both? Is it…
-
2
votes2
answers97
viewsQ: Reverse process modeling
Always, or almost, if the Conceptual ER is made and then we model the Logical ER, in the BR Modelo It is possible to create the Conceptual ER and generate the Logical ER automatically, but when…
-
3
votes1
answer138
viewsQ: What does maximum depth level mean?
I recently read this article, what are you saying: The maximum depth level of a document is 100. Which left me with the following doubt: What the author is saying with depth level of a document?…
-
0
votes3
answers657
viewsQ: Display values with angular
I have the following code: $http.get('/estados').success(function(retorno) { $scope.ufs = retorno.ufs; console.log(retorno); }); and the outcome of console.log(retorno) is: Now I’m trying to show…
-
2
votes1
answer645
viewsQ: Inserting documents from Mongodb
I have the following document(Schema): var CandidatoSchema = new Schema ({ id_login: Schema.Types.ObjectId, nome: String, cpf: String, dataNascimento: Date, sexo: String, estadoCivil: String,…
-
1
votes2
answers3080
viewsQ: How to create an object and methods in PHP
I have the following code: class Database { public function __call($name, $arguments) { echo $name; } } and I can do that: require_once 'Database.php'; $db = new Database(); $db->usuarios(); I…
-
5
votes2
answers1630
viewsQ: Modeling of a database
I created the following modeling: Would you like to know what can be improved? leading in good practice considerations for database? Explanation: In the TBLogin a person will create a login, which…
-
5
votes2
answers6742
viewsQ: How to change the color of the icon in Materialize?
I’m using the framework materialize and to put an icon I do this way: <i class="material-icons">menu</i> It turns out that by default the icon is in white color, I wonder how I can do to…
-
3
votes1
answer587
viewsQ: Implementing a CRUD class
I have a class CRUD which has the following methods: Get connection() Insert($object) Update($object) Delete($object) Select($object) Taking into consideration the SRP (Principle of Sole…
-
5
votes1
answer64
viewsA: How to know the line number on which the ID was displayed
The simple way to do it would be to create a variável accountant. Ex: $numLinhas = 0; while ($produto = mysql_fetch_array($produtos)) { echo "<tr>"; echo…
-
7
votes2
answers8142
viewsA: What is it and what is YAML for?
Yaml Recursive acronym for YAML Ain’t Markup Language. It is a human-readable data serialization format, which was inspired by concepts of languages such as XML, C, Python, Perl and also the…
-
2
votes3
answers668
viewsA: Uppercase Method for Metroframework
If the Framework were to Xaml/WPF: In the Xaml where the button is, there is the property CharacterCasing which accepts the following values: Upper, Lower and Normal. Setting this property to the…
-
4
votes3
answers3072
views -
7
votes2
answers1801
viewsQ: list.foreach vs foreach
I have a list of several string, there’s a difference between going through the list values: In this way: ListaString.ForEach(delegate(string str) { Console.WriteLine(str); }); Or this:…
-
31
votes1
answer18896
viewsA: What is Connection Keep-Alive?
A connection Keep-Alive means a persistent connection, or a persistent life connection, between the client and the server. Preventing the connection from breaking intermittently. The connection HTTP…
-
3
votes3
answers329
viewsA: Pass Controls to a function
You could do it like this: Pass your Form for the method: public void Metodo(NomeDoForm form) { form.Controls["btnEsc"].Text = "Escape"; } And within the method call each component of the form using…
-
3
votes1
answer144
viewsA: Cancel Doubleclick on Treeview
Try adding this code snippet to your class: protected override void WndProc(ref Message m) { if (m.Msg == 0x203) // identified double click m.Result = IntPtr.Zero; else base.WndProc(ref m); } This…
-
2
votes1
answer159
viewsQ: Wrong string to double conversion
I have in my app.config the following code: <add key="FolhaA4" value="0.168056514197457, 6.36413684210526"/> And here the method to get these key values: private double[]…
-
3
votes1
answer103
viewsA: Failed My C# Nils Video Script (No Board Manager)
These mistakes must be happening because you are not closing the classe and the namespace correctly. The codes below this line are not in the scope of classe. public int columns = 8; //Quantidade de…
-
14
votes1
answer12287
viewsQ: Concurrent Programming x Parallel x Distributed
What are, what are the characteristics of each? Problems that each one proposes to solve? Main difference between them?
-
3
votes2
answers742
viewsA: What’s a destroyer for?
Methods Destrutores are used to release memory dynamically allocated by the class, to delete references to it, when it does not exist. In Programming Languages you have the Garbage Collector, the…
-
37
votes3
answers8360
viewsQ: Property x Attribute
One propriedade of a class is not the same thing as a atributo? What’s the real difference between them? Or propriedade is a synonym for atributo or vice versa? Or varies according to the…
-
1
votes2
answers254
viewsA: Doubt about a specific regular expression in Javascript
To allow this 0-9 / * - + ( ) raiz pi it would be something like that [0-9/\*\+\-\(\)\.]. For specific words it would be something like this: (palavraUm|palavraDois|palavraTres) I suggest you read…
-
1
votes1
answer1145
viewsA: What is the difference between Int32 and int in C#?
Int and Int32 = are synonyms, what differs is that int32 the 32bits for those reading the code. string is an alias for the class String that is there is no difference, if you use one or the other.…
-
4
votes2
answers325
viewsQ: Know if the application has been completed by the task manager
There’s no way my app knows it’s being terminated by the task manager? If the user is going to finish my application by task manager, my application detects this completion and performs some tasks…
-
17
votes5
answers2046
viewsQ: Compressing PDF files
Is there such a site PDF compressor which compresses the files of 300k in 90k, I was googling and I couldn’t find anything related to do on c#. Does anyone know of an algorithm that does the same…
-
2
votes1
answer1053
viewsA: Change file extension into C#
I don’t know why this is, but a simple solution is for you to do it this way: //aqui vai o caminho que você leu no OpenFileDialog string caminho = "arquivo.txt"; //e aqui você cria uma variável que…
-
6
votes2
answers1287
viewsA: Convert Base16 string (Hexadecimal) to Base10 (Decimal)
You can do it like this: string hex = "615769EF"; int decValue = int.Parse(hex, System.Globalization.NumberStyles.HexNumber); To decimal it would be like this: string hex = "615769EF"; decimal…
-
1
votes2
answers481
viewsA: How to increment the txt file name that will be created in php?
It would be something like this: //Primeiro você precisa de uma variável que conte. $jsonIncremento = 0; //aqui você concatena com o nome do arquivo. $file = fopen('JSON' .$jsonIncremento. '.txt',…
-
1
votes2
answers993
viewsA: How to program mobile with Delphi?
I found nothing related to Android and Delphi XE4, only in higher versions. An alternative would be to upgrade the tool to a newer version. RAD Studio XE8 Connected application platform for Windows…
-
8
votes3
answers1704
viewsQ: What is the use of Func<T, Tresult>
I was researching some things and came across the Func<T, TResult>, and I didn’t quite understand his usefulness. For example: //Método public string Nome(string nome) { return "Meu nome é " +…
-
2
votes1
answer196
viewsQ: Error placing other parameters in Shell() function
I’m trying to use the function Shell() of Vba in the office 2010, but is returning me the following error: Build error Erra Esperado:= My code is like this: Dim programa As String: programa =…
-
6
votes1
answer308
viewsQ: What is the use of indexers?
I was watching and the Csharp has indexes. Second definition on the website microsoft: Indexers allow instances of a class or structure are indexed only as vectors. Examples: internal class…
-
2
votes1
answer129
viewsA: Multiple component events in one method
You can have only one Handler and us TextBox at the event KeyUp call Handler. private void MudarFoco_keyUp(object sender, KeyEventArgs e) { var elemento = e.OriginalSource as UIElement; if(e.Key ==…
-
4
votes2
answers70
views -
5
votes1
answer1504
viewsA: How to publish a . EXE secure, other than through Click Once . Net
Basically you will need a Certificado Digital de Assinatura de Código. There are two ways to get one Certificado Digital: Certified Supplier - Ex: Comodo Generate your own certificate with Makecert…