Posts by heat • 418 points
17 posts
-
0
votes2
answers56
viewsA: How do you consume custom routes with Ember?
You must create a adapter for your model. It can customize on the way. import DS from 'ember-data'; import { underscore } from '@ember/string'; export default DS.JSONAPIAdapter.extend({…
-
0
votes3
answers50
viewsA: How to display a component only on the home screen?
You can use the auxiliary routes. Example create a template app/templates/index.hbs. Put the contents inside {{jus-hero}} In the application.hbs leave only the bark <main class="l-main">…
-
0
votes1
answer276
viewsA: problem setting up a GIT repository with Bare
Check the appointment for the remote. The project should still be looking at the old server. git remote -v. You can then add a new remote. git remote add upstream /var/git/... and execute the…
-
0
votes1
answer41
viewsA: Problem in a Breadcrumb using "Direction: rtl"
The use of float:left; would lose the effect of rtl; I did the alignment using inline-block and removed the flotation. Apparently it improved. https://jsfiddle.net/3ge59bLe/5/…
-
0
votes1
answer154
viewsA: How to change http Accept language in Firefox Developer Edition?
Use Addons to change headers. https://addons.mozilla.org/pt-br/firefox/addon/modify-headers/ This is an example. In Chrome has better Addons to do this, I suggest to develop using it.…
-
1
votes1
answer66
viewsA: Reset to CSS "padding" declaration
You can use the initial td, th { padding: initial; } http://www.w3schools.com/cssref/pr_padding.asp…
-
1
votes1
answer350
viewsA: API’s web, REST and Object Orientation
Very well placed @Leandro and I think this is what raises doubts in many people. It is perfectly possible for both worlds to coexist mainly because the OO will be in your domain keeping the business…
-
4
votes2
answers347
viewsA: Compare Mysql search results
Felipe uses SQL aggregation function. SELECT COD, MAX(VELOCIDADE FROM TABELA GROUP BY COD Done. sql will group by code all speeds and display only the highest. Group functions by group by Examples…
-
3
votes1
answer84
viewsA: Play Framework and AJAX (SPA)
Play uses sbt as a tool, it has several compilation plugins for SPA, single page application, as compiler javascript minificator Less sacss coffee and for front ent tools like Bower and Grunt. Its…
-
3
votes1
answer162
views -
3
votes1
answer82
viewsQ: Perform JOIN operations on two data arrays with D3.js
I am preparing the data for visualization and visualization operations. I use the library D3.js. The collection of data is: { "autores" : [ { "id":1, "nome": "Fulano" }, { "id":2, "nome": "Ciclano"…
-
1
votes1
answer49
viewsA: convert from Date to number in Java
Friend the question is quite incomplete, but I will try to answer objectively. Java does not make the conversion implicit, only in the case of inheritances. As the class of number and date has no…
-
0
votes3
answers162
viewsA: Create tables randomly
Using your logic you take the rest of the division by 5 that will stand between a number between 0 and 5. SELECT *, FLOOR((RAND() * 1481) % 5) AS grupo FROM pessoas ORDER BY grupo Because the RAND…
-
0
votes2
answers428
viewsA: Overwrite CSS compontente Richfaces
Friend the ideal was to make this script modification in a css. Because this component generates several HTML codes for this purpose. take a look at documentation and check the part you want to…
-
0
votes2
answers378
viewsA: How does PHP treat temporary expression regarding memory?
According to the manual php for: for (expr1; expr2; expr3) statement It evaluates the first expression only once, whether it is a $i or an Expression array [], at each iteration it checks the…
-
1
votes1
answer129
viewsA: Grid with Single Input
Deny if the intention is to create a game I suggest you look for an engine to help you because there are several other issues that not only changes color or perform an event. Jsgamesoup is very…
-
4
votes1
answer722
viewsA: Search database using JSF
a data table intera over a list. The value of the data table has to be a return list in the query to the bank. and the var attribute is each object in this list and can thus access its properties.…