Posts by Vinithius • 389 points
28 posts
-
0
votes1
answer65
viewsQ: Matplotlib graphics are overwriting themselves
I’m trying to generate a report with several charts generated by matplotlib, however, I realize that after generating the graphics they are overwriting others that have already been created, follows…
-
1
votes0
answers114
viewsQ: Add CLASS attribute in Select widget Option Django
I’m wearing a widget=forms.Select() in a forms.Form Django, however, when trying to add a CLASS attribute in Options, which is part of Select, I can’t, only in Select itself, I searched and only…
-
1
votes2
answers896
viewsA: Custom android camera
I found a good way to put the frame in Preview and in the final photo, follows parts of the code: Frame in the Preview: surfaceView.setBackgroundResource(R.drawable.moldura_default); surfaceHolder =…
-
1
votes1
answer989
viewsA: Camera problems: Fail to connect to camera service
I managed to solve the problem with the help of our colleague Ramaral, it was simple, the permissions of Android 6.0 are different from its previous versions, however, it is still necessary to…
-
1
votes2
answers887
viewsA: Camera orientation with Surfaceview
I managed to correct the problem of rotation using a basic Switch, with the help of colleague Leonardo I did the following in the method surfaceCreated: @Override public void…
-
0
votes2
answers887
viewsQ: Camera orientation with Surfaceview
I’m having a problem using the SurfaceView for a custom camera on Android, I can’t work the camera orientation with the SurfaceView, no matter how I turn the Smartphone it always behaves strangely,…
-
2
votes1
answer989
viewsQ: Camera problems: Fail to connect to camera service
I have a problem in my application that uses the camera of a device. However, whenever I try to use the Camera.open() he makes an exception java.lang.RuntimeException: Fail to connect to camera…
-
0
votes1
answer156
viewsQ: Lenovo lives a7010 does not work in android studio
I tried everything to make Lenovo’s a7010 smartphone work, literally nothing solved, I’ve had some problems with Motorola, but something that a simple Driver already solve, however, this smartphone…
-
0
votes2
answers896
viewsQ: Custom android camera
I would like to make a custom Android camera in which it was possible to add an extra layer at the time of viewing and later put in the photo when taking the photo, however, I confess that I do not…
-
-1
votes1
answer1025
viewsQ: API Instagram - Search for public photos by TAG
I want to get all photos with a specific HASHTAG, but when using the following URL offered by the Instagram API... * https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN *…
-
0
votes1
answer362
viewsQ: The type or namespace name 'Ajaxcontroltoolkit' could not be found in the global namespace (are you Missing an Assembly Reference?
I have a problem when publishing or compiling the project, the following error appears: The type or namespace name 'Ajaxcontroltoolkit' could not be found in the global namespace (are you Missing an…
-
6
votes1
answer1385
viewsQ: Print text and image on Zebra printer
I used "Zebra Designer" to generate a "code" for the Zebra printer to interpret, but I don’t know how to add an image in the middle of that print dynamically, like... I have a tablet that the…
-
0
votes1
answer275
viewsQ: Compare all records in table "A" with each record in table "B"
I am a programmer and rarely use database, I came across an unusual situation of converting multiple files . DBF and save everything in the bank on their respective tables, however some files exceed…
-
1
votes2
answers134
viewsQ: 'system.outofmemoryexception' while opening . dbf 300 mega file
I try to open a file . dbf from 300mg in my code, but this error appears '$Exception. Message' threw an Exception of type 'System.Outofmemoryexception', a smaller file of 300kb is open normally, I…
-
1
votes0
answers1784
viewsQ: Paragraph iTextPdf line spacing
I’m using a very large text and adding directly in iTextPDF’s Paragraph, but the space between the lines is very large, I wanted to control the spacing between the lines, but I can’t make any…
-
1
votes1
answer1032
viewsQ: Margin of a Document iTextPdf
I am working with an existing PDF file, follow the small line of code: //Código... document = new Document(PageSize.A4); PdfWriter writer = PdfWriter.getInstance(document, fOut); document.open();…
-
0
votes2
answers99
viewsA: Spinner behavior with database data in Lifecycle
I figured out how to solve this problem... Just use the Spinner setOnTouchListener... spinner.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent…
-
0
votes2
answers99
viewsQ: Spinner behavior with database data in Lifecycle
I have 3 Spinners inside a Fragment, the problem I’m having is when I rotate the Tablet screen and the screen rebuilds, so the Spinners are zeroed. The first Spinner comes from the bank, depending…
-
0
votes1
answer288
viewsA: iText framework generating empty file (0 kb)
Well guys, problem solved, I hope it’s useful for someone, in my project, I must have erased a line, researched and noticed the missing: PdfWriter.getInstance(document, fOut); I need to add before…
-
1
votes1
answer288
viewsQ: iText framework generating empty file (0 kb)
I have a project that was generating the Pdfs normally, generating the texts and images in the file, it was a beauty, however, a while later it left unexpectedly to generate the file in the correct…
-
2
votes1
answer203
viewsQ: Google api v2, I already have the key, however, provided by third parties, how to enable without SHA-1?
I have a key to enable the Google Maps V2 on android, I did everything I had to do in Manifest and Gradle, when running the request, Fragment appears named Google, however, does not load anything,…
-
0
votes1
answer1835
viewsA: Format layout for Zebra printer printing
Resolved... just change to that way: String texto = "! 0 200 200 406 1\r\n" + "TEXT 5 0 40 301 " + notificacaoText.get(0) +"\r\n" //Negrito + "TEXT 5 0 40 240 " + notificacaoText.get(1) +"\r\n"…
-
1
votes1
answer1835
viewsQ: Format layout for Zebra printer printing
I was able to print on a Zebra RW 420 printer, but I don’t know how to format the texts, I looked at the documentation to send the data to the printer and noticed the following: String cpclData = "!…
-
1
votes0
answers85
viewsQ: Bytebuffer byteBuffer = Bytebuffer.NEW();
I have a problem with Bytebuffer byteBuffer = Bytebuffer.NEW(); I can’t understand why I don’t have access to it. NEW, it simply doesn’t exist, I don’t think and I don’t find it... I need it to…
-
0
votes1
answer263
viewsQ: How to generate thumbnails of a bitmap using Asynctask?
I have a Fragmentactivity that has a listview, in each item there is a button to open a Dialog, in this Dialog another listview is run with an Adapter that has a Textview and an Imageview, the list…
-
3
votes3
answers13183
viewsQ: HOVER effect on a <li> and the components within it
Good morning, everyone! I have <li> in my project, I would like very much to use an image on the right side of my <li>, did so: <ul> <li id="sair">Sair<div…
-
1
votes5
answers25953
viewsA: <input type="image" ...> with LINK and HOVER
The problem of not working in the Explorer was simple, missing the <!DOCTYPE html>, Chrome and firefox ran smoothly without it, but IE had no way... put the <!DOCTYPE html> that the…
-
2
votes5
answers25953
viewsQ: <input type="image" ...> with LINK and HOVER
I can not put an effect on a button, I have 3 images made in photoshop, one that is Normal (Link), another when you pass the mouse (Hover), and one when you click (Actived), however, I can not…