Most voted questions
150,413 questions
Sort by count of
-
5
votes3
answers446
viewsHow to write and appear somewhere what I wrote
Well, in the sites nowadays are found some things that I can not explain, for example, think of a form asking your name, you fill in, and at the same time appears on your name, as if you were typing…
-
5
votes3
answers899
viewsConvert data c#
Good people I’m having a problem with my code. I in my database have a field like date Only that after calling him to the program he also passes me the time , is something of the genre: 18-03-2015…
-
5
votes3
answers2023
viewsIs there a nomenclature standard for enums?
I don’t know much about object naming patterns. I’m creating a enum who lists positions, for example: manager, programmer, attendant... There is a pattern to name this Enum? EnumCargo, CargoEnum,...…
-
5
votes1
answer2999
viewsCreate button via code
It is possible to create a Button through code, rather than design mode (xml)? For example: I will create a screen with a EditText, enter a number, and click on a Button. After that, it will be…
-
5
votes2
answers1570
viewsWhat is this __php_incomplete_class?
I always end up discovering a lot of crazy in this language that I love: PHP! What would be this mysterious class __PHP_Incomplete_Class? I "found" her accidentally, when I gave a…
phpasked 9 years, 3 months ago Wallace Maxters 102,340 -
5
votes2
answers4997
viewsWhat are the differences between __autoload and spl_autoload_register?
In php, we have two methods of making one autoload class: __autoload function Example: function __autoload($class_name) { require_once $class_name . '.php'; } $obj = new MyClass1(); $obj2 = new…
-
5
votes1
answer9051
viewsWhat are the SQL Server Express and Mysql limits?
What are the limits of SQL Server Express and Mysql? How many bases are possible? What is the size of each database? The size of the index files?
-
5
votes2
answers661
viewsWhere to create macros in C?
In terms of good programming practices, if I want to create a macro, for example, a macro that has about 30 lines of code, I should implement it in the archive .c or in the .h? What is good…
-
5
votes1
answer149
viewsChecking string inside string
How to know if a specific text is contained in a string? example: String str = " Hello Word"; How do I check if the word "Hello" is contained in that string "str". And if the check is true, how do…
-
5
votes1
answer6374
viewsPython 3.4 and Python 2.7: How to remove the preinstalled Macbook Version?
I am currently migrating from a mac to a Windows and today I discovered, when installing all the resources I needed, that there was already a Python 2.X in it and I need to run Python 3.4.3. How can…
-
5
votes2
answers1522
viewsHow to read data from txt files using Java?
Is there any mechanism to store the data of a file in a Linkedlist .txt? For example, how would this list have as elements the strings "Caio", "Pedro" and "Luiza"? import java.io.*; public class…
-
5
votes2
answers60
viewsSlides conflicting with each other
I have the following problem I have a slide right at the beginning of my tag page <header> but one of their codes is imported that would be the url put now in my <section> I have one…
-
5
votes4
answers13756
viewsSort List in java
I have a List<Pessoa> where the attributes of the object are: Name, age, address, etc. I have a screen where I insert people in this list and I submit a report, I would like to display this…
-
5
votes1
answer1536
viewsHow to get started with Webrtc, I’m lost
I need to develop a simple project: link between points that share video and audio (video called in case), simple, only in theory. I started researching the subject and I’m completely lost, there is…
-
5
votes1
answer13715
viewsUndoing a pull in Git
I have a project and at the moment I have 3 branches, the master, one dev and one that I needed to create in parallel to the dev for a funcionalidade the part, so far no news, my problem was that…
-
5
votes3
answers11756
viewsChange format of a date from yyyy-MM-dd to dd-mm-yyyy
I have a dataTable where I display some data but the date is coming in format yyyy-mm-dd how do I change the format of this date so that I can display it correctly in my dataTable? And where do I do…
-
5
votes5
answers3255
viewsCarrousel in php and mysql
I have an "upload of files" and I needed to show them on a Carousel. The image path is stored in the database and the images in a folder, of course. I have the following code: <div…
-
5
votes2
answers305
viewsWhy is this Resultset returning null?
If I run a query in the database returns result, however, when running java code, assigning the result to a Resultset, the same appears to be empty. You can help me? PreparedStatement ps =…
-
5
votes2
answers398
viewsGlyphicons with error when publishing to IIS
I’m developing an application with Asp.net-mvc-5 and Bootsrap 3.3.5. In the visual studio, it works perfectly. However, when publishing the application in IIS 8, the bootstrap-glyphicons appear with…
-
5
votes1
answer2036
viewsWhat type should I use to save only the time (no date) in a database?
I am in doubt which type I should use to work with hours on my system. I should use DateTime, Time or TimeStamp. I would like the hours to be saved in this format: HH:MM…
-
5
votes2
answers2330
viewsRegistration lock
How could I lockar a record in Mysql? For example, I have a record that is being accessed by the user 000, and I want to lock this record so that users other than 000 cannot access it. That is…
-
5
votes2
answers209
viewsCreate Fibonacci in a linear function with delegate
Using a list for the Delegate(I learned it’s called linear function, is that right? ) I decrease the list to get the respective values, but I can’t do a simple arithmetic operation with "X", because…
-
5
votes2
answers1800
viewsHow to return Activity call data to the one who called it?
I saw several examples of passing data between Activity of a Textview receiving data from a Edittext. Which is the best way to do the reverse, I explain: I have a reader that reads a barcode and…
-
5
votes2
answers1314
viewsConfigure the compiler output path in Netbeans
Would anyone know how to configure in Netbeans, so that when I compile a project, it manages the executable in a given folder? In the project properties, you have the binding option, which I believe…
-
5
votes2
answers2674
viewsGenerate PDF with Jasper and download without storing it
I’m generating a PDF with Jasper, I’ll show you how it’s being done. I’m saving it on disk, storing the path in the bank and then downloading it. I would like to know how to make so that the moment…
-
5
votes1
answer310
viewsData link in SQL
I don’t really know almost anything about databases and the like, but I’m doing an "admin" system here for a client and I wondered about the following point: I have two tables, one that saves the…
sqlasked 9 years, 3 months ago Backend FG1 51 -
5
votes2
answers9506
viewsHow to connect PHP to Sqlserver via PDO
I’m using the following code: try { $con = new PDO("sqlsrv:Server=172.20.21.193,9090;Database=sgt","deb","123123"); $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch…
-
5
votes1
answer95
viewsClosure Compiler JS - CSS Transform into a Bulk Process
Google has two tools for compilar/minificar optimizing the files JS and CSS, Closure Compiler JS and Closure Compiler CSS. To perform the compilation process I can do as follows: java -jar…
-
5
votes2
answers2726
viewsSend Whatsapp message by link on the site
I would like to know how to send a message by a link to a certain number. I have already managed to Android, but for iPhone doesn’t work. Link: <a…
-
5
votes2
answers1027
viewsStart app with splash screen image
I want when my application was started, an image would appear and then open the application itself. Similar to the Youtube app that when starting, a picture of the Youtube symbol appears and then…
androidasked 9 years, 3 months ago Pedro Lucas 51 -
5
votes2
answers2303
viewsHow to modify the HTML document via an extension?
I would like to make a button appear on the site I developed, but only for those who have the extension. I have the CSS, HTML and Javascript codes to generate the button. The functionality of the…
javascript google-chrome-extension firefox-extensionasked 9 years, 3 months ago chocolatemontana 573 -
5
votes1
answer713
viewsCMD, Console, MS-DOS and related terms
Well, you have embarrassed all the concepts that I’m going to list below, and I would like to present the definition of these terms, maybe some are synonymous with others and others are totally…
-
5
votes1
answer324
viewsAlgorithm Complexity Analysis
A professor at my college passed an exercise to analyze the temporal complexity of this algorithm, but I’m not getting it at all. Someone knows how to give me a light on how to separate the…
-
5
votes1
answer182
viewsJsonexception being launched in Twitter search - Java
I have an algorithm that does a search of old tweets on Twitter. The application worked normally for a few days, but out of nowhere it started to throw an exception. Code: public static…
-
5
votes1
answer104
viewsHow to read, search and change file by bytes?
Does anyone know how to find more bytes after I found the byte sequence of my variable? for example: in the file will look like this: 6261725610 I’ll look for that: byte[] findBytes = { 0x62, 0x61,…
-
5
votes2
answers320
viewsClick and "Decrypt" on jquery button
I have a Button created only in HTML and CSS, and I need that if someone click on it, a block <div> alter your background-color. With that maybe: $(document).ready(function(){…
jqueryasked 9 years, 4 months ago Danillo Eder 605 -
5
votes2
answers839
viewsWhat does Java FE and BE mean?
I’m starting with the Java language and today I came across a text mentioning Java (FE and BE). What do these acronyms mean?
-
5
votes1
answer502
viewsConvert svg to png java
I am trying to perform an SGV image conversion to PNG, but am having some problems. My code: String svg_URI_input = Paths.get("/home/ivan/Documentos/imagem/Svg2.svg").toUri().toURL().toString();…
-
5
votes1
answer422
viewsHow to create a sign-up page using JSF + Spring
I am creating a user registration page but am finding the following error: type Exception report message Unable to create instance for class: managedBean.Cadastrobean. Description The server…
-
5
votes0
answers180
viewsQcamera Windows "failed to start"
I made an application with QT where I make the instance of a Camera with QT and display it in the window. So far so good, the problem is that when I want to display it in another window (Qdialog) I…
-
5
votes1
answer1813
viewsHow to read whole numbers with Scanner and handle invalid entries
I have the following program, where I need to read a whole, print it out for the System.out However in my code, I want that when the program receives an invalid value as a String, I report the error…
-
5
votes2
answers3481
viewsImage inside of round div
I have a div block with height and width of 55px and border-Radius: 100%; and I want to put an image inside, but if the image is rectangular and I leave it with border-Radius: 100%; it is oval!…
-
5
votes2
answers1265
viewsDaily Time Series Decomposition
I have a time series of daily flow data. I am trying to decompose the ST to remove trends and seasonalities. But when I use the function decompose the seasonality chart appears a black blur. QHE.ts…
-
5
votes3
answers1118
viewsKey capture
I’m developing a C-language cover game (gcc 4.9.2) to the Ubuntu terminal 15.04. I need to capture a key typed by the user so that he can change the direction in which the topsail anda (wupward, s…
-
5
votes1
answer679
viewsDoubt with mvc list editing, using checkbox and editable field
I’ve got a lot of doubt and I barely know where to start, so I’m going to go to college: I have a page cshtml (I’m using Asp.net-mvc). It has a list, assuming that the elements are A, B, C, D, E.…
-
5
votes2
answers232
viewsGet LUA IP address
I want to get the IP address through the LUA code. I have an example code that works but I get the IP from the LAN interface. local hote, _ = socket.dns.toip(socket.dns.gethostname()) How can I get…
-
5
votes2
answers5706
viewsPassword check
Hello, I’m starting to learn Javascript and I’m not being able to validate my code if there are 3 characters in uppercase, 2 numbers and 1 special character in my input. I would like to know what I…
-
5
votes1
answer19133
viewsHow to create a custom Exception/Exception in Java
Java, brings with it several ready-made Exceptions, Illegalargumentexception, Illegalstateexception, Runtimeexception, among others. Creating a Custom Java Exception? I have the following method -…
-
5
votes2
answers2326
viewsSet link image with Facebook Meta-tags Open Graph
I’m working on a blog of a friend of mine and when I open a post, copy the link and paste on facebook the first image that appears is her photo in another div inside the sidebar on the right side of…
-
5
votes1
answer1721
viewsCopy and paste Javascript command
I need to know how to give Ctrl c in the contents of a div when clicking on it. In this case it will have multiple Ivs, and it will take the contents of the div clicked. I found some things on the…