Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer709
viewsHow to print the entire string if the length exceeds the page
I have to print one string which may vary in size. What I need is that if this string does not fit on the page the remaining text is printed on another. I know that for this I need to do something…
-
4
votes2
answers798
viewsSyntax error when creating table in Postgresql using Hibernate
@Entity public class User { @Id @GeneratedValue private int id; private String name; private String email; private String sex; private int age; private Date birthday; private Date registerdate;…
-
4
votes2
answers594
viewsManaging dependencies with Maven in an offline environment
I don’t know if what I’m going to ask is simple or complex, but it turns out that I started using Maven about two weeks ago in college, on a somewhat complex project of the Java EE discipline. I…
-
4
votes2
answers2266
viewsPublish application with Entity Framework + Mysql
I’m using the Entity Framework for Mysql. I installed the .Net Connector, and the MySQL.Data.Entities. Locally it is working normally. But when I go up to the LocaWeb, will not. The following error…
-
4
votes1
answer743
viewsOUTER APPLY does not work like INNER JOIN
I know that the OUTER APPLY command is analogous to INNER JOIN, but I am confused about a situation where this does not happen. The query below extracted from the Training Kit 70-461: SELECT…
-
4
votes2
answers90
viewsProblems Embarrassingly Parallel?
I was looking for problems called "embarrassingly parallel", which are problems that there are no dependencies between tasks, which can be divided in parallel. Could you give me some suggestion of…
parallelismasked 9 years, 12 months ago Bruno 656 -
4
votes1
answer73
viewsCache control for a specific file
If we want to implement a cache control for a particular file type, through the htaccess we can proceed as follows: <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 1…
-
4
votes1
answer3295
viewsSelecting directory/directory in an input
I’m trying to create something that looks like a input type="file", Only instead of uploading a file, you’d have to choose a folder. Something like the "Save As" dialog, where we choose the folder…
-
4
votes2
answers199
viewsHow to prevent user registration with Login initiated by number or symbol
I would like the help of you to do the following I have in case this function does in case the login verification to be registered of the user. If it starts with number send a warning preventing…
phpasked 9 years, 12 months ago Rodrigo FP 109 -
4
votes1
answer409
viewsStreamline Ajax Jquery Autocomplete with json data
I want to make suggestions dynamically with this API. How to streamline the suggestion file by listing data from the mysql database? Download the DEMO:…
-
4
votes2
answers3558
viewsHow to view a. txt file in a Jtextarea automatically
I’m tired of searching and can’t find how to display a.txt file in a Jtextarea automatically. I made a program that opens a window and then wanted it to display the contents of that file without…
-
4
votes1
answer1582
viewsWork with C interruptions by compiling for pc
While trying to answer a question from the site I started a dense survey of how to work with C interruptions. Interruptions for those who did not understand it works as follows: Tstou running my…
-
4
votes2
answers4941
viewsHow to capture keyboard action without pausing the C++ program?
How do I capture a keyboard action without pausing the program? For example: char tecla; do{ scanf("%c", &tecla); printf("%c",tecla); }while(tecla != '0'); I wanted it to be on a loop, but when…
c++asked 10 years ago Antony Alkmim 1,715 -
4
votes1
answer228
viewsCalculation with Excel hours are not very accurate
I have a spreadsheet that calculates the hours a company car is used in a month. each race is scheduled starting time and final time taking 30-minute intervals. at the end of the month then I have a…
-
4
votes2
answers828
viewsChange date format in PHP
I’m trying to change the date format as follows: public function getDate() { $date=$this->date; return $date->DATE_FORMAT($date,'%b %d %Y %h:%i %p'); } But I’m not getting the date in AM and…
-
4
votes1
answer630
viewsHow to get the client’s requisition?
I’m trying to get the user session from the request, but I’m not sure if I’m capturing the request correctly: I have a Managed Bean (Sessionscoped) with data. The following block creates a user’s…
-
4
votes1
answer313
viewsWhat do I call a font variation in CSS?
How I use the OPEN SANS font variation? Example: <script src="//use.edgefonts.net/open-sans-condensed:n3,i3,n7:all; open-sans:n3,i3,n4,i4,n6,i6,n7,i7,n8,i8:all.js"> </script> I want to…
-
4
votes1
answer104
viewsHow to keep the same layout for different versions?
How can I keep the layout from my apps to the different versions of Android? Example: A EditText has layout in version 2.1 and another in version 4.x, how to keep the layout version 4 in previous…
-
4
votes5
answers758
viewsHow to embed CSS in HTML tags?
I have a CSS file containing the following code. .texto{ Color: Red; } I have the HTML file with these tags: <html> <body> <span class="texto">TEXTO 1<span> <span…
-
4
votes1
answer284
viewsKnowing if a file is locked or not
How do I know if a file is blocked or not? I have perfected this code and I would like to know from you whether it is correct or for the better. Another question is if it is corrupted, the check…
-
4
votes2
answers3962
viewsTaking System Time in C
I want to take the time of beginning and end of a for. Ex.: #include <stdio.h> #include <time.h> int main () { time_t rawtime; struct tm * timeinfo; int i, j; time ( &rawtime );…
-
4
votes2
answers1335
viewsCalculation percentage of hours
How to calculate percentage between two times? I tried like this and it wasn’t: $tempo_total= "00:10:00"; $tempo_realizado= "00:05:00"; $percent=…
-
4
votes1
answer396
viewsXA transaction does not commit changes in procedures (intermittent)
I have an EJB Stateles that monitors files that fall into a folder. When a file arrives it is handled, a receiving event is recorded in a central database and the file is inserted into a target…
-
4
votes2
answers10087
viewsChange an Edittext mask at runtime
I have a EditText which is used for CPF and CNPJ. I need to use it time as CNPJ and time as CPF. I need to change the mask at runtime according to the selected type (CNPJ/CPF), but in doing so, a…
-
4
votes2
answers4192
viewsBuild and build. What are the differences and when to use?
In some IDE’s there are 2 options to generate an executable file: compile and effect a build. Both generate a new file executable from source code, ready to run. What is the difference between the 2…
-
4
votes2
answers374
viewsIs it possible to build a pure HTML register?
I need to create a register with name and description in HTML, or PHP, that does not make use of a database but I do not know if it is possible. Something that can store the records on file and also…
-
4
votes1
answer284
viewsIs it possible to create a decision structure in a table in SQL?
I have a massive database, has more than 2,000 lines, and the second column has an ENUM that allows only 'Option 1' and 'Option 2'. If I insert 200 lines into the table and write the wrong ENUM name…
-
4
votes2
answers1937
viewsError: "PHP Startup: sqlsrv: Unable to initialize module"
I’m trying to access SQL Server through XAMPP on Windows 7 64 bits, but I’m not getting, I already followed step by step the tutorials, but when starting Apache gives the error in the line below:…
-
4
votes1
answer1795
viewsHow to know if the e-mail has reached the Recipient?
I’m building a system (in PHP) that requires approvals, and with each approval I send a confirmation email to the user... I’m using the phpMailler, and he informs me at the end, that the server sent…
-
4
votes4
answers2981
viewsSQL Query Joining 5 tables
I need help to do a query (multiple relationships) on my Webservice + Mysql to return the result on my Android app. I have these respective tables: Query I need to query a person(tb_suspect), with…
-
4
votes1
answer479
viewsOrder ASC and DESC according to custom_field
I have a site session (Wordpress) where I add partners according to the category using Custom Post Type. It is a ballroom site. Each custom post type category represents a branch. Ex of the…
-
4
votes1
answer1037
viewsConsult ID in database ignoring scores
I have a mysql database where I need to make a comparison of registered Rgs with another provided by the user through an input, to see if the same ID is already registered in the database. The…
-
4
votes3
answers1232
viewsHow to extract a word from a PHP URL
In these examples below: +bbbbbbb2.virtua.com.br - take out the Virtua +000-74-4-000.paemt702.dsl.Brasiltelecom.net.br take out Brasiltelecom +111.222.22.222.dynamic. adsl.gvt. net.br - take the gvt…
-
4
votes1
answer587
viewsHow to communicate a local application with an open web page in the browser?
I have a commercial web application that runs basic restaurant operations. In summary, a waiter accesses the 'orders' page and requests a new 'product'. These products are classified by departments,…
-
4
votes2
answers10928
viewsCommand to create site shortcut on smartphone?
Ask the user to create an icon of my website on your smartphone’s home screen. I need when the user enters the site to receive a notification to create the icon. I need to know the command that does…
-
4
votes4
answers3097
viewsPath is file or directory (folder)
How do I check if a path points to a file or folder? I have no idea how to do it. A folder or directory path would be: C:\Program Files\Embarcadero\RAD Studio\10.0\bin A file: C:\Program…
delphiasked 10 years ago Gabriel Sales 1,257 -
4
votes2
answers2136
viewsHow to use a Bundle with an uncivilized type?
I’m with the next class created by me: public class Telefone { private String nome; private String telefone; public String getNome() { return nome; } public void setNome(String nome) { this.nome =…
androidasked 10 years ago Pedro Rangel 2,747 -
4
votes2
answers3116
viewsHow do I keep a website page at the same point it was before updating?
I have a page in html and php and put a form at the bottom of the page. When I click on the "send" button the page refreshes and goes up. This way the user has to scroll all the time until arriving…
-
4
votes1
answer121
viewsPossible causes for a Session Leak
Through a monitoring tool, I am noting that my application has a considerable user session Leak. Every day, about a thousand user sessions are created, without any being destroyed. To take sessions…
-
4
votes2
answers717
viewsNormalization of tables and relationships
I’m starting a project from scratch and in the middle of bank modeling, I had a problem. While building the models, I couldn’t do it the right way and I ended up getting confused. I have student…
-
4
votes1
answer133
viewsHow to livereload using Grunt for . Less files?
A SOLUÇÃO ESTÁ NA TERCEIRA PARTE JUNTO COM OS ARQUIVOS. I can do it for . htlm and . css files but not . Less. Here the full Gruntfile. Below, a snippet of the part I think matters most: watch: {…
-
4
votes1
answer4167
viewsDefining an array vector
I’m learning Pascal and I’m having basic syntax problems to define a vector type variable. Here is the statement: var x:array[0..225] of String; I would like to assign the following values and in…
-
4
votes1
answer499
viewsHow to adapt APP that uses TCP protocol to 3g connection?
I am developing an APP for Android and used direct TCP connection and also HTTP requests. For the perfect functioning of my application being connected on a 3g network instead of Wifi, I need to…
-
4
votes1
answer3184
viewsHow to know the permissions of a scroll in SQL Server
I am administering some Databases that were created before my arrival. In most of them was created a role called dp_role_analista, and some users are in this role. How do I know what permissions…
-
4
votes2
answers4525
viewsCreate page (page) only in Wordpress PHP code
How to create a page just for the code? Because it is static, IE, you do not need to insert content through the panel, but to have the URL of this page, you need to create a page, even if it is…
-
4
votes1
answer391
viewsHow to return concrete classes, with populated navigation properties, through Linq queries?
Following that question: Query by Linq and Lambda getting range of options by sub-query. How to get a result closer to simple? where, however, my model grew to one more class (resulting in another…
-
4
votes2
answers272
viewsJava Infinite Loop
Guys how do I take the Infinite Loop out of this class? Every time it is the last database information he keeps sending email. public class Dia06 { public static final long TEMPO = (14 * 1440);…
javaasked 10 years ago Wesley Costa 159 -
4
votes1
answer2698
viewsC# - Import configuration file (.ini)
How I import an ini configuration file so that it is loaded and returns with a key value: Example: [version] code=0.3 the program will load the ini file and I select the section (in case it is…
-
4
votes5
answers6237
views -
4
votes2
answers5600
viewsThe underlying connection was closed: Unexpected error on a receipt
I have a web site that communicates with a WCF. This Wcf communicates with my "DAO" which is a Library class where I have the.edmx model for access to the bank. I referenced my DAO on WCF, and my…