Posts by Marcos Zolnowski • 2,687 points
43 posts
- 
		1 votes1 answer134 viewsA: How to use Dynamic Links with the <projectID>.web.app domain?It is possible to do this? Not, Firebase insists you use <my website>.page link. for Dynamic Links. Now, if you connect an external domain, that rule with dynamicLinks in the firebase.json… 
- 
		2 votes1 answer141 viewsA: Pool and Transactions with PymongoTransactions Transaction support is obtained by 3 object methods client_session: start_transaction(read_concern=None, write_concern=None, read_preference=None) commit_transaction()… 
- 
		2 votes2 answers250 viewsA: Run . java that imports another class in the terminalThe directory in which the .class shall also be informed in the cp. The full name of the class must be specified, something like snickers.guia.MeuPrograma. In your case, enough should be: java -cp… 
- 
		2 votes1 answer93 viewsA: Why does my synchronized method not work as expected?We have a multi-tasking situation: terminais.forEach(terminal -> new Thread(new SocketServerChannel(terminal, terminalService, socketHandler)).start()); But the way to deal with this situation… 
- 
		6 votes1 answer158 viewsA: Android Studio Update: preview adding shadow in XMLThat’s a bug: Linearlayout Rendering issues in Android Studio 3.3. The problem has been solved, and will be available in the next release: For the shadow in Linearlayout, Actually we use it to… 
- 
		7 votes2 answers3144 viewsA: Is there a REST specification for uploading files?There is a REST specification for uploading files? Sort of, Webdav, which can be considered proto-REST. Of the above options, which one would be closer to REST? I prefer the option 3, because it… 
- 
		3 votes1 answer96 viewsA: What are the criteria for failbit and badbit in a Std::istream?What are the criteria for failbit and badbit in a Std::istream? The default that specifies the language, Standard for Programming Language C ++, says: Table 109 - iostate effects badbit indicates a… 
- 
		1 votes1 answer265 viewsA: Hot deploy with NetbeansI haven’t touched Jboss in a while, and I don’t know if your project is in Maven or Ant, so my answer will be very generic. In principle, it is necessary to configure your project as follows: Choose… netbeansanswered Marcos Zolnowski 2,687
- 
		2 votes1 answer191 viewsA: Webcrypto keys derived from PBKDF2even if, a key is generated using the same password used in another key should not be two separate keys? Not, all algorithms involved in cryptographic key generation(PBKDF2, SHA-2) are deterministic… 
- 
		0 votes1 answer431 viewsA: Is it possible to create a widget with javascript?From what I understand, you have a web application (HTML + CSS + Javascript) to be used as a Android Widget App. For this, you will need to load your application using a WebView. According to the… 
- 
		7 votes1 answer1139 viewsA: What is the usefulness of :host, :host() and :host-context()The pseudo-classes :host, :host() and :host-context() are part of the specification CSS Scoping Module Level 1, which are used as selectors of elements defined within the shadow gift. As a result,… 
- 
		1 votes1 answer128 viewsA: Modular Maven design with modular Java10 cannot find the java moduleThe ideal way to run using modules (according to the java command) is to use: ou java [options] -m <module>[/<mainclass>] [args...] java [options] --module… 
- 
		2 votes1 answer503 viewsA: Error compiling a modular Maven project with modular java 10The plugin maven-compiler-plugin uses the library ASM, but only the most current versions can interpret bytecode of version 10. The central POM shall be modified with the following configuration:… 
- 
		4 votes2 answers152 viewsA: What is the "customElements" property for?Translating in a very simple way, customElements means custom elements. That means you can create your own element, just as you can use the elements <a> <br> <div>. In order to use… javascriptanswered Marcos Zolnowski 2,687
- 
		1 votes2 answers534 viewsA: Is it possible to change the value of an annotation at runtime?Cannot change the annotation itself, but if an annotation field is a class, it is possible to change its static fields. Annotation: package teste.annotation; import java.lang.annotation.ElementType;… 
- 
		2 votes1 answer178 viewsA: Error deploying application in Glassfish: org.objectweb.asm.ClassReader. <init> -> java.lang.ArrayindexoutofboundsexceptionThis meant moving Java from container to Java 8. Probably because somewhere, the system uses Java 8 features such as Windows. I would say, that the version of the ASM being used should be the 3.3.… glassfishanswered Marcos Zolnowski 2,687
- 
		0 votes1 answer61 viewsA: Bitbucket - send new files to an empty repositoryTo initialize a repository: hg init c:\novoprojeto To upload the repository to Bitbucket: cd novoprojeto hg push https://bitbucket.org/marquinhos/meunovorep… 
- 
		2 votes2 answers131 viewsA: Connect to Ubuntu Server with Putty+XmingSo I was thinking, it’s necessary for the system to have an interface graphics for Xming to work? Yes, it is necessary to install the relevant packages. By default, VPS images are not instantiated… 
- 
		0 votes2 answers219 viewsA: Container LAMP with Debian StretchI see nothing wrong with having an image with all the software needed to run the system. This is normal for those who use Docker for integration testing. I don’t have much experience with Docker,… 
- 
		4 votes3 answers582 viewsA: Maven Module vs Java 9 ModuleIn a very simple way, the difference is: Maven manages dependencies Compile-time. Maven makes it easy to build the software. Not only when compiling, but also when testing, packaging and… 
- 
		3 votes3 answers8566 viewsA: What is CQRS and how to implement?As the question contains the C#tag, the most official material I found is: Command and Query Responsibility Segregation (CQRS) Pattern, containing examples of how to use CQRS with C# CQRS Journey,… 
- 
		0 votes1 answer3193 viewsA: Java SOAP webservice authentication engineThe most likely answer is that you is not inserting the headers User and Password at the time of calling the webservice. In section 3 of tutorial that you indicated, is described as doing it the… 
- 
		11 votes3 answers2393 viewsA: Divergence in encrypting and decrypting in Java and C# Aes algorithmIn the . NET code, only one change. Initializing IV, always with the same value: using System; using System.IO; using System.Security.Cryptography; using System.Text; namespace Aes_Example { class… 
- 
		2 votes3 answers200 viewsA: Speed difference between Plink and OpensshIn the future: Windows Subsystem for Linux Currently, there don’t seem to be many interesting options. It’s a long shot, but I could try using the Win32 Openssh.… 
- 
		3 votes1 answer329 viewsA: Create Splashscreen to show file copy progressI can’t tell if yours PreLoader is configured correctly, mainly because of this: import com.sun.javafx.application.LauncherImpl; Normally, you use the launch of own Application. Now, what is… 
- 
		4 votes1 answer1003 viewsA: Java Printing - DocprintjobThe difference between the code that works is DocFlavor docFlavor = DocFlavor.INPUT_STREAM.AUTOSENSE; for DocFlavor docFlavor = DocFlavor.INPUT_STREAM.PNG; I suggest changing to: DocFlavor docFlavor… javaanswered Marcos Zolnowski 2,687
- 
		1 votes1 answer199 viewsA: Image loses effect of Camanjs when manipulating canvasIt seems that changing ctx.drawImage(filtro, 0, 0); for ctx.drawImage(c, 0, 0); is the solution. $(document).ready(function() { $("html, body").on("click", "#vintage", function() { Caman("#filtrar",… 
- 
		2 votes3 answers1301 viewsA: Move folder/files between repositories without losing Change historyTwo repositories, the Old man and the New. Are totally different. We need to add the contents of the old repository to the new repository. But each has its own branch default. What can we do to help… 
- 
		1 votes1 answer201 viewsA: Error when deploying lambda EJB project using glassfish 4Looks like it’s a bug in Glassfish: GLASSFISH-21287 It appears the HK2 component is to blame: HK2-136… 
- 
		2 votes2 answers1301 viewsA: How does the G1 (Garbage First Collector) work?The best explanation on G1 in relation to CMS: Getting Started with the G1 Garbage Collector The text is a bit long (I don’t intend to do the whole translation), but in short: How the heap is… 
- 
		1 votes1 answer184 viewsA: Coloring part of an SVG circleUse masks seems the best option: function create_circ(rayon,cx_circle,cy_circle){ var svg = document.getElementById('svg'); var newCircle = document.createElementNS('http://www.w3.org/2000/svg',… 
- 
		1 votes2 answers675 viewsA: Problem with Unity 3D DevelopmentLooks like you got this problem: "Error in text editor Extension chain." when trying to Edit new Unityscript file In short, the Boo extension setting (add-in) is damaged. I can not confirm at the… unity3danswered Marcos Zolnowski 2,687
- 
		3 votes1 answer352 viewsA: How to access PHP webservice securely from an Objective-C/iOS app?For an initial search, I suggest you start reading this document: iOS Security Guide (in English) Before sending (offline storage), starting from page 9: Encryption and Data Protection Sending the… 
- 
		1 votes1 answer535 viewsA: Able to see through cubes - opengl - pyopenglThe problem is simple by analyzing the following snippet of your code: glScalef(1.0, 1.0, 0.3) glColor3f(0, 0, 1)#cor A glutSolidCube(2.0)#renderiza cubo inteiro com cor A glColor3f(1.0, 0.0,… 
- 
		2 votes1 answer258 viewsA: I’m using openGL on android, time to emulate errorTwo important facts: The emulator is not fully guaranteed. Your code can be perfect, and yet fail catastrophically in it. Between version 2.x and Android 4.x, certain behaviors change. The code that… 
- 
		6 votes1 answer172 viewsA: Difficulties with selecting items in a QtreeviewYou need to configure the property selectionBehavior from Listview to value SelectRows. If not, Listview spoils your selection. For those who want to test, use the example interview included in… 
- 
		1 votes1 answer384 viewsA: Using classes from the java.util.Concurrent package to multiply matrices on android?I suggest you withdraw: s1Task.run(); s2Task.run(); s3Task.run(); because that is the task of the executor. You’re running the same thing twice. 
- 
		4 votes1 answer138 viewsA: Switching from 16 to 64 bits while booting an Intel PC compatibleGetting into Long Mode is not so simple, I suggest starting with these pages: Introducing: http://wiki.osdev.org/X86-64 Traditional way:… 
- 
		3 votes2 answers457 viewsA: How do I log in through my Microsoft Live app?I believe the official name is Identity API. Microsoft provides a library Javascript, but there are other ways to connect. In the end, it all comes down to via operations REST. In your case, it… 
- 
		10 votes3 answers17226 viewsA: Difference in Index Unique and Unique Constraint usage in Mysql?In Mysql is the same thing. ALTER TABLE tabela ADD CONSTRAINT UNIQUE KEY is the same thing as CREATE UNIQUE INDEX According to the documentation: KEY and INDEX are synonymous. KEY is normally a… 
- 
		7 votes1 answer560 viewsA: Problems decoding Assembly x86 from binaryThe intel handbook, in section 2.1.1 states that the 67H prefix allows programs to change the addressing between 16 and 32 bits. That any size can be the default, and that the prefix selects the… 
- 
		5 votes3 answers2543 viewsA: Unit test with databaseYou have a EntityManager per thread, but all share the same database. If you run the tests concurrently, what one test does, can affect the other tests. It is necessary to create the database in… 
- 
		4 votes2 answers1037 viewsA: How to use Qt translations directly with Qapplication::tr()I use an older version, but from what I understand, the call from TR in your class is wrong. The documentation says that if your class is not sub-class of QObject, use TR of QCoreApplication: If the…