Posts by Onilton Maciel • 599 points
8 posts
-
0
votes3
answers280
viewsA: Make a shell script bash that extracts to a new file all names and nr of women whose number starts with "91"
cat ficheiro1.txt | grep '^[^;]*;Feminino;[^;]*;93' | cut -d ';' -f 1,4 > saida.txt Breaking: grep '^[^;]*;Feminino;[^;]*;93' It is a regular expression that ignores the Person’s name, house with…
-
2
votes1
answer80
viewsA: Older versions with Puppet
You can specify a version: package { 'php' : ensure => '5.2' , } But remember that if the required version of the package (RPM, deb, etc.) is not available in your default repository, you will…
vagrantanswered Onilton Maciel 599 -
4
votes2
answers1856
viewsA: How to select/deselect an input select Multiple at each mouse click? (without Ctrl)
Try this: $('select#CentroCusto_new option').on('mousedown', function (event) { this.selected = !this.selected; event.preventDefault(); }); With this, as soon as you press the mouse button…
-
0
votes3
answers1322
viewsA: Get the value of the "option" that was clicked either to select/deselect
To achieve the effect you expect, you need to put a Handler for each element option: $("#multiselect").on("click", "option", function() { var clickedOption = $(this); alert(clickedOption.val()); });…
-
4
votes5
answers62952
viewsA: How to remove edge of input and textarea from all browsers when clicked?
The border is used to show that an element is in focus (when you type something or press enter button). You can remove it like this: textarea:focus, input:focus, select:focus { outline: 0; } It is…
-
1
votes2
answers594
viewsA: Php5-Imagick - Installation error in debian 7
Update 12/02/2014 Try downloading the package directly, in case here: http://download.unesp.br/linux/debian/pool/main/p/php5/php5-cgi_5.4.4-14+deb7u7_i386.deb And install it directly sudo dpkg -i…
-
28
votes4
answers44310
viewsA: Remove page element with javascript
You can use Node.removeChild Note that in order to remove the node (and not only the contents of it), you need to first recover the parent of this node: // Removendo um nó a partir do pai var node =…
javascriptanswered Onilton Maciel 599 -
7
votes1
answer4036
viewsA: How to use Elasticsearch next to Mysql?
You may need to improve your question a little by putting more information such as the language in which your application was written (I’m talking about the application that currently accesses this…