Posts by guiandmag • 3,339 points
64 posts
-
8
votes2
answers1867
viewsA: Difference between VM and LXC Containers
Virtual Machine A Virtual Machine (VM) consists of running several complete Operating Systems (Oses) (Linux, Windows, BSD, ...) on shared hardware resources. Such Oses may be different in each VM…
-
11
votes2
answers1867
viewsQ: Difference between VM and LXC Containers
Hello, I am looking to understand what is the difference between VM and LXC Containers? Everything I read sounds a little abstract and the end result seems to be the same.
-
18
votes2
answers13314
viewsA: What are the differences between Gradle and Maven?
Gradle vs Maven I will explain by showing the differences that exist with the Gradle about the Maven. It is interesting to note that they are two tools for the build process of your project in any…
-
17
votes2
answers13314
views -
14
votes2
answers3118
viewsA: Are REST and HTTP the same thing?
REST and HTTP are the same thing? No, they’re not. HTTP HTTP means HyperText Transfer Protocol and is the most popular path for data transfer between computers. This protocol is used to connect…
-
11
votes2
answers3118
viewsQ: Are REST and HTTP the same thing?
I would like to know the difference between REST and HTTP. Since a while, I have been studying these two subjects and they seem to me to be the same thing.
-
0
votes1
answer175
viewsA: Difference of using own module and libraries, Nodejs
Module’s are libraries for Node.js. See the excerpt below the Node.js api: Node has a simple module loading system. In Node, files and modules are in a one-to-one correspondence. Example of modules:…
-
5
votes1
answer4784
viewsA: What does Cross-Domain mean?
Cross-Domain On a web page, when the parent window contains a iFrame son who is pointing to another domain, there is absolutely no way to access the content of this iFrame son. In turn, the iFrame…
-
5
votes1
answer116
viewsA: How to develop an independent frameworks application?
Why should I use a framework? A framework is not absolutely necessary: it is "only" one of the tools that is available to help you develop better and faster! Better, because a framework provides the…
-
1
votes1
answer107
viewsA: Doubt RMI and JNDI
There are some Sources for you to study. But I already say that they are a little old, since the RMI is also an old technology and left aside a little by new technologies. The materials are in…
-
6
votes1
answer3555
viewsA: Specific commit merge
Cherry Picking Each commit in a repository corresponds to a Tree full of files. Normally, these files have been created over several commits. But sometimes it is necessary to take the delta between…
-
3
votes1
answer3555
viewsQ: Specific commit merge
I’m currently working on an SCM migration in my company, we’re moving from CVS to Git, but the code in CVS was versioned in a different way, each branch is a different code-base, so, I’d like to…
-
8
votes2
answers133
views -
7
votes2
answers133
views -
8
votes2
answers2353
viewsA: When should I inactivate or delete a record? Good database practices
Removing Data is not a Best Practice Removing a line or entity is rarely simple. The operation affects not only the model data but also its form. This is why we use foreign keys, to ensure that the…
-
1
votes1
answer3295
viewsA: How to make my program default to open a file type?
What is Java Web Start and how it is started? Java Web Start software allows you to download and run Java Web applications. Java Web Start software: Enable apps easily with just one click. Ensures…
-
11
votes2
answers2293
viewsA: What is the best (fastest) way to read a file from a web server?
Reading files quickly In Java, there are several classes for reading files, with and without buffering, random access, thread-safe, and memory mapping. Some of these are much faster than others.…
-
1
votes2
answers2561
viewsA: Where is the Aliexpress API
Follow the link to the API documentation: API Doc
-
4
votes2
answers182
viewsA: How to send and receive bitmap on restful server
Correct is to encode the image in Base64 and send it through the server, before sending, convert the image with Base64 to a Byte array and send this whole Object. //Codificar uma imagem Bitmap…
-
8
votes2
answers2054
viewsA: Is it wrong to structure a form with tables?
Tableless Tables exist in HTML for a single reason: To display tabular data. But then with the border="0" It became possible for designers to have a grid on which to place images and text. thus…
-
3
votes1
answer127
viewsA: linux SSH command
How about: tail -f file1 & tail -f file2 Or: tail -f file1 | sed 's/^/file1: /' & tail -f file2 | sed 's/^/file2: /'
-
1
votes3
answers105
viewsA: Automatic scroll to the right
$('#gdb1').click(function(){ $("html, body").animate({ scrollTop: $(window).height()}, 600); return false; }); <script…
-
4
votes2
answers125
viewsA: Docker, does it make sense to use a provisioner?
Host side makes sense. It is possible to find Puppet modules to manage Docker containers. On the client side, there is nothing yet very defined. There are basically two situations where…
-
0
votes2
answers125
viewsQ: Docker, does it make sense to use a provisioner?
Next, I have done a more in-depth study on software provisioning with tools like Puppet, Chef and Ansible. I wonder if it makes sense to use them with Docker?
-
6
votes3
answers6138
viewsA: Mount Regex to validate password
Minimum 4 characters, at least 1 letter and 1 number: "^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{4,}$"
-
1
votes1
answer153
viewsA: Hibernate libraries with JPA specification
(JPQL) Java Persistence Query Language It is a platform-independent object-oriented query language defined as part of the Java Persistence API (JPA). As a specification, we don’t have to bring a…
-
39
votes2
answers957
viewsA: How to test software well?
State of the art of the test Mastering code and ensuring its reliability has become one of the top priorities for all developers facing complex, increasingly rich architectures. Certain tools are…
-
0
votes2
answers1818
views -
1
votes1
answer1948
viewsA: Can you kill a thread in Python?
It is a bad practice to abruptly stop a thread in any language. Let’s think The thread has some critical feature that needs to be closed properly. The thread has other threads that must be stopped…
-
1
votes1
answer1948
viewsQ: Can you kill a thread in Python?
Is there any way to stop a python thread? And it’s a bad practice to do that?
-
3
votes1
answer9081
viewsA: Align div in footer inside another div
It is basically necessary to define the main div with the position: relative and div daughter position: absolute, the rest is edit the way you need. Follow the example: text #content { position:…
-
4
votes2
answers126
viewsA: How to remove the "date" we set in jQuery?
jQuery.removeData() allows you to remove values that were previously entered using jQuery.data(). Let’s take an example: var div = $( "div" )[ 0 ]; $( "span:eq(0)" ).text( "" + $( "div" ).data(…
-
0
votes1
answer72
viewsA: Extract apk to put in playstore
Try the following steps: Check that you have removed the debuggable attribute from the application tag on Androidmanifest; Check versionCode and versionName on Androidmanifest; Remove all files that…
-
0
votes2
answers928
viewsA: How to enable the button next to Android to go to a specific field?
This solution works (no need to add android:focusable="true" android:focusableInTouchMode="true"): final EditText userEditText = (EditText)findViewById(R.id.userEditText);…
-
3
votes2
answers596
viewsA: How to take horizontal rolling bar from my website?
Try adding this to your CSS: html, body { max-width: 100%; overflow-x: hidden; }
-
3
votes2
answers1574
viewsA: Is there any way to configure the image quality to increase the upload speed?
Follow a method that works: CSS #div_whatever { position: whatever; background-repeat: no-repeat; background-position: whatever whatever; background-image: url(dir/image.jpg); /* image.jpg is a…
-
1
votes2
answers2449
viewsA: Not a git Repository (or any of the Parent Directories): . git como resolver?
To switch branch simply use the command: git checkout nome-da-branch If the branch doesn’t exist and you want to create: git branch minha-branch git checkout minha-branch The command you used is…
-
0
votes2
answers245
viewsA: Create New Reporitory - Git / Bitbucket. Git (Could not read from remote Repository)
You can specify the username that SSH should send to the remote repository as part of its url. Put the username, followed by a @, before the repository hostname: git remote set-url website…
-
2
votes1
answer845
viewsA: Reduce the size of a Bitmap
To solve Outofmemory problem, you should do the following: BitmapFactory.Options options = new BitmapFactory.Options(); options.inSampleSize = 8; Bitmap preview_bitmap =…
-
1
votes3
answers477
viewsA: How to use GIT connected to the server?
Use a continuous integration server, then call the git code. Thus, configure a pipeline that in the final process (deploy), will send the code to the server that is used.
-
4
votes2
answers338
viewsA: How to create project installation done on android studio
You’re probably using a build tool to take care of your project. Because you’re using the AST, I assume you’re using the gradle as your build tool. So let’s put parts to understand a little more.…
-
2
votes1
answer40
viewsA: Java - Disk Reader (Linux)
To open the drive: try { Runtime.getRuntime().exec("eject cdrom"); } catch (Exception e) { System.out.print(e); } To close the drive: try { Runtime.getRuntime().exec("eject -t cdrom"); } catch…
-
4
votes1
answer318
viewsA: Is it possible to create a cross-platform hybrid application with Phonegap?
Hybrid apps are partially native and partially web apps. Like the natives, they should be downloaded through a store app (such as Android’s Google Play and Apple’s App Store), stored on the main…
-
0
votes2
answers184
viewsA: Error while trying to run the project in Meteor
Make sure that Meteor is running on the localhost. Open the terminal and run the command from meteor. It will start running on localhost: 3000, if you haven’t changed the port. While it is running,…
-
5
votes1
answer89
viewsA: What’s the difference between creating a Socket via Socketfactory and creating one with new Socket?
Factory Pattern The basic difference is that in one you initialize the object with the new and with the other you use the Factory Pattern to take care of it for you. Generally all Factory standards…
-
2
votes1
answer76
viewsA: Is it possible to decrease the startup time of my application?
Use the EDT. The Event dispatching thread (EDT) is a Java thread for processing Abstract Window Toolkit (AWT) events, it queues events coming from the interface to handle in parallel. It is a…
-
3
votes1
answer121
viewsA: Play Framework - Which version is the most recommended to use?
The version 2.4.3, is the latest version and tends to be the most stable, being the latest it resolves some bugs from previous versions. As you have seen now you can use the command line activator,…
-
10
votes3
answers31029
viewsA: What is a Servlet and what is it for?
Servlets are Java classes, developed according to a well-defined structure that when installed and configured on a Server that implements a Servlet Container, can handle requests received from Web…
-
1
votes1
answer1156
viewsA: How to know which CSS is being used by a page?
I already used an add-on for Firefox, to test, install the CSS Usage ADD-ON and scroll on your page. They will show which css is being used and which is not.…
-
3
votes3
answers26056
viewsA: How to block special characters in the field
Use Patterns for HTML 5. Example: <input type="text" pattern="^[a-zA-Z0-9]+$" />