Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer161
viewsInheritance with interface
How could I solve the following problem. Setting: I have a class B that inherits from class A and implements interface I. Problem: The I interface requires the implementation of the X method which…
-
4
votes2
answers3360
viewsBest practices for creating and reviewing procedures
What is the best way to create, change and evaluate procedures? Where work we do of the following flow: We check if the trial exists if we delete it and then create again. To Verse I use a header…
-
4
votes1
answer5508
viewscreate a search screen
I am giving sequence in an application in ASP.Net MVC and need to make a search screen. The question is this:: I created a table where users register their skills. I need a view where there will be…
asp.net-mvcasked 10 years, 5 months ago user11492 41 -
4
votes3
answers627
viewsHow to collect the height of an element with jQuery
Oops, I’m not getting the height of an object in the document. I have a slider, which works with ul > li (may be relevant), and inside a slide <li>, I am placing via javascript and c# three…
-
4
votes2
answers142
viewsGenerate final HTML in PHP or JS?
What is the best way, the best performance, to generate the final HTML. Direct in server-side or receive the database data and generate the HTML in client-side? In the development of my current…
-
4
votes2
answers8294
viewsCan you change the vertical order of Divs by CSS?
I have the following automatically generated page layout: I’d like to bring to Source, next to the Date (below). But I cannot change the layout of the generated elements. I can only change a…
-
4
votes2
answers3616
viewsHow to save the logged in user ID
I am using in my Windows Authentication application. I have a controller where the user should register their professional experiences. However, the way the application was made, I need every time I…
-
4
votes3
answers1370
viewsUse of parameters in the "in" clause in a Tibquery
I have the following SQL command in the SQL property of a Tibquery component in Delphi. SQL command used in the component with parameters: select pro_codigo, pro_nome from produtos where…
delphiasked 10 years, 5 months ago Johni Douglas Marangon 393 -
4
votes1
answer201
viewsProblems running only one unit test on Rails 4
When I run all the tests or just tests a file is working normally, but when I try to run just one test, it just doesn’t run. I have this test require 'test_helper' class UserTest <…
-
4
votes1
answer1309
viewsDjango - Editing tables (Update)
In my application I have a function to search a person by name and edit data of a registered person... When I search and there is more than one person registered with that name (or even when there…
-
4
votes1
answer1078
views"No suitable driver found" in Java database connection
Well, I use the eclipse and I’m trying to connect a Mysql database with my project, my code, compared to other tutorials I found, it’s perfect, and it’s this: package pack; import java.sql.*; import…
-
4
votes2
answers1064
viewsWhen to use cache system in PHP?
I’ve been reading a little about the use of PHP cache, its advantages and disadvantages. Some questions and etc. If I have a system that only shows updated texts (rewrites) of the same, very small,…
-
4
votes2
answers285
viewsDetect generated event in another class
I have a class (in VB) that returns an event of TimeOut, that is, if time runs out it returns an event content with a string with the data I need using Raiseevent. How can I treat this event in the…
-
4
votes3
answers8001
viewsWhat is the right way to remove the edge with CSS?
To remove edges in CSS I usually use one of the two values: .exemplo{ border:0; /* ou */ border:none; } The funny thing is that they both work, and it happens with other properties like outline, but…
-
4
votes1
answer81
viewsQsharedpointer Definition and Function
From what I understand, the Qsharedpointer is a smart Pointer, ie, a pointer that offers automatic garbage collection. If possible I would like a code that better explains this, including when I…
-
4
votes1
answer123
viewsHow should I communicate with DB? Technology recommendations
I’m with an Android project, in which I’m trying to do everything using free platform. I need the devices in the field to communicate with the database, and I heard something about JSON and Web…
-
4
votes1
answer133
viewsError in database query with Linq
Good night! I am trying to perform a query in a mysql table, using English, and present this result in a gridview for the user. I have the table below: I’m not searching all columns of this table,…
-
4
votes1
answer213
viewsRepaint screen every little time without crashing - C++
I have the following situation: I have to repaint the screen every little while so that objects on the screen move on their own, but this has to occur so that the program does not lock. I tried to…
-
4
votes1
answer1133
viewsProblem reading words from database with accent or cedilla
I’m reading my table categories from the database and when I have words with cedilla or accents, they appear in my project with strange characters. For example, in the categories I have a title…
-
4
votes1
answer3396
viewsJava Regular Expression
I am programming in Java and need to filter a String from a regex using the method matches(). I can accept letters (a-z) or numbers (0-9), where that number can have 1 or n digits. I am using the…
-
4
votes1
answer2717
viewsHow to save and return images with Web Api?
How to send and return images from a Web Api from the Controller of an application Asp.net MVC? In my Controller of the project Asp.net MVC I get from View a picture like HttpPostedFileBase and need…
-
4
votes3
answers360
viewsAlarms are lost when mobile is turned off and on!
How to make the alarms not get lost? Ex: if I create one AlarmManager who calls a Broadcast, if I restart(turn off/on) the mobile phone alarm is no longer triggered.…
-
4
votes1
answer112
viewsThread Safe and its link to Collections
What comes to be thread safe, and what is your connection to data collections?
-
4
votes1
answer904
viewsHow to work with CSS media queries?
I would like some information on how to use media queries. How do I define media of a website in the below? 2560 x 1440 2560 x 1080 1920 x 1080 1366 x 768 1280 x 1024 1280 x 768 Being that my site…
-
4
votes1
answer1146
viewsHow to Make Splash Screen?
I’m developing an app for android using eclipse, in this app, when it starts, I needed to have a presentation screen (splash screen), I mean, a screen with my logo, then wait about 4 seconds, and go…
-
4
votes3
answers1822
viewsI cannot access object property. Laravel/Eloquent ORM
I cannot access the properties of the related object. Well, I have a class calling for FileClass, she has the following relationship with class FileServico: Fileclass.php public function…
-
4
votes1
answer195
viewsGroup by with Lillo
I have the following tables: **Aula** Id Nome Data **Avaliacao** Aula_Id Aluno_Id Organizacao Didatica To get a Join of the tables I use the code: var result = from a in mdc.SBE_AA_Aulas join av in…
-
4
votes3
answers1709
viewsColor in css property not working in IOS Safari
I have a <div> tagged <p> containing a phone number. In CSS I have the property with color: #000. However, only in Safari, it is not working. The phone turns white. It’s like Safari is…
-
4
votes2
answers3776
viewsHow do you make an element invisible when the value is 0?
I am making a kind of "notification system" very simple in CSS. What I want is that when the number of notifications is (0) he stays with display:none;. I know a way I think it’s possible to do. Ex:…
cssasked 10 years, 5 months ago Alexandre Lopes 2,769 -
4
votes1
answer803
viewsInstall Plugin in Netbeans
I tried to install the plugins and it didn’t work. They are visible in the tab definitions. But it is not in the tab Plug-ins available. I even clicked to be found in alphabetical order. I tried to…
-
4
votes1
answer50
viewsWhy is the default for an access modifier "protected" in . NET?
Unless I’m mistaken, the default when no class modifier is defined, for example, is assumed to be the protected: class LoremIpsum { ... } Is there any special reason for this? Which?…
.netasked 10 years, 5 months ago Andre Figueiredo 5,030 -
4
votes3
answers442
viewsPowershell - How to create a sub-site in Sharepoint Online
I have a website and I need to create sub-sites dynamically because they are many customers and I tried to use powershell for this, but I can only create a Collection site. Example: new-SPOSite -url…
-
4
votes4
answers4583
viewsCheck for image return via Javascript
How to check if the image returned with error 404 via javascript. Below an example code, I want to check if the get of this image is 404. If I want to put a certain image, if it is not going to…
-
4
votes1
answer187
viewsClass protected and public
What is the behavior of a protected class? What is the impact of access modifiers (especially private and protected) on classes, and what are their common uses? I can understand its functionality…
-
4
votes3
answers335
viewsLayout Messagebox WPF
How can I customize my Messagebox? Original.. How I’d like it to be (Greater)…
-
4
votes2
answers1552
viewsClause in with lambda
Is it possible to have an IN clause with lambda Expression? Type: context.tabela.Where(a => a.meu_campo_id_tipo_inteiro....) let’s say one in like this: (2,3,4,5) As I put it in the dots?…
-
4
votes1
answer551
viewsIteration gives Concurrentmodificationexception error by including more than one button
I have this little game that I’m developing where the character goes through buttons that will remove barriers so that it can access other areas of the maze. I created two lists, one for the fences…
-
4
votes2
answers208
viewsHow to change the style of superior brothers?
I have a parent element (div#workarea) that has four children: figure#start, p#first, figure#start2 and p#second: <div id="workarea"> <h1 id="title">Área de Testes</h1> <figure…
-
4
votes1
answer509
viewsBrowser zoom does not work with my CSS
I have inside the tag body 3 Divs with height defined in pixels and width in percentage. When the person types CTRL+ browsers zoom up to 500%. My problem is that the zoom doesn’t work. I tried to…
-
4
votes1
answer616
viewsThread problem
public class ThreadTest implements Runnable { private String word; private long time; public ThreadTest(String word,long time){ this.word = word; this.time = time; } public void run() { try {…
-
4
votes1
answer763
viewsChange namespace automatically when changing folder file
I need to restructure the folders of a project, only that there are many files and their respective namespaces need to be changed. Is there any way to change the namespace automatically when moving…
-
4
votes2
answers377
viewsConvert a decimal number to binary in LISP language
Taking into account that it is necessary to divide the number by 2 until it is equal to 1, and to reorganize the remains, how this conversion could be made into LISP?
lispasked 10 years, 5 months ago user3000135 127 -
4
votes2
answers210
viewsI’m having a hard time understanding the logic
Problem: Create a fonts() function that receives as input any sentence. Then write in the body of this page phrase using fonts of different sizes (from 1 to 7). For this, you should make a loop that…
javascriptasked 10 years, 5 months ago user8919 43 -
4
votes3
answers529
viewsHow to replace the last appearance of a character?
I have a loop that mounts strings in this format: var Sabor[0] = "Mussarela, Calabresa, Cebola"; var Sabor[1] = "Mussarela, Presunto, Calabresa, Tomate, Ovos, Pimentão, Cebola"; But I’d like to…
-
4
votes1
answer790
viewsDynamic calculations in Rails
I hope you can help me. I have a Rated who owns evaluations, have several calculations to determine whether or not it will pass an evaluation step. For example one of these calculations is…
-
4
votes2
answers1760
viewsHow to format monetary values with C++?
I would like to present values formatted as currency, with thousands and cents separators. I would like for example, 56000/12 present 4.666,67. I can present 4,666.67. Would there be some way to…
-
4
votes1
answer1648
viewsHow to create a slide with two Divs?
I need to create a slide with two Ivs. I made one here only that is appearing a scroll bar below, look at the Jsfiddle. HTML <div class="carrousel"> <div class="item active" id="about">…
-
4
votes1
answer242
viewsAttempt to update registration ID not allowed with JPA and Eclipselink
How do I allow updating the ID of a record with JPA and Eclipselink? The following exception is thrown when I try to update the ID: Caused by: Exception [Eclipselink-7251] (Eclipse Persistence…
-
4
votes1
answer897
viewsHow to get the publishing version of an application console
I’m having a problem trying to get the publishing version of my application, I searched and found the following answer on SOEN how to show Publish version in a textbox? I followed exactly the…
c#asked 10 years, 5 months ago Tuyoshi Vinicius 4,046 -
4
votes2
answers1124
viewsHow to organize by proximity using PHP?
I have a few locations registered in the database, and each one of them has longitude and latitude. When the user enters the site, I ask him to inform his geolocation. I am using the library Phpgeo…
phpasked 10 years, 5 months ago Tassiano Alencar 71