Interesting questions
-
0
votes0
answers17
viewsIs it bad practice to use native browser Apis with React?
I’ve been using React for a short time, and I use the browser’s native Apis a lot, for example to add or remove classes with events. My question is, is this a bad practice? I should try to make…
-
-4
votes1
answer30
viewsDoubt on how to read a line in C (sscanf)
My goal is to read 2 user lines, where each line has a number n >= 0 of integers, separated by space. The problem is that, when n = 0 (which is the case of line 2 of the code below), the program…
-
0
votes1
answer22
viewsRead meta with javascript
Many google Aces use javascript to work, in authentication they use <meta name="google-signin-client_id" content="api-key"> and javascript reads this to authenticate, as they do for Javascript…
javascriptasked 7 years, 11 months ago The Coder 141 -
0
votes1
answer56
viewsBinarywriter C#
I’m in a little trouble, i use BinaryWriter to write bytes and then send them as a response certainly I use it in the right way(I think). however, when I use it several times, I break point or…
-
0
votes2
answers439
viewsAngularjs - POST an array of objects (JSON data) to the php page
$scope.informations = [ { "name": "asd", "rg": "1123", "certificado": null, "sex": null, "date": null }, { "name": "fsdf233412423", "rg": "123123", "certificado": null, "sex": null, "date": null },…
-
1
votes1
answer252
viewsError deserializing Json . NET CORE 5 - Jsonexception: A possible Object Cycle was Detected
I basically created an API project on. NET 5. My idea is to consume their API (Take repository information), and then make some information available in my API. The request is successful but there…
-
0
votes0
answers42
viewsWhich html markup for menu, which consumes the least browser resources?
Below is a simplified version of the HTML markup of a menu I use: <ul> <li><a href="#" title="Teste X">Teste X</a></li> <li><a href="#" title="Teste…
-
1
votes1
answer843
viewsError running Dropdownlist on ASP.Net MVC
I’m having the following error when turning: System.Invalidoperationexception: 'There is no 'Ienumerable' Viewdata item that has the 'Sexoid' key'.' Follows code below: Model: [Required(ErrorMessage…
-
1
votes2
answers80
viewsreturn the query as the zend string
I have the following code where I need to store inside the $erro_items variable the complete query with the parameters to analyze what is happening, my doubt is, how do I show this query? $sql = new…
-
1
votes1
answer36
viewsHow to remove null decimal part (00) of Javascript number formatting?
I intend in Javascript to have the following result: Entree Expected exit 1.6 1,60€ 1 1€ 1.55 1,55€ I’ve tried to: num.toLocaleString('pt-PT', { minimumFractionDigits: 0, maximumFractionDigits: 2 })…
-
7
votes2
answers335
viewsHow to verify that the document markup is HTML5?
I am creating a plugin and need to know if the document is written in HTML5 or not. I thought I’d use the document.doctype, but I don’t know what to compare it to since I compare it to '<!DOCTYPE…
-
0
votes1
answer347
viewsWhat is a vision document?
I would like to know what a vision document is? Note: I searched the internet and I believe that the explanations I found were not enough for me to begin to understand. This is because they did not…
-
0
votes2
answers3045
viewsFormat PT BR date and time return in PHP
I’m using the function strtotime of PHP to format the date that come in the database SQL SERVER and is working normally on the local server, but on the web returns the date 12-31-1969 21:00 PM.…
-
-1
votes1
answer75
viewsSomeone experienced who understands string manipulation well, who can help with this error
Good morning, I am presenting a problem that I have no idea the reason, I have tried to ask other people, none discovered the real reason for the error and how to repair it. Good my teacher, asked…
-
1
votes2
answers271
viewsHow do I select exactly the element searched for in jQuery regardless of classes or ids?
If you execute the code you will see that the second form is influenced by the first one and does not take the data for itself. Of course this is a flaw in my jQuery. The first form works perfectly,…
-
1
votes1
answer378
viewsInvalid login message always appears in Cakephp
When I log in to my login page, the warning message appears that the user or passwords are invalid, but this should only appear after pressing the login button. There’s no way around this? My view:…
-
3
votes3
answers1730
viewsChange date format from "yyyy-mm-dd" to "dd/mm/yyyy"
I’m trying to change the shape of a date yyyy-mm-dd for dd/mm/yyyy. I’m using this code: $date = "2019-03-27"; $date1 = new DateTime(date_create_from_format('Y-m-d', $date)->format('d/m/Y'));…
-
1
votes2
answers163
viewsIs there a way to "link" specific content from one repository to another?
I have a program that needs some DDLs, those DDLs are available in another Git, also on Github. Therefore, it would be possible for my library link such a file to such a repository? To be more…
-
1
votes3
answers2378
viewsSend a List<T> with multiple items to the controller
Well, I’m facing the following problem in a project I’m working on: how to pass a list (List) with approx. 500~1000 View lines for the Controller? Actually, this list of mine has a field called…
-
1
votes1
answer149
viewsHow to adjust the width of the jquery datatable to larger resolution screens
I’m having trouble displaying my datatable (empty) on screens with higher resolutions. I’ve tried using the class table-responsive-lg, but it hinders the responsiveness applied by the class…