Posts by FernandoPaiva • 1,562 points
111 posts
-
3
votes2
answers495
viewsA: Add interest per plot with Bigdecimal?
Solved. I followed 2 formulas to get to the result the first formula PMT = PV * i / 1 - (1 + i)^-n and the second formula PMT = PV / (1 + i)^n - 1 / (1 + i)^n * i. With the first formula I could not…
-
2
votes2
answers495
viewsQ: Add interest per plot with Bigdecimal?
I am creating a system where I need to calculate the interest and add the installments of a loan. For this, I am using BigDecimal and I’m unable to perform the mathematical operation following the…
-
1
votes0
answers60
viewsQ: Display class relationship in Datagridview?
I’m trying to display a class relationship in Datagridview but I’m not getting it. I have 3 classes Produto and Unidade and ItemVenda, the class Unidade refer to the unit of the product if it is…
-
2
votes1
answer643
viewsQ: Format Textbox for thousands?
I’m trying to create a Textbox to report values in thousands, the values will be for weights(kilos). I want to type the values from right to left based on the mask 0,000 and as the user type the…
-
1
votes0
answers1099
viewsQ: Product Stock Control Model?
I am creating a system and in it I will create a stock control of products, where I will have to manage entry and exit of products and check the quantity of products in each entry and exit…
relational-modelasked FernandoPaiva 1,562 -
2
votes0
answers40
viewsQ: Converting String to Decimal?
I’m trying to convert a monetary value to decimal, the value 1.000,00. When I do the conversion and display only the whole number 100000 the decimal point no longer exists. How to solve this ? I’m…
c#asked FernandoPaiva 1,562 -
0
votes0
answers31
viewsQ: Working with values in C#?
I’m looking for the right way to work with values in C#. In Java I use Bigdecimal but in C# so I did not find anything similar. Some examples I found speak to use double or float or just decimal…
c#asked FernandoPaiva 1,562 -
0
votes2
answers528
viewsA: Error trying to erase image file?
Solved, I found the solution here: https://support.microsoft.com/en-us/kb/309482 . How @jbueno suggested the image was locked in pictureBox. Thanks @jbueno to resolve I did so. //set image…
-
0
votes2
answers528
viewsQ: Error trying to erase image file?
I’m trying to get an image update on a criminal record. When I do this update I want to change the existing image to the new update image. That’s why I’m using the File.Exists and the File.Delete…
-
1
votes1
answer105
viewsQ: Backgroundworker does not receive selected Combobox value
I have an object Combobox and I am creating a Backgroundworker to add these objects to my database. Without using the Backgroundworker I can catch the selected object but when I use the…
-
1
votes1
answer385
viewsQ: Trying to update with Nhibernate?
I’m trying to do an update with Nhibernate but always returns me an error saying that there are two sessions open: illegally attempted to associate a proxy with two open session How to solve this ?…
-
7
votes2
answers1148
viewsQ: How to get all selected values in a Datagridview?
I’m trying to get all the selected values in one DataGridView and add to a IList<Object> but shows an exception. How to do this ? I’m trying like this. IList<Modulo> lista =…
c#asked FernandoPaiva 1,562 -
1
votes1
answer272
viewsQ: You doubt with Fluentnhibernate mapping?
I am trying to create a scheme to define permissions on my system and these permissions are given to the user profile, where one can choose what each profile is authorized to do on each module. For…
-
0
votes3
answers241
viewsQ: Help with Subquery in SQL?
I have in my system a table called Agendas, this table is linked with other tables Class and School through the columns turmas_id and escola_id. What happens is that the column turmas_id is not a…
-
1
votes1
answer601
viewsA: Creating Mysql connection with Fluentnhibernate?
Solved. How did I not know which using were needed to make the connection got a little bit because my Visual Studio 2012 is not doing the using automatically, this is a problem that I haven’t been…
-
1
votes1
answer601
viewsQ: Creating Mysql connection with Fluentnhibernate?
I am trying to create a connection with Mysql using Nhibernate and Fluentnhibernate. I added by nuget the MySql.Data but when I try to make the connection MySQLConfiguration not found in context.…
-
0
votes1
answer401
viewsQ: Nhibernate create database?
I am a Java developer and work with Hibernate. Now I need to create a desktop application and decided to use C# for this. I’ve been researching ORM frameworks for C# and found Entity Framework and…
-
4
votes1
answer145
viewsQ: Javafx reality or just speculation?
I have experience in Swing 8 years, but for some time I’ve been reading that with Java 9 Swing will be totally abandoned by Oracle. Now arose the need for me to develop a Desktop system for a client…
-
0
votes1
answer39
viewsA: Why is subheader not showing?
solved. The problem was that the subheader I was creating was behind the tabs, so I created a css for this subheader and it worked as needed. was like this. .search-subheader { top:85px; }…
-
6
votes1
answer1981
viewsQ: How do I send an Ionic app to the Apple Store?
I created an app with Ionic and want to send it to the Apple Store. I’m following this link but I’ll stop by Product>Archive. The Xcode simply does not enable this option. How to do ?…
ionicasked FernandoPaiva 1,562 -
1
votes3
answers189
viewsQ: Ion-tabs with tabs-top class on iOS?
I’m creating an app that uses tabs for navigation and set tabs to top with tabs-top. Android works fine but iOS tabs are behind the header, how to solve this ? tabs.html <ion-tabs…
-
3
votes1
answer2253
viewsQ: How to clear form with Angularjs?
I’m creating an application with Ionic, I have a company registration and after registering the company I want to clean the form but I’m not getting. How to do this ? form <form…
-
1
votes7
answers8821
viewsA: Regular expression for phones?
I managed to make it, eh much simpler than I imagined. did so. ng-pattern="/^\([1-9]{2}\)[0-9]{4,5}-[0-9]{4}$/" that video helped me a lot.…
-
1
votes7
answers8821
viewsQ: Regular expression for phones?
I created a Directive to format phones with or without digit 9. Now I need a regular expression to validate whether the number format is correct on ng-pattern. I created a regular expression but I’m…
-
0
votes1
answer665
viewsQ: Validation messages appearing before sending form
I am creating a form with Ionic and want to validate the fields after the submitted form. As I am doing, it works, but when I open the page the fields are already marked as invalid and I want that…
ionicasked FernandoPaiva 1,562 -
0
votes2
answers143
viewsQ: How to create function for view?
I’m creating a role in controller UsersController, this function is for users who forget the password. When I try to open the view, returns an error that the function does not exist. The structure…
-
1
votes1
answer39
viewsQ: Why is subheader not showing?
I’m trying to create a search bar, I’m using the bar-subheader for this but does not display. How to do this ? <ion-view view-title="Empresas"> <div class="bar bar-subheader…
-
1
votes1
answer389
viewsA: Ion-footer-bar on top of the ion-list?
Problem solved, simpler than I thought, just added a class to the tag <ion-nav-view class="has-footer"> and worked perfectly.
-
2
votes1
answer389
viewsQ: Ion-footer-bar on top of the ion-list?
I’m creating an endless list on Ionic. I have a ion-footer-bar in the index and after that list bring all the information of Webservice in the last record the ion-footer-bar is on the record. I’m…
-
1
votes1
answer41
viewsQ: Google Adsense with Cakephp?
I’m trying to put an Adsense banner on Cakephp and I’m not getting it, the banner just doesn’t show up. How to do this ? footer.ctp <footer> <?php echo $this->fetch('script');?>…
-
2
votes2
answers835
viewsQ: How not to repeat random numbers?
I am creating a rotary banner, and for this I use the javascript rule that draws a position in the array and displays, this already works well, the problem is that sometimes draws the same number in…
-
0
votes1
answer311
viewsQ: Create rotary banner with Angularjs?
I’m trying to create a rotating banner with Angularjs. I want the action 1 minute to be drawn a position of an array of images and the image to be displayed. How to do this ? I’m trying like this.…
-
2
votes1
answer810
viewsQ: Adding Admob to the Ionic?
I’m trying to put monetization in my Ionic app. Searching, I found some examples but I’m not getting it to work. The banner just doesn’t appear. I followed that example, that is pretty simple by the…
-
4
votes1
answer3687
viewsQ: How to align text in the center of a card?
I’m looking for a way to align the text of the card component in Ionic. How to do this ? <div class="card"> <div class="item item-image"> <img ng-src={{imagem}} id="smallimage">…
ionicasked FernandoPaiva 1,562 -
0
votes2
answers346
viewsA: Infinite list with Ionic?
Solved. Controller var app = angular.module('starter'); app.controller('EmpresaCtrl', function($scope, EmpresaAPIService){ var offset = 0; $scope.items = []; $scope.addItems = function(){…
-
0
votes2
answers346
viewsQ: Infinite list with Ionic?
I am trying to create an infinite list with Ionic/Angularjs. This list passes a offset for my webservice page the answers from SELECT. I’m not able to do this and I’m looking for an example but I…
-
0
votes1
answer350
viewsA: Facebook login with Ionic/Angularjs?
solved. After much researching I ended up using the ngOpenFB https://github.com/r-wettstaedt/ngOpenFB https://github.com/ccoenraets/OpenFB…
-
2
votes1
answer350
viewsQ: Facebook login with Ionic/Angularjs?
I’m trying to log in to facebook with Ionic/Angularjs. Whenever I try to login returns this error: Object {errorMessage: "User cancelled dialog", errorcode: "4201"} I’m following this example: Login…
-
2
votes0
answers30
viewsQ: $cordovaFileTransfer does not send parameters to webservice?
I’m trying to upload an image using $cordovaFileTransfer. When I send the image I want to send tbm some parameters like the user id, the problem is that these parameters arrive null in the…
-
2
votes2
answers556
viewsQ: How to change the value of an input by a Factory?
I have a <input type=file> and I want to add the image path to this input to send the form to my webservice. I can pick up the image path through a Factory and cannot change the value of that…
-
1
votes0
answers595
viewsQ: Select gallery image and send by post?
I am creating a register of new users and in this register the user must choose his profile image(required). I can return the image of the gallery but the name of the image does not return, the…
-
2
votes1
answer8587
viewsQ: Testing app locally in the browser?
I am trying to develop a hybrid application using Ionic and Angularjs and for that I am testing in the browser. When I do ionic serve it creates a local server with the address localhost:8100/#/main…
-
0
votes1
answer132
viewsQ: Basic Auth with Ionic and Angularjs?
I am a native Android/iOS developer and am now starting to study Ionic for hybrid development. I need to make a connection with a webservice that uses Basic Auth and I’m not finding how to do this,…
-
1
votes1
answer2233
viewsQ: Open pages in content?
I am using Angularjs and Ionic to create hybrid applications and I have a question. I created a project with Blank template, no index.html veio criado a tag ion-content that I believe eh where it…
ionicasked FernandoPaiva 1,562 -
0
votes1
answer170
viewsQ: Ionic project does not run on android
I’m trying to run an Ionic project on android but when I run ionic run android returns an excesses. How to solve ? Ionic info Your system information: Cordova CLI: 5.3.3 Ionic Version: 1.1.0 Ionic…
-
-1
votes1
answer2990
viewsQ: IDE for Ionic framework development?
I am looking for an IDE to develop in Ionic framework. I tried using Netbeans but am unable to install the Ionicextension plugin here: http://plugins.netbeans.org/plugin/59028/ionicextension Reading…
ionicasked FernandoPaiva 1,562 -
4
votes1
answer3515
viewsQ: Create an associative array from another foreach array?
I’m trying to create a array() from other arrays using the foreach. I have 3 arrays, and these arrays have values that repeat themselves and I want to create only 1 array with the values I need…
phpasked FernandoPaiva 1,562 -
2
votes1
answer562
viewsQ: Setting up an SQL for School Report?
I am trying to mount an SQL to display the results of a School Report Card. In the table of notes I have the data as follows. Table Notes MATERIA | NOTA | PERIODO PORTUGUES | 5.0 | 1Bim PORTUGUES |…
-
0
votes0
answers408
viewsQ: Setting up Firebird with PHP?
I’m using XAMPP/LAMPP with Centos and I’m trying to configure PHP to connect to a Firebird database. At php.ini I’ve cracked the line extension="interbase.so" and copied the interbase.so to the…
-
0
votes1
answer431
viewsA: Using Jquery Datatable with Cakephp?
Solved. index.ctp <script type="text/javascript"> $(document).ready(function() { $('#dataTables-example').DataTable({ "processing": true, "serverSide": true, "ajax":{ url: "<?php echo…