Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer76
viewsWhere I find DOMPDF v.5
I’m only finding version 6 on Github, but I want to use version 5 that has the following files: dompdf/ |--include/ |--lib/ |--changelog.txt |--docblox.dist.xml |--dompdf.php…
-
4
votes2
answers956
viewsPDF Decode Base64
I’m setting up a job where I need to release the file download on pdf, however this file is saved in the database it is in format base64. My idea is to do when the comrade clicks on the line he does…
-
4
votes1
answer104
viewsSearch does not recognize file . zip as valid archive inside a folder
I did this routine to delete empty folders, no files inside. foreach(var folder in folder_new) { if (Directory.Exists(folder)) { if (Directory.GetFiles(folder, "*",…
-
4
votes2
answers98
viewsReturn ID of who has the shortest distance between coordinates
I have a function in ajax that returns all latitudes and longitudes of users registered in the database and gives me the shortest distance between the coordinates returned and a fixed coordinate in…
-
4
votes2
answers945
viewsHow to use css in ion-list, ion-item?
Hello, I’m developing an app and on this screen I’m picking up data from a json, so I have to use ng-repeat, only this way I can’t use the css styles, because it doesn’t accept div or other way(at…
-
4
votes1
answer1975
viewsCalling an asynchronous function in an Actionresult?
How to make the call of an asynchronous function on a non-asynchronous controller, to be clearer follows a situation: I have a form that when saving it needs to store data in the database and…
-
4
votes1
answer278
viewsZebra Printer Barcode Error
When printing to the RW 420 zebra printer using EPL language, the barcode is displayed with a black Tarja in the middle, as if the bars were spliced (see image). However, using the same code,…
-
4
votes3
answers1667
viewsFunction to format dates
I have a question regarding Javascript . I want to create a function where you get a date and then you can show it as you like. for example YYYY/MM/DD or DD/MM/YYYY or any other way. I have the…
-
4
votes1
answer665
viewsMessagedigest and hash class with MD5 in java
I’m testing the creation of Hash using this class, and I’ve seen on several websites, including on Soen, the use of snippets similar to the following to create hashs using md5, but without much…
-
4
votes1
answer73
viewsSplit by the | character does not return all expected elements
I have a file with lines similar to the one below: 42|a|b|c|d||f||h||||||||||||||||||| I need to split by character | then my code does it like this: String linha42 =…
javaasked 8 years, 8 months ago hebertrfreitas 593 -
4
votes4
answers8644
viewsHow to take the "src" value of an "img" tag through Javascript and copy it to clipboard?
Guys I want to make sure that when clicking on an image, your url is copied to the clipboard, I tried to use Clipboard but I was only able to make a copy of the text. var a =…
-
4
votes2
answers178
viewsFind files on local drives using Batch
Good morning dear friends, my knowledge of script is very limited and so I would like to count on the help of the community in the following question. We have some excel files of specific names on…
-
4
votes1
answer1000
viewsHow does Laravel 5 make an instance to be passed automatically if we just set Type Hinting in the parameter in a function?
I believe that this is a fully valid curiosity, since it greatly facilitates and speeds up development. I always analyze the code of the frameworks I use, such as Cakephp 2, Laravel 4 and Symfony 2.…
-
4
votes5
answers1538
viewsHow to run an event once?
How to make an event to be triggered once? <div> <span class="oi"> OI </span> </div> $('.oi').mouseenter(function(){ alert('OLÁ'); }); This is just a simple example.…
jqueryasked 8 years, 8 months ago Adriano Luz 1,023 -
4
votes3
answers3103
viewsHow to perform UPDATE with ORDER BY on sql server?
I would like to perform an update ordering the results of the same, for this I wanted to run an update like this: UPDATE pessoa SET nome = 'Jose' WHERE sobrenome LIKE '%Betalla%' ORDER BY nome But…
-
4
votes2
answers1676
viewsMethod App::setLocale() in Laravel 5.2
After organizing my code, I tested to see if it worked for real-time language changes with the method App::setLocale() doesn’t work, but when I change the file app.php the locale it works perfectly,…
-
4
votes2
answers7486
viewsAn Exception PDO occurs when localhost is used as a host
Consider the following adaptor class DbAdapterMySQL that extends the class PDO: class DbAdapterMySQL extends \PDO implements DbInterface { public function __construct(array $config) { $dsn =…
-
4
votes1
answer308
viewsHow to cast exception in SQL and treat in C#
I’m creating procedures in an SQL Server database. To clear a brand, I first check if the brand is already tied to a product before deleting. CREATE PROCEDURE SP_Delete_MarcasProdutos @Id int AS…
-
4
votes2
answers375
viewsShould I compress files to save to the database?
I don’t want to take into account whether saving files in the database is a good practice. Since many systems save the files (images, pdf’s, doc’s, etc.) in the database, I would like to know if it…
-
4
votes2
answers1031
viewsHow to extract a specific string snippet
Let’s have this URL extracted /ac/rio-branco/xpto-xyz-1-0-16-5-abcd-a1G57000003DE4QEAW And I just want the piece that starts with a1G, someone knows how I only get this bit?…
-
4
votes3
answers1175
viewsUsing Double in the compareTo method
I’m having a doubt. I have several methods of comparison, however, one of the attributes used to make the comparison is double. Then an error occurs: Cannot invoke compareTo(double) on the Primitive…
-
4
votes5
answers5903
viewsCapture filename in directory
The following method takes the name of the files of a given directory and displays them on the screen, the problem is that the .listfiles() returns the number of bytes and not the number of files,…
-
4
votes5
answers6498
viewsClear Browser Cache after Version Upgrade
I have the following scenario: Each month we release new versions for our customers, and a lot of the time our customers call in saying that X functionality isn’t working the way it should. Because…
-
4
votes1
answer91
viewsfind_package failed to generate project (in Qt) with Cmake
I’m trying to generate the build configuration of a simple Qt example using Cmake. The code of the example is this: #include <QApplication> #include <QTextEdit> int main(int argc, char**…
-
4
votes1
answer8624
viewsPerform action after user stops typing with Jquery
I’m doing a search suggest where after the user type at least 4 letters in the input he does via Ajax the search with the suggestions for the user. But currently after the user has typed the first 4…
jqueryasked 8 years, 8 months ago Gabriel Schmidt Cordeiro 728 -
4
votes5
answers322
viewsPython how to print output
How can I print a list this way, example: l=[4,26,32] I want to print the output as follows: 4 26 32 No comma and a blank space on the same line. Grateful from now on.…
-
4
votes1
answer676
viewsHow to create an association form (Picklist) in modal?
How to make the screen below in modal. Remembering that the boxes are multiple selection, and how to do that by clicking the button Associar > move to the right column the values I selected on…
-
4
votes1
answer3602
viewsLinq Compare two lists of different types
I have two different lists A List<ProdutoTag> and B = List<Tag>: public class ProdutoTag { public Int64 ProdutoId { get; set; } public Int32 TagId { get; set; } public Double Peso { get;…
-
4
votes2
answers98
viewsFaster way to add an item to a list, using a structure
Structure turma Public id_turma As Integer Public nome_turma As String End Structure Structure Disciplina Public id_disciplinas As Integer Public nome_disciplina As Integer End Structure Public…
-
4
votes2
answers18066
viewsAccess variable inside and outside a function
It is possible to access a variable inside a function outside of it? I would like to use a variable that was created in a function outside of it, but without returning by return of function. In PHP…
-
4
votes2
answers4120
viewsQuestion about reading txt files on Android?
On the basis of that question by stackoverflow in the reply is suggested this code try { AssetManager assetManager = getResources().getAssets(); InputStream inputStream =…
-
4
votes1
answer727
viewsGenerate pdf in java
Good afternoon, I would like a help regarding generating a pdf report in java. Well I am using the first faces to export this report. I created the first line with the fields as you can see in the…
-
4
votes2
answers8268
viewsSelect with the day of the week in Portuguese
Good afternoon Guys, I need to make a select that translates the day of the week into Portuguese, it is already working, but in English. How can I change. Select *,id, data,…
-
4
votes2
answers390
viewsTag <picture> does not work on mobile phones and IE11
I’m working with the tag <picture> to use its responsive function and inserting several sizes of the same image into a single object according to the screen resolution by the "media" parameter…
-
4
votes2
answers559
viewsMake a condition to check URL
Hello, I am wearing Codeigniter to develop my website, I am trying to verify which controller the user is browsing, for example, I have the login and registration area, if the user is browsing the…
-
4
votes2
answers272
viewsQuery in two tables at the same time
I have for example the following scenario: Table Coluna01 Coluna02 Coluna03 book id name gender captl id name content cplivro id idcap idlivro When I have to associate a book with a chapter I use…
-
4
votes1
answer145
viewsJavafx reality or just speculation?
I have experience in Swing 8 years, but for some time I’ve been reading that with Java 9 Swing will be totally abandoned by Oracle. Now arose the need for me to develop a Desktop system for a client…
-
4
votes1
answer122
viewsWhy is it not recommended to use the asterisk in css "reset" operations?
I’ve seen several internet tutorials on css reset teaching that one should never use the asterisk to apply the modifications. For example: * { margin:0; padding:0; } But, along with the statement…
cssasked 8 years, 8 months ago Wallace Maxters 102,340 -
4
votes1
answer595
viewsHow to get a PHP object in an ajax function
I have the code below that does a check on my controller and it returns me a Count of my request. What I wanted is that in the sucess of my ajax Jquery I capture this value to make some negotiations…
-
4
votes2
answers976
viewsAttribute "wrap" of the textarea tag
What is the usefulness of the attribute wrap tag textarea? What is the difference between your values soft, hard, off?
-
4
votes1
answer368
viewsDifference between methods to close Jframe and Jdialog after keyboard event
I need to implement in a desktop application built using swing, a way for the JFrame main close the application when user click on ESC, and the JDialogs daughters of this JFrame, close only…
-
4
votes1
answer78
viewsHow to create a Bitmap from a Color[][]?
I had to transform a Bitmap into Color[][] to apply some algorithms and need to recreate the bitmap. There is an easy way to do this? To turn the bitmap into Color[][] I did what is below. There is…
c#asked 8 years, 8 months ago Felipe Deveza 166 -
4
votes1
answer831
viewsAutomatic class generator
How do I take the BD(Oracle) entity and generate in my system a class that represents that entity? Ex: I have this entity Client ID int Primary key Name varchar(100) And now with the tool it already…
-
4
votes1
answer3334
viewsClone private repository by passing password as parameter
I have a script on my production server that automates the entire process of checking new commits, generating the build and publishing the new changes. It works perfectly with open repositories…
-
4
votes0
answers115
viewsRead in blocks do not advance with read.csv. How to fix?
I am trying to make the following code to read a giant file that does not fit the memory. library(dplyr) arq_grande <- file("dados2014.csv", "r") tam_chunk <- 1e2 df1 <-…
rasked 8 years, 8 months ago André Oliveira 376 -
4
votes1
answer493
viewsHow to mount SELECT in lambda C#?
I recently asked for help to assemble a SELECT to bring the price of products How to mount SELECT They gave me this solution that worked perfectly: SELECT P.PROCODIGO, P.PRONOME, H.HISPRECO FROM…
c# sql select entity-framework-6 lambda-expressionsasked 8 years, 8 months ago André Morais Martins 367 -
4
votes3
answers647
viewsCopy file to Clipboard using Powershell
What command should I use through Powershell to send a file to Clipboard? I’ve tried this command: "C: Teste.text" | Set-Clipboard But this command copies the text "C: Test.text" and not the file to…
-
4
votes2
answers2629
viewsHow do I "turn" a specific commit into a branch?
I’d like to take one commit previous specific and turn it into a brancho. Is there any way to do that in the Git?
-
4
votes2
answers596
viewsHow to route Gmaps with shapes/polygons
I will need to manipulate a map ( preferably Gmaps ) containing the mesoregions of each state. I found a map of mesoregions created from Gmaps, but it doesn’t allow interactions like creating…
-
4
votes1
answer490
viewsCheck the integrity of batch video files
How to check automatically and customizable via Shell/Programming Language the integrity (file Incomplete/Corrupted) of video files (.avi, .mp4, .mkv among others) ? OBS: Having as limiting factor…