Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers620
viewsValidate xml file before updating database
I have a file upload system that when sending the xml file it sends the insertions and updates in the database, but if a file with the different structure is sent I get errors. I have already found…
-
4
votes3
answers10588
viewsGlobal variable in all functions of the class
Usually when I want to pull a variable that is out of class, I use global $variavel, but wanted this variable to be accessible in all functions of the class, not to be needing to "pull" in all…
-
4
votes1
answer4154
viewsHow to convert a Java project to Eclipse for a Maven project?
I have a Java project in Eclipse that I want to convert into a Maven project. For conversion, I right-click and select the option "Convert to Maven Project" as shown in the figure below. The problem…
-
4
votes2
answers538
viewsMaven project with Hibernate and Glassfish does not generate database
I have a Maven project and I’m having problems generating the database, I’m using Hibernate and Glassfish 4. No error is generated, just no data is generated, I’m new with Maven maybe I’m forgetting…
-
4
votes2
answers786
viewsDynamically assemble URL parameters
I have a page in a system where I list the products registered in BD, I am implementing some filters within this page, and I would like to update the links of the filters as requested in the URL…
-
4
votes1
answer128
viewsWhat is the best way to follow the software flow?
I have a big project, how do I follow the flow (step by step)? I have several classes and have no idea which methods are called, which classes are etc. I put a breakpoint in a point that I know goes…
-
4
votes3
answers2212
viewsHow to use replace() for the last occurrence?
The method String#replaceFirst() is used to replace the first occurrence of a substring in a string, but how should I proceed if I want to do this with the last occurrence? The doubt is as follows…
-
4
votes3
answers2310
viewsKeyboard hides Edittext
I have an activity with a EditText to enter values. Whenever the keyboard appears, the editText (the keyboard hides the EditText). I tried to put in the Manifest in the relevant activity the…
-
4
votes1
answer926
viewsLoad data during page scrolling with jQuery
I need help to complete a code I’m developing. How can I do, so that when the user enters the page already appear the last 8 posts, and when the user gives the scroll, load the posts, within a loop,…
-
4
votes2
answers1050
viewsWhat better and safer way to program PDO?
Good personal I am now switching to PDO in php wanted your opinion to know if the method I am programming is safe and if I am programming PDO the right way because I saw on the internet several ways…
-
4
votes1
answer529
viewsChanging part of the text of a label
I have the following label created by a plugin <label> Buscar: <input type="search" class="form-control input-sm" placeholder="" aria-controls="Pedidos"> </label> What I want to do…
jqueryasked 9 years, 8 months ago Rafael Barbosa 2,855 -
4
votes3
answers154
viewsOptimization of PHP functions for database querys
I often see different functions in PHP for each query. I wonder if there is any other way to do the following, in a connection with PDO: function get_user_data($table, $columm, $required) { $db =…
-
4
votes2
answers1633
viewsSplashcreen plugin (Cordova) and icons do not work on Crosswalk
I’m using this module that automatically adds a Crosswalk wrapper to a Cordova project. Obs: It requires "Platform" to be [email protected]. Okay, then I give the command to Wrap the Crosswalk in the…
-
4
votes2
answers676
viewsCatch last delimiter with explode
I’m wanting to grab a file extension but the name of some images comes type: adsfasdfasd.234.asdfa.3rfr.jpg asdfsdafasdfasdf.45eg.png I’m trying to use the code: <?php…
phpasked 9 years, 8 months ago Arsom Nolasco 1,367 -
4
votes1
answer1107
viewsUnit test of implementations of a Generic class
Suppose we have the following interface: public interface ICRUDService<T> { T Create(T entity); } Abstract implementation: public abstract class CrudService<T> : ICRUDService<T> {…
-
4
votes2
answers1765
viewsSort by value in Datatables
I am using the Bootstrap SB Admin2, which makes use of the component Datatables. On my jsp page I am loading the following table: <table class="table table-striped table-bordered table-hover"…
-
4
votes0
answers687
viewsThe time of Cookies created when I close my browser is running out
I’m here asking because unfortunately I’ve tried all the alternatives in research since last week. And I’m probably doing something wrong. Come on: setcookie("email", "email", time() + (360 * 24 *…
-
4
votes3
answers425
viewsJavascript : Give . Hide on everything that is open
Good afternoon. I would like to know how to do instead of writing: $("#removemirror3").click(function(){ $("#mirror31").hide("slow"); $("#mirror32").hide("slow"); $("#mirror33").hide("slow");…
-
4
votes1
answer495
viewsWhat are the positives of using Aspx View Engine instead of Razor?
When researching about ASP.Net MVC, I have always found all the examples of views with Razor (I don’t remember exactly if I saw any in aspx) and in the past I remember that it was possible to select…
-
4
votes1
answer2185
viewsInsert cities into database
Hello, I am creating a database, and in it I will have information of Brazilian municipalities, I imagine that I am certainly not the first to need this information, however I do not know if there…
-
4
votes1
answer4734
viewsPick variable on another page
After fetching the data in mysql with php and displaying it on the page, I would like to know how to get these same results from this page where it is displayed and display them on another page.…
-
4
votes0
answers120
viewsFailure in WPF stylization
I have a problem with references of a style within the code. I have a DLL of several stylized components inherited from the Telerik package with only a few changes like color, size, etc... Within…
-
4
votes2
answers308
viewsRewind image and return to function
I need to pass an image file to a certain function, this function usually receives the image from an upload like this: $filter = new ImageFilter; $score =…
phpasked 9 years, 8 months ago Vinícius Lara 3,750 -
4
votes1
answer1124
viewsImage Check (Captcha) does not work
My script has a registration form only that the captcha no letters appear: I’ll leave the code below: <?php define('SI_IMAGE_JPEG', 1); define('SI_IMAGE_PNG', 2); define('SI_IMAGE_GIF', 3); class…
-
4
votes1
answer326
viewsPython - Test read permissions
Is there a function that returns, in Python, True if I have read permissions for the python file?
-
4
votes2
answers472
viewsHow to expand the window by clicking a button?
Is it possible to expand a window with more information when the user clicks a "Details" button? The behavior is similar to that of some error screens, which show the data of an error, as shown in…
-
4
votes2
answers922
viewsChange Css with javascript when clicking
I have a css circle and half of it is hidden. When you click on it, I want the hidden part to appear. When you click back, I want him to hide again. I made the following javascript code, the problem…
-
4
votes2
answers29746
viewsHow to pass data from one table to another SQL
I am doubtful to pass data from one table to another: Example: Table 1 --> Table 2 ---> delete all information from Table 1 I am creating the project in VB.NET and using SQL…
-
4
votes2
answers215
viewsProblem with XML Linearlayout
I’m having a little problem with my layout. I wanted to insert a button that would be at the bottom corner on the right side of the layout, but when I do this the button is added to each item in the…
-
4
votes2
answers370
viewsHow to select from a night period (18hrs to 6hrs)
Description: Count how many times the action occurred in the night period considering the time from 18:00 to 06:00 in the morning. There is a better way to select this type without having to use or…
-
4
votes2
answers5857
viewsHow to break a string
I want to break a string in the old Delphi (pre-Avaidero). I would love to be able to do something like: function Quebra (input: String; separador: String) : Array of String var resultado: Array of…
delphi-7asked 9 years, 8 months ago Oralista de Sistemas 23,115 -
4
votes1
answer6466
viewsAdd Mysql Time Field
Dear friends, I have a table with a TIME column, which stores the time worked on the day, and I am trying to sum up these times at the end of a month, but without success. I used the following…
-
4
votes2
answers40440
viewsHow to resize image to container size?
I have a div with 1184x308px and I want to place inside images that are dynamic. Since images can be loaded with any dimension, how can I adjust the dimensions of the div?…
-
4
votes2
answers117
viewsSave Features in BD
I’m starting to work with PHP, MYSQL now and I’ve come up with a question. I am developing a classified site, the same will have categories of vehicles, real estate, electronics, etc... My question…
-
4
votes2
answers2516
viewsWhat are the differences between Inputstreamreader and Java Scanner
I was aware of the data reading by Scanner, know superficially its functioning, however I came across some examples using a class called InputStreamReader for data reading. What are the differences…
-
4
votes4
answers1210
viewsHow to check if an input has a string?
I need to check if the user typed a string in a field where he can only receive an Integer, did the code sequinte and when I click on the button, he always returns the Alert regardless of whether I…
-
4
votes3
answers346
viewsVariable error within the function
I’m having problems and for what I searched in the internet forums, others have the same doubt that I. I cannot use PHP variables within the transaction function. How do I set a variable? For…
-
4
votes1
answer2747
viewsWhat are the API’s to create a graphical Java interface?
There is some other tool besides Swing, AWT and Javafx to create desktop graphical interface for Java applications?
-
4
votes1
answer142
viewsEdittexts dependent on an Android Gridview
I have two Edittexts, a discount value, a percentage and an update Imagebutton, all are in a Gridview. When clicking on the Imagebutton, the value entered in the percentage field should be converted…
-
4
votes3
answers1030
viewsSearch Mongodb Array
I have these two documents in the Mongo: /* 0 */ { "_id" : ObjectId("54f395ef7a5a5ea37af77398"), "HISTORICO" : [], "MOTIVO" : "", "RP_CANCELAMENTO" : "", "DATA_CANCELAMENTO" : null, "RP_FINALIZACAO"…
-
4
votes2
answers2071
viewsJavascript with Object Vectors
var Carro = function(){ var marca; var modelo; //this.setMarca = setMarca; this.setMarca = function(_marca){ this.marca = _marca; } this.setModelo = function(_modelo){ this.modelo = _modelo; }…
javascriptasked 9 years, 8 months ago Jose Maximilian 773 -
4
votes1
answer231
viewsDoubt Dbref Mongodb
I have two collections in mongodb called businesses and users: ********** Coleção Empresas ********** { "_id": ObjectId("54f38340448d3f436993edf6"), "cnpj": "12345678900000", "razao": "EMPRESA…
mongodbasked 9 years, 8 months ago Leonardo Moura 41 -
4
votes1
answer624
viewsFormat text in Crystal report
Well I’m needing to print a bankroll with following. Our number should look like this 15/200020-3. That same number is saved in the BD thus: 152000203. How do I put the bar in the 3rd house, and the…
-
4
votes1
answer2703
viewsFixed sidebar layout on bootstrap
I’m wanting to make my website the following way with Bootstrap I’ve tried every possible way to make it nice and responsive and I couldn’t! Can someone give me a light on how to make this layout…
-
4
votes1
answer114
viewsInjecting text content copied from page
I would like to know how to inject content into text copied from the page. When I copied a text from a website, it came along with an institutional text and the link from the website. You can see…
-
4
votes1
answer1246
viewsIn Postgresql, which field to use for percentage?
In the table that I am creating, I will have a column that will indicate the discount percentage, for example, "for a given agreement I will have 20% discount, for another agreement I will have 50%…
-
4
votes3
answers2878
viewsWhat is the best way to verify the existence of a record in the database via application?
Today I use a method that sends a COUNT with the record id as a parameter for the database. There is a better, perhaps more performative way to do this?
-
4
votes1
answer541
viewsUsing ajax serialize in Laravel
What I need When the user clicks on the submit button the ajax will call a method of a class to check if the typed text already exists and in a table. It returns the result, if it is false it lets…
-
4
votes1
answer299
viewsHow to leave navigational arrow centered on flexslider
I have a banner that is displayed on a flexslider and need to leave the navigation arrows centered on the sides, today are at the base. As much as I change I can’t leave them centralized, my limited…
cssasked 9 years, 8 months ago adventistapr 5,498 -
4
votes1
answer421
viewsChange field Unique Collection mongodb
Good morning, I have a Collection in the mongodb with a field unique:true. I would like to change this field to false. If I change the code and delete all Collection works, but if I make the change…