Posts by Carlos Rabelo • 303 points
14 posts
-
1
votes1
answer16
viewsA: Java help, logical expressions
Would this be: if (idade >= 16) { System.out.println("apto a votar"); } else { System.out.println("inapto a votar"); }
javaanswered Carlos Rabelo 303 -
0
votes1
answer70
viewsA: Capture Mars mouse click
Follow the link from the list of "syscall" that were implemented by the teachers who created MARS. https://courses.missouristate.edu/KenVollmar/mars/Help/SyscallHelp.html Unfortunately it is only…
-
3
votes1
answer501
viewsA: Live on Facebook using Ffmpeg?
Only with ffmpeg I do not know, but using the Phatomjs, I believe that you can do what you want, but being honest I think OBS is a much easier way to do transmissions. phantomjs phantom.js | ffmpeg…
-
1
votes3
answers684
viewsA: How to give Focus in a row by the contents of a td column?
I believe the script below is what you are looking for: function Procura() { var textProcurado = document.getElementById('valorProcurado').value; var tabelaAlvo =…
-
1
votes1
answer1312
viewsA: Doubt in substituting string Assembly (MIPS)
I hope this is what you’re looking for .data buffer: .space 256 # Aloca 256 bytes de espaço msg1: .asciiz "Digite uma frase (máximo de 256 caracteres): " check: .asciiz "*" result: .asciiz "Você…
-
3
votes2
answers80
viewsA: Array losing field after exiting foreach
First, the $Question variable is only temporary and has no connection to the $questions variable. You could try passing it as a reference, I believe in this case you can do what you want. foreach…
phpanswered Carlos Rabelo 303 -
0
votes2
answers567
viewsA: Matrix Printer does not reconfigure paper size
Assuming you are using Windows, go to the control panel and choose the "Printers and Scanners" option, in the "Print Preferences" of the said printer (where you usually choose the size of the…
-
1
votes2
answers425
viewsA: Accent error in IDE editor - Linux
First test with the following command: setxkbmap -model abnt2 -layout br -variant abnt2 If it works and you want to make it work permanently, edit the following file: sudo nano /etc/default/keyboard…
-
1
votes2
answers514
viewsA: Enable "zlib" module in php 5.5
Assuming you have this problem by using PHP 7.0, then you should install the following package: sudo apt-get install php7.0-zip Another tip is that if you want to know all the libraries available…
-
1
votes2
answers1016
viewsA: What’s Options Multiviews for?
When Multiviews is enabled in your application, this will hide the file extension. Below are some examples of how the resource is used on your site: 1) In the example below with Multiviews…
htaccessanswered Carlos Rabelo 303 -
-2
votes1
answer962
viewsA: How to define a subfolder as the root of an HTACCESS application?
Although you believe it would be easier to perform through the dashboard of your hosting plan, you could try using the following htacess. RewriteEngine On RewriteCond %{REQUEST_URI} !^/public/…
-
1
votes1
answer163
viewsA: apt - Apache2 package does not have "apache2.conf" file
A simpler solution than reinstalling all linux is to try to remove all the packages you installed using: sudo apt-get purge <nome_do_pacote> Soon after use: apt-get autoremove To delete any…
-
-1
votes2
answers1172
viewsA: Postgresql changes letter with accent
If your Postgresql has LATIN1 chartset support, just recreate the database with the following features: CREATE DATABASE nome_do_banco ENCODING 'LATIN1' LC_COLLATE 'pt_BR.ISO-8859-1' LC_CTYPE…
-
1
votes3
answers90
viewsA: IF comparing with GET does not work
If you call only the script, without passing any value in the parameters it will always be 0, in this case you should first check if it was passed using if ( ! isset( $_GET[ 'categoria' ] ) { echo…
phpanswered Carlos Rabelo 303