Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers406
viewsError Mysql Connection Asp.net MVC
I am trying to work with a Mysql database in my application. However, I am getting the following error: Keyword not supported: 'data source'. I performed all the procedures related in this question…
-
4
votes2
answers839
viewsHow to check if a class implements a C#interface?
How to check if a class implements an interface? For example, I want to include an if that checks if an object is of the Idisposable type. How to do? I tried something like : MinhaClasse meuObjeto =…
-
4
votes2
answers6461
viewsSelect in Mysql with an array
I have a form with a field multiple select: <form action="processa-chose.php" method="post"> <select id="selecionar" name="fornecedor[]" data-placeholder="Fabricantes" style="width:350px;"…
-
4
votes2
answers114
viewsDo not register in the time range if it already exists
How not to register events in the time zone that is already registered ? Example: I have an event in BD starting at 18:00 and ending at 22:00, I need that if the user tries to register a new event…
-
4
votes4
answers440
viewsRight menu in each Row of a table
I have a table and am trying to create an action menu by right clicking on each Row of the table. It’s partially working the problem that I can’t make the script select the context menu for each row…
-
4
votes2
answers825
viewsBlock PHP page to only display data if it is an AJAX request
I have a file .php which loads and displays all news from my database, I use this file to load the news dynamically with AJAX. So far so good, the user can go normally on the page index.html and see…
-
4
votes2
answers329
viewsStore SMS message in variable
I’m having trouble saving a text message in a variable. The idea is to send an SMS with a command and later use a conditional operator to activate or deactivate a relay. But I can’t save the SMS…
-
4
votes1
answer125
viewsASP.NET vNext is interpreted like PHP?
ASP.NET vNext is presenting a lot of news in relation to previous versions, among them is the idea of not compiling the codes, just modify and already see what happens on the page. This means that…
-
4
votes1
answer2742
viewsDisable <Asp:Button after being clicked
Project in: Webform, C#, ASP.net I need to disable the button after being clicked. Today it is like this: <asp:Button ID="btn_Enviar" runat="server" CssClass="btn btn-primary" Text="Enviar"…
-
4
votes1
answer3548
viewsSend a message via Whatsapp programatically
I tried a few codes but I haven’t got anything yet. I’m raising the possibility of sending one-on-one through a loop. Does anyone know how? Following tutorial I tried…
-
4
votes3
answers7805
viewsFont does not accept accentuation
Speaking personally, I’m using a custom font, so I use @fontface in CSS. I’m having trouble putting accent, when I put it looks like this, follow the link below: What I could do ?…
-
4
votes1
answer1340
viewsHow to create functions with callback?
Can anyone tell me how to create functions with callback? I created this function but it’s not working. function PostsCategoriasListar(table, select, callback) { if (table) { $.ajax({ url:…
jqueryasked 10 years, 2 months ago Rodrigues Costa 43 -
4
votes1
answer286
viewsApplet does not run in browser
Do not run Applet. Just give this return. This is my java class. public class SiteSelector extends JApplet { private HashMap<String, URL> sites; // nomes e URLs de site private…
-
4
votes3
answers1277
viewsDifferences between Padding and Margin
What’s the difference between using Padding and Margin in an Android view? When should I know which one to use?
androidasked 10 years, 2 months ago felipe.rce 1,969 -
4
votes1
answer2188
viewsRead rows and columns merged in excel, using python
I’m having trouble reading the information from a spreadsheet that has rows and columns merged. I tried to use merged_cell to get the value, but I don’t understand how it works. Can anyone help me?…
-
4
votes3
answers8272
viewsHow to call external command with Python?
How can I call an external command in Python, as if it ran in the Unix shell or Windows prompt?
-
4
votes1
answer85
viewsProblem in Mysql query
I’m having a problem with a Mysql query. In it I have 3 tables I need to cross: Table "drawing": id concurso_id customer_id Table "competition": id titulo criterioDiasCorridos criterioNotaMedia…
-
4
votes3
answers176
viewsHow to work with tests and fixtures in a bank that contains foreign key constraints in Rails?
I am using Rubyonrails 4.1 and Postgresql database and use the Gem Foreigner to create foreign key restrictions in the bank. It turns out that this makes some tasks with fixtures. When I try to run…
-
4
votes1
answer329
viewsPointer of struct in C
What happens is this, within the function ins_ult() I can change the value of root->data, but outside the function the value remains NULL. I’m passing the parameter the wrong way or using the…
-
4
votes1
answer2484
viewsDefault prompt opening directory in Node.js
How do I make Node.js always open in a directory that I want? I’m new to this technology. I wanted to know how to change the standard path opening, because currently it always opens in…
-
4
votes3
answers1517
viewsHow to use Skip and Take with Pagedlist Helper
I would like to make the pagination, but using Skip and Take on my LINQ not to fetch all results. Currently my code is like this: public ViewResult Index(int? page) { var grupos= from s in db.grupos…
-
4
votes1
answer11438
viewsUser root mysql without permission
I’m having a problem changing permissions of users in mysql with the root user in Debian. I can access normally through the terminal: $ mysql -u root -p So he asks me for the root password, I put…
-
4
votes1
answer937
viewsProblem with 8 digit hexadecimal colors - Android
I am working on an app where I am trying to follow Google’s Material design guide. On this page, it is recommended to use the black color (#000000) with 87% opacity as the color of the main texts.…
-
4
votes2
answers756
viewssetInterval 5 seconds locking browser
I am developing applications using jQuery/Ajax and it has to refresh page 5 in 5 seconds, it works. But if I start using the application the browser starts crashing because of the code, how to fix…
-
4
votes1
answer974
viewsHow to call the modal window with parameter in bootstrap?
I would like to know how I can call opening a modal window in the bootstrap by passing a parameter. The idea is to open the inserted item of the invoice to edit the quantity.
-
4
votes2
answers1514
viewsView Razor to PDF
I need to convert Views of my MVC 5 application to C# using Razor to PDF. I already searched, and the free tools depend on iTextSharp, which I searched for has a different marking. But I need to…
-
4
votes1
answer358
viewsDebug javascript Visual Studio 2013
I need some help please. Next I had a machine with Win 7 32bits and I was able to debug the normal javascript in Visual Studio 2013, put the breakpoint and it stopped pretty. Then I switched to Win…
-
4
votes2
answers576
viewsHow to create 1-N class relationships with more than one property and even subtype?
I have the following class structure, unconventional but it’s in the mold that I need to solve my problem: Tree: public class Arvore { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)]…
-
4
votes2
answers801
viewsHow to change the value of a property given its name
In my program I have some classes where data is stored. For example Class1.alfa.dado = 66; Class1.beta.dado = 56; Class1.gama.dado = 37; The user will select in a Combobox one of the options you…
-
4
votes1
answer165
viewsSave table value
I would like to save the value assigned to a table in real time, I will explain. I have 2 files: Main moon. dofile("tester.lua") io.write("blabla") table.insert(oi, io.read()) print(oi[1]) io.read()…
-
4
votes1
answer128
viewsDistant relationship with Laravel
I have this table structure and would like to know if who posted the thread or the reply is Member or moderator, but I couldn’t structure a relationship that works, someone can help me? forum id -…
-
4
votes5
answers1501
viewsHow to take the name of the variable used in the function argument?
Script1.php Here script1.php calls the function that is in script2: sendData($variavel); Script2.php The function takes the value and includes script 3 to receive argument values: sendData(){…
-
4
votes2
answers12072
viewsTake the value of an input with javascript
I’m making a dynamic table where the data comes from the database, and the user has the possibility to edit this data. This data coming from the bank is inside <div>. Next to these dice is a…
-
4
votes1
answer108
viewsProblem in Context and Sharedpreferences on android with service
I’m trying to create a service on android, it is ready however in running the application to. If I comment on the variables ctx and prefs, it works but I need them, can you tell me if there is…
-
4
votes3
answers29719
viewsHow to create a button(button) or a link(a) to download a particular file?
I need to create a button that when clicking is performed the download and not open in another tab or window. Can be any type of file both image, pdf, music among others.
-
4
votes1
answer11696
viewsHow to resume default settings in the Visual Studio editor?
Was using the Resharper in trial period and after the end of trial time I did not want to acquire and then uninstalled by Control Panel / Programs and Resources, as I found no option in the Visual…
-
4
votes1
answer3848
viewsCustom popup
I want to do a custom popup, similar to the one in the photo, putting a button to close at the top and it centered in the middle of the screen, anyone know how I do it? I looked for some codes, but…
androidasked 10 years, 2 months ago Gabriel Duarte 565 -
4
votes1
answer175
viewsProblem with echo` -e`
I’m starting to learn shell script and am doing some simple scripts to train. The script below tests whether whoever is running the script is logged in as root. # !/bin/bash # # This script test if…
-
4
votes1
answer311
viewsBootstrap organization and maintenance
I am starting with the use of Bootstrap with MVC 4 and during the planning I noticed that the main screen of the system will have many Divs. Many of them can be repeated (exactly the same) on other…
-
4
votes1
answer99
viewsmysqli_result Object ( )
I’ve spent the last three hours trying to find the error... maybe it’s sleep, but I’ll put my very complicated script so someone can shed some light. $query_passaporte = "SELECT num_compra,…
-
4
votes1
answer138
viewsSQL method for login
I have the following scheme: JdbcRowSet myrs = new JdbcRowSetImpl(); myrs.setUrl("jdbc:postgresql://localhost:9999/teste"); myrs.setUsername("postgres"); myrs.setPassword("");…
-
4
votes1
answer695
viewsFormat date in PHP
I need to show date in PHP in the following format: "Sunday, December 9, 2014" ? It’s got to be Bible time! If possible in Portuguese as well! EDIT: <?php setlocale( LC_ALL, 'pt_BR',…
-
4
votes1
answer263
viewsIntegration between Spring and JPA
I recently started studying one of the most amazing frameworks I’ve ever known, Spring. I always make good progress in my studies, I’m already studying the integration of Spring with data access…
-
4
votes1
answer2596
viewsCreating Automatic Tables by Hibernate
Good afternoon, I am trying to create the tables automatically, and I think I must be missing something. someone can help me? this is my line of code Java office. package br.com.teste; import…
-
4
votes3
answers2946
viewsDoubt with Javascript Replace
My situation: I have an input masked that way: 0,0000 %. However, to be able to validate as desired, I need to use a replace, changing the comma by a point, removing the % and then treating the…
javascriptasked 10 years, 2 months ago Victor Alencar Santos 476 -
4
votes2
answers466
viewsEdit categories and tags in the front end of Wordpress
I’m trying to put together a page for editing categories, tags and custom taxonomies via front end. However, now I cannot find the correct function to submit the update of the fields. The code so…
-
4
votes1
answer508
viewsDiscover an array key by the given value?
I wish that through a given value I could return the array key. Example: $array = array("primeiro" => 1, "segundo" => 2, "terceiro" => 3); to find out if the value exists in the array there…
phpasked 10 years, 2 months ago Thomerson Roncally 839 -
4
votes2
answers330
viewsHow is the find function implemented?
Unlike match() looking for an occurrence of a language y in the beginning of the string, the find() makes a quest for y inside that string. I could use the algorithm of Knuth-Morris-Pratt to search…
-
4
votes1
answer580
viewsTender relationship with a foreign key not mandatory
I have a database with three entities that relate: user, process and courses. The goal is to model the bank to meet the following requirements: The user can sign up for several selective processes…
-
4
votes1
answer121
viewsPerformance to Render ASP.NET MVC Pages
How can I have greater performance to render my pages using ASP.NET MVC ?