Posts by Rod • 9,412 points
210 posts
-
6
votes2
answers605
viewsQ: What better way to organize and work with ASP.NET MVC routes?
What better way to organize and work with ASP.NET MVC routes? While we have 1, 2 routes, it’s quiet, but when do we have 500 ? 600 ? In an enterprise application there are many routes, which is the…
-
11
votes2
answers2611
viewsQ: What are Javascript "mixins"?
What are "mixins"? I see in some Javascript codes and would like to know what it is; real examples of use.
javascriptasked Rod 9,412 -
177
votes4
answers72185
viewsQ: What is a callback?
I see in many codes and even architectures the word callback, I see that it is in Javascript functions. But what is? How is it used? Why? I’d like an example of real use.…
-
19
votes3
answers1755
viewsQ: How does the Flux architecture work?
Reactjs brought with it a new architecture, also used for Facebook and Yahoo! I wonder how it works, what exactly is a Dispatcher, Store, Action... If possible, on the basis of the MVC.…
-
9
votes2
answers588
viewsQ: Web Components - What is the difference between Polymer and Reactjs?
With the advancement of the web, we now also have the web components. Google created and maintains a framework named Polymer, although it does not have much compatibility with several browsers. At…
-
9
votes3
answers2834
viewsA: Run action after 2 minutes without moving the mouse
You can use a timer in an event mousemove As in the example below: $(function() { //onload setEvent(); }); $(document).on('mousemove', function() { //mouse move if (timeout !== null) {…
-
8
votes3
answers516
viewsQ: Client router vs server router?
What is the advantage and disadvantage of routes being made by server(php,Asp.net, etc.) or by client(Angularjs,emberjs,backbone...) ? In terms of performance, which has the most? Security, mobile,…
-
1
votes1
answer577
viewsQ: Reactjs and routes
The Reactjs framework comes with the idea of web components. Well, he doesn’t use MVC but what about routes? in a menu? how would I access my components correctly?
-
2
votes1
answer422
viewsQ: Like getting X and Y points on a Div?
I’m trying to create the following picture And I want to draw a line between each of them I believe it’s taking the X and Y axis, how do I do it?…
-
14
votes3
answers21251
viewsQ: What is a virtual class, attributes and methods?
What is a class, attribute and virtual method? public virtual class nomeclasse { public virtual int id { get;set; } public virtual void metodo() { } } What difference? When to use?…
-
1
votes1
answer219
viewsQ: Multitenancy application and structure
Saas applications are getting higher, reducing costs, maintenance, etc. We know we have the concept: Multitenancy (http://msdn.microsoft.com/en-us/library/aa479086.aspx) It’s them: By Column: Place…
-
2
votes1
answer774
viewsQ: How to check if my user is online Asp.net Identity?
I want to block so he can’t use the same login on multiple machines. So I need to know if he’s online, how do I do it on Asp.net identitty?
-
0
votes1
answer89
viewsQ: Service class layer BLL
It is bad practice to have a very extensive method within my service class? Or it would be better to divide them when possible into smaller methods in the same class and call them?
-
1
votes1
answer1469
viewsQ: Block access to files from certain directories if not authenticated
How to block the access of certain directories if it is not authenticated? For example I have my url www.meusite.com/login User is not yet authenticated So I don’t want it to be able to access any .…
-
1
votes1
answer131
viewsQ: Migrations Entity framework method
Usually when working with the Entity framework, we use the calls in the console add-migration migrationName update-database I’d like to make it a method, so when you call him, he’ll be executed.…
entity-framework-6asked Rod 9,412 -
4
votes2
answers1073
viewsQ: Concatenate table name loop sql server
I’m trying to fill a table of mine with a loop in sql server follows the code: declare @i int set @i =1 while @i < 5 begin INSERT INTO TABELA VALUES('teste') set @i = @i + 1 end I would like to…
-
0
votes1
answer753
viewsQ: Can I have a single route file in Angularjs and have multiple modules?
I am interested in separating my app by module app controllers views diretivas services --modules ----principal --------controllers --------views --------service --------index.html ----cadastro…
-
2
votes1
answer601
viewsQ: Can we create the business rule in our model?
What best practice? Create the rule in the model itself or create another class Ex: public class Item { public void Faturar() { //fatura item } } ou public class ItemBLL { public void Faturar(Item )…
-
3
votes4
answers671
viewsQ: Can I use Repository to do the BLL part?
I was reading about Repository vs Dao and I saw the following sentence: [...] The Repository standard aims to support the Domain model providing persistence. Unlike DAO, which is an object of…
-
3
votes1
answer445
viewsQ: What’s the best way to sync desktop app data with webapi?
I have my desktop application that needs to send data (just send) to a webapi, this data cannot be sent repeatedly and also after sent, not send again, the desktop app will be on. net(wpf) the…
-
4
votes1
answer1150
views -
0
votes1
answer58
viewsQ: Save information from tabs
I have my canvas, as follows: each tab corresponds to a class, and database entity, and going in sequence there is a reference to them, ie na 02 tem referencia(fk) da 01, na 03 tem referencia(fk) 02…
-
3
votes2
answers426
viewsQ: Are Service Layer and BLL the same thing?
I have a question about service Layer and BLL, what’s the difference? where it’s used? I would like an example of classes using these structures.
-
0
votes1
answer762
viewsQ: Aspnet Identity Roles - Custom
My application has user groups that are customizable, that is, the end user creates and puts access to certain permissions. For that, I have my records Module, Menu, Item, Option Module = Financial,…
asp.net-mvcasked Rod 9,412 -
6
votes2
answers1269
viewsQ: Which Pattern is used to validate business rule?
I use Repository Patterns for searches,save and delete I wonder where is the best validation of my business... Ex: I need to check if the item is in a contrato of a prestador, and bill him with the…
-
2
votes1
answer140
viewsQ: Validate delete in controller, return html helper
I have my registration, which was done using Scallfold’s visual studio In my view: @using (Html.BeginForm()) { @Html.AntiForgeryToken() <div class="form-actions no-color"> <input…
-
4
votes4
answers8104
viewsA: How do I make a connected Dropdownlist with a model property?
One simple way I found and got it was: In my controller, return a list: ViewBag.Topicos = db.Topicoes.ToList(); And in my View use Dropdownlistfor as follows. @Html.DropDownListFor(model =>…
-
5
votes4
answers8104
viewsQ: How do I make a connected Dropdownlist with a model property?
I have my class: public class Topico { public int Id { get; set; } public string Nome { get; set; } public string Observacao { get; set; } } and my Subtopic class public class SubTopico { public int…
-
1
votes1
answer262
viewsQ: Entity framework does not create mdf file
In my ASP.net MVC5 project he creates the default database by Visual Studio 2013. I went to the App_data folder and deleted the database mdf file, as well as the log file. I’m wanting him to create…
-
3
votes1
answer540
viewsQ: Error installing Visual Studio 2013 Professional
:I’m having the following mistake: A assinatura digital do objeto não pôde ser verificada. When installing Visual Studio Professional 2013 on a Windows 8.1 Single Language notebook print:…
visual-studio-2013asked Rod 9,412 -
3
votes5
answers1054
viewsQ: Contains in Class List
I have my class, which has 2 classes within it. public class ProfEsp { public Especilidade Especialidade {get;set;} public Profissional Profissional {get;set;} } public class Especialidade { public…
-
4
votes1
answer1289
viewsQ: Customizing Asp.net Identity - Multiple classes as User in Identity
We know that our user on Asp.net Identity is the class named after ApplicationUser I would like to create other classes that inherit from her Why? Why, say I have the Customer, Seller, User class. I…
-
1
votes2
answers49
viewsQ: Wordpress Folder Permissions - 500 Internal Server
My Wordpress was working normally, I was editing the permissions for security reasons. Assigned to all folders inside mine public_html to 755 and assigns to all my files to 644 Well, now just from…
-
0
votes1
answer79
viewsQ: Controllers should have a single responsibility?
As well as the classes and objects of an application, mine controllers should have a single responsibility? Example. I have my controller Cliente, who has all relations with my model Cliente. I also…
asp.net-mvcasked Rod 9,412 -
15
votes2
answers3414
viewsQ: What are the advantages and disadvantages between action-based and Component-based frameworks?
Regardless of the framework or language(php,java,c#) What are the main advantages and disadvantages between action-based and Component-based frameworks? In which environment does one or the other…
-
1
votes1
answer332
viewsA: How to map an enumerator using Entitytypeconfiguration from Entity Framework 6?
Well, after a few searches and all, I have the following answer: Nothing, you don’t need to make any configuration. Just use Property(x => x.Estado);
entity-frameworkanswered Rod 9,412 -
3
votes1
answer332
viewsQ: How to map an enumerator using Entitytypeconfiguration from Entity Framework 6?
Good evening, I have my next class public class Endereco { public string Bairro { get; set; } public string Cidade { get; set; } public EUF Estado { get; set; } } and my enumerator public enum EUF {…
entity-frameworkasked Rod 9,412 -
2
votes1
answer601
viewsQ: Is there any way to compress data stored in byte[]?
I get a byte[] which is an image, and saved in the bank (Postgres) in a column o byte[] whole. Can I compress? Make this smaller byte[]?
-
64
votes4
answers26848
viewsQ: What’s the difference between DAO and Repository?
What’s the difference between DAO and Repository? Both are very similar, but in which case it is better to use one or the other? I would like code examples.…
-
-2
votes2
answers83
viewsQ: How to make multiple themes for a website?
How multiple themes work on a website? I have themeRED.css e themeBlue.css Do I have to save the css location to the bank? or there’s an easier way ?
-
66
votes7
answers11287
viewsQ: Is it wrong to write byte of images into the database?
When should I make this recording directly at the bank? What situations? I know I can record in the bank the image path.
-
5
votes2
answers318
viewsQ: In an architecture, does the number of Dlls influence performance? Scalability?
I have the habit of creating my Solution like this: Entity - Class Library (Classes, entities) Utils - Class Library (Classes of support, security, generate xml, in short, all kinds of functions)…
-
4
votes2
answers939
viewsQ: How is the java project separation?
Well, I come from . net and there we have projects that we can divide them into class library and web project I have my design just for my models Another only utils project and my web only project…
-
0
votes1
answer254
viewsQ: Is there such a thing as nhibernate Fluent for java Hibernate?
I know that fluent nhibernate(Hibernate version for . net) uses lambdas and that java just implemented now in version 8. But there is some form of configuration of hibernate of java through code?…
-
1
votes2
answers1234
viewsQ: Store shopping cart on customer or server?
What better way to store items from a shopping cart? In itself javascript, on the client side or in a session on the server, either using $_SESSION(php) or Session["sessao"](C#) Which would be…
-
3
votes2
answers94
viewsQ: Background disappears when my menu items are horizontal
I have the following HTML code: <div id="topo"> <div id="menu"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li>…
-
2
votes1
answer244
viewsQ: Multi-bank Login Control
Well, I have my application and every client will have his own database. As each customer will have their database, they will also have their user table for login. So I have Bancoempresa1 -…
-
3
votes1
answer201
viewsQ: Write HTML in JSF - Frameworks fonts?
I see in several code examples the views using those tags jsp, what I find very ugly and dirty. Are there any java web framework that is used in app corporate and can give me normal html, without…
-
5
votes2
answers114
viewsQ: Good practice with css selectors
What is the best practice for working with css selectors? Use .menu li { } ou .item {} .menu .item { } ou .menu-item { } //aqui usamos para atribuir propriedades para as <li> por exemplo How…
-
3
votes2
answers351
viewsQ: Always need to do clean and rebuild in visual studio
I have a problem in my Solution in visual studio 2012. Whenever I need to debug and fall into a break point, I need to clean and rebuild in my Solution, otherwise it runs, but not for us break point…
visual-studioasked Rod 9,412