Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer451
viewsHow to adjust text around a 'div/image'?
I’m having trouble adjusting a text in a div who owns another div inside it, which sits at the top left. Below is an image that explains better what I am wanting to do, I hope you can help me. Thank…
-
4
votes1
answer1358
viewsAllow to display my wordpress site in an iframe on another site
Hello, I have a wordpress site that would like to show one of the pages in an iframe on another site, is it possible to do this? At the moment doing the iframe on another page seems to me the…
-
4
votes1
answer51
viewsUnsigned modifier for integer type in C
The works say that this modifier causes the variable not to accept negative values, but when I compile this code: #include <stdio.h> void main() { unsigned int idade; idade = -3; /* Não existe…
-
4
votes1
answer84
viewsDoubt about the theoretical part of web services
Hello, folks. I’m studying the web services part and I’m a little confused with the theoretical part. I was reading the article on this site…
web-serviceasked 8 years, 1 month ago postgisBeginner 143 -
4
votes2
answers97
viewsHow to bring an item list
I need to bring up a list of ITEMS, with only the Order id. The way I do it is this, but it brings me only one Item, I want to be able to bring all the items I have, with the Order ID. var…
-
4
votes1
answer88
viewsDoubt with scenes (Scene)
I’m starting to use scenes in my application, and I’m constantly having the same problem, but now I couldn’t solve. So I have 2 scenes, and in the onCreate I take my views, for example: editText =…
androidasked 8 years, 1 month ago hugofsousa 608 -
4
votes5
answers2081
viewsHide the last 4 numbers from a string
I have a string of value 187.10.61.291, I want a function that takes the last 4 numbers and turns into *. Example of expected result: 192.1**.*.* or 192.16*.**.* or 192.168.***.* or 192.168.**.**…
phpasked 8 years, 1 month ago Gustavo Dias 460 -
4
votes1
answer303
viewsVariable that changes according to the button pressed
I have two different methods on two different buttons. the Method onE adding up 3 the variable and the Method onM that takes -1 variable. The problem is that when I put this variable to appear in…
-
4
votes3
answers2067
viewsconvert integer to decimal in jquery
I need to convert for example the value "025" for "0.25" or "005" for "0.05": I’m trying to do it this way: var valor1 = $("#ValorDesconto").val().replace(/[^\d]+/g,'');…
-
4
votes5
answers3789
viewsNPM does not continue package installation
I’m trying to install a simple package with NPM, but the installation doesn’t start, always stops at the same place. C:\Users\Gabriel>npm install -g luaparse --verbose npm info it worked if it…
-
4
votes1
answer306
viewsAdjust Alertdialog with Open Keyboard
I have the following problem I have a Alertdialog When the keyboard is opened, the dialog goes up, but part of the dialog is hidden.. it does not adjust the height as per keyboard XML dialog:…
-
4
votes2
answers419
viewsWrite access log to ASP NET MVC application
I have an ASP NET MVC site and I need to record it in the database every time someone accesses by recording the client’s IP and access date, is there any way to do this? I don’t want to record every…
-
4
votes1
answer469
viewsHow to save in 2 tables at the same time
Hello, I would like a help. I have this method to save the data in two tables. public void SalvarLocacao(Carrinho carrinho, Locacao locacao) { Item items = new Item(); foreach (var item in…
-
4
votes1
answer580
viewsLine break with <br> tag causes spacing in PDF generated
When converting html to pdf using Flying saucer in java, the following failure occurs in the pdf file; a spacing between the last sentences, before the line break of the paragraph. This gives the…
-
4
votes2
answers472
viewsMVC and DAO - Data Rules
In a CRUD where at the time of registration it is necessary to verify if a certain field already exists in the bank, in order not to allow duplicate registration, this rule of verification must be…
-
4
votes1
answer94
viewsBetter formatting of xhtml files
Given the excerpt from my archive .xhtml: <h:panelGrid id="camposPesquisa" columns="2"> <h:outputLabel value="#{msg['nome']}: " /> <p:inputText value="#{naturemb.arg}" />…
-
4
votes1
answer74
viewsIs there Smtpclient.Timeout with infinite value?
Is there any way to put SmtpClient.Timeout with the infinite value? If so, how?
-
4
votes1
answer86
viewsError while Browsing Web Wervice
I am doing a query of customers in a web service, step the key to see what it returns me tells that I did not pass the key, what I may be doing wrong in the method? That’s the .xml of consultation…
-
4
votes1
answer90
viewsHow to list products from a single restaurant?
I registered my products in a particular restaurant. Being Restaurant(1) and Products(N), I have several products registered in a restaurant. How do I list these products for each restaurant? This…
-
4
votes1
answer239
viewsHow do I get rid of these warnings
I’m doing a program that hunts a word from a matrix. For this I made 8 functions that sweep in all regions, as I need to return in the output the coordinates of the first and last letter. For…
-
4
votes1
answer808
viewsSelect to compare value sets from columns of two tables
Sirs, First, I have 2 tables Table 1: ID L1 L2 L3 L4 L5 ------------------------------------ 1 a c e g i 2 a c d g i 3 l n p r t Table 2: ID L1 L2 L3 L4 L5 L6…
-
4
votes2
answers657
viewsHow to list NULL on a LEFT JOIN even if it returns joins?
The situation found was that: I am making a junction between representatives and sellers, and in another situation this junction is made with another sales. There are sales without sellers but are…
-
4
votes2
answers907
viewsHow to work with lock in SQL records?
I’m studying best practice to work with lock of records. What I mean is, I have several tables that can be accessed by several users simultaneously, but if any attempt is made to edit the record,…
-
4
votes2
answers317
viewsCatch string between bars
I need to get the string inside the last two bars (heDA6Yu7hsc) with javascript. How to proceed? https://i.ytimg.com/vi/heDA6Yu7hsc/img.jpg
javascriptasked 8 years, 1 month ago Thiago 901 -
4
votes3
answers11041
viewsPrinting text file on thermal printer with Printdocument?
I am developing a system in Winforms with C# and now I need to generate a sales receipt coupon and print on a thermal printer. I’ve been reading about Printdocument but can’t find examples of how to…
-
4
votes1
answer192
viewsWhat is the difference between using Arrayiterator vs Simple Array?
Some examples on the net with ArrayInterator is used in the following ways:: $arr = array("Banana", "Abacaxi", "Abacate", "Morango"); // loop through the object foreach (new ArrayIterator($arr) as…
-
4
votes2
answers137
viewsIs it possible that a class attribute is the class itself?
I’m starting to learn C++ Object oriented, and I have to make an algorithm using chained lists. In C, I used a structure that had as one of the attributes a pointer to the structure itself. I wonder…
-
4
votes2
answers84
viewsHow to list bookings registered by a single administrator? (1:N)
I register my attributes from the Reserve class, logged in as an Administrator. I would like to know how to list these registered reservations, by a specific administrator? Example: Administrator 1,…
c#asked 8 years, 1 month ago Allan Fernandes 129 -
4
votes2
answers725
viewsput a materialize inline list
I’m trying to put the list of social media icons inline on my footer, but I’m not succeeding. Does this change have to be done directly in the css of materialize? Follow code attached to help. Thank…
-
4
votes1
answer564
viewsWhen should I use mipmaps?
After Google started adding Mipmaps I ended up not researching exactly why. Even with this addition, it does not prevent anything from using the Drawable as before. Before res/…
-
4
votes1
answer112
viewsPush Notification Amazon SNS - Message cut
Hello, I’m using Amazon SNS to do push shots through C#. On the Android device, the message is cut in a row, and when you click on it, the application is redirected directly to the application. But…
-
4
votes3
answers2308
viewsFormat double output with dot instead of comma
I have a collection of coordinates to popular the Peater, with city name, latitude and longitude. .aspx <form id="form1" runat="server"> <div id="repetidor"> var markers = […
-
4
votes1
answer154
viewsInteger overflow in R
I’m working on a population dynamics simulation that involves generating whole numbers. Due to the hypotheses of my model, I am generating random numbers through the function rmultinom R. However, I…
rasked 8 years, 1 month ago Marcus Nunes 17,915 -
4
votes1
answer747
viewsSilent installation of Postgres and creation of the installer base
How I can embed the Postgresql database in my Winforms system installer? I can even put it as a prerequisite to install before system binaries, however I wanted to do a silent installation. I would…
-
4
votes0
answers286
viewsWhy (0.1 + 0.2) + 0.3 is different from 0.1 + (0.2 + 0.3)?
Javascript (0.1 + 0.2) + 0.3 results in 0.6000000000000001. Already, 0.1 + (0.2 + 0.3) results in 0.6. Why? In the snippet, you can see that this "inconsistency" does not happen when we add other…
javascriptasked 8 years, 1 month ago Jéf Bueno 67,331 -
4
votes1
answer3647
viewsIf Boolean('0') is true and Boolean(0) is false, why is '0' == false true in Javascript?
Why in javascript Boolean('0') is true, Boolean(0) is false, whereas when comparing '0' (a zero alone in the string) with false he returns true? Why would you behave? Example:…
-
4
votes4
answers7723
viewsCheck for number in a string
I need to do several validations in my form, and one of them is to check if the name entered contains number somewhere in the string whether at the beginning middle or end, I already tried to use…
phpasked 8 years, 1 month ago Gabriel Longatti 559 -
4
votes1
answer121
viewsHow do I get Exception Mongoid::Errors::Documentnotfound released on Mongoid
I’m trying to do a test similar to the one below to capture the Exception of a non-existent document expect(Produto.find('57e2bf76ce222fd11258cd4e')).to…
-
4
votes1
answer57
views"illegal start of Expression" when compiling on CMD
I have the mini program, which I will show you next. When compiling at the command prompt, I got an error on line 47 which says: illegal start of Expression I have in the program a list of entries…
-
4
votes1
answer76
viewsIs it possible to delete "C:" using Directory.Delete?
Using Directory.Delete("C:", true) deletes partition? Or it is just locked and does not run?
-
4
votes1
answer813
viewsErrors when connecting to gmail SMTP using Phpmailer
Hello, I am trying to email using Phpmailer but am having some errors. First errors with the SMTP class not located. I found that I need to create a require for aruqivo Phpmailerautoload.php in my…
-
4
votes1
answer2826
viewsHow to update a DIV with Ajax/JS?
I am in the development of a page, but I am completely secular in the matter of JS... The site has the div with the ID #content, and inside it a refresh button. How can I make it so when someone…
-
4
votes1
answer38536
viewsHow to take the blue color out of links by ultializing CSS?
My teacher asked me to recreate the pages of G1, Globe Sport and Walmart. He wants the links "dead, so I use the <a href="#">. The problem is that there the contents of a turns blue, and the…
-
4
votes1
answer506
viewsI cannot insert into Mongodb using Java
I’m new in Mongo, I’m trying to make an Insert in the bank but it’s a problem when inserting import com.mongodb.BasicDBObject; import com.mongodb.DB; import com.mongodb.DBCollection; import…
-
4
votes1
answer865
viewsHow to use natural language processing in Portuguese with C#?
I need to find names of people and organizations in the text. I found that I need to use natural language processing for this, but I was only able to implement it in English using Stanford NLP for .…
-
4
votes2
answers2344
viewsHow to print directly without opening the browser dialog box?
I am developing a web system where I need to print a label and a non tax receipt after sending a certain form. To perform this action, I have two printers: Matricial MP-20 MI Non Tax Printer - For…
-
4
votes2
answers420
viewsStore New Value by Updating Old Value
Can someone help me with a PHP and MYSQL function? Today I have a view for Expense and Revenue Launch. I also have a box, which, when I launch an Revenue,the value is added to the box and when I set…
-
4
votes4
answers539
viewsPick up word in the middle of a text
I need to take the word pdf tutorial. that is in the middle of the link. This word will always change according to the file that is selected. <a…
-
4
votes0
answers81
viewsHow to load Flaskbb with Nginx?
I followed the documentation and installed everything without problems, but Nginx only shows his default page warning that it is running. The flaskbb forum never loads. I tried to remove import from…
-
4
votes1
answer4360
viewsHow to remove the UNIQUE KEY attribute from a column in Mysql?
I created a table in Mysql that uses a column called loja_num with the attribute key dish UNIQUE KEY loja_num (loja_num, But now, I would like to remove this attribute from this column. I have…