Posts by Diego Henrique • 2,916 points
172 posts
-
-2
votes1
answer47
viewsQ: Which mode is it possible to add 5 out of 5 numbers and display by removing the previous ones each click on the increment/decrement button?
The intention is to run the first five [5] Carnidais numbers in sequence by displaying five-in-five, but the previous ones should be deleted and then run another five [10] (from 6 to 10) until…
-
1
votes1
answer38
viewsA: I need to delete the line that matches a word in the first file and also the second file in the sequence. How do I do?
That is, I need to delete two lines one in the first and the other in the second file, both, correspond in the same sequence of the line between the file NAME and SURNAME. 1 - The ideal would be to…
-
1
votes1
answer38
viewsQ: I need to delete the line that matches a word in the first file and also the second file in the sequence. How do I do?
I need to delete an entire line through a word that I will define and at the same time delete another line as well, but now it must be in another file that corresponds to the line of the first file.…
-
1
votes4
answers120
viewsA: How to filter an HTML tag and its contents with regular expressions in Shell Bash?
This is an amended response with the response of Mr @Kiritonito So only serves to clarify some details that once he gave his answer making use of Windows system and that in turn use distro Linux.…
-
1
votes4
answers120
viewsQ: How to filter an HTML tag and its contents with regular expressions in Shell Bash?
Based on the text below, how to keep the text output from the first column of tag span, that matches the text of the latter span? <span class="CVA68e qXLe6d">Colcha Casal e ... -…
-
2
votes1
answer26
viewsQ: Filter two lines of the file at the same time show only the second?
I have the following fictional file: Location: Estado Title: Bahia Location: Estado Title: Pernanbuco Location: Estado Title: Alagoas Location: Cidade Title: Recife Location: Cidade Title: Barretos…
-
0
votes1
answer41
viewsA: Use the command xargs as input from a file to popular Xdialog --radiolist
Let’s solve: FILING CABINET: The big problem here is that since the name has blank spaces, each word is seen as a parameter and messes up the menu. The solution is to put the name between "escaped…
-
1
votes1
answer41
viewsQ: Use the command xargs as input from a file to popular Xdialog --radiolist
The question here is very simple! Here is a variable: arquivo="\"Item 1\" 'A' off \"Item 2\" 'B' off \"Item 3\" 'C' off \"Item 4\" 'D' off \"Item 5\" 'E' off \"Item 6\" 'F' off" Note that the length…
-
1
votes1
answer42
viewsQ: Can you insert a variable by passing it as a regular expression in the awk command?
Example: VARIAVEL="Pará" echo "$VARIAVEL" | awk '/^P/ { print $1 }' What this does is just search for any word started with a capital letter P. Okay, so far so good! Now, I want to know if you can…
-
1
votes1
answer54
viewsQ: How to extract strings from 4 different files, and insert into a single line of an HTML document
For hours I’ve been trying to find a way to include the contents of 4 distinct files for a new output file -; "output.html". The 4 files I’m looking to extract information from are: link.txt…
-
2
votes1
answer1166
viewsQ: Which Way to Recursively Remove Accented Characters from File Names
I tried other scripts I found online (*os I found), but to no avail. So I want to know some of you(s) how to do this automated/recursive task. Shell Script Taken from: https://tsgii.blogspot.com/…
-
1
votes2
answers92
viewsQ: Is there any way to format an entire row while finding word on page
The idea is this.. when I call a function that brings values from a string included in the script I want the word(s) (s) to begin as an example: & Neutral Colors If highlight of the others,…
-
3
votes3
answers66
viewsQ: By which means one can remove the dynamic cell inserted in the HTML table
Script var opt = document; function inserirLinha(id) { var newRow = opt.createElement('tr'); newRow.insertCell(0).innerHTML = '<input type="button" value="X" onclick="removeLinha(this)" />';…
-
1
votes1
answer976
viewsQ: How to insert dynamic lines in HTML table, and already define a class ante-hand
I have an HTML table and I am creating your lines dynamically using appendChild(), I just can’t seem to define className dynamically on these lines, in the third column - "VALUE". See how this: var…
-
2
votes1
answer96
viewsQ: Totalize column values of an HTML table with decimal result
I need to display the total result by summing the values that contain the value column: var linha=document.getElementsByClassName("calcular"); var…
-
0
votes0
answers50
viewsQ: Copy HTML elements into a form
I want to copy the div clicked, into the form which already contains the select. For example this: var opt = document; function processar(el) { opt.getElementById('minhaLista').innerHTML = el; }…
-
2
votes2
answers56
viewsQ: Make a DIV element stand as a footer
This is an example of what I’m trying to adjust: * { margin: 0; padding: 0; } html,body { height: 100%; } #topo { background: limegreen; position: static; left: 60px; top: 35px; width: 100%;…
-
1
votes2
answers246
viewsA: Display contents of the "title" attribute next to the option element
The following problem solved in Javascript in conjunction with CSS: var opt = document.getElementById('lista'); var txt = document.getElementById('container').getElementsByTagName('p'); for (var…
-
1
votes2
answers246
viewsQ: Display contents of the "title" attribute next to the option element
I have a thumbnail set of images on option of select. I would like the script automatically enter the caption for each of these images in the select, based on attribute title of tag option. The…
-
1
votes2
answers126
viewsQ: I want to search by name of any function from a search field
Guys... how can I make a system in which the input text gets a name from function.. then he searches his name internally with the name that is on string. guy... In HTML I do the following: <input…
-
1
votes2
answers267
viewsQ: How to get the value of a select item by clicking on it
In the font shown below, logic fails to capture the click on the element of select returning only the first option, and from the looks of it is an index problem - selectedIndex. Observe: function…
-
1
votes1
answer421
viewsQ: Full size auto select adjustment via option available
I normally research and do not disturb the patience of the members here, but this time I specifically need an example. See: <!DOCTYPE html> <html> <body> <select id="lista"…
-
0
votes1
answer83
viewsQ: To some form of progressive count to the limit set by Hour, sound alert
What mode can I use Event alert by scheduling some schedules So prepare to carry out a different reminder every hour of the day by issuing a warning Suppose we have a JSON in that structure: var…
javascriptasked Diego Henrique 2,916 -
0
votes2
answers123
viewsQ: How to make logic enable text field at a time when filled
How should I proceed with logic? There is a Data Registration Form on the page, to know: Name Surname Age Cellular I need to leave these fields as follows: 1- When the tab is loaded the field…
-
0
votes1
answer117
viewsQ: What way can I validate current time
How could develop routine [code block], in order to treat the text field where to insert the Hours in real time (Current time, resulting at the moment). In case the user tries to add hours past -…
-
2
votes2
answers112
viewsA: How to find out what is file and what is directory
I put here as a record for future consultation Detect files and directories/folders via header: All: file * Folders: file * | grep -i directory Archives: file * | grep -i text Detect only…
-
1
votes2
answers112
viewsQ: How to find out what is file and what is directory
The question is as simple as the logic I have here. Logic: Assuming that files should always contain their suffix . png . txt etc... While folders/directories carry nothing but their format name The…
-
0
votes4
answers117
viewsA: Copy one line at a time from the source file to the target files
I made it with bow tie while, I leave here as a record for future consultation. See: Bourne shell #!/bin/sh num=0 cat lista-casais.txt | while read LINHA do M=$(echo $LINHA | cut -d ':' -f1)…
-
2
votes4
answers117
viewsQ: Copy one line at a time from the source file to the target files
A new need arose accompanied by a good and new question that until then did not find anything similar on the internet - Copy a single line at a time to a different single file. Example for each new…
-
2
votes3
answers861
viewsA: How to recursively rename numbered files by naming other files
Due to the issue of portability, I decided to bring this script as part of the solution. Noting that, the response of dear colleague Alessandro Schneider was given the height. However, it only has…
-
2
votes3
answers861
viewsQ: How to recursively rename numbered files by naming other files
What I am currently looking to do is rename all files in a folder, where there are also other files of different format. See Example: FOLDER - BEFORE 1.txt 2.txt 3.txt Daniela.jpg Amanda.jpg…
-
1
votes1
answer289
viewsA: Would you like to know how to leave my videos in this identical setting in ffmpeg?
Based on the information given in the question. We conclude that: Video Resolução: 1920x1080p Frame rate : 23 FPS Bit rate : 1146 kb/s Format : AVC Codec : mpeg4 Audio Bit rate : 126 kb/s Format :…
-
5
votes4
answers169
viewsQ: Which way can I use regular expression to capture just a few link attributes
I need a basic example(s) of how I can make a tiny script to pick up only the contents of(s) attribute href. I’ll simplify the explanation into two groups, it’s them: To and B In the Group A we have…
-
3
votes1
answer308
viewsQ: For what reason, I have to double-click the bookmarklet to insert dynamic content
I’ve developed a little plugin commonly known as bookmarklet. The result is almost satisfactory for my case, however there is a hindrance. For me to start it I have to double click otherwise, it…
-
0
votes1
answer65
viewsQ: Which Correct Way to Apply Lightbox to Each Descriptive Link and Clear
I’m on a little something. I need your help for a change. I’m practicing on a personal project, the effect Light Box and if possible would like to hear the dear(a)s colleague. Whether pointing out…
-
2
votes1
answer113
viewsQ: How to change Cartesian file coordinates in an automated way
I have a certain folder with several files, and these in turn contain inside description of coordinates points cartesian X and Y. However, I want to replace these points automatically and…
-
1
votes3
answers1827
viewsA: Shell Script - compress one file at a time inside the Current Folder
It follows an alternative, which had been concluded before the Member’s reply cemdorst. I put here only to serve as a study can be adapted for various purposes: ls $HOME | while read LINE; do find…
bashanswered Diego Henrique 2,916 -
1
votes3
answers1827
viewsQ: Shell Script - compress one file at a time inside the Current Folder
It is the following personal ... I will explain in the least details, in a simple way to illustrate the idea. Example for N in `ls $HOME` do tar zcvf `basename`.tgz $N done See that I want to…
bashasked Diego Henrique 2,916 -
0
votes3
answers83
viewsA: How can I display only the package names while being unpacked
Put here also what I have done, serving only for future consultation. #!/bin/sh # Local onde suponho que estejam os pacotes TARBALL I='/tmp' # Listamos com todos formato *.tgz com o comando "ls" #…
-
0
votes3
answers83
viewsQ: How can I display only the package names while being unpacked
The question that perhaps already have some answer, however I did not find. I’m kind of lost, I would say that a little confused even because what I’m asking I think I’ve done it in some…
-
0
votes3
answers749
viewsA: How to treat High and Low Letters Box along with Symbols
I am grateful to Renan and Mathias who gave me their answer, where I could reach the final result: function busca() { var elemento = document.getElementsByTagName('div'); var texto =…
-
4
votes3
answers749
viewsQ: How to treat High and Low Letters Box along with Symbols
I got the following snippet spinning pretty: function busca() { var str = document.getElementById('txt').value; if(document.getElementById(str)) console.log(str + ' existe.'); else console.log(str +…
-
1
votes1
answer121
viewsA: Recreate HTML elements from one Div to another Div by Classname
Follows as response the snippet of the question now corrected and in perfect operation. See: var resultado = document.getElementById('B'); var str = document.getElementById('nome').value; if…
-
1
votes1
answer121
viewsQ: Recreate HTML elements from one Div to another Div by Classname
Well, some will suggest me using the cloneNode(true) Javascript to make a appendChild(var) in the GIFT. But for this case, I have used this native resource, but it did not meet my need. Why, when I…
-
1
votes3
answers149
viewsA: How to replace the extension but remain the title
It follows a solid response by the method replace, which is more practical for the purpose. See: function baixar(arquivo) { var get = document.getElementById("download").getElementsByTagName('a');…
-
0
votes3
answers149
viewsQ: How to replace the extension but remain the title
I have a folder, in which covers several videos with equal names and different formats: https://sites.google.com/site/mplayerplugin/repositorio/monstros_sa_2.webm…
-
2
votes1
answer137
viewsA: How to define Height of DIV Filho, through the depth of the Scroll of DIV Pai
Solved!!! - variable tam inside style.height // Vamos criar a segunda Div, no qual ficará sobreposta a primeira Div var sobrepor = document.createElement('div'); sobrepor.setAttribute('id',…
-
0
votes1
answer137
viewsQ: How to define Height of DIV Filho, through the depth of the Scroll of DIV Pai
I’m having a little trouble applying the depth size of the scroll dynamic vertical of the first div, in the second div superimposed. Code: // Vamos criar a segunda Div, no qual ficará sobreposta a…
-
0
votes3
answers1279
viewsA: Is there any way to make a div son, float while rolling the scroll of the father div?
With the answers I got from Mathias and followed by Tobias Mesquita, before its new edition. I arrived at two similar alternative, I believe it is Cross-Browser. 1.ª. <!DOCTYPE html>…
-
4
votes3
answers1279
viewsQ: Is there any way to make a div son, float while rolling the scroll of the father div?
I have a div primary, and within this, another div(secondary). I’m trying to position the div secondary in div so that it makes a floating DIV (popup style) that overlaps with other elements. But…