Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer1665
viewsHow to pass information from listview to a new Activity?
I have an agenda about events where I live I can already receive through my database in Mysql and JSON a list with the titles of events. Now I wanted when I clicked on the event to redirect to an…
-
4
votes1
answer1262
viewsHow to get out of a loop with hotkeys
I have an app that runs in the background in an infinite loop. How do I stop the loop using hotkeys (Ctrl+F1~F12)?
-
4
votes2
answers2270
viewsSeparate each number with semicolon(;) in Java
In a text box that has the variable name MMdados I put the numbers: 0;1;0 Then I created a variable String recebeMM who receives MMdados.getText(); I send these numbers to a text field that has the…
-
4
votes2
answers1183
viewsMy layout does not render
I was watching and copying a code from the first class of Material Design of the Thiengo Calopsita youtube, It turns out that the file xml of activity_main and of toolbar_bottom is not rendering in…
-
4
votes1
answer593
viewsHow to change the color of a FLAT-UI select without using Less?
It is possible to change the color of a select (from data-toggle select, including Flat-UI options) by CSS without using less?. In this FIDDLE that @dHEKU posted in the comments, the color of the…
-
4
votes3
answers4312
viewsHow the end of file loop is done
Type, I know that the function feof() returns 0 if it did not find a file end and that it requires 1 parameter, which is the pointer_pra_variável_tipo_FILE, so far so good. If I do the while so it…
-
4
votes0
answers130
viewsBeginner in Samba4, domain controller
I have visited several sites in search of examples of how to make Samba4 run the domain controller service, the problem that follow in these tutorials is that I end up getting some kind of error at…
-
4
votes1
answer2432
viewsReturn Purchase Status on Automatic Return of Pagseguro Notification
Does anyone know how to identify payment status in the automatic return of pay notifications? For example, if the user made the payment then, my.php notification file receives a post from pagseguro,…
phpasked 9 years, 4 months ago David Damasceno 846 -
4
votes2
answers501
viewsimport 1.2GB Mysql database
I’m having a hard time importing him into the process along the way. How long it takes on average to import a 1.2GB Mysql base into a linux-based Core 2 Duo?
mysqlasked 9 years, 4 months ago Ivan Ferrer 12,096 -
4
votes2
answers395
viewsHow to verify if a constant exists in the class or in a namespace?
In PHP, to check if a constant exists we use the function defined. As below, for the two cases of constant declaration: const MY_TEST_1 = 'my test 1'; define('MY_TEST_2', 'my test 2');…
-
4
votes1
answer415
viewsHow to send data from one table to another with the Deleted command
Guys I’m creating this trigger in the SQL Server, but I’m not getting the id to send the data to another table and delete from this table. CREATE TRIGGER MoveComprador ON comprador INSTEAD OF DELETE…
-
4
votes1
answer1916
viewsTest connection to the database
I have an application that has a central database, in it is carried out the registration of several databases dynamically to use in another part of the application. I want to know how to test if…
-
4
votes1
answer603
viewsHow to get the string of a parent Json or a Json in array format?
I got the following JSON: String json = "{\n" + "\n" + " \"Pessoas\":[\n" + " {\n" + " \"NomeHomem\":{\n" + " \"Idade\":1\n" + " }\n" + " },\n" + " {\n" + " \"NomeMulher\":{\n" + " \"Idade\":true\n"…
-
4
votes1
answer175
viewsWhat is the difference between the declaration forms of Generics with out and in?
What is the difference between Generics statements when using out and in? Example: public class GenericClass<T> { } public class GenericClassOut<out T> { } public class…
-
4
votes1
answer3441
viewsError creating Java Virtual Machine
I was running an rmi application on Eclipse Luna and appeared the following message : "Could not create the Java Virtual Machine. A fatal exception has occurred. Program will closed.". The operating…
-
4
votes2
answers523
viewsHow to create progress bar for uploading file via Google Drive API
I am sending file to Google Drive by their API. The request.Upload(); is lingering with no return. How do I make progress? It can be with a for even without a graphical user interface. Shipping…
-
4
votes1
answer152
viewsWhat would Take and Skip be in Linq?
I am doing maintenance on a system and found a GetAllQueryable(), using the method Take() and Skip(). Well, I don’t know what they are or what they’re for, I looked them up but I couldn’t find…
-
4
votes2
answers225
viewsSource code in Projects
If I have 10 projects in Netbeans, these 10 projects will use a log recording system, this system contains a log. h and a Log.c. Since all projects will have to use these two log files to generate…
-
4
votes1
answer1034
viewsSpring Security without authentication
I have a system that already authenticates the user, and controls access to pages that require authentication, I need to use spring security to control access to pages by user rules and to control…
-
4
votes1
answer308
viewsVideo playback problem using HTML5 native tag
I recently hosted a video file on MP4 on my server and used the native HTML5 tag for playback of the media on the website. The sound comes out normally and the video is not displayed (I tested it on…
-
4
votes1
answer186
viewsc#: using threads in a "windows Forms" project
In my application I have several "subprocesses". They all emit information in which they are displayed in the Form. I used System.Windows.Forms.Timer: Class x { public Timer timer {get; set;} public…
-
4
votes1
answer611
viewsHow to read a Json without knowing what is inside it or the amount of data?
I’m developing a dynamic form for Android in which you get a Json file and create the forms. Everything is automated, except for the part where I have to pick up a string in Json’s hand. There is a…
-
4
votes1
answer240
viewsGeoprocessing framework for Brazil
I found several frameworks on the internet for geoprocessing. The problem is that they were all created for the US regions. Does anyone know any framework that I can reach the city granularity?…
-
4
votes2
answers3709
viewsHow do I update multiple rows of a table after it undergoes a certain change?
CREATE or REPLACE TRIGGER TG_ATUALIZA_BLOQUEIO AFTER UPDATE ON pcclient FOR EACH ROW begin if :NEW.BLOQUEIO = 'S' THEN UPDATE PCCLIENT SET BLOQUEIO='S' where codcliprinc=:OLD.CODCLIPRINC; END IF;…
-
4
votes2
answers445
viewsUpdate Text linked to a Databinding
I have the following property linked to a label, where the value of this property appears in the text field. Like this: this.labelPedidosHoje.DataBindings.Add("Text", pedidosIntegrados,…
-
4
votes1
answer360
viewsQuery with IN OPERATOR return only records that have all values reported
I’m having a question of how to return records from a table have all the values reported in the operator IN using JOIN in another table. I have a table of flags, colors and other making the…
sqlasked 9 years, 4 months ago Flávio Santana 105 -
4
votes2
answers339
viewsTrade foreach for for
I need to change the following foreach() by a for(). The problem is that instead of arrays the loop runs through a dictionary. This is the code I want to transform for(): foreach (var joint in…
-
4
votes1
answer202
viewsScript to mute my site (game)
I have a project in localhost (little game in HTML 5, JS and CSS), at the bottom of the game plays a song, I can’t make the button to turn off the sound work, anyone knows any article teaching or…
-
4
votes6
answers30079
viewsHow to insert HTML with Javascript?
What is the simplest way to insert HTML into an element through Javascript?
-
4
votes1
answer362
viewsUpdate the database correctly
Updated: Link with a video that better exemplifies the situation. I have a big problem, I’m having difficulties to update the database and display the updated data in 2 DataTables different. I have…
-
4
votes1
answer1190
viewsUnity 5 Delay in animation
I just created animation to run and jump with Unity, but I have a problem when the player goes back to the initial state of Idleplayer, when I stop running or jump it continues for another second, I…
-
4
votes2
answers3708
viewsHow to prevent Item started on one page from continuing on another in Latex?
I work with a template from COPPE/UFRJ Coppetex in my dissertation work. I made a numbered list with the command \item but as the list was at the end of the page has one of the points that started…
latexasked 9 years, 4 months ago Adolfo Correa 258 -
4
votes1
answer240
views -
4
votes2
answers2052
viewsUpdate page(View) automatically in Asp.Net MVC
Guys, in my application that manages Courses, i have a sign-up screen, where the student clicks on the button "enrollment" and enrolls in the course, and the amount of vacancies field is decreasing.…
-
4
votes1
answer795
viewsUse Execute block in SQL
Is there any way to search two fields (in different tables), compare them and if they are different perform an update? Could you give me a brief example if there is any way, using the EXECUTE BLOCK.…
-
4
votes1
answer391
viewsAndroid SDK Build-tools 22.0.1 inventing folders inside res in generated APK
I’m using the Android Studio 1.2.1.1, with the Gradle 2.2.1, and this is an excerpt (the relevant part) of my resource folder structure: res |- layout |- layout-v21 |- values |- values-v11 |-…
-
4
votes4
answers12261
viewsHow to know which version in use of a particular package is installed via Pip?
I am starting programming in python and have tried to use best practices: virtualenv, Pip, etc. One of the packages I’ve been using (Pelican) has different help pages for each version. How do I know…
-
4
votes2
answers1180
viewsValidationsummary - Asp.Net MVC problems
I’m having problems with Validationsummary in my application that manages Courses, I have a screen where the student enrolls in a course and in case he tries to enroll in it course again should…
-
4
votes1
answer955
viewsEdit field within a list in Asp.net MVC
Guys, I’m developing an application that manages Courses, and I’m trying to make a list where present on the screen the Courses, the Student Name and the countryside Approved, where it indicates…
-
4
votes1
answer1465
viewsJavase with CDI and JPA - Error WELD-001303
I am studying JPA and CDI in a Java SE application. When I will create the EntityManagerFactory I come across the error: Exception in thread "main" org.jboss.weld.context.ContextNotActiveException:…
-
4
votes2
answers940
viewsDoubt how to call several different images
I’m a beginner in C#, I’m using visual studio 2010 and I have a project to do and an idea came up, but I don’t know how to put it in code. I would like to put 2 combo box ( ITEM and COLOR ), and an…
-
4
votes1
answer196
viewsProblem reading strings
I’m making an algorithm that gets the number of affairs, then a name with surname, one color and a size. He must make a comparison and print them ordered by color in ascending order, size in…
-
4
votes2
answers367
viewsRegex in dynamic string X characters, in dynamic content
Next, I have a page that generates a shuffled content with dynamic and non-dynamic strings, I need to take a dynamic value between separators |, it contains random data/strings around, which change…
-
4
votes2
answers4779
viewsResponsive font as screen size is adjusted
I have a responsive website only the lyrics even putting in %, Rem or EM is not adjusting. Then it is possible to make the font change for example a window with the length in 1000px and font-size in…
-
4
votes3
answers107
viewsDoubt with relation of tables
Good evening I have the following BD in Mysql CREATE TABLE IF NOT EXISTS `cad_cliente` ( `id_cliente` smallint(5) unsigned NOT NULL, `nome_cliente` varchar(45) NOT NULL, `nome_dr` varchar(45) NOT…
-
4
votes2
answers481
viewsHow to increment the txt file name that will be created in php?
If it is possible, how to increment the txt filename in php? I am working with php that I know very little, I need to increment the name of a txt file, to create a new file json.txt whenever I send…
phpasked 9 years, 4 months ago daniel12345smith 2,120 -
4
votes1
answer118
viewsPHP - Array - Horizontal Keys
Situation I own an array as follows: Array ( [1] => Array ( [tree] => Array ( [tb_agenda_hora] => 2, [tb_agenda_fase] => 1, [tb_agenda] => null ) ) [2] => Array ( [tree] =>…
-
4
votes1
answer4993
viewsHow to change the font color of the application title
I’m looking to change the font color of the application title There where it is written COMO ESTOU DIRIGINDO? how to do this?…
androidasked 9 years, 4 months ago Ilgner de Oliveira 1,098 -
4
votes2
answers11358
viewsHow to customize upload file button?
I have a file upload button: <input id="file" name="file" type="file" /> He’s like this: I want to remove this description "No selected file" and customize the text of the button. Can anyone…
-
4
votes5
answers2182
viewsHow to select a full xml/html tag with Regular Expression even if there are identical tags internally?
I am trying to do the following processing in a javascript string using ER (Regular Expression): With that input: um <b>negrito<b>negrito interno</b>externo</b> aqui…