Posts by rogue_psycho • 101 points
9 posts
-
1
votes3
answers9258
viewsA: What good is while(0) and while(1) in C?
The C language does not have the Bolean type by default, so it uses 1 and 0 as true/or false, as in binaries, where 1 has voltage and 0 does not. So while - or any other condition command like 0…
-
1
votes1
answer484
viewsA: Git - line breaking problem between different Operating Systems
Systems recognize line breaking in different ways. You can set a default on the file itself in the settings, the line break of the systems may be different.
-
4
votes2
answers695
viewsQ: Web scraping with pure Javascript
I want to make a web scraping that reads an XML page and takes a certain value that is in "name", but, I do not know exactly if it is possible - I only found in how to do with Nodejs -, is it…
-
-5
votes6
answers3209
viewsA: How to turn string into time in PHP?
Using strtotome($string_da_dora)
-
0
votes3
answers381
viewsA: How to create expression that returns 1,12,123,1234 in Python
You can use a loop that has the minimum value and rotates while it is smaller and/or equal to the maximum value and print the value before increment.
pythonanswered rogue_psycho 101 -
0
votes4
answers31386
viewsA: Sending email via Phpmailer to Gmail
In the require_once just put the /phpmailer/class.phpmailer.php. Since it’s at the root of the project, it might work, or just phpmailer/class.phpmailer.php.…
-
1
votes1
answer192
viewsA: Hide click box (tap) on an HTML5/CSS3 website?
About the delay in loading, I don’t know what can be, about this box, if the color is set in css, change the background to transparent or display: none; or even opacity: 0;…
-
0
votes3
answers13058
viewsA: How to do a range with letters of the alphabet in python?
I like to use the range with the ord, as already quoted #python3.* abc=[] for k in range(ord('a'), ord('z')+1): abc.append(chr(k)) print(abc)…
-
3
votes1
answer115
viewsQ: Error in PDO database
I am creating a page that saves values in the Mysql database using PDO and is not writing the data. I am using the following code: <?php $conexao = new PDO('mysql:host=localhost;dbname=dbTeste',…