Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer247
viewsImport txt file into Postgresql 9.6
Guys, I have the following problem: I have a file in txt format with the following information: 1;Helder;Masculino;GO 2;João;Masculino;RJ 3;Maria;Feminino;PR 4;Pedro;Masculino;MA I used this example…
-
4
votes2
answers3075
viewsHow can I see the structure of a table in Sqlite?
In Mysql, we can use the command DESC <table> to discover the structure of a table. And in Sqlite? How could I do that?
-
4
votes1
answer46
viewsQUERY - Can anyone help me mount this query?
I have these 3 tables below: "users", "Friends" and "posts". I want to take all my friends who are in the table of Friends and display their posts, taking the name of each and their image (which are…
-
4
votes2
answers452
viewsHow to send database data to view using ajax with codeigniter 3
Hello! I’m having a question. I’m developing a system for a furniture store. I want to get the owner to edit the furniture he registered in the system. I can recover the data, but I cannot place it…
-
4
votes1
answer1436
viewsWhat is the formula used to calculate FPS in a game?
I’m creating a game in java using lwjgl3, I’ve seen many algorithms but all are different from each other. So simplifying my code would be like this: start(); while(running){ update(); render(); }…
-
4
votes2
answers1855
viewsIs there any way to download a Youtube video using urllib?
Is there any way to download a video on youtube using urllib in Python? I did a test, but it doesn’t work (just an example): import urllib.request youtube = "" pagina =…
-
4
votes3
answers219
viewsHow to create a top numeric bar on your Android keyboard
Does anyone know how to create in Edittext XML that number bar on the keyboard?…
-
4
votes1
answer1129
viewsHow to add values in Jtextfield via the button without deleting the previous value?
My problem is that I put a button so that when it was clicked, add the value 1 in JTextField. However, when I click again, it replaces the value, and what I wanted is for it to add another 1 like, I…
-
4
votes1
answer66
viewsWhy can’t we use Await inside a Catch, Finally and Synclock in VB?
Why can’t we use the operator Await within the statements Catch, Finally and Synclock in VB? The C# 6.0 has support to use the Await within the Catch/Finally.…
.net vb.net characteristic-language try-catch asynchronousasked 7 years, 10 months ago vinibrsl 19,711 -
4
votes0
answers53
viewsI’d like to know if you know how to Get the bar over another bar in the Timeline API Google Chart
This is a scale chart, I want to make the breaks, stay on top of the scale bar. <html> <head> <script type="text/javascript"…
google-chartsasked 7 years, 10 months ago Odirley P. Viana 41 -
4
votes1
answer356
viewsMVVM, Should I use Icommand on all controls?
Part of the MVVM is the use of commands through the interface ICommand. The question is, should I use commands on all controls? Even those that are not connected with the business rule? For example,…
-
4
votes1
answer126
viewsHow can I make a New Year script?
Good guys, I searched how to do but could not. I want a javascript code that turns on automatically only after midnight. See the code: var agora = new Date(); var anoNovo = new Date(2017, 0, 1, 0,…
-
4
votes1
answer119
viewsHow to change a menu item after it has already been created?
The following I create a menu through the onCreateOptionsMenu method,. @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.filter_menu, menu); mMenu=menu…
-
4
votes1
answer38
viewsIs there a way to do these assignments more cleanly?
I have a class that should be started with a array property. $subscription = new CheckRenew([ 'custom_2_id' => 13, 'email' => '[email protected]', 'zip' => '90530000', 'number' =>…
-
4
votes3
answers65
viewsGlobal function for plugin
I’m creating a plugin simple with jQuery and Bootstrap, and in my Javascript I have the following excerpt: $.fn.myPlugin = function(options) { var element = this; var settings = $.extend({ param1:…
-
4
votes1
answer82
viewsWhat library do I use to send notifications?
Hello, I’m developing an app where patients have left it in the background or even open, and when the patient’s turn arrives, the office sends a notification saying it’s his turn. Do you have a…
-
4
votes1
answer339
viewsAlert Dialog personalized with GIF image
I would like to know how to create a Alert Dialog customized where you had an Imageview containing a GIF. On my Main. imgAndroid = (Button) findViewByid (R.id.imagandroid);…
-
4
votes1
answer48
viewsError There are no comments for in the schema
I’m following a tutorial to access database via LINQ. In the video, I saw a function that returns me a list with the database data: public static List<LicitacaoOffline> Buscar() {…
-
4
votes1
answer1090
viewsReturn of webservice in XML - php
I’m trying to consume a Totvs webservice. My PHP code: // SOAP client $wsdl = 'http://localhost/TOTVSBusinessConnect/wsDataServer.asmx?wsdl'; $endpoint = array ( 'location' =>…
-
4
votes3
answers2432
viewsHow to speed up a script to full speed in python?
I was playing with a method to approximate the PI number and I realized that the code runs very slowly in the Python 3.6 interpreter, and the process is only using 30% of the processor. There would…
-
4
votes1
answer164
viewsProblems with interpreter R
I did the installation of R4intellji and selected a program in R. However when I ask to run (run) the program gives the following error: The R interpreter is not specified Could someone help me?…
-
4
votes1
answer148
viewsCheck if file was created
I made a function that creates a file in php, but I need it to return true if all goes well or false if one of the steps has failed. I solved it as follows: function createFile($path, $nome,…
phpasked 7 years, 10 months ago Guilherme Pressutto 413 -
4
votes3
answers380
viewsUse variables outside the function
I’m studying php7 and I saw somewhere that it’s now possible to use external function variables, but they’re in the same file. As I recall it was something like this: <?php $agua = '1 Litro';…
phpasked 7 years, 10 months ago Jorge Carlos 86 -
4
votes1
answer113
viewsHow to determine Stories users?
An important process in software development is the organization of what really needs to be developed and the prioritization of what needs to be done first. As far as I have seen, one strategy to do…
software-architecture software-engineering software-project project-management requirementsasked 7 years, 10 months ago SomeDeveloper 18,074 -
4
votes2
answers207
viewsWhen start the site already ask login
I’m creating a website and I’m having a question. How do I stop when the user enters the URL address or clicks a button that goes to admin.html, and automatically appears the login page? that is how…
-
4
votes2
answers295
viewsIn bash, what is the difference between a null string and an empty string?
I wonder if there is a difference in how bash represents variables with null values var= and with empty strings var="" What care should I take when manipulating variables like these?…
-
4
votes1
answer356
viewsDatabase Locked Sqlite/Java error
I have the following problem: in an Insert that I am trying to accomplish, I don’t know if it is an error in the database or something in the java programming, but every time I try to perform an…
-
4
votes1
answer408
viewsStarting with Vue.js with jQuery experience
I have experience with Javascript and jQuery and after a few years I decided to leave my comfort zone and meet new horizons. I took a quick walk through the Angular until arriving at Vue.js.. Is…
-
4
votes2
answers4963
viewsIssue with accentuation in CSV file export
I read a CSV file as follows: $delimitador = ';'; $cerca = '"'; // Abrir arquivo para leitura $f = fopen($_FILES['uploadChange']['tmp_name'], 'r'); if ($f) { // Ler cabecalho do arquivo $cabecalho =…
phpasked 7 years, 10 months ago Sr. André Baill 6,946 -
4
votes1
answer280
viewsHow does the Position property work?
I’ve read about the property position, but still can’t understand its purpose. Values absolute and relative didn’t get into my head. I also wondered when I should use this property.…
-
4
votes1
answer1448
viewsHow to toggle lines of a report with custom colors Crystal Reports and C# winforms?
In the report I’m doing, I’ve managed to alternate colors by doing the following: Access to the Menu: Crystal Reports - Report - Section Expert Select the section Details and click on the tab Color…
-
4
votes1
answer191
viewsisUserAMonkey() and isUserAGoat() methods
What is the real function of the methods isUserAMonkey() and isUserAGoat() in the Android SDK? In what situation they should be used?…
-
4
votes4
answers2413
viewsGenerate angular pdf using javascript
I am trying to generate a pdf in my angular application and I have the following code in controller.js: function gerarPdf(){ restService.relatorio.save({ id: controller.contrato.id, folha:…
-
4
votes1
answer127
viewsMock a raw_input
I have the following functions with raw input, which should receive a list [x,y] def input_origem(): origem = raw_input("Entre com o valor de x: ") origem = eval(origem) return origem def…
-
4
votes0
answers330
viewsInform Tfdautoincfield field value using Fdquery
Hello, Utiliso Mysql and I am migrating my projects from Delphi 2007 + Zeos to Delphi Berlin + Firedac (big change eim) and due to some business rules, auto increment fields of Mysql can be informed…
firedacasked 7 years, 10 months ago Benjamim Mendes Junior 1,017 -
4
votes1
answer5011
viewsError Connection Database; "relation does not exist"
I am having Problem to Save Data from a Screen to my database I am getting the following error: "org.postgresql.util.PSQL.Exception: ERROR: column "name" of relation "product registration" does not…
-
4
votes2
answers3252
viewsHow to use sys.Arg for data entry
I have the function as follows: def minha_funcao(x, y ) my code . . . end of my code e a a entrada de dados eu utlizo da seginte maneira print my_func([uma lista], [outra lista]) I’d like to use the…
pythonasked 7 years, 10 months ago Guilherme Lima 3,129 -
4
votes1
answer707
viewsAttachmate Waithostquiet Method - Extra! with python
I’m using Python to automate Attachmate - EXTRA! as many do with VBA. I’m using the package pywin32 found here. I’m following the method documentation WaitHostQuiet found here. The problem occurs…
-
4
votes1
answer697
viewsHow to make a list of categories with a completed and unfulfilled task counter?
Good evening, I’m as a doubt, I’m trying to make a dynamic task counter, that the tasks accomplished should be presented on another page. I have the following HTML of completed tasks: <!doctype…
-
4
votes1
answer49
viewsHow do I use parse() in javascript?
I have the following implementation: minhaDataRetornada = "Dez 20, 2016"; minhaDataTratada = Date.parse(minhaDataRetornada); console.log(minhaDataTratada); Running the above code, my return is :Nan.…
-
4
votes1
answer1738
viewsCreate txt with Default name Printer in VBS
Good morning, I have the following script. Set oShell = CreateObject("WScript.Shell") strValue = "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device" strPrinter =…
-
4
votes1
answer122
viewsSession data in php
I am using an SSL certificate, and wanted to know if it is possible for the user to see the data saved in the session? For example, I have a variable called config, where I keep some user access…
phpasked 7 years, 10 months ago Hugo Borges 5,294 -
4
votes3
answers4512
viewsHow to pass the value of a variable to an Hidden input?
How can I pass the value from a Javascript variable to a input hidden ?
javascriptasked 7 years, 10 months ago Gonçalo 2,525 -
4
votes3
answers267
viewsMeaning of the term "Fluid Layout"
In research, I came across a series of articles talking about Design fluido.But most without clear explanations. I want to know what that means in development Frontend?…
-
4
votes1
answer490
viewsRegex in python Find() function
I need to use a regex in the function Find() in Python for example, if I use inside a loop : arq = open("arquivo.txt","rb") var = arq.readline() a = var.find("abc.*def") He will be looking at the…
-
4
votes2
answers407
viewsHow to give a blank space between 2 input-group?
I have 2 input-group, they are "glued", I want to give a blank space, follows code below: <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>…
-
4
votes1
answer259
viewsHow to upload with Ajax
I’m trying to adapt an upload I’ve been using Ajax, but I’m not getting it, so I read I need to use the formData, I tried some alternatives, but all of them didn’t solve, my form has several fields…
-
4
votes3
answers785
viewsCreate Textview’s dynamically
I have a TextView and would like that instead of filling with a Arraylist, with all items in your setText, that it be created several times on the screen, with the respective items of this array, in…
-
4
votes2
answers983
viewsHow to force dowload a pdf?
I have a PHP and HTML application of a registration form, as I do to download a select as an example: By clicking yes, it downloads according to a link that makes this (download) in pdf. Follow the…
-
4
votes3
answers315
viewsHow to access a pointer within a structure?
I need to know how to access the first position of the pointer vector *c_parte_real, as shown below: typedef struct{ struct char_vector{ char *c_parte_real[2], *c_parte_imag[2]; }c_vector; struct…