Posts by Caio Leonhardt • 185 points
7 posts
-
3
votes2
answers207
viewsA: Integer combination command. C++
The short answer is: unsigned concatenate(unsigned x, unsigned y) { unsigned pow = 10; while(y >= pow) pow *= 10; return x * pow + y; } All credit for: Reply in English…
c++answered Caio Leonhardt 185 -
0
votes1
answer810
viewsA: How to leave fixed sidenav and Toolbar with angular material
I use this template to have the side menu and a fixed Toolbar.. changing only the routes in Angularjs to view. <body ng-app="deluxApp" layout="row"> <md-sidenav class="md-sidenav-left…
-
1
votes1
answer1092
viewsA: Angularjs - Problems with accentuation
I’m not using a Servlet directly, but I’ll give you the settings I’m using. Maybe this will help you. Prelude.jspf <%@ page language="java" contentType="text/html; charset=UTF-8"…
-
1
votes2
answers35
viewsA: Run code before starting services - Angularjs
What you need is to create an Interceptor using the $httpProvider. Maybe this link will help you Interceptor…
angularjsanswered Caio Leonhardt 185 -
2
votes1
answer273
viewsA: Syntax doubt in Angularjs
What is the difference between the declaration of Function 1 and Function 2 (why there are these 2 forms and what would be the practical impact in choosing one or the other)? When Javascript file…
-
3
votes1
answer89
viewsA: Web Page Optimization with Java
When it comes to front-end performance, there are many ways to optimize. With http/1.1 the main ones are: minification and/or concatenation of javascript and css files Image compression to reduce…
-
5
votes1
answer170
viewsQ: How is the Linux kernel or programs written in C tested?
When we use Java, we use Junit to test codes. But codes written in C, such as kernel Linux, how it is tested?