Posts by Oralista de Sistemas • 23,115 points
435 posts
-
0
votes1
answer49
viewsA: Sharepoint 2007 and 2010 with Office Online 365
Uninstalling Office from users' machines is unnecessary unless you have any licensing issues. Sharepoint 2010 already had some level of integration with Office 365, but since this is a cloud…
-
3
votes5
answers5036
viewsA: Join two Jsons into a single object
You can create a new object that contains the properties of your JSON’s, no matter how many, and then switch to JSON again. For example: var json1 = { "razao_social":"INTELIDER",…
-
1
votes3
answers314
viewsA: Jquery function does not find the Controller when I go up to the server
This is because the paths to the application on the server and in your debugging environment (debug) are different, as you yourself made clear in the question. When you make a request to your…
-
4
votes2
answers1771
viewsA: Javascript clock with NTP or server time
If you are going to use an NTP for business use, you will probably have to pay for a license. If you use a server platform that allows you to use PHP, . NET, Java, Ruby etc. you can mount a service…
javascriptanswered Oralista de Sistemas 23,115 -
2
votes3
answers5999
viewsA: several values for a column in Where
The clause in accepts an unlimited amount of parameters. So, you can do: --SELECT * FROM foo WHERE bar IN ('fulano', 'beltrano', 'cricano', 'Palmeiras não tem mundial', 'etc') In your specific case:…
-
13
votes3
answers971
viewsA: Is POO the same in all languages?
Not. A lot of people learn in college or Internet tutorials that C# and Java are object-oriented because they have class concepts. And that’s just it. And it’s because of this general acceptance of…
-
1
votes1
answer720
viewsA: Standard Color of Background
They asked that two years ago in the English OS: https://stackoverflow.com/questions/14507370/what-is-the-default-layout-background And the answer marked as correct said that the theme light is…
androidanswered Oralista de Sistemas 23,115 -
4
votes2
answers35
viewsA: Jquery ignoring houses on the right
It doesn’t ignore houses. Unless there’s more code you want to show us*, I believe the comparison is made between texts, not numbers. When you compare texts, the comparison is in alphabetical order.…
-
7
votes2
answers351
viewsA: Readability of javascript codes
There is a book that is something like the Holy Bible on this subject. I have already taken him for sacrosanct truth and I see any deviation from his teachings as heresy. My gospel is called Clean…
-
1
votes2
answers190
viewsA: Postgresql COUNT function does not work
In the first query you have a grouping (GROUP BY). In the second query no. This changes the output format. Comparing the amount of records from one query to another is like comparing apples to…
-
0
votes3
answers463
viewsA: Change external iframe color or set opacity to iframe
If you are asking this, it is because you do not control the external iframe, right? Otherwise it would be trivial to solve your problem. This only works if the iframe is loaded from the same domain…
-
2
votes1
answer80
viewsA: Jquery: Switch focus window in browser by clicking link
This has been possible in the past, in very specific situations. But for security reasons, browsers today prevent this. If you could shift the focus to another tab, you would probably have total…
-
4
votes4
answers224
viewsA: Code Optimization / Image Processing
Although I think my answer is correct, Lacobus is better, more concise and more efficient. /* Backward Rotina */ /*…
canswered Oralista de Sistemas 23,115 -
1
votes1
answer509
viewsA: Run function when closing javascript tab
If you run an ajax method in the tab output, the server will receive the request and process it, but there will be no tab to answer the ajax response when the response arrives. There is no way to…
-
0
votes2
answers2041
viewsA: How to generate an automatic sequential number in C#
On the form: private int _contador = 0; In the method in which you will change the text: this._contador++; this.txtBox1.Text = this._contador.ToString().PadLeft(2, '0'); The method PadLeft class…
c#answered Oralista de Sistemas 23,115 -
0
votes4
answers2363
viewsA: Javascript - Validating Numeric Field (popup)
Javascript has very simple native functions that can help you in this case. Try it on the console: var foo; // preencha foo isNaN(Number(foo)); //retornará verdadeiro se foo não for uma…
-
0
votes1
answer26
viewsA: How to remove news from a blog for my Platform?
If your company blog has RSS, you can read this RSS with Zend. Zend RSS reading feature documentation (in English) So you’ll have the blog posts as objects in your PHP code, and you can render them…
-
37
votes3
answers1078
viewsA: What is the impact of changing the default behavior of an HTML element?
Let’s go in pieces: It is allowed to use Javascript to change the natural behavior of an element to act as another? Yes. Javascript was created to give intelligence to the components of the pages.…
-
1
votes1
answer950
viewsA: Remove date and print link
No, there is no. That one "Feature" is totally independent of your source code. There is no Markup to make them disappear, since this does not come from any HTML specification, and there is no…
-
1
votes2
answers71
viewsA: How to clear special characters from the expression Document.getElementById("Humidity"). value;
HTML field values are strings. The resulting JSON to call JSON.stringify with these values will actually be a JSON whose values will have double quotes. If you do not want your JSON to contain…
javascriptanswered Oralista de Sistemas 23,115 -
9
votes5
answers1745
viewsA: Console utilities.log()
console.log will call the method log of the console object. Congratulations Captain Obvious, this information changed my life! Calm down, young man. It turns out that the implementation of the…
javascriptanswered Oralista de Sistemas 23,115 -
19
votes2
answers4241
viewsQ: What is a rubber duck and what is it for?
There is an expression used from time to time in the middle of programming that concerns working on code with a rubber duckling. How the duck helps develop software in a better way?
terminologyasked Oralista de Sistemas 23,115 -
2
votes1
answer818
viewsA: Customize Tabcontrol C#
Buttons can be made flat ("flat") through property Appearance of TabControl. The property is an enumeration and one of the values does what you want. The other changes are not available for the…
-
2
votes3
answers10154
viewsA: How to align one element on top of another with css?
You can make an element occupy an entire line by itself modifying the style (via attribute or CSS). Just enter display: block. This is the standard for div's, but for links for example the behavior…
-
1
votes1
answer752
viewsQ: Avoid unnecessary spaces in textarea with standard text
Situation: I have an element textarea which has standard text, which can then be changed by the user. The text has multiple lines. Problem: Text takes into account the indentation spaces of the…
htmlasked Oralista de Sistemas 23,115 -
16
votes1
answer180
viewsA: Law on the code
I don’t know about Portugal. But in Brazil, software as property is governed by intellectual property law. It is different from the United States, for example, where software is governed by patent…
licenseanswered Oralista de Sistemas 23,115 -
2
votes1
answer158
viewsA: Secure Application
Read what you wrote yourself. the idea of the program is to control computers at a distance. More carefully now. control computers from a distance. Your personal definitions of viruses nay were…
c#answered Oralista de Sistemas 23,115 -
3
votes1
answer999
viewsA: Working with directory with special characters
You need to change the encoding (encoding) script through the command chcp. In short, the command changes the encoding in which your script is interpreted by powershell. The default code page for…
powershellanswered Oralista de Sistemas 23,115 -
2
votes2
answers871
viewsA: Button "hamburger" does not work
The problem is that in your code jQuery is included after bootstrap. <script href="bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script…
-
3
votes1
answer51
viewsA: Doubt about data type database
Yes, because you will use all 4 bytes to represent the number. For example, following the writing order of the bits from right to left, this is how you write the following values as 4-byte integers:…
-
1
votes2
answers95
viewsA: What is the numerical type builtins about?
It is an attack on the Portuguese language. But perhaps it is a culpable attack, because it may be the author’s lack of linguistic knowledge. Built-in is an English expression that is usually…
pythonanswered Oralista de Sistemas 23,115 -
1
votes6
answers2251
viewsA: Remove all elements from an array that already exist in another
You can use the native Javascript function splice. The splice() method changes the contents of a list, adding new elements while removing old elements. The function receives up to three parameters,…
-
4
votes3
answers119
viewsA: Why declare property twice in one class?
Currently C# admits that you declare a property like this: public Foo foo { get; set; } And underneath the cloths you have the private field to store a value through the name of the property and be…
-
2
votes1
answer65
viewsA: Insert Sql Server
You should make your column have a constraint of the kind unique. In an editor like the SQL Server Management Studio, you should address the table contents and create a single index for the column.…
sqlanswered Oralista de Sistemas 23,115 -
0
votes3
answers2084
viewsA: How do I Reload only in the modal window?
My two cents: 1) You should have a function that creates the modal from scratch as needed. That way whenever you need you can assemble a new one from scratch, with the initial state; 2) I think that…
-
-3
votes3
answers4840
viewsA: How to Format Javascript Date by Naming the Month and Day of the Week
Javascript does not have this feature natively. I suggest using a library for this, preferably Moment js.. On the link page there are several examples of the use of its function format. At the…
-
3
votes3
answers525
viewsA: How to insert an existing record into the Entity Framework?
You have two alternatives. Healthy alternative: clone the objects you want to copy and save the clones. The advantage is that whoever reads your code for maintenance will understand that it was…
-
3
votes1
answer139
viewsA: Regex to capture fixed strings in HTML and JS codes
Cannot use regex over HTML. Repeat with me. Cannot use regex over HTML. Write on a board 100 times: for (int i = 0; i < 100; i++) { print('Não é possível usar regex sobre HTML.') } If you were…
-
0
votes1
answer99
viewsA: Publishing site on IIS gives debug error
Your code uses a DLL that does not exist on the server. Find the Web reference.Helpers in the project, open the properties (select the reference and press F4) and mark the option to always copy when…
-
8
votes4
answers936
viewsA: Why is the use of Dynamic something to be avoided?
Asking why a feature is something to be avoided is like asking why the use of a tool should be avoided. And you’ll never hear anyone ask you something like "why should I avoid using star key". The…
-
1
votes1
answer27
viewsA: C#(SPA) template does not run
Apparently this is a typo - but not yours! The expression ValdiateAntiForgeryToken present in error message looks a lot like the method ValidateAntiForgeryToken, that should be right. You create…
-
4
votes1
answer104
viewsA: Is there any relevant difference between "Object-oriented programming" and "Class-oriented programming"?
Class-oriented programming is a subtype of object-oriented programming. Languages that allow the use of more popular object-oriented programming, such as Java and C#, require the developer to define…
-
3
votes1
answer92
viewsA: I have a geolocation code, but Chrome won’t give me permission to execute it
Turning Pedro Augusto’s comment into a response. The Chromium people (the project Chrome is based on) no longer accept certain features to work over HTTP. You will only be able to use on top of…
-
2
votes3
answers160
viewsA: Select Where IN all records
I suppose there’s an employee table and a training table, right? It would be something like: DECLARE @QUANTIDADE_TREINAMENTOS int SELECT @QUANTIDADE_TREINAMENTOS = count(*) FROM Treina SELECT…
-
2
votes3
answers1704
viewsA: Outline image with CSS text
Unfortunately I believe that what you want is not possible. The limits of HTML elements are all, by default, rectangles. You can even rotate them so that they become lozenges or other forms, but at…
-
0
votes1
answer36
viewsA: select goes blank when giving history.back()
The problem is that when you use the back functionality, the behavior of the page assembly is in charge of the browser - and I believe that in your case, the browser only reloads the HTML it had in…
-
2
votes3
answers3523
viewsA: ASP.MVC error "cannot find resource"
IIS does not serve the files .cshtml of your application. You access the pages of your application by entering the routes mapped to it. You will see how to configure these routes at some point in…
asp.net-mvc-5answered Oralista de Sistemas 23,115 -
2
votes4
answers4373
viewsA: How to change Bootstrap 3 code?
It is possible yes. Just open the code in your preferred editor and have it seen. Every developer has their favorite IDE, but you can even change in the notepad in an emergency (or if you are…
-
0
votes2
answers446
viewsA: Restrict access to only one page in the application, leaving the rest free
You can merge the two question codes and modify a bit as follows: <authentication mode="Forms"> <forms loginUrl="~/Admin/Login.aspx" name=".ASPXFORMSAUTH"> </forms>…
-
7
votes4
answers23157
viewsA: Identify if the device is pc or mobile and use a different code for each
Do not try to detect if your device is mobile or desktop via browser, this is less reliable than checking for majority in porn site entry. Chrome itself mobile has an option to pass through Chrome…