Posts by Roger Barretto • 2,640 points
64 posts
-
0
votes2
answers343
viewsA: How to clone a second branch using the same directory as the first cloned branch?
Yes. Starting point original branch -> develop >git status On branch develop Your branch is up to date with 'origin/develop'. Create first branch >git checkout -b feature/primeira-branch…
gitanswered Roger Barretto 2,640 -
0
votes3
answers230
viewsA: Bi-directional asynchronous communication in layers
You can solve the problem with 3 calls always originating from the Front End. Call your controller by passing mailing list and any other information that is required for sending. If the return of…
-
0
votes1
answer153
viewsA: How to do two views in one view with Angularjs?
Take the last message and add at the end of your angular message array. Thus: $scope.enviarMsgChat = function (mensagem) { var idUsuario = $window.localStorage.getItem('idUsuario'); var nome =…
-
1
votes3
answers1078
viewsA: What is the best way to pass JSON per parameter in Angular JS?
Assuming your user object is something like this: { "nome": "Roger Barreto", "idade": 34, "email": "[email protected]", "slug": "roger-barreto" } I would change the section of your routine to:…
-
0
votes5
answers946
viewsA: Bootstrap: prevent the menu from closing when clicked out of it
Remove the data-toggle from your menu buttons and make their display code without affecting boostrap behavior. I used your html window to click the buttons, find the internal menu and display it or…
-
1
votes1
answer138
viewsA: Custom context menu recovering table id
I first used the contextmenu function of the Jquery documentation and called it within the TR context so Voce has in hand how to get the ID of the clicked TR. When the context menu is activated from…
-
1
votes2
answers721
viewsA: How to run c# in the browser?
I will not tell you that it is impossible because I have seen people making up a Linux kernel (OS) running through javascript "embedded" in the browser. Linux emulator with Javascript But one thing…
-
2
votes2
answers1188
viewsA: How to make paging with Angularjs and php?
I suggest you use one of the various directives on the market. I particularly found this Exceptional! Page almost everything in Angularjs ! How to use: <ul> <li dir-paginate="item in items…
-
2
votes1
answer353
viewsA: Angularjs Factory in another file
First, in your files you are creating a new application all the time. Use variable name with $ that Inject is automatic, no need to explain it Separate the file that makes the inclusion in the…
-
0
votes2
answers1595
viewsA: How to make Jqueryui autocomplete with PHP return multiple data?
Instead of taking the data only of the name of the city, put in the vector the object of the city. Point to this vector as source of data Include a method that will be called when choosing an item…
-
1
votes1
answer56
viewsA: I need to modify the css of a radio button Md-radio-button via jQuery
You can try calling your jquery by the ng-init directive. If it doesn’t work, call your Jquery function from within the controller using the service $window and $timeout Creates an adjustment…
-
3
votes1
answer158
viewsA: Read appSettings Encrypted Web.config
Once encrypted the Voce file can no longer access this section "Prov" by ASP. To solve your problem, and make your client happy, I would use some ASP Encryption/Decryptor and put the encrypted…
aspanswered Roger Barretto 2,640 -
1
votes3
answers310
viewsA: doubt with ajax and angular
At first in my opinion . NET helps in this part by converting the JSON object into C# object automatically so the BairroModel or another class works. Basically you are giving up a structured…
-
1
votes3
answers480
viewsA: How to load an ng-controller through ajax and inject it into the DOM
Need to compile the HTML dynamic before adding it to the DOM by Jquery When compiling you need to specify the scope in which the provided HTML will be compiled because $Compile returns a function…
-
0
votes1
answer368
viewsA: Angular JS - an ng-model directive template does not work within ng-switch
I got into your Plunker and I noticed that it’s working yes. I adjusted some points in your project and got the expected result: Follow the Altered Plunker: Plunker Basically the changes were: Put…
-
0
votes4
answers529
viewsA: Form Angularjs with ng-repeat
It’s working because your ng-repeat is doing an interaction across the fields ["nome", "idade", "funcao"] That is, for Voce to access the client data outside the repeat, vc must provide the name of…
angularjsanswered Roger Barretto 2,640 -
2
votes2
answers382
viewsA: Update ng-repeat outside ng-view?
I agree 100% with the above colleague, follow a simple example below: var servico1 = function() { var servico = this; servico.listaInserido = []; servico.add = function(item) {…
-
2
votes2
answers297
viewsA: Why does href not work as desired?
My friend, most likely your template is checking HTML before Angularjs compiles, that is, I suggest that you put your Chat launcher inside a timeout a few milliseconds to ensure that Angularjs…
-
1
votes2
answers4721
viewsA: Angular JS - Take the value sent by the select of a directive
You have bound the dadosCombo, where in reality it should bind the selectedItem You should keep an eye on changing the model if you want to take action after the item change happens ($watch) Follows…
-
0
votes2
answers301
viewsA: Ajax request data with Angularjs is not getting to the action method
First, ASP.NET is expecting a POST in the "application/x-www-form-urlencoded" format. adapt your $http to the following: Note: According to Angular’s recommendation, Success was discontinued, use…
-
0
votes1
answer56
viewsA: Shared variables do not update after http request
Most likely your error is because you are using a variable to reference your controller and so the controller is not notified of the update. To solve the Voce problem you can use the $scope of input…
-
0
votes2
answers303
viewsA: Visual Studio - 64bit Software
Select your project: 1- Botao direito (Properties) 2- Section of Build 3-CPU (Select x64)
-
4
votes1
answer5794
viewsA: How to use MVC 4 session with C#?
Create a Sessionmanager public static class SessionManager { public static void RegisterSession(string key, object obj) { System.Web.HttpContext.Current.Session[key] = obj; } public static void…
-
6
votes2
answers2117
viewsA: Procedural generation
Basically game developers when using Seeds, they use Hash generators. Hash Generators: Generate the same string based on a short word. With the generated hashes they can generate other chained…
gamesanswered Roger Barretto 2,640 -
18
votes5
answers26646
viewsA: Is there a "sudo" for Windows?
By default the local user (Dominio = .) high in windows in English is Administrator. In this way: runes /user:. Administrator "Program path.exe"
-
4
votes3
answers22703
viewsA: When is the use of composite primary key recommended?
Composite key should be used if and only if you want to ensure referential integrity in your database that there will never be an equal combination of these keys for a record in the same table. I…
-
2
votes3
answers553
viewsA: What is the difference between a web service in the same project and a different project in the same project?
Do the following: Create a Class Library project for your business Create a MVC 4 or 5 project for your Website Create a MVC/Webapi project for your Webservice REST In your Website and Web Service…
-
0
votes4
answers6284
viewsA: How does an empty constructor work?
If the constructor of your class is empty, there is no need to specify it. Classes that do not have constructors at first are objects that do not require mandatory values to exist when they are…
-
2
votes1
answer1111
viewsA: Inserting Items in a Vb6 Collection
A collection in VB6 / VBA is of the Colletion type and accepts any reference object, one way to do this is in the Module or in its Class to have a property that consumes its collection for this…
-
7
votes1
answer5609
viewsA: SQL SERVER connection string for classic Asp
Taking source, whenever I needed I used these strings Connections, depending on your SQL SERVER and the providers installed on the application machine, Voce can make use of any Native Client to…
-
1
votes2
answers260
viewsA: Datatables - Rowspan in <tbody>: Cannot read Property 'classname' of Undefined
Boy, I took a look at that plugin jquery.datatable.js and it has approx 12,000 lines. To avoid error I added the test in the error line 669: if(nCell) nCell.className += ' '+oCol.sClass; Then he…
-
1
votes1
answer135
viewsA: How to identify which link fired a . Hover()?
Whenever you hover over one, you reset to not visible both and then just do the effect on the item you are receiving this. When hiding, hide only the item you left this ...…
-
65
votes4
answers26848
viewsA: What’s the difference between DAO and Repository?
The goal is the same: Serve as abstraction to persist the data. There is only one difference in its mode of use: A repository is bound by the application’s business rule and is associated with the…
-
2
votes1
answer799
viewsA: Show jquery-ui icon on the close dialog button
If Voce is using the same icon distribution as the JQUI template just modify the image url images/ui-icons_888888_256x240.png . .ui-icon-closethick { background-position: -96px -128px; }…
-
11
votes1
answer200
viewsA: How to make a test fail if it takes too long?
As the MSDN website says (http://msdn.microsoft.com/en-us/library/ms243175.aspx) just use the Timeout attribute. [TestMethod(), Timeout(80)] public void MyTestMethod()…
-
1
votes2
answers222
viewsA: Creating a collection
Transform these methods in your Viewmodel into properties that are consuming the Ienumerable Period defined by the Controller For example (Viewmodel class: Managepassagemmodel) private…
-
1
votes2
answers83
viewsA: How to make multiple themes for a website?
Save the theme name in the database and when loading the CSS file use the user theme string to load the css(s) with that theme. Ex: "tema1" HTML: <link rel="stylesheet"…
cssanswered Roger Barretto 2,640 -
3
votes1
answer822
viewsA: Query slows down with ORDER BY
Create an index in order DESC for both columns at the same time and exactly in this order: f.premium DESC and p.score DESC Another suggestion, because they are different tables is to concatenate the…
-
3
votes4
answers10375
viewsA: Difference between Object, Dynamic and var
I’ll be very colloquial: dynamic is an aberration that Microsoft created to suit the web world and the REST API’s, it’s like a variant type in C# that can receive an object of any type. Why freak?…
c#answered Roger Barretto 2,640 -
14
votes7
answers11287
viewsA: Is it wrong to write byte of images into the database?
In addition to what everyone mentioned here, it is interesting to record in the database when you need for security measures ensure the integrity of the data record with the image/file as well as…
-
1
votes1
answer135
viewsA: Perform UNPIVOT in Excel to import in Access
Practically Victor wants to give one UNPIVOT Apply the solution of this other issue and should solve your problem: is-it-possible-to-unpivot-or-Reverse-pivot-in-excel…
excelanswered Roger Barretto 2,640 -
4
votes3
answers581
viewsA: What is the best way to load JS?
Browsers when loading a page run it from top to bottom right to left. When the browser passes through a javascript file it immediately executes the code of this but however if the functions of…
-
2
votes3
answers88
viewsA: How to always leave 20px margin at the bottom of the page?
For absolute values, use the property bottom only. Use: .divTeste { position:absolute; bottom:20px; } HTML: <div class="divTeste"></div>…
-
0
votes1
answer597
viewsA: How do Preload large images?
I understand that you want to show your site only when all images are loaded. This way just use: $(window).load(function() { $('.principal').show(); }) Or $('body').load(function() {…
jqueryanswered Roger Barretto 2,640 -
1
votes2
answers3307
viewsA: Change Oracle session to accept comma and dot number in C#
According to this article in the original OS, there are several answers that can elucidate your problem: how-to-format-oraclenumber-generically Here’s one I like: alter session set…
-
0
votes2
answers1110
viewsA: Laravel 4 (Eloquent) Error deleting records
Confirm that the ID of the object exists, interpreting the result a little, looks like the function Download::find($id); returns a string/null when the Id does not exist, therefore when Voce tries…
-
1
votes1
answer161
viewsA: What is the essence to model a system?
Start by writing 3 stories first. 1 - Detailed history of how you want the portal. 2 - History of how people will use the portal 3 - History of how those responsible will update the portal With…
-
0
votes3
answers2329
viewsA: CSS: Firefox and Chrome problem using padding
There is a common technique in CSS that is the use of a file that "resets" the default values that browsers usually put by default in the elements, this way it is easier to track and prevent any…
cssanswered Roger Barretto 2,640 -
2
votes2
answers240
viewsA: QUERY with no expected result, what might be missing?
If one of these tables sca_dependente or sispro_contrato have more than one record, your query will bring as many person records as exist in these auxiliary tables. In this way, I recommend that you…
-
1
votes3
answers1134
viewsA: Retrieve statistics from a website
Google launched its Real Time API. With it Voce can easily pick up visitors in real time. In addition to other Google Analytics indicators. Address:…