Most voted questions
150,413 questions
Sort by count of
-
5
votes2
answers928
viewsBest practices in the interaction between Activities
I’m developing an app just to validate the interaction between activities through intents. I created 5 ImageButton with an image for each one. Each button represents a movie and if the user clicks…
-
5
votes3
answers3063
viewsCheck whether "1" list value contains "2" list
I have two lists: track_list = ['iphone 6', 'iphone 5', 'moto x2', 'galaxy s6'] tweets_data = ['Eu queria um iphone 6 sérião', 'nao gostei do moto x2', 'iphone 5 é coisa do passado'] I want to check…
pythonasked 9 years ago Lucas Silva Simão 53 -
5
votes2
answers1574
viewsIs there any way to configure the image quality to increase the upload speed?
Is there any way to leave a particular image, through CSS, with a lower quality, to increase the page loading speed? Example: First load a certain image with lower quality, then increase the quality…
-
5
votes1
answer677
viewsHow to modify VBA function to write a number greater than 1 trillion in EXCEL cell?
In 2013 a user sent a question about how to write out a number stored in an EXCEL cell. One of the answers contained a VBA function that had already been published by UOL for some time. I consider…
-
5
votes3
answers2040
viewsCheck if a record was deleted when running DELETE query
I’m making a simple PHP code to delete database email, only I need to use one if and else if a given action occurs. If for example, deleting an email shows a particular message, or if you do not…
-
5
votes2
answers540
viewsHow do I exit a loop by typing a specific value?
I need to make a program that multiplies the numbers informed by the user, and when it reports 0 (zero), the program shows the multiplication of the numbers typed. However, I am in doubt of how I…
-
5
votes1
answer219
viewsHow to simplify code with Foreach List?
How to use the ForEach() of List in the implementation below using System.Collections.Generic; public class Program { public static void Main() { List<Pessoa> pessoas = new…
-
5
votes1
answer1179
viewsError entering data into database, EF 6
I’m trying to input data into the database, but I have a mistake in doing the saveChanges(); after doing several times the context.add(), has happened after 500, 2200 and 5500 times. Error: The…
-
5
votes4
answers4010
views - This error appears between the <body> and gives space difference
How do I remove this error? Is causing spacing in the site header.…
htmlasked 9 years ago Sr. André Baill 6,946 -
5
votes2
answers157
viewsWhat’s position on Sqlserver?
I have a question. I received the layout of a table containing: Nome do campo | Tamanho | Posição | Tipo The Position contains: De | Até And one of the fields is: Histórico ( no caso da Posição ):…
-
5
votes3
answers833
viewsWith the ninth digit on the phones, how can I solve the problem of displaying 8-digit phones?
This was a question that came to me with the news of the ninth digit in the phones here in Brazil. I have in the system a list of phones that are saved along with the DDD. How could I do for an…
-
5
votes2
answers463
viewsToggle text and class of a link when clicked - jQuery
I’m trying to make the delegation an event click There is a link within a table, how this jsFiddle example shows: The result obtained as you can see, is: By clicking on the link "Activate", the…
-
5
votes1
answer9035
viewsName the tab as the contents of a cell in Excel
How do I put the tab name equal to the contents of a cell? For example, if cell content A1 for 01, the name of the guide is 01 also.
-
5
votes1
answer65
viewsHow to use Bitconverter.Todouble bytes
I have an interface that sends a reference value to a microcontroller. I need to send the values in bytes because these values will be saved in the memory of the microcontroller. On the interface,…
-
5
votes2
answers419
viewsIs it possible to restrict access to variable information with Angularjs?
Hello, I am new to development and would like to know if there is any way to hide information from variables in Angularjs , I am using a Mongolab API and did not want to make my apiKey visible to…
-
5
votes1
answer548
views9 Type and Count Lines via Regex Notepad++
First doubt: How to convert a phone book that is in format: 1188888888 1288888888 3188888888 1187877766 for: 11988888888 12988888888 31988888888 11987877766 via Notepad++ regular expression? Or…
-
5
votes1
answer396
viewsMigration dbExpress to Firedac
I’m migrating a system dbExpress to the Firedac, the system is in three layers (multtier), changed the components on the server side of SQLConnection for FDConnection, and the SQLDataset for…
-
5
votes1
answer8555
viewsDoubt in the relationship of Mysql Workbench tables
Hello, I have a small problem creating a database. My goal is to create a table to mark the attendance of people in the classes of the courses in which they are enrolled. The presecas table must…
-
5
votes2
answers184
viewsError while trying to run the project in Meteor
Being brief, I’m not getting to run my app on Meteor. I create the project normally Content create nameProjet but when it’s time to roll (command "media") he does not present http://localhost:3000…
-
5
votes2
answers2993
viewsEliminating Double Lines from a Data.Frame
I have a data.Frame with the following behaviour: values ind 1 10.82000 2011-01-03 2 11.75000 2011-01-03 3 10.82000 2011-01-03 4 11.75000 2011-01-03 5 10.82000 2011-01-03 6 11.75000 2011-01-03 7…
-
5
votes3
answers6934
viewsSymbol "->" in php
When I used Phpmailer I used (without knowing why) the symbol "->" in $mail->AddAdress(..., for example. Now removing a doubt in W3schools (http://www.w3schools.com/php/php_mysql_connect.asp)…
phpasked 9 years ago Enrique René 403 -
5
votes1
answer608
viewsHow snow and particulate texture is created in the Unreal engine 4
I am trying to create a map where it is full of snow, however, I could not find any tutorial in Portuguese, or even a tutorial in English, which is very explanatory. I intend to put snow particles…
unreal-engineasked 9 years ago Victor Hugo 51 -
5
votes2
answers7523
viewsconio. h library in C language for Ubuntu
I’m programming in C on Ubuntu’s Codeblock. I am trying to add a library conio.h. During several researches I found a site that for the sake of incompatibility in Ubuntu with the conio library. h, a…
-
5
votes3
answers1301
viewsMove folder/files between repositories without losing Change history
Context: I have a versioning environment in Mercurial using Tortoisehg for viewing and commits and files. I want to move a folder from one repository to another and without losing change history,…
-
5
votes2
answers145
viewsChild references and service Pattern
A widely used Pattern in DDD, is the service pattern. My question is, where is the logic for references "daughters"? For example, a use case, Pedido who owns Produtos public class Pedido { public…
-
5
votes1
answer1759
viewsCenter element in the middle of two float elements
I am developing a site that, in a given DIV, has three elements with defined width and height. These three elements are stylized according to the following rules: .blocks-h{ width: 320px; height:…
-
5
votes1
answer1147
viewsHow to query in Manytomany tables?
I have two tables/entities in the database with the following attributes: Car (code, plate, color) Acessorio (code, description). public Carro buscarCarroComAcessorio(Long codigo) { return (Carro)…
-
5
votes5
answers446
viewsHow can I capture a favicon from a site via PHP?
I upload an external content from a website and then import it to the DOMDocument. Currently, I can capture tag information title easily. I do so: $dom = new DOMDocument();…
-
5
votes2
answers536
viewsUsing Animate() jquery to animate the place change in a puzzle
https://fiddle.jshell.net/sLa0q4yh/ This example above is not yet fully functional, the logic of the puzzle is: 1 - Click on at least two Ivs (or 2 pieces of the puzzle) and so both Ivs would have…
-
5
votes1
answer1484
viewsError connecting to SQL Server using Codeigniter
I have an error when connecting the database in my Codeigniter project, I am using SQL Server. $db['sql'] = array( 'dsn' => 'DRIVER={SQL Server}; SERVER=HOSTPT-01407; DATABASE=localidade;',…
-
5
votes2
answers676
viewsHTML element inside an Actionlink
Hi, I was wondering if it is possible to create an HTML element inside a ActionLink, for example: To create a link in a menu with ActionLink: @Html.ActionLink("Classificação Financeira", "Index",…
-
5
votes2
answers3335
viewsSelect with angular loading blank value
Well I want select to start with a selected value, this value already comes in my ng-model: <label class="format">SELECIONE:</label> <span class="format"> <select name="grupo"…
-
5
votes1
answer453
viewsUse Node.js or PHP with Websockets?
Using Websockets for my project, at the end was an extensive project with thousands of lines of PHP code. As soon as I finished writing everything and "finish" I am told that running Websockets with…
-
5
votes1
answer233
viewsHow to test an Asp.net mvc controler using Moq and Entity Framework 6
My controller: [Authorize] public class DominioController : Controller { private IDominioDB _db; public DominioController(IDominioDB db) { _db = db; } // GET: Dominio public async…
-
5
votes1
answer59
viewsDoubt cast with pointer
while( ++idx <= fp_size) { byte current = buff[idx]; int integer = 0 ; short shortint = 0 ; if(idx < fp_size - 3) integer = *((int *))&buff[idx]; } What kind of cast is this *((int *))?…
-
5
votes1
answer654
viewsProblems in the SVN
someone has experienced this problem in svn I use SVN in linux and Tortoise in windows 10. Commit failed (details to follow): Não é possível mover 'J:\familia4\4r_sis\.svn\tmp\svn-4A465EB1' para…
-
5
votes2
answers18970
viewsHow does Hibernate.hbm2ddl.auto work?
What values can I use on this property? ex: Update <prop key="hibernate.hbm2ddl.auto">update</prop> How does it work? When should I use? is good practice?…
-
5
votes1
answer4635
viewsHow to resolve a "Catchable fatal error" error
I’m doing some object orientation exercises in PHP and when changing the database data, I come across the following error Catchable fatal error: Object of class mysqli_result could not be converted…
-
5
votes1
answer857
viewsHow to get the features of Android device
I am beginner in Android development with the SDK platform and would like to know how to get the user device features. Ex: IMEI, Android version, handset model, etc.
androidasked 9 years ago Adolfo Andrade 53 -
5
votes2
answers24321
viewsThe SMTP server requires a secure connection or the client has not been authenticated
I’m having the following mistake, working with SMTP and MailMessage in the C#: The SMTP server requires a secure connection or the client has not been authenticated. The server response was: 5.5.1…
-
5
votes1
answer2745
viewsR how to generate a time series?
I would like to know how to generate a time series of a file that has two columns (date and value), but the date is in the following format yyyy-MM-dd. When I use the ts() command, it replaces the…
-
5
votes3
answers2000
views -
5
votes1
answer765
viewsWhat is the difference between Web Service and Application Service?
Searching on the Web Service, I asked on a topic on the subject, as link below: Question: What is a Web Service? However, a question was raised about the distinction of Web Service and Application…
-
5
votes3
answers9191
viewsWhat is a Software Artifact?
In Software Engineering, much is heard about the term Software Artifact. I researched about it and found the following definition: An article or artifact is one of several types of by-products…
-
5
votes2
answers108
viewsPHP Ordination
I have a PHP code that pulls an XML and plays on the screen but I would like it to run in random order and not the order that is in XML. That’s possible? Code I’m using. PHP $xml =…
-
5
votes4
answers205
viewsHow do you round it up in PHP?
What is the function of php to round up? Example: 1.1 move on to 2…
-
5
votes1
answer254
viewsHow to set the path to access files on procedural system
I’d like to know how to use the path in a procedural system, the correct way to define the/the paths, and to access the files, and what is most important to know about. Researching I found more…
-
5
votes3
answers16389
viewsHover effect on one element affect another
I wonder how I can make the event :Hover in one element take effect in another... I have the following code: <ul> <a href="#"> <li> <div id="search-image"><img…
-
5
votes2
answers122
viewsHow to store form data in 2 different databases?
I have a form that data needs to be saved in a local bank and another database on a server. Is there any way to do that without duplicating the "Insert" code? In the connection file I configured the…
-
5
votes2
answers182
viewspreg_split is not breaking the strings in the array
I’m not getting to use the function preg_split() correctly. I’m trying to break a string array() via regex but it’s not happening. $string = "<:termo.9:><:termo.10:><:termo.11:>";…