Posts by Gabriel Becher • 193 points
26 posts
-
0
votes0
answers478
viewsQ: How to print on a Bematech MP-4200 TH thermal printer using Javascript?
I need to print a bill of sale through a web application, where I developed the front using Vuejs and the back built an API with Laravél, and I’m looking to integrate a Bematech MP-4200 TH printer,…
-
1
votes1
answer39
viewsQ: Report with date_trunc including zeroed values
I’m doing a consultation in postgres, but it only brings the results where the inspection body is not reset, I needed this query to bring all the results from 8 to 18, including zeroes: AS YOU…
-
3
votes1
answer160
viewsA: Good Practices for URI in Restful API using Laravel
To nest a route, \ordensdeservico\{id}\impressoes\{tipoImpressao} for example, Laravel uses 'Nested Resources', an example of how to use the 'Nested Resources':…
-
0
votes1
answer160
viewsQ: Good Practices for URI in Restful API using Laravel
Good afternoon, I’m having to build my routes using the REST standard, but I want to do this using the tools that Laravel offers me, and in the right way. I have the following route to print my…
-
1
votes1
answer46
viewsQ: How to ignore the default Model $with in Laravel (Eloquent ORM)
I have a model with with already predefined calling some other models. public $with = ["itens", "filial", "cliente", "status", "produtos", "servicos", "composicoes", "execucoes", "tipo", "vendedor",…
-
1
votes1
answer85
viewsQ: Why can’t I overwrite a Collection in Laravel using the values() function?
I’m trying to overwrite my Collection so she can receive herself with the keys reordered, the reason is that I’m giving a Forget() and sometimes the deleted element has a key value equal to 0…
laravel-4asked Gabriel Becher 193 -
0
votes1
answer79
viewsA: How do I use ui-number-Mask dynamically
Just take out the keys, because it is a library already turned to Angularjs, for more information access the library documentation: https://assisrafael.github.io/angular-input-masks/…
-
0
votes1
answer79
viewsQ: How do I use ui-number-Mask dynamically
I’m saving my valuables at a $Cope: $scope.quantidadeCasasDecimais = 4 And trying to use this value, but it doesn’t work: ui-number-mask="{{quantidadeCasasDecimais}}" Remembering that if I set the…
-
-2
votes1
answer400
viewsQ: How to extract only JSON values by removing keys
I have an array with some ids, the return object of my request to Webservice is as shown in code snippet number 1. I wanted to know if you have any way via jQuery, to extract only the values and…
-
2
votes1
answer1795
viewsQ: how to undo "git checkout" from a specific commit and go back to the last commit I did before checkout
I need to get back to the environment I was before I realized git checkout id_commit but when I execute git log no longer appear the commits I realized after the checkout. In the remote repository…
-
1
votes1
answer28
viewsQ: value passed via Service is not being updated in the second controller
I looked for how to share a Scope between two controllers, and I saw that one option would be service or a Factory using the Singleton standard, but I’ve tried both and what happens is that I can’t…
-
0
votes1
answer406
viewsA: Export Google Chart to image and save in a javascript variable;
First save the Chart was generated in the view from the div: var chart_div = Document.getElementById('chartRelatorioProjetoPorOrientator'); var Chart = new google.visualization.Barchart(chart_div);…
google-chartsanswered Gabriel Becher 193 -
1
votes0
answers280
viewsQ: How to open the jsPDF generated pdf in a new browser tab
can save by downloading through: doc.output('save', 'filename.pdf'); //Try to save PDF as a file (not works on ie before 10, and some mobile devices) doc.save('filename.pdf') and I’m trying to use:…
jspdfasked Gabriel Becher 193 -
0
votes1
answer291
viewsQ: How do I take a view image (html) and send it to a controller (php) using codeigniter?
I need to give a picture of mine view to the controller, be it just the string with the url or the whole html element, for me it doesn’t matter because I will use to mount a pdf through the mpdf, am…
-
1
votes1
answer137
viewsA: Turn DATA input into a PHP/JAVA variable
I’m not sure I understand your question, but come on. (In the examples I used Angularjs and codeigniter together, so it does not include files and codes referring to routing or configuration) Path…
-
1
votes0
answers163
viewsQ: mpdf is returning me a string instead of generating the pdf
I’m using the library mpdf in my project, however at the time of generating the document it is returning me a string and is not generating anything, you know what can be? Google Chrome Developer…
-
0
votes1
answer45
viewsQ: Why does "git checkout ." not change the node_module packages I entered by npm?
I did a little "caca" in my test environment, and my system just bugged out, because npm is giving some bugs: Git Bash: Console do Google Chrome: By Filezilla I have the old packages, the old…
-
0
votes1
answer406
viewsQ: Export Google Chart to image and save in a javascript variable;
I’m trying to extract the image of a Google Hart that I already generated and I want to export it to pdf, but for this I need to extract the image from the page, and I’m not getting it, I’m using…
google-chartsasked Gabriel Becher 193 -
1
votes1
answer296
viewsA: How to pick up combobox value at Angular 1.x
I was defining value as my id, reused a code of mine that needed it and I forgot to change it: as was: <option ng-repeat="option in lista_departamento.availableOptions"…
angularjsanswered Gabriel Becher 193 -
0
votes1
answer296
viewsQ: How to pick up combobox value at Angular 1.x
I have a combobox in my view and want to take the value of it and print on the screen somewhere else, I am managing to print only the index of the selected item, will someone help me? HTML: <div…
angularjsasked Gabriel Becher 193 -
1
votes2
answers2185
viewsA: how do I change the color of an html element based on its value using angular 1.6.4
I found an answer that helped me and adapted my question: https://stackoverflow.com/questions/18172573/angular-ng-class-if-else-expression HTML: <table class="table table-striped table-condensed…
-
0
votes2
answers2185
viewsQ: how do I change the color of an html element based on its value using angular 1.6.4
I need to change the color of the student status on the page, and wanted to do this using the angled, can someone help me how I do this using the value of the element? HTML: <tbody> <tr…
-
2
votes1
answer3123
viewsA: Can you undo the "git reset HEAD~1" command?
Guys after researching a little I found a very interesting material that helped me a lot, follow the link: http://minicursogit.github.io/#/ 1º Whenever there is a pertinent modification to your…
gitanswered Gabriel Becher 193 -
1
votes1
answer3123
viewsQ: Can you undo the "git reset HEAD~1" command?
I was wanting to go back to the last commit performed, and nothing works anymore, I was wondering if you can undo the git reset command
gitasked Gabriel Becher 193 -
0
votes0
answers36
viewsQ: Convert my JSON to Excel
Preci*so from a library that receives the query and when I press a certain button export the result in excel file, detail is that I am using Google’s Chart (graphic) and also intend to put in the…
-
0
votes1
answer292
viewsQ: How do I install a library (Phpexcel) in a codeigniter application using NPM?
I am developing an application that needs to export data from an array that received the result of a query in Excel format, in a dynamic way, and I wanted to know how to import the library, I…