All Questions

3
answers

Error listing items in an array with foreach ()

I have array with the list of several Brazilian banks and I need to get the name of the bank where the code of it is passed according to what it has in the user's account, but when doing this search for the code it r...
asked on 28.12.2015 / 18:52
1
answer

Merge 2 different tables and display content by sorting by number of views (highest to lowest) of the two joins in MySQL

Considering that I have 2 tables in the DB, "news" and "news", each with its own fields: IsitpossibletomakeaSELECTinthetwotablesatthesametimesothatIgetthetop4valuesofthefields"impressions" (NEWS table) and "clicks" (NEWS table), the two comb...
asked on 30.12.2015 / 21:32
1
answer

Django: what's the difference between import / use include () and not use when configuring a URL?

from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', admin.site.urls), ] In this example I saw that there are two ways to call a URL, one wi...
asked on 30.12.2015 / 16:51
1
answer

With this rule below, how do I display the user's first and last name in the database?

Example of the name that is in the DB: José ALberto da Silva Nogueira. I would like you to show only José Nogueira. <?php if(!Yii::$app->user->isGuest) echo Yii::$app->session->get('nomeUsuario'); ?>     
asked on 29.12.2015 / 14:48
2
answers

Add the 5 largest values to an array

I have the following method: public static void topFiveSales(int idEmpresa) { List < Entidade > allList = Entidade.findByEmpresa(idEmpresa); float totalVendasByEntidade; Float[] totais = new Float[5]; for (Entidade ent:...
asked on 30.07.2015 / 16:55
1
answer

Abstract class and properties in C #? [closed]

Hello, everyone! Next, I created an abstract class called Tables, where basic system table classes inherit from this abstract class. Like Neighborhood, City, States, category, etc ... The abstract class code looks like this: public abstract...
asked on 04.02.2016 / 23:44
1
answer

SharePoint with MVC 5 what better way to work?

My question is what form of hosting should I use? Provider-hosted Autohosted SharePoint-hosted Application will stay on the server to be consumed by internal users and external users . Our team is made up of MVC developers and...
asked on 10.08.2015 / 16:19
1
answer

How to print the variable name in C?

Example: I have an integer variable called menino , how do I print to a printf the name of this variable, ie "menino"     
asked on 12.08.2015 / 00:49
1
answer

SQL Server Full-Text-Search

I am developing a search using the full text search of SQL Server 2008. The search is working correctly, but there has been a need to include a feature. When you search for "Joes", the message "you meant Joseph" has to appear. I did some rese...
asked on 11.08.2015 / 16:09
1
answer

How to ignore accents in ListView on Android?

I was making an application for me kind of in jest and I came across a problem, ListView of Android Studio does not ignore the Portuguese accents. Could anyone post a code, would you like to resolve this? Type the word search by ignori...
asked on 10.08.2015 / 21:23