Posts by MateusDemboski • 678 points
20 posts
-
1
votes0
answers61
viewsQ: Failed to load Resouces from a Resource File
I’m trying to make my Xamarin application internationalize. I followed the tutorial (https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/) that works on Android, however, when…
-
1
votes1
answer125
viewsQ: Center div on an image
In a project I have an image that when the mouse is on top starts an effect on a div that is on top of the image, my problem is that often the div is not centralized, because the image has a dynamic…
-
1
votes2
answers816
viewsA: Make one asynchronous function wait for another
Well, what I did to solve my problem was a recursive function with a callback and in the callback I give the answer. Currently this is solving my problem
-
2
votes2
answers816
viewsQ: Make one asynchronous function wait for another
I am developing a Javascript system with Node.JS and Redis, however, due to the asynchronous functions the loop ends before the functions, which causes the response array to be misordered or the…
-
4
votes1
answer392
viewsQ: What is the advantage of using Tag Helpers in ASP.NET Core?
I am studying the ASP.NET Core and came across the tag helpers when I ran the scaffold of a view. I found interesting the new syntax, the code is more readable at some points, however, the inclusion…
-
0
votes1
answer39
viewsQ: abstract methods of the same signature
Hello, I am building for my college work a Webservice based on MVC architecture. For a better understanding of the problem I will explain a little how the classes are currently: The abstract Model…
-
1
votes1
answer552
viewsQ: Relationship between various tables in Eloquent
I am trying to create the models in Lumen based on my current database for a virtual store, but I am having difficulties to configure the relationships between them. So far I have the following…
-
2
votes1
answer97
viewsQ: Decrease responsibility of a class
I recently had the need to work with object-oriented sessions and created the following class: https://github.com/mateusdemboski/PHPsessionManager/blob/master/src/Session.php <?php /** * @author…
-
3
votes2
answers199
viewsA: Can I open a dll extension without entering php.ini?
Assuming you are using apache and you are allowed to do so, it is possible to use a file . htaccess with the following content: #verifica se o módulo do PHP 5 para o apache foi carregado…
phpanswered MateusDemboski 678 -
2
votes2
answers797
viewsA: How to take bar of a modal
It is possible to remove the background and gray border of the modal title by overriding the original CSS of the jQuery UI as follows: .ui-dialog-titlebar{ //tira a cor de fundo cinza background:…
-
2
votes1
answer1128
viewsA: Release subdirectory through . htaccess
Imagining the following structure: public_html/ ├── pasta_x/ ├── pasta_y/ └── pasta_z/ Let’s use as an example that you want the folder pasta_y is publicly accessed, then the following code will be…
-
4
votes1
answer181
viewsQ: How to avoid duplication of content in a table without a primary key?
In a virtual shop panel I am building the products have relations by color and size, where each product color has a size. This is a part of my database to better understand the problem:…
-
2
votes2
answers39475
viewsA: Image alignment to the right of the div in Bootstrap
Simple, reverse the order of the elements! The class text-right is causing all her child elements to be aligned to the right, causing the order of these to be reversed. Your code would look like…
-
2
votes4
answers1081
viewsA: how to filter an ngRepeat loop according to the value of one of the contents of an array
Well, based on @Pedro Luz’s response and this answer, I arrived at the following code that solved my problem: .filter('filterBySelectedTag', function() { return function(projects, selectedTag){…
-
3
votes1
answer324
viewsA: Twitter Bootstrap: Set specific CSS rule for different sizes
For this you will need to use the media query of css 3. Let’s look at your example: All elements containing the class .borda should have a 1px border on devices with screen less than 768px wide…
-
4
votes4
answers1081
viewsQ: how to filter an ngRepeat loop according to the value of one of the contents of an array
Well, the content of a page on my site is generated from the following JSON template: [ { "company":{ "name":"Nome do Cliente", "url":"#" }, "client":{ "name":"Projeto", "url":"#" }, "tags":[…
-
2
votes3
answers4226
viewsA: How to select multiple results in one row
A friend (@rodrigoborth) helped me talking about 'FIND_IN_SET', which made me arrive in the following query: SELECT mensagens.id, users.name, mensagens.title, mensagens.date FROM mensagens INNER…
-
1
votes3
answers4226
viewsQ: How to select multiple results in one row
The problem: One of our sites has a messaging system between users, for this we have two tables: one that stores the messages between users and the other with users, follow the structures below,and…
-
5
votes5
answers1314
viewsA: PHP connection problem with Mysql
You are using simple quotes on your connection. The variables inside the single quotes are not compiled by PHP, therefore, the server is literally trying to connect with the user '$usuario', to host…
-
9
votes2
answers3276
viewsQ: How to make a Stored Procedure dynamic by taking data from other tables in the database?
I’m on a project to build a social network with the @Rodrigoborth, and we have the problem of How to index and update a user comparison system... We were given the idea of working with Stored…