Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer896
viewsAngular Directives with object-constructing methods
I am trying to create a directive that is an input that provides an object in $Scope only if it is successfully created by its constructor method. I want the value only to be assigned to the…
-
4
votes1
answer1435
viewsWhat encryption is used by Asp.net Identity?
When we create a user using Asp.net Identity, it generates a Hash, even there is a column in the database named Passwordhash My question is, what kind of Hash is generated ? What encryption does…
-
4
votes2
answers2303
viewsHow to check if an answer (date) is a json
How can I check if a result (date) coming from an ajax request is a json or not? I tried this code but did not succeed var obj = $.parseJSON(response); if(obj.avatar) { } else { }…
-
4
votes0
answers1298
viewsGammu CMS Error 500: "Unknown error"
By sending Smses using the Gammu, for some numbers that are active and running I get the following error: Array ( [0] => 4 / 0 [1] => Sending SMS 1/3....waiting for network answer..error 500,…
-
4
votes2
answers11183
viewsHow to put an Submit input inside the input text?
I have this HTML: <form action="" method="post"> <input type="text" name="pesquisa" placeholder="O que você procura?"/> <input type="submit"> </form> And I have this CSS:…
-
4
votes2
answers621
viewsProblems with $http and ng-repeat Beginner Angularjs $$hashKey
Hello I’m a beginner in Angular and I’m finding it very cool, my problem is this: I have an ng-repeat that works fine when I get the data source of a javascript variable like this: var alertsq = [ {…
-
4
votes1
answer2883
viewsWhat is the difference between Classic and Integrated in IIS7 Managed Pipeline Mode?
I was having a problem generating a Crystal Reports report that was solved when I changed Managed Pipeline Mode to Classic in the Application Pool. I would like to know the difference between…
-
4
votes1
answer1516
viewsCreating Charts with JSON and Highcharts
I’m trying to use a simple example provided by Highcharts to create a chart, but I’m not succeeding. HTML <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type"…
-
4
votes3
answers49868
viewsOverwrite image with a DIV
How do I place a DIV over a <'img image'> ? HTML <div id="main-banner"> <img src="images/wall.jpg" /> <div id="main-banner-content"></div> </div> CSS #main-banner…
-
4
votes3
answers30960
viewsHow to query in Mysql with two different conditions in WHERE
I have two queries that work perfectly separately, but I needed all their records together. Would be these: SELECT b.idBanca AS idB, b.DataHora AS dataHora, b.Sala AS sala, t.idTrabalho AS idT,…
-
4
votes1
answer859
viewsIs this a good way to keep my API safe?
My application consists of an API nodejs on backend but I’m also creating the reference implementation of a Javascript client, which is a SPAen made with Backbone. First: the API accepts only HTTPS…
-
4
votes1
answer1776
viewsVector images, Font Awesome, Bootstrap Glyphicons. How do they work, what are the advantages and disadvantages?
I was just taking a peek at Font Awesome and in the Bootstrap. They use a font scheme for icons: On Font Awesome I saw the following files: Fontawesome.otf fontawesome-Webfont.eot…
-
4
votes1
answer765
viewsShare article on Facebook - Popup / Blank window
From last week to now, when trying to share any content on my blog to Facebook, I get a popup or blank page within the Facebook domain. Examples: Share Article 1 (that article) Share Article 2 (that…
-
4
votes1
answer958
viewsLoading only appears after page loaded
I have a page with a side menu, and the contents of this menu is opened within an iframe. CSS #preloader { position: absolute; left: 0px; right: 0px; bottom: 0px; top: 0px; background: #ccc;…
-
4
votes2
answers290
viewsHow to insert Entities, related to other existing ones, into the Entityframework?
In the case assuming an entity "Entidadea" that references an entity "Entidadeb", I want to save it, but referencing an entity B already existing ex: EntidadeA a = new EntidadeA(); EntidadeB b = new…
-
4
votes2
answers736
viewsPDO::rowCount() returning -1
I have this routine below, which used without problems with a Mysql database. However I had to migrate to a SQL Server 2008 database, which was simple. The only problem is, I don’t know why mine…
-
4
votes1
answer143
viewsNotificationmanager causes java.util.Arraylist error cannot be cast to java.lang.Charsequence
I’m making an Android application and I’m having a question while generating a notification. Here I will be providing an excerpt of the code: public void gerarNotificacao(View view) {…
androidasked 9 years, 11 months ago Otavito Melatito 61 -
4
votes1
answer862
viewsProgress bar in windows c#Taskbar
I’m developing an app that will send email to multiple customers. I would like to display the progress of the shipment even with the form minimized. I would like to do the same way that Windows 7…
-
4
votes2
answers508
viewsImplementing Cascade Methods (Cascade) in Javascript
In the book Javascript: The Good Parts, Douglas Crockford explains the concept of cascading method, from Cascade. According to the author these methods are characterized by changing the state of the…
javascriptasked 9 years, 11 months ago Geison Santos 4,428 -
4
votes2
answers432
viewsReferences for learning web programming
Which websites can I check to start studying web programming? I’m a beginner in the subject.
-
4
votes1
answer1801
viewsPicking specific amount of characters from a textbox
I am trying to get a specific amount of typed characters in a texbox, the current code is as follows: novaconfiguracao.CupomEstabelecimento = tb_NomeFantasia.Text.Substring(0,48).ToString(); In the…
-
4
votes1
answer1326
viewsDownload Blob Mysql file
I need to download a file .xls that is in a Mysql database, but I need to save it with the original name. Can someone help me? I can upload it easily. I need to download it. include_once 'db.php';…
-
4
votes4
answers1289
viewsJavascript URL redirect code
i need to develop a javascript code that is not working. My need is this: When the user accesses a given page, I would like to complement the URL with some parameters, example: If the domain is…
javascriptasked 9 years, 11 months ago Fabio Vieira 41 -
4
votes1
answer8622
viewsHow do I get in the Input file?
I need to send several attachments via Phpmailer and am using jQuery to get the value of input file, now I need to pick up the file path to be able to send by email, but when I take the path it…
-
4
votes0
answers648
viewsScript JS Google Docs
I have a spreadsheet on Google Docs as the images below. In figure 1 that is spreadsheet I have the URL of the site that will be monitored and sent to the email that is inserted, next to I have in…
javascriptasked 9 years, 11 months ago jhonny Pereira 41 -
4
votes1
answer523
viewsIs it possible to use pointers in VB.NET?
Is it possible to use VB.NET pointers? If so, how do they work? An example in C++: CSR = ConfigurarInterfaceDeRede(randInt(0,999999),CodAtivacaoSAT,(char*)xml); int a; int *p; p = &a; How would…
-
4
votes1
answer359
viewsMultiple databases with multiple applications
I made an application with Codeigniter which uses only a database. However, I was asked to create several copies of this application that will also access several different databases. That is, I…
-
4
votes1
answer5275
viewsUpdate fields dynamically
I need my code to update the Increment field when the value of the Total field is changed to a value greater than the value of the Sub.Total or update the Discount field when the Total field is…
-
4
votes1
answer2899
viewsCalculation of dates in Firebird
I am created a report to demonstrate the period of removal of employees, for that I need to calculate the days, months and years that the same stayed away, and I’m having a problem, in Firebird use…
-
4
votes2
answers1955
viewsWhy is the initial state of a required <input> invalid?
When I place one or more restrictions on one <input>, initially its state appears as invalid. As in the example below: input { border: 2px solid #ccc; padding: 8px; } input:invalid {…
-
4
votes1
answer78
viewsIs it possible to reduce this conditional expression?
In my project I constantly come across this kind of conditional expression: if(cliente && cliente.id) { return cliente.id; } else { return ''; } That is to say, "if there is a client and…
javascriptasked 9 years, 11 months ago Renato Gama 1,405 -
4
votes2
answers481
viewsDecode HTML entities in a Python string
I’m using Python 3 to access a web API. The response to the requests comes in the JSON standard and my problem is that one of the Strings comes encoded with HTML entities (specifically…
-
4
votes1
answer291
viewsHow does android APP versions work?
I wonder if the version of the Android APP is I who define in XML by TextView same, or has something you have to do to generate that number.
-
4
votes2
answers668
viewsDoubts about unitary tests
I am new to unitary testing and am in doubt in some basic applications. First: the focus of phpunit is to check if a return has an expected pattern. If yes, the test has passed. If not, it throws…
-
4
votes1
answer294
viewsVery slow listview on scroll bar
I have a problem I don’t know how to solve, I have a ListView customized with images and the scroll bar keeps crashing, even with the list loaded. It slows down the list to scroll. Adapter: public…
-
4
votes2
answers1405
viewsHow to send two values per parameter with a single option selected? PHP
I need to send two values per parameter to another page, however value select tag only sends one... How could I send two? Follows the code: <option value="<?php echo $data->format("d/m/Y");…
-
4
votes2
answers480
viewsRemove the original image from the server after Wordpress generates the thumbnails
I need to remove the original image that gives rise to Wordpress thumbnails after thumbnails are generated. I have 3 sizes of Thumbs that I use, but to avoid that the server is left with unnecessary…
-
4
votes3
answers144
viewsHow to play items with a specific value for the beginning of an array?
I have an array questions[] with the following properties: perguntas[0] = { id:1; ordem: 3; inicio: 1 }; perguntas[1] = { id:2; ordem: 2; inicio: 0 }; perguntas[2] = { id:3; ordem: 1; inicio: 1 }; I…
-
4
votes2
answers188
viewsData entry validation allowing HTML TAG
Need to do a validation, always valid on the client side/JS and server/PHP, and allow the user to type some Tags to format the final result, any tips how to do this? Better use a field of the kind…
-
4
votes3
answers1363
views"Decode error - output not utf-8" in Sublime Text
I’ve looked at several websites, several questions (including in stackoverflow itself) I did a lot of research and I couldn’t get this error out of Sublime Text 2 yet: [Decode error - output not…
-
4
votes1
answer1667
viewsADB does not recognize Android device on Mac OS
I’m trying to activate the mode of Debugger on my Motorola Razr i to be able to run my Android projects on the device itself. But when I enter the Mac terminal and put the command ./adb devices to…
-
4
votes2
answers360
viewsPut method return before a "Finally" block
Considering: try { System.out.println("Parte 1"); return false; } finally { System.out.println("Parte 2"); } What will be the output and what happens behind the scenes so that the output come out…
-
4
votes1
answer612
viewsConnect and disconnect Internet?
I would make two . exe basic, one would be to disconnect the Internet and open one program and the other would be to just connect to the Internet. The part of opening the program I know, now…
-
4
votes4
answers1989
viewsUpdating data with Entity framework
In the project I’m developing, MVC5, Entity 6, I’m simply not being able to update the data. The Code: zyon.TB_Cliente.Attach(cliente); zyon.Entry(cliente).State =…
-
4
votes2
answers1101
viewsRemove association in relation to Many to Many
I have a relationship @manytomany unidirectional and need to remove this association according to some criteria but did not want to have to browse through all objects in the collection to remove…
-
4
votes1
answer80
viewsIn-app purchases through the carrier
Nowadays in my application I use the in-app-Billing system, but I would like to know if it is possible to make sales and charges for the credit of the user’s device operator. Is it possible? In one…
-
4
votes1
answer2578
viewsRead serial port values using Pyserial
I created a plugin to monitor an Arduino presence sensor for Nagios. The plugin read values from the serial port in Arduino. The problem is that Nagios does not let the plugin running, it executes…
-
4
votes1
answer83
viewsAndroidmanifest with multiple tags <application>
I need to use the PARSE and VOLLEY libraries in an Android APP, however, both need to be declared in the TAG Application, on AndroidManifest, but I noticed that there may only be one TAG Application…
-
4
votes1
answer153
views -
4
votes1
answer185
viewsIs there a standard "stack" data structure in Python?
If not, do you know of a good non-standard module? I would need to work with stack, but I find it very strange that there is no module stack (stack) standard in Python and at the same time there is…