Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer162
viewsCompiling code on Ubuntu and running on windows
Hi, I was wondering how can I compile a C code on Ubuntu and what execute on Windows. I tried to put the extension ". exe" at the end of the file, but when I sent the executable to my teacher he…
-
4
votes1
answer1394
viewsRemove and replace vowels in any sentence, C
Context: I’m trying to develop a code that will be able to remove all vowels aeiou of any sentence and save the position that the vowel was in the sentence, so that it is possible to reconstruct the…
casked 7 years, 8 months ago Vinicius Lara 53 -
4
votes1
answer1320
viewsHow to change the color of the border?
How I could change the color of the border created by Borderfactory? import java.awt.Dimension; import java.awt.GridBagLayout; import javax.swing.BorderFactory; import javax.swing.JComponent; import…
-
4
votes3
answers899
viewsTaking value from an array
I am trying to get the value of a table field created with Ajax. With the function below, all fields with the name qtde appear, including what I need. I need to make a simple account of a typed…
-
4
votes1
answer1010
viewsTrigger para update before Insert
My database has two tables, notification and attendance, as shown in the image. In the notification table the default value of the status is "open". I tried to make a Rigger that updates the default…
-
4
votes1
answer228
viewsUsing Foreach in PHP
The builder foreach provides an easy way to iterate on arrays. In several scripts we can observe the following usage: foreach ($array as $value) { $value = $value * 2; } However, in some cases the…
-
4
votes2
answers62
viewsMerge two series (zoo) of the same variable making the intersection and filling
I have two zoo series like this: to: data valor 01-02-2010 2 01-03-2010 0 01-04-2010 9 b: data valor 01-06-2010 3 01-07-2010 6 01-08-2010 2 I wish a set c this way: c: data valor 01-02-2010 2…
rasked 7 years, 8 months ago Artur_Indio 1,093 -
4
votes0
answers51
viewsWhy is it recommended to encapsulate in POO?
Would you have small examples to show me? To understand why? I’m studying PHP, but it can be in any language.
-
4
votes2
answers212
viewsWeb server in Go apparently is not creating new requests
I am now starting to develop in Go, and I am currently studying Go for Web development, so through examples I started a simple server in Go: package main import ( "fmt" "log" "net/http" "time"…
-
4
votes1
answer644
viewsHTTP Error 403.7 Forbidden - SEFAZ RS
I’m trying to access the address RS electronic invoice authorization. When accessing I receive the following message: Server Error in Application "PRNFH/WS/NFEAUTHORIZATION" HTTP Error 403.7 -…
-
4
votes3
answers899
viewsAngularjs Date Subtraction
Good, How do I subtract a day with the angle old.endDay = start.startDay; Example: startDay = 01/05/2017. endDay = 30/04/2017. I’m sorry I said that wrong. actually I wanted to strip one day of…
-
4
votes1
answer110
viewsProblems with select component
I have a problem presenting my list of items from my select. In this my HTML I use ng-repeat to list all items, and when my screen is loaded my first and only item is: {{list name.}}, when I click…
-
4
votes2
answers4518
viewsSelect multiple lines of a data.frame from the highest R values
I have the following date.frame in R: df <- data.frame(x = c(10,10,2,3,4,8,8,8), y = c(5,4,6,7,8,3,2,4)) df x y 1 10 5 2 10 4 3 2 6 4 3 7 5 4 8 6 8 3 7 8 2 8 8 4 First point: I would like to get…
-
4
votes1
answer964
viewsHow to delete objects within a list?
I have the following code: using (Context contexto = new Context()) { List<Cliente> listCliente = contexto.Cliente.Where(x => x.Status == 0).ToList(); } How do I delete this result from the…
-
4
votes4
answers5300
viewsHow to fix the number of numeric characters in a float?
I wrote a simple code where at the end of a precise mathematical operation the result would be seven numeric characters regardless of where the point is. Unfortunately I can only adjust the…
-
4
votes1
answer3970
viewsHow to calculate a person’s age in Oracle SQL?
I need a sql command that returns the age of the person. I have the birth date of the person in the database, I need to calculate his age by SQL.
-
4
votes1
answer937
viewsRunning cmd commands or scripts from java does not work
I’m having trouble running some commands through java. Whether I run them directly from Netbeans or run the project directly from my machine works perfectly any of the following commands: String…
-
4
votes2
answers2031
viewsFind smallest string from a python list
how do I do a function to determine the smallest string in a list by entering spaces? For example, when typing: menor_elemento(["joão", " a ", "arrozz"]) the output must return "a" (no spaces), as…
pythonasked 7 years, 8 months ago d. fritoti 85 -
4
votes1
answer84
viewsthis inside a builder, what does it do?
good , can anyone tell me what this does ? public Tempo (){ this(0,0,0); } public Tempo (int h){ this(h,0,0); } public Tempo ( int h,int m){ this (h,m,0); } public Tempo (int h,int m , int s){…
javaasked 7 years, 8 months ago Pedro Gouveia 505 -
4
votes1
answer383
viewsCalculate diagonals of an array using Threads
I need a lot of help. I need to make a program in C in which calculate the diagonals of an array using Threads as stated: As directed, I must pass the value of diagonal and jump (diagonal change) as…
-
4
votes2
answers227
viewsRemove "OR" condition from LINQ query
I have the following method: bool naoUsarNomeCliente = String.IsNullOrWhiteSpace(filtro.NomeCliente); long codigoExterno; bool naoUsarCodigoExterno = !long.TryParse(filtro.CodigoExterno, out…
-
4
votes1
answer42
viewsDeleting value when calling Javascript function
The code below does not pass a value to y but still the code works, someone knows how it works? I would like to learn more about, does anyone know the name of this javascript feature? function…
javascriptasked 7 years, 8 months ago Felipe 43 -
4
votes2
answers189
viewsHow to avoid repeating code that does the same thing for different Ids?
There is a function onClick Javascript for each "Show more". This function changes the visibility of the div to Visible to which the default is Hidden. However simple it is, the code is too big. Is…
-
4
votes2
answers471
viewsTheoretical doubt about while and indentation
count = 0 while (count < 10): # Ponto A print ("Olá...", count) count = count + 1 # Ponto B # Ponto C Why Count < 10 is always true at point B. is not true if the "Point B" belongs to the same…
-
4
votes2
answers318
viewsPHP mkdir vs chmod
I was creating folders dynamically by PHP, when I came across the following situation. Occurred Create a folder tmp with permission 777 in /www mkdir('/www/tmp', intval('0777',8), true); Turns out…
-
4
votes3
answers691
viewsHow to correctly format a monetary value?
I have a value that comes from the form that way: R$ 1.500,95 I need him to stay that way: R$ 1500,95 How to turn him into the second way? I need him to look completely the same as the way he was…
-
4
votes1
answer335
viewsGet properties of a class with condition. C#
I would like to get the properties of my Parents object, but I would not like to take the property (States) of my Country class. I tried it the way it is in the "Test" class and I couldn’t because I…
-
4
votes3
answers351
viewsGroup by days interval using Linq
How can I use interval grouping with Linq? var dados = new[] { new { Id = 0, dias=100, preco= 25, Nome="etc"}, new { Id = 1, dias=40, preco= 50, Nome="etc1"}, new { Id = 2, dias=50, preco= 55,…
-
4
votes1
answer1206
viewsHow to create expandable banner with HTML5 and CSS3 only?
I need to create an HTML/CSS banner that uses only two JPG/GIF images. The first image will be 300x250px and the second image 600x250px. The first image will be displayed and the mouse will be…
-
4
votes1
answer137
viewsHow to make an appointment to get the dates according to the weekdays?
How to make a certain query in MYSQL by picking the dates according to the day of the week? For example: +-------+---------------------+ | id | created_at | +-------+---------------------+ | 49185 |…
mysqlasked 7 years, 8 months ago Wallace Maxters 102,340 -
4
votes1
answer1028
viewsDelphi - Datasnap - Rest - Tservermethods1
I’m running some Datasnap tests with REST and json. Back at the Unit ServerMethods, that Delphi itself creates, has the function ReverseString, but well, how do I know who sent it? I’d like to keep…
-
4
votes1
answer2153
viewsA Macro to run all Modules?
I have several modules and within these modules I have several subroutines with some functions on separate sheets. I intend to run macros separately! That is, start the next subroutine after…
-
4
votes1
answer98
viewsputs e p in Ruby
What’s the difference between p and puts in Ruby? When I should choose to wear one or the other?
-
4
votes2
answers1402
viewsShaman is completely free?
Can anyone say if at any time it is necessary to pay for using Xamarin? If even developing free apps it is necessary to pay? If you are an app that is part of a service, but the app is free, you…
-
4
votes1
answer896
viewsType set in Python is ordered?
When creating a variable like this: a = {1,2,5,1,3} It ends up returning a variable of type set. However, in the Python documentation, it is said that it is impossible to create a set without the…
-
4
votes1
answer59
viewsSelect with YEAR and MONTH together
Good is possible together the year and the month, and spend a party like this 20017-06 for the select? SELECT SUM(valor) FROM contas where YEAR(data) = '2017' and MONTH(data) = '06'…
mysqlasked 7 years, 8 months ago Hugo Borges 5,294 -
4
votes1
answer2157
viewsDifference hashmap and arraylist
Could someone explain to me the difference between HashMapand ArrayList?
-
4
votes1
answer2094
viewsSend files via FTP with PHP
I have the following PHP code to upload PHP files and send to an external server via FTP. However, it returns me the following error when I upload: Warning: ftp_put(): Illegal PORT command. in…
-
4
votes1
answer2136
viewsnodejs, get value from a SELECT mysql
Well, I wanted to know, how can I take this result, and turn into variable and be able to use within functions in the script, example take this Name Warrior and use as if it were a variable, like:…
-
4
votes1
answer101
viewsPass by reference printing garbage in the vector
Guys, I made a simple code, but I have a problem. I made a function "increase" to increase the size of a vector; the function receives the vector and passes the values of that vector to an auxiliary…
-
4
votes1
answer435
viewsInfix function for post-fixed
I’m making a code that converts an infix function to post-fixed notation, for example: 4+2 to 42+. And I’m not being able to prioritize the elements, for example, when I do the expression 4+2*8, I…
-
4
votes1
answer128
viewsExample Delphi scrollform is not working in version 10.2
I have an App (Android) developed in the version Delphi 10.1, where I used the examples of Scrollform (so that the layout moves together with the android virtual keyboard not to cover the edits),…
-
4
votes1
answer438
viewsPage shows only the files in IIS 7 MVC Application 5
I have a Mvc 5 application, for development I used IIS Express, everything works normally on it, but I am a problem to climb IIS 7. Still on my local machine, later I will take to Windows 2008. The…
-
4
votes1
answer1248
viewsUsing Mysql with R in the Rmysql package
I am new when the subject is Mysql and installed this program to use with R. I managed to install the Rmysql library, following tutorials I found on the Internet and in the course I am doing in…
-
4
votes2
answers1687
viewsHow to know if the scroll position is on top of a Section?
I don’t know if it was clear, but I’ll illustrate, I have several sections on my site, and when I give scroll I wanted to perform some effects with Javascript, how do I know to know when exactly the…
-
4
votes1
answer341
viewsCheck if String has '+' character
I need to search in a string if it has the + character, like this: teste = teste.replaceAll("+", "e"); but I return this error: java.util.regex.Patternssyntaxexception: Dangling meta Character '+'…
-
4
votes2
answers376
viewsWhy is JSON not considered a markup language? And why is XML?
I was researching the differences between JSON and XML so I read that XML is a markup language but I didn’t read anything about JSON.
-
4
votes2
answers2531
viewsInaccessible folder on github
I’m uploading my website to github. Commands I made: git init git remote origin master URL git add --all git commit -m "Primeiro Commit" git push origin master But git sends all files and folders to…
-
4
votes1
answer4378
viewsHow to delete repeated values in a text column in R?
I have a data.frame that has a column with names, but these names repeat a few times. I need to create a new column in a new data.frame with all names, but no repetitions.
rasked 7 years, 8 months ago Filipe Vargas 95 -
4
votes4
answers1413
viewsKnow what day falls next Monday
I need a schedule for an agenda that gives me the date of next Monday from a certain date Ex: today and day 01/06 I need to know what day the next 10 Mondays will fall. 1 = 05/06/2017 2 = 12/06/2017…