Most voted questions
150,413 questions
Sort by count of
-
6
votes4
answers6579
viewsResize image
Well my system has an area where the user registers information about the site. So register images. The system does not restrict image size. Then on the site are presented the images. However there…
-
6
votes1
answer468
viewsHow to change the window.Location of a frame
I was wondering if it is possible to insert a target here: window.location='www.google.com'; I don’t want to open on a new page, otherwise I would use window.open. I want to use a target="topFrame"…
-
6
votes3
answers302
viewsPractical use of Constant scalar Expressions in PHP and other languages
In the PHP 5.6 we will have an appeal appointed Constant scalar expressions. The manual provides some examples, but the main focus would be: How to use the functionality correctly, without doing so…
-
6
votes3
answers993
viewsHow to simulate JSON responses?
I need something that simulates JSON responses for me. A while ago I had seen a site that did the following: You pass parameters through a URL, e.g.: ?nome=Wesley&idade=21 Received in the call…
-
6
votes3
answers5650
viewsRegular expression to pick up the value after the comma
With the following expression (,)([0-9]*) manage to catch the ,25 but would like to catch only the 25. decimal (10,25) In this case how can I disregard the ,…
-
6
votes2
answers1295
viewsCustomization of Jtextfields
Many professional programs use Jtextfields or Jbuttons customized with different edges. Someone would have code examples to change the design of these buttons and text Fields to something like the…
-
6
votes1
answer407
viewsPhoto taken by my app does not appear in Gallery
When generating the photo through my app it correctly creates the folder and saves the photos taken there, but when I go in the Mobile Gallery is as if the photos did not exist, the default Android…
-
6
votes2
answers816
viewsR - IBGE municipal data download
Is there any way to download municipal IBGE data with R command line?
-
6
votes4
answers3435
views -
6
votes1
answer616
viewsQuery to join one column from another
I have tried unsuccessfully to get a result. I have the table with the following login and logout information: |Group |User |EventDate |Event |Camp ------------------------ |Evolution |1012…
-
6
votes2
answers2013
viewsHow to pass a JSP file to Servlet?
I have a page . jsp, where I have an input file. I need to open this file to use the information contained in it. Suppose it is a pdf. I receive this pdf, sent to Servlet for the purpose of using in…
-
6
votes1
answer75
viewsSend data along with event
As I venture through jQuery some questions and problems arise in the middle of the way, one of them is: is it possible to send a data through an event triggered by another event? Something like…
-
6
votes3
answers42780
viewsHow to change date format in bootstrap from mm/dd/yyyy to dd/mm/yyyy
That’s the mistake you’re making: Uncaught Typeerror: Cannot set Property 'en-BR' of Undefined Insert some links to format the date, according to what I took on the net and even then the date is…
-
6
votes2
answers1225
viewsMaven + Spring MVC + JSP project, how to share view files?
I’m trying to adjust a file structure to start a big project, an ERP to be more exact. Today, there is a good part of it made in PHP in a disorderly way. Let’s adopt Java Web (Maven + Spring MVC +…
-
6
votes1
answer5794
viewsHow to use MVC 4 session with C#?
My scenario is as follows. I have an MVC 4 application. In my controller I check the logged in user and password. (I think) I put the user data in a session after the data is checked and correct. My…
-
6
votes4
answers4082
viewsChange page without changing user URL
How to switch pages internally without changing the user URL? Without using frames. Example: The user has entered my site: http://exemplo.com and clicked on the menu and went to the page "Contact".…
-
6
votes1
answer5016
viewsInclude jar file in Maven project
How do I include a . loose jar in a Maven project? Obs: The jar I need to include has dependency on another 3 jar files. The jars in question are from the project Brunette Attempt #1 I created a lib…
-
6
votes2
answers1997
viewsChat with notifications in the app
I have an Android application that inside it, the user can send message to the administrator(eu). I wanted to do something more cool in this communication, I would like when I answered the message,…
-
6
votes1
answer2102
viewsHow not to enter repeated records?
I’m making a login system in which each user creates a URL that sends to the bank, only that I need to make it does not repeat information, if there is already similar information in the bank it…
-
6
votes3
answers1504
viewsCopy file with progress
How I use the C function# File.Copy(string path); to copy a file by incrementing a value in a Progressbar?
-
6
votes3
answers16126
viewsChange text source from android APP
I’m developing an Android APP on Android Developer Tools. I would like to know how to change the text source that is standard from Android to the source Museo.otf, and how to apply to all Textviews.…
android-layoutasked 10 years, 8 months ago James 61 -
6
votes3
answers25254
viewsSubtract date and display in YEARS, MONTHS and DAYS
SGBD: Mysql Problem: How to replace the current date with a specific date and return the value in YEARS, MONTHS and DAYS in a query? Example: DADOS DataAdmissao dataAtual 2010-04-07 2014-06-27 (este…
-
6
votes1
answer5046
viewsClient/Server (Windows) with C Sockets
I’m trying to write a program written in C, which is able to upload a file or text to a particular server. I searched a lot on google but most of the tutorials are aimed at linux environment, either…
-
6
votes1
answer142
viewsConversion error in a query
I made this consultation and in Where is giving this error: Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<AnonymousType#1>' to…
-
6
votes1
answer7155
viewsHow to show posts from a Facebook Fan Page on a Website
I wonder which Api or Plugin should use to make available on my site the latest posts of my FanPage. Actually I’m still researching to see if what I want to do is possible. What I intend to do is in…
-
6
votes1
answer1270
viewsPrint Oleobject ("word.application") with Delphi
I’m trying to print an interval of pages from objeto OleObject ("word.application") in the delphi 6 and I’m not getting it. Using the printout(false) = I can successfully print, but I want to print…
-
6
votes0
answers152
viewsIssue of permission to install Mediawiki on Sql Server
I am having problems trying to install Mediawiki using Sql Server. The following error occurs: [SQLSTATE 42000][Error Code 2760][Microsoft][SQL Server Native Client 11.0][SQL Server]The specified…
sql-serverasked 10 years, 8 months ago Andre Figueiredo 5,030 -
6
votes2
answers7925
viewsHow to run a PHP application on IIS?
I have a PHP website that I want to install on IIS (Apache for Windows is not an option). It will not run naturally as an . NET application. So I already downloaded a release of PHP on the site…
-
6
votes2
answers3232
viewsLimiting text in CKEDITOR
I’m trying to make a character limiter in Ckeditor, but I couldn’t find any way, <textarea> does not work when using CKEDITOR. I tried using the wordcounter plugin which now looks like only…
-
6
votes3
answers11827
viewsUse list as dictionary value using Python append() method
I have some python dictionary, and I want to assign a list as a value for each dictionary key, but I need to use the append() method to add elements, but after adding the elements to the list, the…
-
6
votes1
answer475
viewsWhat can cause the RU’s performance to fall in this scenario?
I’ve been making a data import for a project on ASP.NET MVC 5 with EF 6.1 and SQL Server 2008 where the import data source was a file txt. The record lines of the file were not very large but…
-
6
votes1
answer2865
viewsPHP Using Magic Methods or not?
A doubt arose that I find interesting and would like to post here. How do you use methods whose functionality is to set and rescue attributes in a class? Use like this: public function…
phpasked 10 years, 8 months ago valdiney frança 387 -
6
votes1
answer1595
viewsMysql database update
I’m working with one database on the localhost and the other on production. At various times I need to update my local bank to match the server. I made a . sh script to be able to copy all the files…
mysqlasked 10 years, 8 months ago Marcony Felipe 879 -
6
votes2
answers1124
viewsWhen is it worth paying for Sqlserver or Oracle?
Databases open-source how Mysql and Postgres are so advanced that they can serve a wide variety of applications smoothly, perhaps most. (There’s Sqlite too, but this is more for when portability is…
-
6
votes2
answers201
viewsError in keyboard events in Allegro
I’m doing a work of my course using Allegro as indicated. I need to capture the events of loose keystrokes on the keyboard, so I used the following: al_wait_for_event(evento, &ev); if(ev.type ==…
-
6
votes1
answer5108
viewsHow to sort an array of numbers from largest to smallest?
There is the function sort, but it sort from minor to major, and I’d like to sort from major to minor. There’s some function in javascript for that? Code with sort: var numeros =…
-
6
votes1
answer50551
viewsCapturing an element’s id with javascript click
In the Document there are three <div>, all with the event onclick calling a function. By clicking on any of the three, I would like to capture the id of the <div> clicked. How can I…
-
6
votes1
answer1827
viewsHow to know which SQL is generated by the ORM Entity Framework?
With the use of ORM, and the practice employed we forget that they generate SQLs and return Objetos (vice versa). How can I find out at runtime the SQL generated by Entity Framework right in the…
sql entity-framework entity-framework-6 lambda-expressions linq-to-entitiesasked 10 years, 8 months ago user6026 -
6
votes2
answers6008
viewsHow do I make the browser not store image caching with HTML or PHP?
I am creating a web page that is practically only image, every day I change the images of the page but their name remains the same. The browser is storing a lot of cache and each time I update the…
-
6
votes2
answers2655
viewsDependencies in the same table
A funeral home asked me to do a simple customer registration scheme for them. A client may have several dependents who benefit from their contracted plan if they die. I am in doubt about the data…
-
6
votes3
answers905
viewsProblems with Double formatting
I have a method that gets values like string and performs the conversion to other types, my problem is that when converting an information to double It changes its precise value so that it doesn’t…
-
6
votes3
answers3565
viewsUse ajax with Actionlink
I want to change the ActionLink and the URL to work with Ajax, but I don’t know how to do it. Follow my code with ActionLink and URL. <ul class="nav" id="side-menu"> <li> <a…
-
6
votes2
answers1269
viewsWhich Pattern is used to validate business rule?
I use Repository Patterns for searches,save and delete I wonder where is the best validation of my business... Ex: I need to check if the item is in a contrato of a prestador, and bill him with the…
-
6
votes1
answer7351
viewsHow do I popular a Jtable?
I have a very simple java application, which connects to a database, in the console I type the query I want that is passed by parameter to the Query. Now I need to move all this to a graphical…
-
6
votes2
answers25999
viewsHow to position one div under another with varying sizes?
I have the following situation: I search the database results and display them this way <div style='background-color:#fff;width:260px; margin-left:5px;margin-top:5px;float:left;'> texto…
-
6
votes1
answer999
viewsClient installation of SQL Server
I developed an application in C#, which uses SQL Server Express 2012. No development everything went well with access to the database because it is all on the same machine ( utilizo o localhost).…
-
6
votes1
answer624
viewsUnique key violated when I’m doing a delete. Why?
I have a problem that seems silly but I’m skating and I can’t solve it. I have a nice application made in Java using JPA 2 with Spring, Spring Data, JSF, etc... It works great. The basis I’m using…
-
6
votes4
answers2718
viewsGenerate sequential Ids without losing the sequence
For Identity do not want, because it breaks the sequence if something happens. Max() + 1, I find it very vulnerable and slow when you have a lot of records. So I ask you, is there a way that someone…
-
6
votes2
answers446
viewsFunction using as arguments successive values of a column (R)
I have a data.frame with 13 columns and 78 rows. I need to do it for each column ((x1/x2)^12)-1, being x1 the value in the first row of the first column, x2 the value contained in the second row of…
-
6
votes0
answers144
viewsWhat are software tests? When should we use them?
I have read other questions about it and seen that there are test tools that automate, predict possible errors of a software/application etc. What I would like to know is what kind of…