Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer2848
viewsHow to Convert UTF String to ANSI and Create ANSI Text File on an SSD?
I wrote an Android application using Java, so that users answer questions, which are then saved in a file. The problem is that this file is saved in UTF8. The end user will open this file on IBM…
java android character-encoding file-systemasked 10 years, 9 months ago Please_Dont_Bully_Me_SO_Lords 516 -
4
votes3
answers1327
viewsPlace information in field fields of a URL and send to the server with a program language
You can, using a programming language, access a web page with login and password data, set the login and password information and "click" the send button, and can enter the site with your…
-
4
votes2
answers3111
viewsHow to check the database update from a browser?
I’m trying to make a page that updates the <div> (that has the content brought from the database) automatically once some value is entered (as well as on this site). I used the setInterval to…
-
4
votes2
answers144
viewsHow to make a constructor equal to Qobject?
When a new question arises from an old question, I want to know how to create a class equal to QObject. Basically, I want to know: How to make a copy constructor that does not accept "assignment…
-
4
votes4
answers8769
viewsHow to calculate the product of the elements of an array in C
How do I multiply values of an integer vector by each other in C. I have values within an array for example [1,2,3,4], I want to multiply one by the other, resulting in 24.
casked 10 years, 9 months ago fabaoanalista 189 -
4
votes2
answers984
viewsViewing Unique Custom Post Types Categories
I created a Custom Post Type, but now I’m not able to create categories that are seen only for this CPT. When adding 'taxonomies' => array('category'), it displays all categories. How can I…
wordpressasked 10 years, 9 months ago Leandro Costa 2,172 -
4
votes3
answers1015
viewsSend e-mail on behalf of the client
I have a system that serves several clients and sends emails to their users (clients of my clients). Today I use my own email account (from my domain), and in the composition of the email I inform…
-
4
votes3
answers131
viewsProblems with belongs_to when using Ajax in Rails 4
I have three models in my application, Order, Product and Items. Within Items I have the following code: class Item < ActiveRecord::Base belongs_to :product belongs_to :order end I have a form…
-
4
votes4
answers51666
viewsResponsive font-size depending on screen size
Can anyone explain/teach me how to make my text increase or decrease along with the screen dimension? I read a little about REM, but I didn’t quite understand. I don’t even know if that applies to…
-
4
votes2
answers272
viewsTesting of asynchronous requests
How can I make asynchronous requests in iOS Testcases? Example: -(void)test { UserModel* user = [UserModel sharedInstance]; [user requestUserInformationWithCompletion:^(NSError* error, NSDictionary*…
-
4
votes1
answer832
viewsHow to implement a chart using amCharts?
I am trying to implement a bar/column chart using the tool own amCharts that uses XML, but I’m not able to edit it to get a specific bar. What would be the simplest solution for implementation using…
-
4
votes2
answers437
viewsWhen do I use Objectoutputstream the parent class attributes are also saved?
When I use the ObjectOutpuStream to write to file, parent class attributes will also be saved?…
-
4
votes5
answers620
viewsHow to select records that have a relationship with all values in a list?
I have the following sql: SELECT DISTINCT cp_pessoa.id, cp_pessoa.nome FROM cp_pessoa LEFT JOIN cp_habilidade_freelancer ON (cp_habilidade_freelancer.id_freelancer = cp_pessoa.id) LEFT JOIN…
-
4
votes3
answers1621
viewsIs it possible to move Nodejs modules to be used offline?
I use the GruntJS for personal projects, I would like to use the benefits of this tool at work, but the use of the network is limited and I cannot install via prompt. I tried to copy the directory…
-
4
votes2
answers1219
viewsHow to insert Javascript code into the database?
I’m creating a function bbcode for a blog I am doing and wanted to know if it is possible (and safe) I insert Javascript codes inside my database. I am working with Mysql. Another question, I cannot…
-
4
votes3
answers2718
viewsJavascript/Nodejs setInterval with programmed start, simple cron style
For Javascript and Nodejs, there are n robust Cron style libraries, such as Node-cron. But they are complex too much for simple situations, are heavy to download in the browser or require an…
-
4
votes1
answer218
viewsHow to set position of a cursor in the Onchanged of a Customview in a Listview?
I’m wearing a customview calling for android-spinnerwheel. I inserted her into a listview connected to a CursorAdapter. If I use the OnitemClickListener from Listview, the cursor goes to the…
-
4
votes1
answer1385
viewsHow to change the value of a string in XML?
There is a way to change a string value in XML. I know how to get the value through getResource().getString(R.string.value); but I don’t know how to change the value directly in XML. Is this…
-
4
votes1
answer3362
viewsAjax navigation error ("Xmlhttprequest cannot load...")
I’m trying to use a browsing without refresh on the page, but when I click on the link, give this error: XMLHttpRequest cannot load file:///Caminho.../paginas/login.html. No…
-
4
votes1
answer92
viewsError in db:create on Mac OSX Montain Lion
alexandesigner$ rails server dyld: lazy symbol binding failed: Symbol not found: _mysql_get_client_info Referenced from:…
-
4
votes1
answer218
viewsFacebook API does not find logged in user
I minimized my code as little as possible in order to isolate the error. I’ve reviewed the forum looking for a simple answer, but no hint solved this basic problem. In the app settings, the only…
-
4
votes3
answers1686
viewsHow do I fix the background of a <div> in iOS Safari (iPad)?
I have a layout that works very well on the desktop, but when viewing in iOS Safari (iPad specifically) it does not appear as expected. I want the div background to stay fixed when scrolling the…
-
4
votes1
answer134
viewsHow to center one window on the other in GTK?
I have a main window and I want to display small text in a small window, open in the center of the main window. I still can’t get the small window to open in the center of the main. I tried to use…
-
4
votes1
answer3825
viewsHow to color specific lines of a Jtable?
I’m developing a Java application that involves a JTable, i need to paint some red lines depending on the age and status of that line. I’m wearing a DefaultTableModel to popular my table. I don’t…
-
4
votes4
answers1259
viewsGit merge between branches with submodules
I have a following mobile project. A repository where code is shared between several projects. I’ll call this repository. In the projects were created branchs of this base type because it was…
-
4
votes4
answers1175
viewsFunction to expand list
I created a "dictionary" from A to Z , where when I want to see what is in the letter A, I click on it. Tté ai beauty. So that I don’t have to click one by one to find some meaning, I would like to…
-
4
votes2
answers12377
viewsDecoder for Open Source CAPTCHA
I am looking for an API for decoding CAPTCHA, one that is free to use and open source. I understand that this is a complex process that uses OCR scans and advanced techniques of analysis and digital…
-
4
votes2
answers2140
viewsHow to "clean" static variables?
In C++ static variables are very important. Let’s assume that I want to make a factorial that uses recursion. unsigned long long int RecursionFatorial(unsigned int fator) { static long long int…
-
4
votes2
answers1015
viewsHow to make a request by sending cookie data?
I want to file a requisition GET for a particular URL, but I want to send cookie data, as a web browser does. For example, in the code below: from urllib import request req =…
-
4
votes2
answers401
viewsProblem with multi editor in Wordpress
I’m using several editors in one custom post type, however the plugin qTranslate adds to language tabs only in the default Wordpress editor and others not and along with that gives a bug in the tab…
-
4
votes3
answers403
viewsWhat is the benefit of working with webSql?
I was reading about webSql and I came up with this question, what is the advantage of working with webSql since it runs client-side?
-
4
votes2
answers599
viewsHow to update backgroundWorker.Reportprogress() through a class in another project?
I read a text file that contains data from another database, upload that data line by line to a class, edit the required fields and then save it to the new database. This insertion processing…
-
4
votes2
answers1688
views1005 - Can’t create table '' Rrno: 150
I’m starting my programming journey and came across a mistake in the creation of the Mysql database: 1005 - Can’t create table 'mydb.supplier' (Rrno: 150) What could it be? I’ve entered several…
-
4
votes1
answer380
viewsMy Javascript gives syntax error in Chrome and Safari but does not give error in Firefox?
These are my files: <script type="text/javascript" src="js/jquery-1.9.1.js"></script> <script type="text/javascript" src="js/jquery-ui.js"></script> <script…
-
4
votes1
answer398
viewsWhat is the difference between these ways of indexing a pointer to an array of structs in c?
Is there any difference in the use of these 3 statements? void addCliente(struct cliente *dadosCliente){ dadosCliente[k].nome="oi"; (*(dadosCliente+k)).nome="oi"; (dadosCliente+k)->nome="oi"; }…
-
4
votes1
answer99
viewsHow to use "display: initial;" on IE9?
I made a website, but it gave error in IE9. The effect I made is only cool with display: initial; (because it fits right in the letters). The class code is as follows:: .box-slider h2 { font-size:…
-
4
votes2
answers4977
viewsUsing the JPA repository
Last Saturday I presented my TCC in college and saw that I need to improve the presented project. The system receives tax notes in format XML and manipulates them. I based the system on the company…
-
4
votes2
answers442
viewsCode First with Complex Types, when making Scaffolding the properties of Complex Types are not found in the views
I’m following Sergey Barskiy’s presentation on http://www.youtube.com/watch?v=l3WzYZsN0gU, where it demonstrates the Entity Framework approach with Code First. I loved it, but I had a problem. In…
c# asp.net-mvc entity-framework code-firstasked 10 years, 9 months ago Guilherme de Jesus Santos 6,566 -
4
votes2
answers546
viewsHow to Fade Only Item Clicked
Here’s what I’m trying to do: I got a looping coming from the database. When I click on a button of one of the results, I wanted to make a fadein div appear. Turns out when I click on one, the div…
-
4
votes2
answers180
viewsIs there a plugin or CSS code generator for Shapes(Shapes)?
I wonder if there is a method of creating Shapes(Shapes) using CSS, which I don’t need to keep creating and adjusting everything in hand from scratch, until I can create the form I want. Is there…
cssasked 10 years, 9 months ago Paulo Roberto Rosa 8,979 -
4
votes2
answers1164
viewsHow to identify if an XML is GOOD?
I have the following problem regarding XML encoding: Erro: Byte inválido 2 da sequência UTF-8 do byte 3. This error occurs when trying to canonize an XML. I don’t know exactly what the error might…
-
4
votes1
answer816
viewsHow to update with AJAX a list after the action of a remote form?
I have a problem I’ve never had in Java but I’m almost going crazy in Rails. I’m developing a project where there are users and groups. So I created a separate model for relationship N:N between…
-
4
votes3
answers610
viewsReload after update
I am making a status change in my database using $.getJSON, is working, but in return I need to update the div where the data is and I am not able to perform this task, see the code below:…
-
4
votes3
answers5030
viewsKeep zero after comma using the float type?
I have a database where product values are stored. When there is occurrence of numbers with zero after commas they come without zero. I did a test and with decimal it worked, but my application uses…
-
4
votes3
answers2309
viewsUpdate secondary form without changing primary focus
I developed a program in Delhi that has two Forms, one with a grid and another with a map, the operation is simple: when clicking on the grid the position of the vehicle is updated on the map, the…
-
4
votes1
answer188
viewsHow to recover the number of commits made by a person?
What is the Git command to recover the number of commits made by a particular programmer?
-
4
votes1
answer671
viewsCreating new options for Magento attributes
I’m having problems trying to create new options in the "Manage Options" tab. When creating an attribute, I already know how to save the data correctly in the database. I am overwriting…
-
4
votes3
answers955
viewsHow to effectively remove the metatag refresh from a page?
Lately I have accessed several news sites that use this metatag to update their pages from time to time: <meta http-equiv="refresh" content="300"> I understand why you use it on the websites,…
-
4
votes3
answers986
viewsWCF consuming external Java Webservice with HTTPS and proxy
I have a WCF service that consumes a web service (developed in Java) where I need to connect with HTTPS using a certificate. So far everything works well, however, in production environment my…
-
4
votes3
answers3734
viewsHow to use emails in Azure?
I put one of my sites on Azure. There is no e-mail service? There I was able to fire emails from external servers, but I want to create and use one in the same domain that is in Azure. How to solve…