Posts by Silva97 • 544 points
23 posts
-
0
votes1
answer56
viewsA: Incorrect link in C program and Assembly
The GCC has a extension which allows you to define the symbol name of a variable or function, in this way you can use a different name for the function but access the same symbol. Simply declare the…
-
1
votes1
answer445
viewsQ: Return Javascript script with Node.JS
Using Node.JS I want to read a Javascript script in a folder and return it. It turns out that when I access the file through the browser, the code appears normally. But the script is not embedded in…
-
0
votes1
answer470
viewsQ: Check if subdomain exists with Python 3
I want to check if a subdomain present on a website exists. I tried to use urllib.request.urlopen() but it returns the status code as 200 even if it does not exist. This is because my provider…
-
1
votes1
answer145
viewsQ: Canvas - draw repeated image
How can I draw an image repeating it until it fills an area? Something like the effect of the CSS property background-repeat. Where the image is repeated until it fills the entire tag area.…
-
0
votes1
answer111
viewsA: FASM - Create and run batch file
I ended up discovering the error. (This is what you get for being stubborn and not using the cinvoke macro >.<) In fact the function returns values in eax, and was taking the value of the…
-
0
votes1
answer111
viewsQ: FASM - Create and run batch file
Under Assembly(using FASM assembler), I would like to create a . bat file and then run it. I can create the file normally using the functions contained in msvcrt.dll. I close the file and try to run…
-
1
votes0
answers125
viewsQ: Read file on hard drive
Where can I find code in Assembly to read files on the hard drive? For example, on FAT32 file system. Or else, a description of your tables and organizations so I can program it myself. I use the…
-
1
votes2
answers198
viewsQ: Windows Blibiotecas to use in Assembly
Which libraries I use to build a Windows GUI, and its respective functions? Example: I can import the library msvcrt.dll to use C functions. I have some experience in Assembly for low-level code,…
-
1
votes2
answers181
viewsQ: Compiling C for raw binary
How to compile a C code for low level? (.bin, example). I’m using IDE Code::Blocks, and the mingw compiler (I’m on Windows, but if you know for Linux the commands are almost identical).…
-
1
votes1
answer306
viewsQ: Wscript http post/get in Jscript for PHP
I’m in the mood to make a Jscript script to run by Wscript(native Windows command processor)... And I have a question: How do I send data in POST or GET (as in a form) to a PHP page? From now on,…
-
4
votes1
answer360
viewsQ: Make text editor with syntax Highlight
How can I make an Highlight syntax HTML system for a text editor? I thought of using a tag <pre> with the contenteditable="true", then using Regex I would replace the syntax of contentText,…
-
2
votes2
answers254
viewsQ: Doubt about a specific regular expression in Javascript
Using a regular expression (regex), I would like to know how to validate such conditions: 0-9 / * - + ( ) pi root But in addition to allowing numbers and characters, I would like the expression to…
-
4
votes3
answers1271
viewsQ: Get google search results with Jquery
Hello, I’m wondering how to do the following: Using Jquery, I want to get the link of 1° result of a Google search. An example: $("#bt_tempInfo").load("https://www.google.com/search?q=exemplo…
-
4
votes2
answers2404
viewsQ: Calculate mathematical expression in string
Hello, I would like to know how to calculate a mathematical expression, contained in a string, in Javascript. Example: calc = "(7*2+1)/2"; How could I calculate?
-
0
votes2
answers475
viewsA: How to avoid error when variable not declared
You can check before if the variable has been set. Thus: if(onlytest !== undefined){ //Ações aqui } This way, you can know whether the variable has been set or not. And here’s something similar to…
javascriptanswered Silva97 544 -
1
votes1
answer439
viewsQ: PHP generating image with accents "buggers"
I’m generating an image, which is basically a simple text. Only the text gets the "buggy" accents, all incorrect, even if I set the encoding to utf-8. Here’s the code: <?php header('Content-Type:…
-
0
votes1
answer1651
viewsQ: PHP as "draw" an image
I would like to know the following, how can I "draw" an image with PHP? I saw on some sites, PHP pages that make an image on time. What I want is something simple, just a border background and a…
-
1
votes2
answers2044
viewsA: calculate timestamp difference between two dates
Just add this function to your Javascript: function dataDif(data1, data2){ data1 = data1.split("/"); data2 = data2.split("/"); dif = Math.abs(parseInt(data1[0])-parseInt(data2[0])); dif +=…
javascriptanswered Silva97 544 -
5
votes4
answers3752
viewsA: Error inserting Object of class Pdostatement database could not be converted to string
The problem is you’re trying to give echo $sth... Only $sth is not string type. Hence the error. Just erase the echo $sth; that the error goes away. Edit: Try to do it this way: $cnpj = "000001";…
-
1
votes1
answer341
viewsA: Understanding pointers
There is no difference in speed... Pointers point to a value stored in memory... While variables are predefined spaces in memory for values. The difference is only in terms of utility. If you have…
-
6
votes2
answers679
viewsQ: Menu to select color
I’m making a tool, and I need a menu for color selection. Could someone tell me how to do? Something like that:
-
10
votes2
answers476
viewsQ: Copyright and crack
Cracking a software is illegal, everyone already knows. But I would like to know the following: Is it illegal to use/distribute/create an old cracked product? One that is not even sold by the…
-
1
votes0
answers144
viewsQ: FASM / emu8086 - Generate 32bit/64bit executable
Hello, I would like to know how to use FASM to generate an executable . exe running in 32bit or 64bit. It turns out that when generating . exe, it does not run on Windows 7 because it is…