Posts by Ikaro Sales • 537 points
48 posts
-
-4
votes1
answer240
viewsQ: How to use Enum with hierarchy / nesting and subgroup
I have a enum class called Example as follows: export enum Example { // enums pertercentes ao grupo A: enumA1, enumA2, enumA3, // enums pertercentes ao grupo B: enumB1, enumB2, enumB3, // enums…
-
1
votes1
answer79
viewsQ: How to replace/replace array keys
I have 2 array’s (one that stores one person’s values and another that stores Keys/properties relative to this person) and would like to replace the 1 keys of these array to put as key in the other…
javascriptasked Ikaro Sales 537 -
0
votes1
answer84
viewsQ: Capture data from all select elements in HTML with Angular
I made a ngFor to list elements select HTML and I’m wanting to capture all the data selected by this select... I did it this way: app.component.html <form [formGroup]="secondFormGroup">…
-
-1
votes1
answer25
viewsQ: How to do an UPDATE with Sqel Expression?
I’m trying to do an UPDATE and I’m not getting it, someone can identify a point of failure ? @Query(value="UPDATE cliente SET nome = #{#cliente.nome} WHERE id_cliente = 1", nativeQuery=true) Cliente…
-
-1
votes1
answer73
viewsQ: Check for loop object existence
I am running a loop that should iterate 30 times that corresponds to the days of the month... and this loop is iterated with data coming from the database that brings the days of registered items…
-
-1
votes1
answer49
viewsQ: String Break for Array
I’m getting a comeback from a string from the REST API as follows: string bancos = ["BRADESCO", "ITAU", "SANTANDER"]; Only I want to make this string an array for me to iterate with the returns. How…
-
1
votes0
answers44
viewsQ: JS condition printing <div> HTML
I am wanting to create a condition in JS that I get an object in a file .html as follows: <a each="gabarito in $this.gabaritosCopy"> <script> if (gabarito.valor == 'N') { </script>…
-
0
votes0
answers40
viewsQ: Sending a GET request
I am trying to send a GET request to another computer (Win Server R2 2008), from an EC2 AWS (Linux) instance via Curl by command $curl -X GET --header "Authorization: bearer <token>"…
-
0
votes2
answers62
viewsQ: Minificar batch
Is there any kind of batch command or software to minify files .batch ? Just like exists with Minify to minify files .js or .css
-
0
votes2
answers58
viewsA: Concatenate n characters of a typed word
You can user a C function responsible for reversing the characters, called strrev(). strrev char *strrev(char *str);…
-
0
votes2
answers62
viewsA: Command in chat to open new javascript page
You can try this way by typing /regras will automatically open a new tab <script> document.addEventListener('keyup', function (event) { var emsg = $("#emsg").val(); $("#emsg").focusout(…
-
1
votes1
answer49
viewsA: I’m not sure my class is really correct
Points to be improved: Encapsulate database connection attributes. Remove database connection from class constructor method and create a specific method for this and another method for…
-
0
votes3
answers154
viewsA: Place element in the middle of HTML
It is possible only that you have to name the HTML elements with the tag id, as follows: var $wrapper = document.querySelector('.wrapper'), HTMLTemporario = $wrapper.innerHTML, HTMLNovo = 'Teste…
-
0
votes1
answer47
viewsA: Is it possible to manipulate the current url with php?
Try this way, so you are using the PHP Curl library. $forget = 'abc'; $url = $_SERVER['PHP_SELF'].'?get='.$forget; // Cria o cURL $curl = curl_init(); // Seta algumas opções curl_setopt_array($curl,…
-
-2
votes1
answer41
viewsQ: Data pass dispatcherServlet
I am trying to perform data export from Log to Excel only it is presenting me the following error: 2019-03-18 10:16:16.022 ERROR 252 --- [nio-8080-exec-4] o.a.c.c.C.[.[.[.[dispatcherServlet] :…
-
-3
votes1
answer66
viewsQ: Pass data between select
I’m trying to get the dice selected on a select múltiple can pass to the other select by clicking the button >>, but I can’t. Is there any HTML5 functionality that can solve this ? <select…
-
-1
votes4
answers81
viewsQ: Succinct conditional structure with multiple comparisons
How to compare three items with the same result? I’m currently doing it as follows, only this way the code design doesn’t look stylish. if ($title == 0 && $squad == 0 && $level == 0)…
-
1
votes2
answers334
viewsA: Mysql query with infinite loop
Try to use the foreach: <?php foreach($resultado as $row): ?> <tr> <td><?= $row->ID; ?></td> <td><?= $row->courseName; ?></td> <td><?=…
-
0
votes2
answers112
viewsQ: Code repetition
I’m having trouble with code repetition in my CURL connection class, the class is being declared as follows: <?php if (!defined("ROOT_PATH")) define("ROOT_PATH", dirname(__FILE__, 2));…
-
0
votes3
answers197
viewsA: Why does parseint return Nan?
function aparecer() { var elemento1 = document.getElementById("numero").getAttribute("value"); var elemento2 = parseInt(elemento1); alert(elemento2); } <html> <body> <button…
-
0
votes1
answer239
viewsQ: ROUTE scheme . htaccess
I have the following URL: http://localhost/devops/json/index.php and I wish to have access to the index of this page: http://localhost/devops/json/ I wish the display of index.php be hidden…
-
0
votes2
answers144
viewsA: Does not insert with empty date input
<h5><strong>Data da Visita</strong></h5></h5> <input type="date" id="DataVisita" name="DataVisita" required="off" /> Add the REQUIRED="OFF"…
-
1
votes1
answer931
viewsQ: Composite Key Table without repetition
How do I make a table with composite key, but I can’t repeat the combination of values. I want to store FRIENDSHIPS, using a syntax similar to is: tb_amizades id_usuario_um id_usuario_dois SELECT *…
-
1
votes1
answer297
viewsQ: List 3 items side by side
I want to make a list of sequential items only that with 3 columns, I created an odd or even logic, to do the listing side by side, in case 2 columns... But now I have to make a list of 3 items per…
-
1
votes1
answer42
viewsQ: Listing Side by side
I’m trying to list the news on wordpress, only I want to list side by side, I did the while wordpress default to list the news como eu fiz abaixo Upshot: I wanted the news to be side by side and not…
-
0
votes2
answers1587
viewsQ: SQL Syntax Error in FK Creation
I’m looking to add a foreign key on the table CONSULTATION Only Mysql reports the following error: 1064 - You have an error in your SQL syntax; check the manual that Corresponds to your Mariadb…
-
0
votes2
answers794
viewsA: Radio button check with BD data
Just add the checked checked="<?php echo $checked1; ?>" It’ll stay that way: <input type="radio" name="tipo_pessoa" value="fisica" checked="<?php echo $checked1; ?>" /> Fisica…
-
2
votes1
answer113
viewsQ: WCF out bool parameter
I created a Webservice WCF, and at the interface IService1.cs I put the signature of the methods [ServiceContract] public interface IService1 { [OperationContract] bool insertConsulta(BConsulta…
-
1
votes1
answer52
viewsQ: Selecting an SELECT HTML item
I’m trying to get the item selected which has the id equal to that of the $_REQUEST $combo .= "<option value='".$row_area->area_id."' ".if($id == $row_area->area_id) { echo "selected"; }…
-
1
votes1
answer82
viewsQ: Capture last INSERT value
I am creating a news system where the user has the option to register the news and put the original link where the news was generated, so far so good, the problem is that I want the user to have the…
-
2
votes1
answer580
viewsQ: Datetime attribute error in C# saving to Mysql
I am trying to enter in the Mysql database the date of birth of the user, in C# the attribute data_birth is of type DateTime and in Mysql the attribute data_nascimento is of type Date, to insert C#…
-
0
votes1
answer1698
viewsQ: Convert class object to String
I’m trying to display the database query, but when trying to display the error appears Object of class TDataTable could not be converted to string. and pointing the error to the file…
phpasked Ikaro Sales 537 -
0
votes2
answers866
viewsQ: Convert date format to Mysql
I’m developing a software in C# and in this software I asked to inform the customer’s date of birth in the format dd/mm/aaaa, but in the database the date type is only accepted in the format…
-
2
votes2
answers1226
viewsA: How to override one HTML page
That’s just a page, what happens is that the white part is a <div> is over another <div>, this is done in CSS with the function z-index, example: HTML <div id="imagem"></div>…
htmlanswered Ikaro Sales 537 -
0
votes2
answers55
viewsA: centralize "a" elements in a div
<div id="header_right"> <table width="100%" height="100%"> <tr valing="middle" align="center"> <td><a>A</a></td> <td><a>B</a></td>…
-
-1
votes1
answer288
viewsQ: js script inside php
1st Code : $urlExclusao = "index.php?".PARAMETER_NAME_ACTION."=delete&"; $urlExclusao .= PARAMETER_NAME_FILE."=noticia"; $urlExclusao .= "&id=".$row->noticiaid; $test = $urlExclusao; echo…
-
1
votes2
answers687
viewsA: Query sql with multiple java fields
SELECT * FROM candidato WHERE nome LIKE '%'+getNome_cadastrado+'%'; The sign % is used to define wildcards (letters missing) before and after the pattern.
-
0
votes1
answer188
viewsQ: What good is Runnable?
I was thinking of creating thread one in my software, but I saw through the forums that the Runnable help in a certain way in creating a thread, and wanted to understand how it works.…
-
-2
votes1
answer79
viewsQ: Session in select
The select is being carried by $view->montarComboAreasNoticia(), what I want is for you to create a session to save the option I chose when I return to the selection page of select. Code:…
phpasked Ikaro Sales 537 -
2
votes1
answer246
viewsQ: How to list Mysql results in the listview
Structure of the Code In this function below I try to grab the contents of the Mysql database and passing to a List<BDependente> lDep on the line where this facade.listDependente(bDep);…
-
-3
votes2
answers292
viewsQ: How does the flow of a Web Service work?
I need to develop a web service, and its main idea is client-server communication. But I do not understand how this would be done using the MVC architecture and using the C#language, will have the…
-
0
votes2
answers146
viewsA: Spacing between tbodys
Spacing To give the mirroring just assign the padding serves to give an internal mirroring table tbody { padding: 10px; } Border style table { border-radius: 4px; box-shadow: 0 0 15px #CCC; border:…
-
0
votes1
answer49
viewsQ: Add page to Google
Is there any <meta> tag that makes Google search my site and show it that way ? or is some script developed by Google to improve the way of searching the sites ?…
-
-1
votes2
answers2379
viewsA: Fixed side vertical menu with limited scrolling
This site has a tutorial, they use a JS plugin, just you look at the code and implement in your... http://www.criarsites.me/tutoriais/menu-scroll-fixo-jquery/ But it’s quite simple, just call the…
-
-1
votes3
answers741
viewsA: On which pages should I put the code of google Analytics?
By convention default, JS codes are inside the <head> </head> of HTML ! But if you put anywhere in the HTML page the script will work normally
google-analyticsanswered Ikaro Sales 537 -
9
votes1
answer296
viewsQ: What are Sockets? And how to develop in C#?
I have to develop a socket, but I don’t know what it is or how it works! I wanted to know what it takes to create a C#Socket, I am using Visual Studio as IDE.
-
-1
votes2
answers93
viewsA: Center form
If you use an HTML version earlier than 5, you can use: <center></center> If you use HTML5, you must use CSS: margin-left: auto; margin-right: auto;…
twitter-bootstrapanswered Ikaro Sales 537 -
4
votes1
answer220
viewsQ: Where to implement Facade in the MVC?
I’m developing a C# project using MVC, but the teacher wants all students' projects to have Facade, the doubt is as follows ! Where I implement Facade, Model, View or Controller ?