Posts by Leandro Godoy Rosa • 2,744 points
92 posts
-
4
votes4
answers243
viewsA: Script making many improper requests
Your problem is in how you created the function addOptionSelect To understand more simply I have simplified its function to the minimum necessary for the problem to occur, excluding only the code…
-
1
votes2
answers79
viewsA: Reusing string in XML
Just as an observation I did not test this directly with the Android SDK, but use with Xamarin and is working perfectly for me You can declare new entities in your XML to be able to reuse texts, so…
-
1
votes2
answers664
viewsA: HTML5 Video Autoplay in mobile browsers
Unable to give autoplay to a video in mobile browsers. This is a limitation imposed by them. This limitation is intended to prevent the unsolicited download through the user data package, thus…
-
4
votes2
answers553
viewsA: Make Javascript work on a certain screen size
You can force the event to be called through the method trigger, doing this right after setting it may solve your problem $(window).resize(function(){ //seu código aqui }).trigger("resize");…
javascriptanswered Leandro Godoy Rosa 2,744 -
3
votes1
answer171
viewsA: Using ng-Options how do I filter that exactly interprets the reported value
Depending on the version of Angularjs you are using you can force it to make an exact comparison by passing true as a parameter for the filter ng-options="chart.id as chart.name for chart in…
-
1
votes1
answer45
viewsA: Functions with public property
One function javascript is also an object, and as such it can have values and methods assigned to it like any other object. The $http of the angular is basically this, a function with a number of…
-
1
votes4
answers20361
viewsA: Android Studio emulator with AMD processor
Can’t use hardware acceleration for the emulator with AMD processors on Windows and Mac if I’m not mistaken, AMD processors are only supported on Linux according to documentation. In this case you…
-
1
votes1
answer1388
viewsA: Send Arduino String to C# via Serial
This is what is expected of a serial communication. There is no separation between the data sent and no guarantee that they will all arrive at once. Following his example, there is no guarantee that…
-
7
votes3
answers42289
viewsA: Is it possible to emulate a single ticket with mobile NFC?
I would say that the best answer to this question is that it is not possible. Because this is not possible? To understand this you first need to know how the card used by them works. I can’t say for…
mobileanswered Leandro Godoy Rosa 2,744 -
3
votes1
answer190
viewsA: Static Method in Interface
COM does not support static methods, this is a rule and there is nothing to do. You will have to modify your class so that all methods are members of the instance, or at least include nonstatic…
-
0
votes1
answer514
viewsA: My apk Signed does not run on my mobile
In your code you have these two lines setListAdapter(adapter); getListView().addHeaderView(menu); Where you first arrow the Adapter and then add the Header, this only works this way from Android…
-
2
votes3
answers335
viewsA: Layout Messagebox WPF
It is not possible to change the appearance of the WPF Message Box as it is not a window created by . Net using the components of WPF, this window is basically a call the Windows API, in case the…
-
2
votes1
answer1008
viewsA: Error when inserting data accentuated
You need to encode the url the right way, when you type it in the browser’s address bar it already does it automatically and so it works. You can use the URLEncoder.encode for this, remembering that…
-
2
votes1
answer538
viewsA: Several methods in the same Apicontroller
I’d say the real problem is your routes. As the first route that satisfies the request is used, and in your case the default route that is used by REST was mapped first it may be being used, while…
-
11
votes2
answers1619
viewsA: How do CSS rules take precedence?
The rule to define which will be considered the most specific, calculates, shall we say, the heaviness of each selector. For this, 4 values are used, they are: A = will be 1 if the style is present…
-
2
votes4
answers2562
viewsA: Definition of "margin-top" in percentage of a "div" works strangely
Really if you go simply by logic would imply that the margin-top and margin-bottom when specified in % would be a value referring to the height of the parent element, but that’s not how it works.…
-
3
votes1
answer414
viewsA: I can’t publish apk
According to the documentation an application to be published in Google Play needs its subscription to have an expiration date until after October 22, 2033, the recommended time for them to generate…
androidanswered Leandro Godoy Rosa 2,744 -
2
votes1
answer118
viewsA: Problem at the playstore
This is most likely due to the recent changes of Google play, in App details they have included a new field called "Brief description" and there is a new mandatory image called "Resource Chart",…
androidanswered Leandro Godoy Rosa 2,744 -
3
votes1
answer62
viewsA: Why is the escape parameter not recognized in the Cakephp Htmlhelper?
It seems to me that you are passing the 'escape'=>false in the second parameter, which is the $url, when according to the documentation it must be passed in the 3rd parameter ($options) Try…
-
5
votes3
answers152
viewsA: Viewdata error in controller
Initializing an object’s properties is done with {} var pessoa = new Pessoa { PessoaId = 1, Nome = "teste teste", twitter = "@teste" };…
-
4
votes1
answer2105
viewsA: How to get permission to write in the Windows registry via VB to HKEY_LOCAL_MACHINE key
The HKEY_LOCAL_MACHINE key only allows recording if the user logged in to Windows is administrator, and in the case of UAC if the program that is trying to modify the value has been run with high…
vb.netanswered Leandro Godoy Rosa 2,744 -
4
votes2
answers38176
viewsA: How do hexadecimal numbers work?
A good use that one has of hexadecimal when it comes to programming is for the creation of flags, such as the Windows API, when a message box and if you want it to be of the type Yes/No and show the…
-
3
votes2
answers244
viewsA: Javascript injection in Internet Explorer, returns null
This is what is expected from this method. In accordance with the documentation the method execScript always returns null See an excerpt: This method Always Returns null. How translated is: This…
-
1
votes2
answers672
viewsA: Validation model always fails
This is because the Model is only validated before the Controller is executed, changing the model’s value will not change the value of the ModelState.IsValid In your case you could take the…
-
2
votes1
answer53
viewsA: Are there restrictions on XML rendering?
There is no limitation, by error message your problem may be the presence of a & in some field. You can try to replace all & that you have to &…
-
5
votes2
answers1442
viewsA: Is it possible to get some value from the browser that identifies the user’s machine?
There is no way to get a value that only identifies the machine, either on the client side by javascript or on the server side. The only way would be to run some program on the client side, as you…
-
2
votes1
answer102
viewsA: WPF Buttons automatically grouped in a stackpanel
If I understand correctly what you probably want is to use a WrapPanel with the property Orientation="Vertical" instead of a StackPanel, so each added control will appear one below the other and…
wpfanswered Leandro Godoy Rosa 2,744 -
1
votes4
answers362
viewsA: C# e.Hasmorepage is in Eternal Loop
It’s a logic problem that, I think you don’t quite understand how the printing process works with Printdocument. Like you said, he goes back in PrintPage, and this is what is expected. This event,…
-
1
votes1
answer419
viewsA: Doubt about static methods and classes
Yes, not only if two users but any request made to the server will access exactly the same value. In general it is not recommended to use static variables with ASP.Net, not only because it has a…
-
5
votes1
answer125
viewsA: ASP.NET vNext is interpreted like PHP?
No, it’s not interpreted, if you look at the Getting Started you will see that it says that vNext uses Roslyn to compile the code dynamically, so you have the facility to change the code at any time…
-
1
votes1
answer689
viewsA: Find files on Xamarin Android
You can’t just add a file anywhere in this way. Other than Windows, where you can include files in a project and have them copied to the program folder, in Android the program should contain…
-
1
votes1
answer963
viewsA: How to set the installation location in Clickonce?
There is no way to change, Clickonce was made to be like this, because it was made so that any computer user could install the program, even though they do not have administrator permissions, except…
-
2
votes1
answer91
viewsA: Activity does not open
See that in the OnCreate of his MainActivity you are never adding button click Event Handler if (!string.IsNullOrEmpty(edt.Text)) { bttn.Click += delegate { var ress = new Intent (this,…
-
1
votes1
answer1021
viewsA: How to Build Object Array
There is no difference between the two, the difference is in the way the Chrome console is showing it only. And it’s not because of the size of the Array that it does this, because of the tests I…
-
3
votes1
answer3697
viewsA: make payment in paypal without requiring the customer to register without account
According to information on paypal website this is automatic, you have the option to disable this feature in your paypal account that receives payments and not in its integration with your program,…
-
1
votes2
answers20153
viewsA: How to disable android home button
The Android Home button for security reasons was made so it could not be blocked by apps. Any way you find to do this is basically a Hack that there is no guarantee that will work or that will…
androidanswered Leandro Godoy Rosa 2,744 -
0
votes2
answers1224
viewsA: How to fix this issue with Datagridview Check Box Cell?
The reason he gets the wrong value when he clicks too fast is because in this case the Doubleclick event is triggered to the second click, and there is not much to do to prevent this. An alternative…
-
1
votes1
answer235
viewsA: Can the automatically generated . mdf database in App_data be used in production?
The problem of using this database is that Attachdbfilename is an exclusive property of SQL Server Express, it works only as a user instance and cannot be used by the network. If you have control…
-
4
votes3
answers3136
viewsA: Generate 32 character MD5 password with Cryptsharp
MD5 is a 128-bit Hash algorithm, in fact it will not return you 32 characters but 16 bytes that are usually converted to hexadecimal text so getting the 32 characters you refer to. But you’re using…
-
2
votes2
answers11473
viewsA: Icon with notification counter
Pure Android does not have this functionality, manufacturers add this functionality in their UI and is different in each of them to use this feature. In the case of Samsung Touchwiz would be like…
androidanswered Leandro Godoy Rosa 2,744 -
0
votes1
answer93
viewsA: Association in Devexpress XPO models
It is mandatory to have the association on both sides of the model, the Xpo inspects both tips to know the type of association that has been made. The name of the association is usually optional,…
-
2
votes1
answer89
viewsA: String with spaces - Regex Ismatch returns true when it should return false
There may be some difference between how these sites work and the Regex class. Making tests here some websites return true for this value, others return false, what you can try to do is change the…