Posts by Altemberg Andrade • 633 points
32 posts
-
0
votes1
answer205
viewsQ: Read several . txt files and remove duplicate information
I have several files. txt with enrollments and some repeat themselves in different files and I would like to remove all the repeated ones. The first solution I thought was to make a comparison…
phpasked Altemberg Andrade 633 -
0
votes0
answers239
viewsQ: Vscode changes the indentation when saving the project
I’ve already put the indentation on User settings for 2 spaces and it even works when I press the tab, but whenever I save the file it automatically changes all the indentation to 4 spaces. I took a…
visual-studio-codeasked Altemberg Andrade 633 -
6
votes3
answers1336
viewsA: Why can’t I center image using text-align:center?
You need to apply the text-align in the div panel-body and not in the picture.
-
0
votes1
answer618
viewsQ: Problem with ngModel at Angular 2
I’m trying to get the values of 3 inputs that are in a modal of Ionic 2 but it gives this error: Error in ./ModalPage class ModalPage - caused by: Cannot read property 'name' of undefined My input…
angularasked Altemberg Andrade 633 -
0
votes1
answer198
viewsA: Insert data from a JSON into a Sqlite database with Angularjs
I figured it out, I don’t know if it’s the right way to do it, but it’s working. app.service('CategoriesService', function($http, $q) { var url = 'http://meusite.com.br/api/'; return {…
-
0
votes1
answer198
viewsQ: Insert data from a JSON into a Sqlite database with Angularjs
I’m trying to enter the data I took from my API, in the SQLITE database of my app, I already searched a lot but besides not being able to do also I could not understand how I can do this. Follow the…
-
0
votes1
answer180
viewsQ: Problem picking up data by ID in the API with Slim
I’m trying to create an API with Slim to power an app, but I came across the following problem: I can get all the data from db, but I can’t get a specific data. At the url: http://localhost/api/…
-
2
votes1
answer104
viewsA: Problem using Sql LIKE in Angularjs
I just tested something that hadn’t even crossed my mind: %% with the parameter already in the variable parameters. And it worked! self.searchAll = function(nameSearch) { var parameters =…
-
1
votes1
answer104
viewsQ: Problem using Sql LIKE in Angularjs
I have been a few days having trouble searching my app using AngularJS and today I was able to discover the reason: During the consultation SQL with LIKE, it is simply not receiving the parameter as…
-
0
votes1
answer182
viewsQ: View results from a search in the same View Angularjs
I’m developing an app to be able to study and, I was assembling everything in the controller, all the queries and everything. Only then I decided to pass everything to a service(I saw that it is…
-
1
votes1
answer4234
viewsQ: How to get input text value with Angularjs?
I’m trying to take the value of an input and save it to a variable so I can use the result as a value in LIKE, of a consultation of sqlite. Only I came across a small problem: when I try to get the…
angularjsasked Altemberg Andrade 633 -
0
votes1
answer49
viewsQ: Error while trying to connect application database also in browser
I’m trying to test the database sqlite of an app also in the browser, only using web sql, I got to search and test some things, but so far nothing worked. My file controller.js is like this and when…
-
2
votes1
answer434
viewsQ: Error with duplicate values in Angularjs
I have a problem of duplicate values in Angularjs, in my JSON will always have repeated categories, in ng-repeat I used the track by $index but the error persisted. The code of my controller:…
-
0
votes1
answer526
viewsA: Pick specific field in JSON and store in a variable in the Controller
I was able to solve it this way: (function () { var app = angular.module('store', []); app.controller('sampleController', function ($scope, $http) { var grp = {};…
-
0
votes1
answer526
viewsQ: Pick specific field in JSON and store in a variable in the Controller
I have the following code, and I would like the categories that are in the json array to come from an external JSON file, only I couldn’t just take the category names and do like this example:…
-
1
votes1
answer786
viewsQ: Create list sorted by letter with Angularjs
How can I create a list sorted by the initial letter using Angularjs? I have several categories in a json file and would like to list them by blocks with initials. Blocks ordered like this: To…
angularjsasked Altemberg Andrade 633 -
0
votes1
answer35
viewsQ: Click and change text inside the element
Giving a researched I found the contenteditable, but I was wondering if there’s another way to do that, by taking a look at some of the website builders that use this kind of thing, I don’t think…
-
2
votes2
answers1366
viewsQ: image upload with media content
How do I upload an image to meteor? I followed this tutorial here but it didn’t work very well. The image is apparently saved, because I checked on Collection and there is a record there, but I…
-
2
votes1
answer561
viewsQ: Digital Signage System with Nodejs, is it possible?
I have a question about Node JS and what I could do with it. I started studying about MEAN a few days ago and I was wondering if using this technology I could, for example, create a system of…
-
2
votes2
answers1739
viewsQ: How to change the position on the map each time the user clicks a link?
I need to display a map and just below would have a list with multiple addresses and when clicking on each address would be marked in Google Maps the place. I already did a search on the net but I…
-
1
votes1
answer139
viewsQ: Regexp with only one letter
I wanted to make a RegExp more or less like this 0000-x, that was available only the letter X and numbers from 0 to 9. I did a search on the net, I could only do with numbers or that took all…
-
5
votes2
answers4079
viewsQ: Picking up content from div with equal classes
How do I get the content inside p? I got it, but it’s listing all the contents and not just what’s clicked. And another question, how do I call a function in the onclick when she’s inside of…
jqueryasked Altemberg Andrade 633 -
1
votes3
answers525
viewsQ: Doubt with Mysqli and PHP OO
I have the following code snippet: public function registerUser($link, $nome, $sobrenome, $apelido) { $sql = "INSERT INTO estudo_oo (id, nome, sobrenome, apelido) VALUES ('', '$nome', '$sobrenome',…
-
0
votes1
answer3336
viewsQ: Pass ID by parameter in modal window
I wanted to know how I can pass parameter o ID from a user to a modal window using php. I’m using the bootstrap to use his modal. In this window would open a form with customer information, so it…
-
2
votes1
answer451
viewsQ: Web Sql - Make select from ID
I’m trying to make a select from a ID who will be caught in the value of a option, I did a search on the net and saw that they put this inside a function, but when I put the function, the variable…
-
5
votes2
answers1035
viewsQ: Crop image with JS
Can you use the JCrop or some other library to crop image, but I set a default size? That can just move the square over the image? I tried to use the JCrop but the user is the one who defines the…
-
7
votes6
answers19214
viewsQ: Problem to publish project - Github
I’m trying to publish a project on Github, but every time I give a git push message appears: error: src refspec source does not match any. error: failed to push some refs to…
-
3
votes1
answer846
viewsQ: JSON or Sqlite?
I’m developing a simple app on PhoneGap and I will need to have basically 2 tables. One to store the names of the series and another to store the exercises of each specific series. But I’m not sure…
-
3
votes1
answer400
viewsQ: How to preview several different images?
How do I preview several different images from different inputs? Here’s an example of how I wanted it to stay HTML <div class="col"> <input type="file" class="custom-file-input"…
-
1
votes2
answers97
viewsQ: Small font - Phonegap
I can’t get the font to look good in Phonegap, I’ve tried %, px, in and nothing solves. The source code is: .header-page p { text-align: center; color: red; /* font-size: 22px;*/ font-size: 100%;…
-
1
votes2
answers4748
viewsQ: Validate and change user password with PHP
I’m trying to get the code to check if the passwords are identical and if they were, saved in the comic book, but I don’t know what’s wrong that regardless of whether it’s identical or not it always…
phpasked Altemberg Andrade 633 -
1
votes1
answer1174
viewsQ: Button that expands in Hover with CSS Transition
I’m trying to make a button, that in the hover it expands and shows the rest of the button. Here is an example of what I want to do (the button is a simple <h2>): h2:before { content:…