Posts by GabrielOshiro • 256 points
7 posts
-
0
votes3
answers648
viewsA: How to include functions or procedures in Pascal through an existing archive?
I’ll answer again with an idea clearer than me think that you want. You can use a library file of functions and procedures. For example: Library - with a single function that extracts a substring…
pascalanswered GabrielOshiro 256 -
1
votes2
answers402
viewsA: Wrong formatting when opening a latex generated PDF
You can try using another library called Apache Pdfbox. The advantage is that the features are already available in a jar. You can test if it works on your files, if it works, you can integrate the…
-
4
votes3
answers648
viewsA: How to include functions or procedures in Pascal through an existing archive?
You can use build directives. Example taken from the documentation of Free Pascal. unit testi; interface {$I *} implementation end. In this example, the compiler will look for a file called testi or…
pascalanswered GabrielOshiro 256 -
1
votes2
answers1201
viewsA: Modify Canvas in real time
HTML <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> Largura: <input type="text" class="canvas-attr" id="largura" value="100"/><br/>…
-
0
votes3
answers586
viewsA: Find files containing string and rename
Here is a possible solution using bash script. script sh. #!/bin/bash # Cria um arquivo texto com a lista de todos os resultados do find # Cada linha eh um arquivo encontrado find . -type f -name…
-
1
votes1
answer835
viewsA: How to capture hardware id
There are a few ways to do this. You can use the command system in c to directly call a terminal command. For Linux: system("hdparm -i /dev/hda | grep -i serial"); System-free: static struct…
canswered GabrielOshiro 256 -
3
votes2
answers72
viewsA: Generic, extend to an X or Y
Take a look here. Java does not allow multiple inheritance. A class cannot extend two classes. You can extend one class and multiple interfaces. For example: public class GenericsTest { class…