Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer850
viewsDifferent ways to stream a video
I am developing an application where the administrator will upload videos and then students will watch. A portal of distance courses. I currently use the Locaweb hosting service, and I’m thinking…
-
4
votes1
answer2409
viewsMany to many relationship with Asp.net MVC and Entity Framework
I’m creating a project to study Asp.net MVC 5 along with Entity Framework 6, and I came across a great doubt in a many to many relationship. I used the model generated from the database, and created…
asp.net-mvc-5asked 10 years, 1 month ago Erico Souza 2,188 -
4
votes2
answers970
viewsTime between (between) "start time" and "end time"
I’m having trouble picking up the current time, in case I’m using CURTIME(), need to fetch the results that the current time, is between the value(time) of the column initial time and of final time,…
-
4
votes3
answers657
viewsHow to make the page load only after the return of getJSON?
I am recovering a list in JSON using the function jQuery.getJSON: http=jQuery.getJSON(url); This code returns the object perfectly, but the request takes longer than the loading time of the page…
-
4
votes2
answers1011
viewsProblems with saving data in form-model Django
Gentlemen, good afternoon to you! I’m facing a small problem, I made some changes in an application I’m developing for studies. I come across the following, fill the form all right and when I go to…
-
4
votes1
answer502
viewsCreation of dynamic controls in ASP.Net
I’m looking to create a component for a standard criminal record. In the project I am developing, I am using Web Forms, where I have my masterPage with the layout of the site (menu, header and…
-
4
votes1
answer1838
viewsHow to Use "Not Exists" in LINQ?
I am trying to translate the query below, in LINQ, but without success, someone can help me? SELECT * FROM PESSOAL A WHERE NOT EXISTS ( SELECT Chapa FROM PRODUCAO B WHERE B.Chapa = A.Chapa AND…
-
4
votes5
answers786
viewsCan I make a Javascript call through PHP?
I’m in a doubt ... I have a PHP code, and when it reaches the "end of it" I would like to call a Javascript! Ex: <? .... sucesso('$a','$b'); ?> <script language="javascript"> function…
-
4
votes1
answer1518
viewsSQL Server Performance Loss with Sequential Insert
I have an . Net C# application that takes data via Web Service and saves it in an SQL Server 2012 database. Initial performance is 20 records per second. After having some 10000 records in the…
-
4
votes1
answer554
viewsInjection of Beans Spring into JAX-WS / Tomcat 7 (@Webservices) - Does not work, returns Nullpointerexception (NPE)
I’d like to inject (@Autowired or @Resource) Beans created by Spring (3.x or 4.x) in a class that implements a JAX-WS interface (reference implementation). I tested on Tomcat 6 and it works, but on…
-
4
votes1
answer1090
viewsNon-static variable cannot be referenced from non-static context
I’m using a context where I have an array type variable with reference to another class. When trying to declare the instantiated object of the class and declare its size is returned this error and I…
-
4
votes2
answers4228
viewsAuthentication in Restful Service
In the example below, I need to pass a login pair/password, because the REST service requires authentication (Basic Authentication). So how should I pass this information in the section below?…
-
4
votes0
answers682
viewsPayment by Credit Card
It has how to make a payment system via credit card, but without using PayPal, PagSeguro, PagamentoDigital or Others? The Card Companies offer some kind of Code, API, or SDK?…
-
4
votes3
answers801
viewsHow to change a <a> link according to a <select>?
I’m creating a price list for my website, and I need when the person changes the payment cycle, the link be changed <a> (HIRE) to go to the cart. Example: If the person selects the cycle…
jqueryasked 10 years, 2 months ago Alexandre Lopes 2,769 -
4
votes2
answers7237
viewsExtract text between HTML tags with Indy Idhttp with Delphi
I have an html site that contains: <html> <head> <title>Teste</title> </head> <body> <h1>Teste 1</h1> <h2>Teste 2</h2> </body>…
delphiasked 10 years, 2 months ago Rafael Oliveira 41 -
4
votes1
answer2408
viewsWhy should I use getResource()?
In Java it is nothing unusual to see codes that carry images, audio files, XML and other things like this: final ImageIcon programLogo = new ImageIcon("res" + System.getProperty("file.separator") +…
-
4
votes1
answer196
viewsWhat is the right way to use DNS wildcard?
I need my server’s Apache virtualhost to meet the following rule: 1- If it’s.com or www.domain.com, then display the content in /var/www/domain.com/home 2- If for blog.domain.com, then display the…
-
4
votes1
answer824
viewsSSL Socket Java encryption
I’m having doubts about the Java SSL Socket. I saw on several sites that the connection of SSL Socket is encrypted, but none of the sites gives me information on how this works right. How do I know…
-
4
votes2
answers2764
viewsWindows Forms Start with Operating System
How do I make the user have the option to choose whether the system (system Tray c#) will start with the OS or not through installation in Wizardsetup (Visual Studio 2010)?
-
4
votes3
answers1850
viewsHow to test the Service layer in a web service application, using mockite and junit
I have a class of services that will receive a dependency injection from an object responsible for the persistence layer. In this service class are all my methods that will answer the web service’s…
-
4
votes1
answer822
viewsHow to force the download of a file, which is stored in the database
I have a system where, are listed documents from the database, where the user has the option to view or download the file. I want to know how to rescue this file from the bank and force the download…
-
4
votes1
answer4823
viewsHow do I export an . apk android in Android Studio?
Every time I export the google app from that message: Even though I changed Androidmanifest.xml: android:versionCode="2" android:versionName="1.0.2" Procedure I’m doing: I’m exporting right?…
-
4
votes1
answer378
viewsdiv that does not exceed certain limits
Well, on that link :: http://voky.com.ua/crostini/ there is a menu that when loading the page is not fixed at the top of the screen, but when descending the page a little this menu appears and is…
-
4
votes2
answers4196
viewsGet list of objects with JPA and Hibernate
I’d like some help. In my code the method of entering the object in the database is working, however when trying to get a list of objects stored in the database, I get the error that my table is not…
-
4
votes2
answers324
viewsHow to define a fixed value attribute in ASP.Net MVC?
I have a user class that has the attribute permissão, that should always be 1. Where and how would I fix this value? In the folder models, controller or in itself view criminal record?…
asp.net-mvcasked 10 years, 2 months ago Ryan Santos 515 -
4
votes1
answer1933
viewsAccessing Webservice by Android - KSOAP2
I am creating an Android APP and have to connect with the web service of my company to make the login system, I am using the lib KSOAP2 3.3.0. The path of my WS is for example as:…
-
4
votes1
answer82
views"Unexpected tag name" syntax error in Symfony2/Twig
My list has the code below: <h1>Posts</h1> {% for posts in post %} <article> <h2> {% post.titulo %} </h2> <div class="content"> {% post.conteudo %} </div>…
-
4
votes2
answers99
viewsMenu in lower tab form
I wonder how to create a menu like this in a table row? Or what the name is for me to look up...…
javascriptasked 10 years, 2 months ago Rod 9,412 -
4
votes2
answers207
viewsHow to force the '.on("input")' method via script?
I suppose my method: $(document).on("input", "#textbox", function(){ alert("oi"); }); What script can I force the Alert call to ("hi") ? I tried a lot and nothing: $("input#textbox").val("1");…
-
4
votes1
answer466
viewsCreate Rigger within a Precedent?
I wonder if it is possible to create a Trigger within a Database? (SQL SERVER) The reason is that I drop the table that is with Rigger at the end of the day, and then recreate it with a precedent,…
sql-serverasked 10 years, 2 months ago user3062055 71 -
4
votes1
answer14365
viewsPop up with Bootstrap when loading page
How can I get a Bootstrap pop up when loading the page? <button class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button> <div class="modal…
twitter-bootstrapasked 10 years, 2 months ago Alexandre Sousa 345 -
4
votes2
answers955
viewsMerge array by replacing equal results
How to merge an array by replacing the equal numbers ? Example: array1 = [1, 2, 3]; array2 = [2, 4, 5]; array3 would be [1, 2, 3, 4, 5]; instead of [1, 2, 2, 3, 4, 5]; How to merge an array by…
javascriptasked 10 years, 2 months ago Alan PS 2,511 -
4
votes1
answer1395
viewsController message to view
I did that: [HttpPost] public void CadastraUsusario(string _nome, string _usuario, string _email, string _nivel_acesso, bool _ativo) { using (RupturaEntities db = new RupturaEntities()) { Usuario…
-
4
votes1
answer5057
viewsPopover or Tooltip Bootstrap with long text
How to display a long text with breaks in a Twitter Bootstrap Popover or Tooltip? And there’s one more problem, Popover only opens at the second click! Does anyone know why? What I did:…
twitter-bootstrapasked 10 years, 2 months ago Marcelo Diniz 3,356 -
4
votes2
answers462
viewsHow to use HTML5 data- attributes with Asp.net MVC?
How to use attributes with " - " from Html5 and other plugins with the Html helper from Asp.net mvc?
asp.net-mvc-5asked 10 years, 2 months ago Rod 9,412 -
4
votes4
answers1844
viewsFactoring in Javascript
How to factor numbers in this way ? 26 | 2 13 | 3 1 | Follow my code still incomplete: JSFIDDLE…
javascriptasked 10 years, 2 months ago Alan PS 2,511 -
4
votes1
answer1925
viewsCake PHP Relationship - 3 Tables
I have the following 3 tables: Table State: id nomeEstado Table City: id idEstado //(que busca da tabela estado) nomeCidade Participating Table: id Nome idCidade Now I want to put on the page Nome,…
-
4
votes1
answer1312
viewsDrop-down list with repeat criteria
I have a conference list, where in Plan1, column A', will be typed only the cods that are in Plan2, column A' more with a criterion can only repeat the total of times that is in plan2. To type in…
-
4
votes2
answers3095
viewsReading txt file with multiple columns to insert in Tlistview
I have the following function: var Colunas : TStringlist; Item: TListItem; begin Colunas := TStringlist.Create; Colunas.Text := StringReplace('00:46:30@21/08/2014@Carlos dos Santos@São Paulo',…
-
4
votes2
answers2098
viewsRecognize if user is using iOS or Android
I am developing a screen of a website, and the customer wonder if there is the possibility of the site recognize whether the user is using Android or iOS. If you’re on Android, go to Google Play to…
-
4
votes1
answer704
viewsDetermine maximum height of a column title in Primefaces
I would like to know if it is possible to do the following: I need in a datatable define a maximum height of a column. Because there are some that the text gets too long and the column value is a…
-
4
votes3
answers1099
viewscatching Description with Enumdropdownlistfor Asp.net mvc5
How I get Description using the html helper Enumdropdownlistfor from Asp.net MVC 5 ? I have my enumerator public num Dias { [Description("Segunda dia de trabalho")] Segunda = 1,…
asp.net-mvc-5asked 10 years, 2 months ago Rod 9,412 -
4
votes2
answers646
viewsIs it possible to work directly with Entityframework fonts?
It is possible to work directly with the Entity Framework and power "thresh" within their classes and methods? I downloaded the zip from his code Codeplex. I unpacked in a folder and in my project I…
-
4
votes1
answer1198
viewsCombobox ( select ) extended option
I have a select with a "width" defined, however, there are some cases where the "option" is too long, end up cutting the selected option as the image: Customer complained from that point, a…
-
4
votes2
answers856
views@Predestroy on @Viewscoped
I noticed that @Predestroy in @Viewscoped scoped Beans is only called if the session that was active expires or if I force a page redirect (?faces-redirect=true). Without these conditions, the bean…
-
4
votes1
answer138
viewsDoubt in string comparison and list value for all lines
I have a table of 5 rows and 5 columns. For each column I have a name, for example: Name, Age, Gender, Weight, Height. And all cells 5*5 are filled. I need the following formatting: Idade João - 15…
-
4
votes1
answer2749
viewsImport Excel Data to SQL Server
I need to import the data that is in excel into a table in sql. I looked at several websites but nothing has worked so far. Using sql server management studio I have done the following so far,…
-
4
votes3
answers843
views -
4
votes3
answers5429
viewsCompile jar for exe and no longer need to have a JRE
One more problem here, and I need your help. I downloaded a program that converts jar files to exe. The only problem is I still need the JRE. Is there any way to convert the program to exe and then…
javaasked 10 years, 2 months ago Igor Costa Melo 729 -
4
votes2
answers851
viewsIs it possible to limit the number of lines in a class attribute that is a list via JPQL?
I have the query below in JPQL FROM User u INNER JOIN FETCH u.enderecos e WHERE u.id =:id ORDER BY e.id DESC A user can have more than ten addresses, so we want to bring only ten addresses and if…