Posts by Tuyoshi Vinicius • 4,046 points
60 posts
-
3
votes2
answers650
viewsQ: Creating custom Annotations in ASP.NET
I own a Controller in my project Asp.net (Web Service) I need to do a token check for each method request. One solution I found is to create a static method and place a call at each start of each…
-
36
votes6
answers5796
viewsA: How is computer randomization generated?
One of the most commonly used algorithms in pseudo-random numbers by computers is GCL also considered to be one of the simplest is the so-called linear congruent generator (GCL), presented by D. H.…
-
2
votes3
answers2384
viewsQ: Media Player Classic libraries in my Windows Form project
I am developing an application that will work as a player, however the videos inserted in my software will be of various different formats avi, mp4, flv and etc... for this reason I do not want to…
-
1
votes2
answers507
viewsQ: Webclient request returns empty
In my program I need to get the contents of my site, but the return of the downloadString method of the Webclient object returns null. The most intriguing is that there is no exception, the status…
-
19
votes1
answer3428
viewsQ: Communication between Android and USB devices
I’m developing an application for Android that communicates with a USB device, a printer, an Arduino or another Android device. Is it possible to read and write on the Android USB port? How should I…
-
13
votes1
answer6004
viewsA: HTML5 print screen automatically
There is a project open source called html2canvas that converts the view of a DOM object into a canvas and with it you can retrieve it in the form of an image. I advise read the documentation for…
-
2
votes3
answers787
viewsA: problems to print a double number
Use the Bigdecimal class. double variavel = 0.3333333333333333; BigDecimal bd = new BigDecimal(variavel); bd = bd.setScale(1, BigDecimal.ROUND_HALF_EVEN); System.out.println(bd.toString());…
-
0
votes5
answers1876
viewsA: Retrieve a final value from a json in Javascript
A good suggestion too. var ajax = function(url, requestType, callback, queryString) { var ids = ['MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP'], xhr; if (window.XMLHttpRequest) xhr =…
-
1
votes4
answers514
viewsA: Error in mysql_fetch_object
When you use the mysql_fetch_object the pointer return is always an object of type stdClass, so you cannot reference it with the Brackets because only arrays are referenced so, to reference it so…
-
1
votes4
answers1855
viewsA: PHP/Codeigniter error "Array to string Conversion"
A version of your shortest code. public function distribuicaoprodutos(){ $filiais=json_decode($_POST['filiais'],TRUE); $dados=json_decode($_POST['dados'],TRUE); $insert="INSERT INTO movimentacao…