Posts by Everton da Rosa • 755 points
39 posts
-
2
votes0
answers31
viewsQ: R Language: Format string according to the first character
I am writing an R script to convert data that is in text files with fixed width fields for CSV files. It happens that in addition to the transformation I do some "formatting" in the data and has a…
rasked Everton da Rosa 755 -
3
votes1
answer122
viewsA: Comma to Numeric number conversion in R
In fact, the R is not rounding the value, it just doesn’t display all the decimal places as can be seen in this reply Convert Character to number without the Loss of decimal in R Including the…
-
2
votes1
answer122
viewsQ: Comma to Numeric number conversion in R
I have a script that receives a user value, via readLines. This value is a number (monetary value) with two decimal places that must be saved in a frame date. However, when I convert the received…
-
2
votes2
answers145
viewsA: Update commits to consider changes in . gitignore
After a few more hours of research, I found the solution in Removing sensitive data from a Repository git filter-branch --force --index-filter "git rm --cached --ignore-unmatch…
-
0
votes2
answers145
viewsQ: Update commits to consider changes in . gitignore
I have the following situation: I created a repository git from a remote of the Github. I did several commits in the local repository (without push to the remote). When I went to perform push for…
-
0
votes1
answer72
viewsA: I want to put inside an existing ARRAY the information of a text file . TXT with PHP
Although I understand it to be a bad logic proposed by the question, I think this solves the question: $lang = ['Signup', 'Sign in', 'Login successfull']; foreach ($lang as $key => $value) { $txt…
-
1
votes3
answers95
viewsQ: Remove data frame row with string divided into multiple columns
I have several files with data stored in text of fixed width. All files have a header with information about the data entity and a last line in FINALIZER format########## Where…
rasked Everton da Rosa 755 -
2
votes1
answer38
viewsQ: Why does Phpunit not consider early return in method in code Coverage?
I have a code that I am testing with Phpunit being that in the tested method there is an early return with null under certain condition. However, Phpunit does not consider this part of the code to…
-
3
votes1
answer131
viewsQ: What is the advantage of using Perl-compatible regular expression functions or POSIX-compatible ones in PHP? In what context do you use both?
PHP has regular expression functions compatible with Perl and POSIX. However, I can’t see if one stands out from the other or which contexts of use favor one or the other. It would just be a matter…
-
0
votes1
answer44
viewsA: Is it possible to perform unit tests on PHP functions?
On the basis of Guilherme Nascimento commented, I did some tests and "discovered" that you can test functions with Phpunit. I created a function called cfg_pdo_user()that must return a string with…
-
0
votes1
answer44
viewsQ: Is it possible to perform unit tests on PHP functions?
With Phpunit we can perform unit tests in object-oriented code. There is something similar for PHP functions?
-
0
votes2
answers50
viewsA: Add . html extension at the end of all links in multiple files (with Shell Script)
With the help of Marcelodez in the topic of VOL: # Ajusta os links para arquivos tag:* colocando .html ao final # Com a importante ajudade de Marcelodez no tópico…
-
1
votes2
answers50
viewsQ: Add . html extension at the end of all links in multiple files (with Shell Script)
Hello. I have a lot of HTML files that have links in the following format: http://localhost:8080/tag:alguma_coisa and I need to add the extension .html to these links so that they stay like this:…
-
1
votes3
answers238
viewsQ: Remove all after ? in file name
Hello! I’m trying to rename a large amount of files on linux, but I’m not getting the command right. The case is as follows: I have several files inside a directory and its subdirectories that have…
-
0
votes2
answers720
viewsA: Python 3 and Tkinter: progress bar does not update during script execution
After hours of searching last night, I found something that also solved the problem: using self.Window.update_idletasks() inside the loop. Calls all pending Idle tasks, without Processing any other…
-
0
votes2
answers720
viewsQ: Python 3 and Tkinter: progress bar does not update during script execution
Hello. I am creating a layout converter using Python 3.6.4 and Tkinter. Among other things the GUI must have a progress bar that updates its value with each interaction of the conversion process,…
-
1
votes3
answers500
viewsA: Python 3 Negative Indices
According to @bfavaretto’s comment, the answer is: lista.index('a') - len(lista)
python-3.xanswered Everton da Rosa 755 -
1
votes1
answer51
viewsQ: dialog with problem when using --item-help
I am facing problems when implementing a checkbox with dialog, on Linux Mint. What happens is that I use the option --item-help, the box box mount the checkbox wrong. dialog --title 'Seleção dos…
-
1
votes1
answer223
viewsA: PHP embedded in HTML in Eclipse
I couldn’t find an answer to the Eclipse problem but I found the solution for the Netbeans IDE: just install the version in development that already supports PHP7. I was trying to use Eclipse…
-
2
votes1
answer2702
viewsQ: How to change CSS style of table column when passing mouse?
How to change style CSS (backgrounc-color) of an entire column when passing the mouse, using only CSS? The table in question is as follows:: <table class="un table"> <caption>Título da…
-
0
votes3
answers2761
viewsA: Change active menu item depending on scroll
Apparently, this effect is called Scrollspy. I found it on the page of Materialize CSS Scrollspy is a jQuery plugin that monitors certain elements and which element is centered on user screen. Our…
-
5
votes3
answers2761
viewsQ: Change active menu item depending on scroll
Does anyone know how to do the effect that activates/disables menu items depending on the scroll? Like for example on the site PHP the Right Way, menu items turn on/off as you scroll the page. I…
-
0
votes3
answers369
viewsA: Query output on another page
Place the value in a session variable and load the session on the other page, or load the other tab with a query string at the address of the other page.
-
-1
votes1
answer44
viewsA: Insert an "IF" with "DO" to validate _POST field
if(...){ do{ ... }while(...){} }else{ ... }
-
1
votes1
answer283
viewsA: Split value in foreach
Take the array_combine from inside the foreach, because for each interaction it is combining the arrays again.
phpanswered Everton da Rosa 755 -
8
votes2
answers2552
viewsQ: Which IDE supports PHP 7?
Does anyone know of an IDE (or simpler code editor) with PHP 7 support? I use Netbeans, but it seems that support for PHP 7 in it can be added in future versions, but it is still uncertain. I’m…
-
3
votes1
answer223
viewsQ: PHP embedded in HTML in Eclipse
Good morning: I’m starting to use Eclipse Ide (Mars) because it already has PHP 7 support while Netbeans doesn’t have it yet. I am facing a problem which is the non-formatting (syntax highlitgh) of…
-
1
votes1
answer812
viewsA: upload multiple images
Make a foreach loop with $FILES['foto'] because when activating the Multiple option in html, it sends each file as an element of the array $FILE['foto']. <?php ini_set('display_errors', true);…
-
0
votes1
answer40
viewsA: How to get the namespace where the function is called?
You can take the value of $action, "explode" it with $array = explode(" ", $action) and remove the last value of the array generated with array_pop() and then merge the rest with implode(" ,…
-
0
votes1
answer62
viewsA: Doubt about Openssl + Apache
In fact, in principle there will be no problem in updating. What may happen is that you have changed some directive of the Apache and Openssl configuration files, but I find it difficult. I suggest…
-
1
votes2
answers11564
viewsA: Digital Certificate with PHP
Some time ago I researched this too and after much reading I discovered that: Either you have a certificate installed on the server that will sign (type A1 not in token/smartcard, but in file) or…
-
1
votes0
answers39
viewsQ: Run Windows straight from partition on Linux
I wonder if there is a way to run Windows that is installed on a partition, inside Ubuntu, or another district. Type, emulating a machine with Virtualbox, only instead of using a file like HD, use a…
-
-1
votes1
answer564
viewsQ: Environment for HTML and PHP execution outside the Browser
A few years ago I found a software that provided an environment for running HTML+PHP+Javascript applications outside the browser. For example, it was possible to develop an application in these…
-
2
votes2
answers1316
viewsA: Monitor PHP script processing
Following Rsinohara’s suggestion I was able to implement the logic using Xmlhttprequest, file_put_contents and file_get_contents. The index.php file creates two Xmlhttprequest: one for the…
-
5
votes2
answers1316
viewsQ: Monitor PHP script processing
Does anyone know a way to monitor PHP code processing and present to the client? I’m designing a converter layout which takes data files in a given format and converts to another format. Basically,…
-
1
votes2
answers987
viewsA: PHP: Picking up function argument with preg_match_all
I got it from reading a text from Martin Streicher and of Manual for PHP preg_match_all("/altext\(\'(.*)\'\)/", $data, $matches); And yet it requires no other artifice if a ') appears in the middle…
-
3
votes2
answers987
viewsQ: PHP: Picking up function argument with preg_match_all
Good afternoon: I’m picking up to pick up the value of calls to a certain PHP function straight from the source code. What I need to do is sweep each of the lines of the source code, and if there is…
-
2
votes1
answer3030
viewsA: Implement digital certificate (ICP) authentication in Apache
Problem solved. From the link indicated by mgibsonbr I came to other sites and found that what was missing was to really indicate to Apache what the acceptable certification chain. I did this by…
-
3
votes1
answer3030
viewsQ: Implement digital certificate (ICP) authentication in Apache
I’m trying to implement Apache authentication through PKI with digital certificates stored in token/smart card. I am using XAMPP 5.6.8.0-VC11 on a Windows 7 computer. Following what I found by…