Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer161
viewsCalculate tangent line by mouse/mouse coordinate
I want to calculate the tangent line to the points X and Y found by the mouse, being limited to the circle drawn... I was only able to develop until halfway through the program. Someone can save…
java-processingasked 9 years, 9 months ago Hyller Vianna 61 -
6
votes3
answers3860
viewsHow to rescue ID from last record recorded with Mysqli
I am unable to rescue the ID from the last record inserted in my BD, it is coming as Zero, the inclusion is working and at the time of doing an update the script fails. I’ve tried with…
-
6
votes1
answer106
viewsHow to implement a "one to zero" mapping?
The scenario is as follows: A user may have many or no comments in the newsletters posted on a system - obviously, a comment belongs to a single user. The problem is that Hibernate does not have any…
-
6
votes1
answer2824
viewsHow to measure area and diameter of flat uneven scanned image (not 3D) using java?
I’m from the health area and never took a course in Programming Language, but for some reasons I will need to make a software to help in my research. I need to measure the total area and also area/3…
-
6
votes1
answer183
viewsCreating Properties, Summary and Custom Colors for Methods and Types
Is there a way or attribute that puts in a Class, Method, Structure or anything else that changes its color? Example of the function CType: Notice that she is colorful, and her arguments instead of…
-
6
votes2
answers328
viewsShow white space for Null value in Views
When I send some value null for my view, and Razor tries to render the value, is returned a Exception. There is a way when the view receive a value null, render this as a blank space without having…
-
6
votes1
answer1437
viewsRetrieve information from digital certificate
I’m working with digitally signed PKCS#7 PDF files. I searched the Internet and I can’t find a way to retrieve subscriber information. Using the class SignedCms I can even get some information when…
c# cryptography certified digital-signatureasked 9 years, 9 months ago Gabriel Henrique de Souza 61 -
6
votes1
answer686
viewsHow to train two objects with different sizes for recognition in Opencv
Hello, I am using Opencv version 2.4.11 to train license plate recognition for a parking software. The problem is when training to identify the car plate, truck, truck where the plates used by them…
-
6
votes3
answers23957
viewsCalculate values in real R$
Could someone help me calculate the values in cents, transform the value 1.6 in 1.60. Code: $(document).ready(function () { var $entrada = 0, $saida = 0, $total = 0; $.each($("td[name='entrada']"),…
javascriptasked 9 years, 9 months ago Hemerson Prestes 655 -
6
votes1
answer814
viewsImplement message exchange between applications
I have an app which has two versions, user version and service provider version, where in it there is a message exchange, I would like to know what options I have to implement this message exchange,…
androidasked 9 years, 9 months ago Mateus Carvalho 1,494 -
6
votes4
answers15428
viewsHow do I remove local files(untracked files) from my current branch(branch) in Git?
How to remove these files from my current branch(branch) in Git?
gitasked 9 years, 9 months ago Paulo Costa 3,976 -
6
votes1
answer336
viewsHow does how-old.net work?
About the site how-old.net (Detection of faces in images, with return of data on the person, such as: age, sex, etc): How it works? What use is it? What techniques were used? What technologies are…
microsoftasked 9 years, 9 months ago Paulo Costa 3,976 -
6
votes1
answer468
viewsHow to get the correct HTTP status?
I tried to get the error "status" like this: error_page 403 /error.php; error_page 404 /error.php; But $_SERVER['REDIRECT_STATUS'] return 200, already in Apache he return 404 (the expected result).…
-
6
votes1
answer92
viewsDoes not insert data into database
Good people, I have this code, and the thing is that since I entered the part to upload an image it doesn’t send anything to the database. Not a new line creates, nothing at all. Someone can help…
-
6
votes5
answers17941
viewsHow to use the loop for(for) in Portugol?
I am learning algorithm, but I was in doubt about the use of Loop para (for). I know it’s a silly question, but unfortunately I have little internet access. I have the book but the doubt is this!…
-
6
votes1
answer1486
viewsJfreechart - Chart Customization Problems
I’m developing an application that has a dynamic graphic. I need to change the style of the graphic, but I’m not getting. I need him to have a white background, blue line with square markers and…
-
6
votes1
answer627
viewsDomain Modeling - Payment Methods
I am modeling the sales part of my system and came across the following situation. I created a register of payment methods and payment method MONEY is standard and cannot be changed, deleted, etc. I…
-
6
votes2
answers190
viewsClosed JS open panel
I have the following panel: $(document).on('click', '.panel-heading', function(e){ var $this = $(this); if(!$this.hasClass('panel-collapsed')) {…
-
6
votes2
answers108
viewsConverting mp3 to ogg in php in joomla
I am trying to convert a mp3 file to ogg using ffmpeg.exe the problem is that Joomla won’t let me run an external file even in the same directory. <?php exec('C:\\path\\to\\ffmpeg.exe -y -i…
-
6
votes2
answers8444
viewsPass generic list as parameter
You can pass a generic list by parameter? Ex: I have one List<Pessoa> and a List<object>. and I have my method: public void FaçaAlgo(List<T> lista) { } How can I make my method…
-
6
votes2
answers180
viewsHow to copy a Repeater on the same page
I have a Repeater control with data filled in an aspx page, the same page has the modal, the modal appears when clicking a button. How to reuse the same Reset to list in modal? Repeater:…
-
6
votes1
answer575
viewsBackup in Mysql Workbench
I need to make a modification to the database. I wanted to know how to backup in Mysql Workbench, and how do I restore it later in case of errors. Also if possible I would like some tips of good…
mysql-workbenchasked 9 years, 10 months ago GWER 2,242 -
6
votes1
answer1345
viewsJoin data to Direct Mail | Parent and child table
I have a spreadsheet with data of students. For each discipline of the same student there is a specific line. I would like to do a direct mail with only one email per student, but that imports the…
-
6
votes1
answer3320
viewsSource code is displayed on screen and does not run
A code of mine gave problem and kept appearing some snippets of it on a blank screen when I ran: The code was right, I didn’t know what the problem was, so I went to test another code that a few…
phpasked 9 years, 10 months ago Lucas Caresia 2,663 -
6
votes1
answer22729
viewsHow do I export table in R in txt or csv?
I wonder how I do to export a generated data table within the R to format txt or csv?
-
6
votes2
answers6106
viewsMysql group_concat() in Sqlserver
I created a table for example: I have the following content: select * from table_t; And I need to get the following result: In Mysql I use the following query: select group_concat(concat_ws(' -…
-
6
votes2
answers2292
viewsHow to save a list of elements with Shared Preferences
I am creating a contact list and would like to save this list with Sharedpreferences. Example: public class MeusContatos extends Activity implements OnClickListener { int pos=0; public static final…
-
6
votes1
answer545
viewsHow to clone a list linked in c?
How can I make a linked list without being recursive, I have this so far. Code: typedef struct slist *LInt; typedef struct slist { int valor; LInt prox; }Nodo; LInt clone (LInt a) { LInt k;…
-
6
votes1
answer276
viewsHow to convert a date to this format in PHP?
Can anyone tell me what kind of date this format is? 2013-09-17T05:59:00+01:00 I have in the database a timestamp or date field. How to convert its value to this format using PHP?…
-
6
votes1
answer402
viewsselect like over 3 million lines
I have a Maxmind table, with more than 3 million cities. I created the indexes for a simple select and is at satisfactory performance. The problem is that I am using an autocomplete and for that my…
-
6
votes1
answer441
viewsCan I use the DAO and Repository project standards together?
I’m studying data persistence in Java and I came up with these two standards: DAO and Repository. Many say that it is better to use DAO, while others say that Repository is better. Already some cite…
-
6
votes3
answers2583
viewsSQL of tables with multiple relationships
How would be the SQL representations of creation and correct insertion of the tables below so that it is possible to have/store the total number of videos of a genre so that it is possible to take,…
-
6
votes2
answers123
viewsHow to separate libraries in an app suite?
I have a suite of web applications composed of several applications, each one specialized in a company area, such as property management, contract management, HR management, works management, among…
-
6
votes1
answer640
viewsHow do the <p:editor> of the first faces escape the special characters typed by the user before saving them?
I am using the primefaces component. My problem is that it is recording the accents that the user type into the text without doing the proper Escaping HTML. There’s a way to change this so he knows…
-
6
votes2
answers2638
viewsSearch words cannot find the word
Guys, I’m trying to make a game of word hunting in java, but I can’t find the word, someone can help? Follows the code: import java.io.BufferedReader; import java.io.FileReader; import…
javaasked 9 years, 10 months ago Maikon Michael 73 -
6
votes2
answers871
viewsHow to decode many columns of a R data frame
I have a data frame with more than 300 columns that are categorical but are encoded as numerical. Each of these columns has its own "type", that is, it has its own encoding table. My problem is to…
rasked 9 years, 10 months ago Roger Salvini 61 -
6
votes1
answer622
viewsHow to take refresh from the full page when using the Fileupload component of the first faces
I’m using the component FileUpload of the first faces in the mode="simple" and it’s run normal. But when I click the save button on a certain folder, it refreshes the whole page. There’s a way to…
-
6
votes2
answers864
viewsLogin to facebook using custom button
In a project I’m doing, I have to log in through Facebook. I’m already getting it, though, I can only get it through LoginButton of the Facebook SDK itself, using these methods: private static final…
-
6
votes1
answer1874
viewsCatch the parent element in Hover
Good Morning! Is it possible to change the parent element by giving Hover to the child? For example, I have the following: nav {border:2px solid red} nav ul li {color:#fff} nav ul li a:hover…
-
6
votes4
answers941
viewsTime Sync() PHP and Javascript
if I generate a time() on the PC purchased in Brazil it will result a team according to our time and such, if I repeat the process in China, USA or any other place with a local PC or time() will be…
-
6
votes1
answer316
viewsCapture joint position on X,Y,Z axes with Kinect V2
I need to extract the position of the joints from a recording and/or in real time, and convert to database format and/or file (txt). Similar to what is done in this video, but instead of displaying…
-
6
votes2
answers180
viewsBash, know what board you’re running on
How do I get the path to the directory in which the script in bash is located within the script? #!/bin/bash MINHADIR="caminho/para/onde/estou" # apanhar a diretoria onde estou atualmente…
-
6
votes3
answers2029
viewsSave to Notepad C#
I wonder if someone could help me with the following. I intend to put a button in my program, which by clicking, save the content of a Textbox in a Notepad Document in the folder we want.…
-
6
votes1
answer2147
viewsPass variable value inside nested SELECT
Assuming the following query where we are selecting values, grouping them and then re-grouping the result: SELECT CONCAT (b.label, '|', b.slug) FROM ( SELECT group_concat(name SEPARATOR '$') AS…
-
6
votes1
answer183
viewsCollect shared URL statistics on Facebook using Python
To collect statistics from a shared Facebook URL in PHP, I am using Curl to query the following URI: // URL para submeter $pageUrl = 'http://www.example.com/my-new-article-is-neat'; // URI a…
-
6
votes4
answers3093
viewsFunction to check if number is prime in Javascript
In PHP would use: for($i = 3; $i <= ceil(sqrt($num)); $i = $i + 2) { if($num % $i == 0) return false; } What function to check using JS?…
-
6
votes2
answers853
viewsNormalize values separated by comma for new table
The idea is to stop having the column with the values separated by comma and pass them to an intermediate table: Source table Assuming a table with the name press with the following fields: id,…
-
6
votes2
answers403
viewsComputer buffer
I’ve read several places about buffers and there they say that it is a place in memory to store temporary values so they give an example like in C: char exemplo[10]; and say that this is a buffer,…
-
6
votes1
answer248
viewsUse Angular routes straight from HTML file
I need to develop an offline app where it will be accessed directly from the HTML file, as far as I know Angular needs the HTTP protocol to perform the routes yet. Ex.: The URL will look like this…
-
6
votes2
answers1558
viewsCheck if a parameter has been provided for the function
Assuming a Javascript function with parameters: function minhaFuncao (param1, param2, param3) { // fazer algo ... } And then using it as follows: var param1 = "bubu"; minhaVariavel = minhaFuncao…