Posts by Falion • 1,953 points
51 posts
-
2
votes1
answer723
viewsA: Admin permission to run netsh in java
Well, there are some ways to do this for what you’ve come to understand by your question. 1 - Creating a manifesto You need to create a manifest file that specifies that your application needs…
-
4
votes1
answer1614
viewsA: How to represent algorithm in C for Pseudocode?
First, I want to make it clear that Pseudocode does not have a standard model, and its purpose is simply to represent a code so that people who see it can understand it easily. So if you do not like…
-
4
votes1
answer2421
viewsA: Move Images with Javascript
Since I don’t know if you just want a button to move to only one side, : <html> <head> <title>Demo of changing position of an Image in JavaScript</title> <script…
-
1
votes1
answer68
viewsA: Java does not compile. java
You probably did the installation of JDK manually,and this is why you are giving this error, because there must have been some error in the installation of Java. Execute the following command,…
-
1
votes2
answers271
viewsA: Form for mobile phones
Why don’t you use jQuery ? It will be simpler not to let the input go blank if the user tries to send the form with white fields. You can use this simple plugin jQuery. jQuery :…
javascriptanswered Falion 1,953 -
9
votes1
answer3234
viewsA: What is dynamic SQL?
1.But at last when we should or should not use dynamic SQL ? Well, we should not always prefer what is dynamic to what is static by several reasons. With regard to databases, where possible we…
-
0
votes3
answers564
viewsA: Javascript color transition
There are several ways to do this using jQuery,some are : You can use setTimeOut() of jQuery calling a function after a certain time or executing a code after a time (in milliseconds). Example :…
javascriptanswered Falion 1,953 -
1
votes1
answer1626
viewsA: access port problem in Node.js
Often this error occurs because the variable PATH was installed in Appdata instead of in the correct location. Maybe your package was installed locally and binary,and not in the variable PATH. Try…
-
9
votes1
answer37813
viewsA: What is the difference between Tautology, Contradictions and Contingencies?
Tautology Tautology is a proposition whose logical value is always true. Example : The proposition p (~p) is a tautology, because its logical value is always V, according to the truth-table. The…
-
5
votes1
answer300
viewsA: How do you make sure it’s another day?
You can check in several ways, such as : 24h in Milliseconds => 24 (h) * 60 (minutes) * 60 (seconds) * 1000 (Milliseconds) so you can only verify that the difference between dates in milliseconds…
-
3
votes2
answers186
viewsA: Taking image from Mysql
Create two tables for easy, one for images and the other for products and you can associate the image id with the product id. Here I will put just one example,you do not need to take as a basis,it…
-
1
votes1
answer489
viewsA: How to resolve java.lang.Noclassdeffounderror when running rhinit() in R
This problem is caused because the following environment variables are not set correctly :PKG_CONFIG_PATH and LD_LIBRARY_PATH Setting up the R export PKG_CONFIG_PATH = / usr / local / lib export…
-
15
votes4
answers6185
viewsA: What is the difference between match_parent and fill_parent?
What is the difference between match_parent and fill_parent ? They are the same (in Level API 8+). Yes, MATCH_PARENT and FILL_PARENT are just different constant names for the same integer value (-1…
-
4
votes1
answer410
viewsA: Disadvantages for Brazilians to use the Google App Engine
Disadvantages in General There are several disadvantages not only for Brazilians, but also for any developer who uses it, some of them are : Apps by developer - 10 Time per request - 30 sec Archives…
-
15
votes4
answers4928
viewsA: How to estimate development time?
How to make estimates ? According to several experts, there are two ways to estimate a development of a software project, : 1-) By Analogy - Current project size estimates are based on estimates…
software-engineeringanswered Falion 1,953 -
0
votes1
answer251
viewsA: How to avoid File Inclusion failure?
Understanding what File Inclusion is Local file inclusion (also known as LFI) is the process of adding files, which are already locally present on the server, through exploiting vulnerable inclusion…
-
3
votes1
answer318
viewsA: Is there a framework to assist in the authentication process when using Google Appengine?
I wouldn’t advise using Spring Security,in itself it is very good. It is widely used and all problems are solved with high priority. However, as with most technologies, if you misuse it, your…
-
3
votes6
answers201
views -
2
votes2
answers409
viewsA: How to avoid Noclassdeffounderror?
According to official Oracle documentation on this error : Launched if the Java Virtual Machine or a Classloader instance tries to click on the definition of a class (as part of a normal method call…
-
2
votes1
answer479
viewsA: I update index.html and delete files, but github does not update
The possible error Check the time of your posts with the Github site’s time zone,because this is a very common error in which it is reported since when you are going to post something on Github…
-
4
votes1
answer133
viewsQ: Error converting bitmap to pictureBox on C#?
I’m creating a path within C# to always be able to call images from this path, (using namespace.Properties) and through it I am able to call the Resources and using the following code : var myIcon =…
-
10
votes1
answer288
viewsA: How to make a foreach loop with limit in c#?
Simple, try the following codes as examples : Foreach example 1 : foreach(ListViewItem lvi in listView.Items.Skip(20)) { //faça algo if (++itens == 50) break; } Foreach example 2 : foreach(var itens…
-
1
votes1
answer751
viewsA: Is it possible to add Origin in the Header of a redirect according to the HTTP protocol?
First, Origin null is the location of the system file, it suggests that you are loading the HTML that loads via file:/// URL.Different browsers take different measures in such cases. But basically,…
-
0
votes1
answer177
viewsA: How can I check if a variable has been declared (desenv. of a compiler in Java)
You can create your own functions for each object, an example : public static final boolean isEmpty(String x) { return (x == null || x.trim().equals("")); } public static final boolean…
-
1
votes1
answer167
viewsA: Templated Method - Is it possible to implement with composition rather than inheritance?
Yes it is possible,and it has advantages to implement in the method template. The advantages are : 1º IS implemented simply by forwarding all calls to an object field. 2º No dependency on…
-
0
votes1
answer301
viewsA: Open Video in a Webview
Try this : mWebView.getSettings().setJavaScriptEnabled(true); mWebView.setWebChromeClient(new WebChromeClient()); mWebView.getSettings().setPluginState(WebSettings.PluginState.ON); Take a look also…
-
2
votes1
answer186
viewsA: How to check if the user is connected to the internet(wifi and mobile data)- Swift
I have an example I found researching,that will help you,in this example it works with 3G and Wi-Fi. import Foundation import SystemConfiguration public class Reachability { class func…
-
7
votes1
answer202
viewsA: Explanation about tags of Android components
These tags you are doubtful is what we call components on Android. They help when creating a project,. Thread : When an application starts and this application does not have any other components…
-
-1
votes1
answer1928
viewsA: How to connect DVR camera in Java?
Yes you can connect Opencv with DVR camera in Java. Here is an example code that is working to connect : package opencvdemo; import java.awt.Graphics; import java.awt.image.BufferedImage; import…
-
2
votes2
answers2570
viewsA: How to place two Google Graphics Maps on the same page
Google Charts has a time error that prevents more than one chart from clicking on the same page. Google has actually managed to fix this bug,I advise you to read this documentation on the subject :…
-
3
votes1
answer712
viewsA: Force keyboard opening
To force the keyboard open use this code : InputMethodManager imm = (InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0); To…
-
0
votes1
answer238
viewsA: How to display the result of an Inner Join for the user?
You are using $wpdb->insert,I don’t know if you know but the class wpdb it is easy to inject an attack to SQL, as it interprets some functions of its own class as input,and may end up damaging…
-
1
votes2
answers1719
viewsA: Application boot with Windows
You can create a key in Regedit (Windows Registry) through Java itself using the following code : String valor = "\"javaw -jar " + System.getProperty("usuário.dir") + "\\meuJar.jar\"";…
-
0
votes1
answer3215
viewsA: How to check if a checkbox in a form has been selected through another form?
I searched elsewhere to see if I could find the solution,. I created a method to check the checkbox to see if it was being selected or not. Code : Form2 frm2 = new Form2(); public bool…
-
0
votes1
answer3215
viewsQ: How to check if a checkbox in a form has been selected through another form?
I want to check if a checkbox has been selected in a form, because I am working with several forms. Using the following code, : frmPrincipal f = new frmPrincipal(); if (f.chkNotificacao.Checked ==…
-
1
votes2
answers8469
viewsQ: How to call php in html and validate a form?
I am validating a form where the user will fill in the fields : Name Surname Email Telephone Message Through these, I want to validate if the user does not type in these fields appears a message…
-
1
votes3
answers982
viewsQ: How to verify encrypted passwords with user input passwords in the database?
I am creating a program in which the user will put the login and password before entering the system,and after he put his input,the passwords will be saved in the database,and then I will check if…
-
0
votes1
answer365
viewsA: Problems with connection to the MS Acces bank
Try to add Class.forName() : public static Connection conectar(){ Connection conexao = null; try { Class.forName("net.ucanaccess.jdbc.UcanaccessDriver"); conexao =…
-
3
votes1
answer1234
viewsQ: How to make notification through the taskbar in c#?
For my application I’m developing I’m creating a icon which will be on the taskbar to show the notifications to the user and within it the user will have options such as : Quit, Open, Configure and…
-
0
votes3
answers1071
viewsA: how to select the entire row of a Jtable using Defaultcellrenderer which changes the color of the line
Have you tried setRowSelectionAllowed(true) in his Jtable instance? I suggest you take a look at the Java documentation…
-
1
votes1
answer1571
viewsA: MD5 encryption in Java?
Good people managed to solve my problem,and I decided to post here in case someone wants to use the code as example or even to re-use it,what was missing was to reset the Messagedigest so later he…
-
11
votes1
answer268
viewsA: What happens to a 2:30 Cronjob if the server goes down at 2:28 and only comes back 5 minutes later?
Simple, it will not be executed because the Cronjob ignores a service that has passed the timetable and where the system was not working and will only run on another day normally (if the same…
-
0
votes1
answer1571
viewsQ: MD5 encryption in Java?
I’m creating a program that takes a login and a password and encrypts it using MD5,I know that MD5 is not an algorithm that you can call encryption,but is actually a hash,but it does not matter,…
-
1
votes2
answers11349
viewsQ: How to insert Java code into html?
Hello guys I would like to know if it is possible to insert Java code into html,because I want to make an encryption program in Java and put inside html. I’m asking here why I haven’t found anywhere…
-
4
votes1
answer133
viewsQ: How do I get a scrollbar to follow the last comment on a listbox in C#?
I am creating a Chat on C#,which will serve as an interaction between a User and an Analyst,being as a means to a Service Order,so far I am managing and I have managed to make sure that there is the…
-
2
votes1
answer125
viewsQ: How to make application lock/unlock on Windows startup?
I want to make an app that will have an option to call the Regedit (Windows Registry) and the user will be able to choose whether to lock or unlock so that the application is booted with Windows.…
-
2
votes0
answers99
viewsQ: How to place website online through domain?
Hello guys I’m trying to put a website online through a domain I’ve already created, it already gave me ready FTP settings with a folder so I can upload the files I want. The problem is that when I…
-
0
votes1
answer106
viewsQ: Error while trying to add everything together through a Java class
I’m doing a small project on expense control, I’m with a class called Expense which is an abstract class, and other classes called Transport,Feeding and Daily will inherit from it the total value of…
-
1
votes2
answers903
viewsQ: How to receive by parameter an array of objects of another class in Java?
Hello people my question is that I am trying to receive by parameter an array of objects of another class,for the class I want to put the array by parameter. Classes are : Route and Costs I have to…
-
5
votes2
answers6153
viewsQ: How can I not allow the user to type numbers and only text in Java?
I am creating a program about registration in which the user has to put name, password, email, etc. But in the fields such as name I want the user can only put text instead of numbers,and that if he…