Interesting questions
-
4
votes4
answers1225
viewsHow to block website and leave free only for some ips?
I would like to know how I can block my site that is under maintenance and leave free access to two ips, I’m doing this way , but it only leaves free for one. I want you to be free for both of you .…
-
6
votes1
answer111
viewsCan LINQ be considered business rule?
Sometimes I pull active objects with LINQ expression. Utilise filtering with LINQ can be considered a business rule and in a scenario such as DDD (Domain-Driven Design)? What is the best place to…
-
15
votes3
answers5859
viewsDevelop for multiple platforms using C# and Xamarin Studio
To not have to learn various technologies to develop for the various mobile platforms, wanted to use only C#. However I have some doubts, namely: Xamarin Studio is free? With the same code, the…
-
0
votes3
answers39
viewsCast error while running the Rest service
I’m making that mistake: The 'Qtde' Property on 'Itenslib' could not be set to a 'System.Double' value. You must set this Property to a non-null value of type 'System.Single'. What can cause it?…
-
0
votes1
answer166
viewsIs it possible to disrupt an object inside another object?
I know it’s possible to do this with arrays, type one array thus const array = [[['teste']]] const [[[variavel]]] = array variavel // => 'teste' there is some way to do something similar to…
javascript objects variable-declarationasked 5 years, 10 months ago Christopher William Buscoski S 13 -
4
votes1
answer75
viewsC# float++ and float-
I used the following code snippet: bool plus = false; int index = 0; index = plus ? index++ : index--; the index result is 0 and do not know why, when I do the way below it works: index += plus ? 1…
c#asked 7 years, 11 months ago Roberto Gomes 455 -
1
votes0
answers90
viewsDoubts about how to pick up line values inside a C file randomly
Guys, I’m creating a game called "run the wheel",I have doubt on a part of the code, where I need to pick up words inside a file randomly. My file is this way that I will put down: vegetable 2…
casked 7 years ago Leandro Sampaio 11 -
8
votes2
answers339
viewsWhere to put Data Annotation? View Model or Model?
Using Entity Framework Code First, with view model and model. To create a column with varchar(2), need to put the MaxLength(2) in the model and in the view model?…
-
0
votes1
answer52
views -
1
votes1
answer1711
viewsFDQUERY at runtime
I’m trying to use the FDQuery only at runtime. I’ve done a lot of research and tried several changes, but they all end with Access Violetion, so it’s suspicious that the component isn’t being…
-
1
votes0
answers38
viewsHTTP header authentication error
I’m trying to set up a Zopim Reseller API, only I’m facing a problem: Key API authentication and Secret API. I have the following Javascript code: <link…
-
0
votes1
answer55
views -
0
votes2
answers54
viewsurl with parameters returns wrong value
I have the following appointment to api of Google Maps http://maps.googleapis.com/maps/api/distancematrix/xml?origins=Muriae&destinations=Rio de…
-
0
votes1
answer94
viewsHow to import CSV files from a same level folder (and/or above) in Python?
I have already searched several topics here, unsuccessfully however. So, if there is already an equal question, please forgive me and indicate a solution. My project is articulated as follows:…
-
0
votes0
answers110
viewsPersist child objects with parent id 1:N
Guys I’m having difficulty in relationships with Hibernate, I have a 1:N relationship between Provider and Address (1 provider may have N addresses). My problem is this, when I try to persist a…
-
-1
votes1
answer52
viewsMultiple models - three apps
Good evening dear... my TCC project, has three apps: classrooms, classrooms and allocate. I need to make class allocations in the rooms, after allocated I need to schedule a class boleano as…
-
0
votes0
answers50
viewsHow to detect that the text has created new lines
Let’s imagine I have a lable and has a text with n characters. Whenever this text does not fit he will put the words in the bottom line. How do I detect that this happened? I tried so internal int…
-
1
votes1
answer505
viewsDisable selection for Datagridview c# Windows Forms line
Hello, thanks for your attention I want to know how to disable the possibility of selecting a line from a Datagridview Meudatagridview.Rows[Line disabled]. enable = false; I’ve tried the Frozen:…
c#asked 7 years, 4 months ago Gustavo Pedro 201 -
2
votes1
answer66
viewsFluent is safe, right?
Someone who’s already used the Fluent, Can you tell me if he’s safe with SQL Injects? All right that it uses PDO, but suddenly it does not treat the data before it is sent to the database. And if…
-
0
votes1
answer161
viewsValidate 2 or more emails in an input
I have a registration that validates the email event focusout in Input. That validation works perfectly. Now the need has arisen to validate multiple emails within the same Input, separating by ";"…