Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers5045
viewsHow to check in C if the file is empty?
Good night, I’m working with C, and it turns out I have a function or method that you have to print to a file the data, the meal appointments,. In the method the system has to check if that file is…
-
6
votes1
answer306
viewsC# application with Firebird connection error on Windows 7 32/64 bit with 2GB RAM
Hello! I am developing an application in C#, in which I have already installed it in several machines for testing with windows Xp, 7 and 8 and in all of them the application worked correctly, but in…
-
6
votes2
answers3179
viewsRead a received SMS
An App receives an SMS and from the text performs a function. For this it is necessary to read the SMS and make the comparison in the APP, but for this must read, word by word, line by line or make…
-
6
votes1
answer14394
viewsDecrypt db.crypt files
I wonder if there is any way to decrypt files with the extension db.crypt in general, on the Android platform and there is some API that does this work?
-
6
votes1
answer134
viewsAuthorization in class Ibraries
Doubt I’m with a project in which all business rule is encapsulated in a set of DLL’s with 3-layer architecture. I would like to know, what is the best approach to authorization control in these…
-
6
votes1
answer545
viewsGenericdao - Is that correct?
I’m implementing a simple GenericDAO as below, but I feel like I’m doing the wrong thing, it works but I feel like there’s something wrong anyway, could help me? I created an interface like this:…
-
6
votes1
answer650
viewsWhat is the difference between Getcurrentprocess and Getcurrentprocessid?
What’s the difference between the call GetCurrentProcess and the MainHandle defined below: var MainHandle: THandle; begin MainHandle := OpenProcess(PROCESS_ALL_ACCESS, false, GetCurrentProcessID);…
-
6
votes2
answers2114
viewsHow to perform an action when reaching a certain scroll height?
I have a function that every time I give scroll he calls a certain function, only I want to call him only once $(window).on('scroll', function(e){ //aparece segundo menu if($(this).scrollTop() >=…
-
6
votes1
answer134
viewsSwipeevent for Android app
I’m making an application to control the SwipeView but is working only the validations from left to right and right to left. Validations up and down up are not working. Could someone please help me?…
androidasked 10 years, 1 month ago Luiz Henrique Ugliano 651 -
6
votes4
answers3066
viewsHow to make a Hello World on ASP.NET MVC?
I already program but I’m starting with C# and ASP.NET MVC. I wanted to do a program Hello World and gradually add things as I’ve always done with any language I’ve learned. I thought creating a…
-
6
votes1
answer1432
viewsIs it possible to know how many customers are connected to Serversocket?
How do I see how many customers are connected to my ServerSocket java?
-
6
votes1
answer1230
viewsWhen using __constructor magic method or set and get
My doubt is with constructor relation, for example, I have a class with name, age. the correct is to use __construct to pass values to them or use set e get ?
-
6
votes3
answers1817
viewsShould I declare Get’s and Set’s at UML?
Every time I create a class UML I have to declare get and set for all classes that come to use them or can leave without, as if it were standard and everyone knew that they must implement them even…
-
6
votes1
answer460
viewsHow to use android project in Gradle in eclipse?
I’m willing to incorporate this project: https://github.com/shamanland/floating-action-button in my android app in eclipse, however I do not use Gradle. Is there any way to import it without Gradle?…
-
6
votes1
answer187
viewsI cannot display the SQL value
I am trying to start a connection to the Mysql database and it works, but when I ask PHP to display what is there nothing appears. It’s like the connection to the BD had failed. <?php //…
-
6
votes1
answer368
viewsDesign Observer applied to events
I’m studying design standards and I’m trying to apply a real situation to them. And one example I did was on the event stage: In this scenario every event has participants to register. So, for that,…
-
6
votes2
answers4042
viewsGet property values of a class
I have the following codes: private PropertyInfo[] ObterPropriedades(Type classe) { PropertyInfo[] properties = classe.GetProperties(); return properties; } private string[]…
-
6
votes3
answers134
viewsPrevent script from following symbolic links
With the script below, a search is carried out for all the accommodations in the indicated directory in order to obtain the email addresses associated with each accommodation: #!/bin/bash # Scan All…
-
6
votes1
answer915
viewsAssign an expression to a variable
In c++ is it possible to execute expressions within a variable? Ex(in Lua): n = math.random(9, 10) a = n .. (#tostring(n) > 9 and "-" or "--") print(a) If n were equal to 9 it would return: 9--…
c++asked 10 years, 2 months ago Gabriel Sales 1,257 -
6
votes1
answer1925
viewsHow to request a trial in the java android app?
What is the best way to request an android app review? Ex. if the user chooses to rate it is directed to make a review of the app in google play.
-
6
votes1
answer692
viewsRedirect all pages to HTTPS except one in particular
I have the following code on .htaccses to redirect the entire site to HTTPS: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://meudominio.com/$1 [R,L] However I would like to…
-
6
votes1
answer272
viewsInitialization of data of a class
Is there a class initialization function for C++? In Lua, using the library classlib there is the function __init, and in Python as well. EX: require "classlib" Human = class(); function…
-
6
votes2
answers189
viewslimit the for, php
Good is the following, I am generating pagination links to get more lightness in my system, the problem is I have many records in the database and this pagination generates many links, thus…
-
6
votes4
answers274
viewsProblem checking prime numbers
I have to create a random number array in a range from 0 to 250, and show which are the primes. This is my code: #include <stdio.h> #include <stdlib.h> #include <time.h> int…
-
6
votes1
answer1411
viewsHow to place variables within vectors?
How do I create variables within a vector? Something like: int arr[] = {int x=1, int y = 2};
-
6
votes1
answer935
viewsModular Programming
Something quite common in the development of systems for business and how to satisfy several requirements, being these requirements often not used by certain customers, such as when a sales company…
c#asked 10 years, 2 months ago Pablo Tondolo de Vargas 5,444 -
6
votes2
answers294
viewsI Can’t Make Reports
It’s not about how to do it. But I can not do everything because the Reporting that brings the report Viewer for drawing the report does not appear, I have tried to find it in several ways but it…
-
6
votes1
answer1189
viewsComparing Ides to java
Next semester I will have to choose between two Ides: Netbeans and Eclipse. I will need to develop desktop apps, and I’m having doubts about: Tools for graphical user interface Hardware Requirements…
-
6
votes2
answers335
viewsProblem retrieving inserted id
I created a register with some 58 data. As I was creating, I was testing and the data was entering the BD, and every time an insertion was made, I took the id of the last data set/group inserted.…
-
6
votes1
answer925
viewsSubtituition of special characters by ASCII codes
I’m getting a site buildable in charset ISO and when I step to UTF-8 the special characters appear on the screen with that diamond and a question mark, then in addition to switching from charset I…
-
6
votes2
answers934
viewsHow to create an index file using B+ tree
I have a B+ tree that acts as the index of a data file. This index must be saved in an index file. A struct node or node of the B+ tree is: typedef struct node { void ** pointers; int * keys; struct…
-
6
votes1
answer1204
viewsRedirect to a page by passing an object
I need to pass an object to a page. For example: I wish that the moment I redirect to a particular page that will present html, that in it I could recover this object and use whatever is in it.…
phpasked 10 years, 2 months ago Raphael Ribeiro 953 -
6
votes2
answers1259
views"Floating" sidebar inside an element when scrolling
I have a layout Bootstrap with a right sidebar and I need this "turn" (up/down) when doing scroll, but not above the header and footer. just "float" inside the div[role=main] My layout: My code:…
-
6
votes1
answer4666
viewsHow to save checkbox options in the bank?
I need to save the fruits and values in different fields in the bank" PHP: <?php session_start(); //if (!isset($_SESSION["usuario"])){echo "<script>alert('O SEU INGRESSO É…
-
6
votes4
answers3497
viewsHow to prevent the user to enter numbers for a given data?
How do I make my Java program not accept numbers as given by the user? I would like, in a field that requires the user name, if a number is inserted, such as a badge, make the program ask again for…
-
6
votes2
answers1179
viewsInsert image into SQL database SERVER2008 using image path
I’m starting in C# and I’m having difficulty inserting in a picturebox an image as in the image below: The screen above is a photo registration, and the search image button works, but I do not know…
-
6
votes1
answer1855
viewsEquation solving
I created a Cartesian plan and I get an equation from the user. My goal is to draw this equation in the plane. I’m doing this using canvas. Only here comes a problem, I can only do this if I…
-
6
votes2
answers350
viewsWhat is the purpose of unset as cast in PHP?
As of PHP 5, there is a way to cast in order to convert a certain value to NULL. Example: $teste = 'teste'; var_dump((unset)$teste); // NULL $outroTeste = (unset) funcao(); var_dump($outroTeste); //…
-
6
votes1
answer378
views -
6
votes4
answers1452
viewsIs there an event that captures mundanes the size of an HTML element?
I wonder if there is an event that captures changes in the size of an HTML element. For example, a div with 5000px height 4800px and the onresize() javascript does not fire. Is there an event that…
-
6
votes2
answers1238
viewsWhat is a "0" field in the SQL SELECT?
I didn’t understand the use of 0 in this code: SELECT substring ... 0 AS PARCELADO, ... FROM ... What does he do?
-
6
votes1
answer196
viewsWhether or not to "div" in the CSS
Should I or should I not inform the div in the CSS? Example: .teste {blablabla} div.teste {blablabla} HTML: <div class="teste">teste</div> I never inform, only that I was seeing the code…
cssasked 10 years, 2 months ago Felipe Viero Goulart 3,693 -
6
votes3
answers641
viewsHow to connect to Mysql only once, without having to instantiate every time?
How do I connect to Mysql only once, without writing it again in every function? Currently I do so: class Site { var $driver; var $host; var $dbname; var $user; var $pass; public function…
-
6
votes2
answers5742
viewsUse global variable in more than one js file
I have the file Geragriddados.js and in this file I created a global variable and a function. nomeTela = ""; function redirecionaTela() { //redireciona para tela que chamou a tela de Dados.…
-
6
votes2
answers2487
views.gitignore delete all folders but one
I need to make that one .gitignore delete from versioning all folders except one. Example: Library/nao_ignorar Library/ignorar Library/ignorar Library/ignorar ....…
-
6
votes1
answer412
viewsHow to make dynamic animations with CSS3?
I know how to make animations with Transition, Rotate + :Hover or triggering class change with JS. But what if I want a CSS3 animation that when rendered it does more than one move without being…
-
6
votes1
answer1928
viewsHow to connect DVR camera in Java?
I’m having a question, I’ve searched the internet but I can’t find anything consistent: how to connect with a DVR camera (not IP camera) using Java? I already use Opencv and can connect on IP…
-
6
votes1
answer2639
viewsCall PL/SQL precedent with object collection
Consider the following types: CREATE TYPE meu_tipo AS OBJECT ( meu_id NUMBER(6), meu_nome VARCHAR2(200) ); CREATE TYPE meu_tipo_tabela AS TABLE OF meu_tipo; And the following package: create or…
-
6
votes0
answers320
viewsAdd checkbox to a Jtree
I’ve looked around for plenty of examples JTreeIt’s checkboxes but it all seems very complex. Does anyone know a simple way, if there is one, to add to a JTree that I dragged to my frame, a checkbox…
-
6
votes2
answers427
viewsHow to remove the Appcompat error from the app?
I had to reinstall the Eclipse and import mine app, he makes a mistake of Styles of AppCompat. I imported the AppCompat and the very AppCompat gives the same error. How can I fix?…