Posts by Matt S • 511 points
28 posts
-
1
votes0
answers65
viewsQ: Grunt watch does not detect new images
Hello, I’m trying to make Grunt watch a directory and when a new image is added, it compresses it. However, it does not perform anything when adding images in the directory, it works perfectly for…
-
4
votes1
answer87
viewsQ: Debug with min files in Angularjs
I created a task at Grunt to automatically the concat and uglify in my files .js Angular to improve performance and also to avoid inserting a new file every time I create a controller, for example.…
-
1
votes2
answers4762
viewsQ: ng-repeat in an array within an array of objects
I’m trying to list all the sizes of my products once, e.g.: 38, 39, 40, 41 based on the sizes of my array, to set up a filter bar. $scope.listaProdutos = [ { id: 1, nome: "Lorem ipsum dolor 1",…
-
2
votes3
answers3228
viewsQ: How to change the CSS style sheet dynamically with Angularjs?
I’m having a problem with the customization of a CSS, Angularjs does not allow me to write a code snippet as follows: <style> .btn-n { min-height: {{botao.altura}}px; min-width:…
-
1
votes0
answers40
viewsQ: How to convert PHP object array to JSON
I am trying to learn Angularjs and today I have a PHP5 application, but I am not using Restful. For testing purposes I want to run my query and fill a table with the result using Angularjs. My…
-
5
votes2
answers785
viewsQ: E-mail UTF-8 via ASP with CDONT
I am trying to send a form to an email using CDONT, but the charset is coming incorrectly and is not showing the accented characters correctly. <% Response.ContentType = "text/html"…
-
1
votes1
answer801
viewsQ: Jtable does not display column names
I made a Jdialog that will show some statistics of the users who use the software, but I’m not able to make the columns name appear. I tried to add using the .addColumn model but not working. class…
-
3
votes1
answer467
viewsA: Apache Lucene with Tika not returning words with accent
As answered in English version of the OS my problem was in the Query Analyzer, I was using the StandardAnalyzer instead of BrazilianAnalyzer, so the search query was not getting the proper treatment…
-
2
votes1
answer467
viewsQ: Apache Lucene with Tika not returning words with accent
I implemented the library Lucene and Tika of the Apache package and managed to make it work super well for what I want. But I have a problem in words with accent, he can not return results for words…
-
0
votes1
answer248
viewsQ: Crash when implementing tabs and swipeable views
I’m starting in android development and want to put tabs with swipeable views, I followed a tutorial from Androidhive why of google tutorial It didn’t make any sense to me. The point is that after…
-
1
votes2
answers7595
viewsA: List directory and subdirectory files with listFiles
I managed to solve my difficulty as follows: As I was already using a filter to show me the kind of files I was interested in, I came to the conclusion that the right place to check would be there.…
-
2
votes2
answers7595
viewsQ: List directory and subdirectory files with listFiles
Today I list through the code below the files that are in the directory passed by the parameter, but now I would like to list also the files that are in the subdirectories. I did some searches but I…
-
2
votes1
answer938
viewsA: Visual Basic Programming in Excel
What was missing was you referencing what you wanted from the cells, he is not able to understand why the error. The correct thing would be to use the following: Do Until…
-
8
votes1
answer606
viewsQ: Error Making Jar Build
I’m trying to do the build of my first JAR using the Intellij and Maven to manage dependencies. I created the artifact and executed build, but when I run the program I get the following exception:…
-
6
votes2
answers2098
viewsQ: How to close a Jdialog after you finish running a Thread?
I have a configuration window that opens on the first run of the application I’m developing. After typing the directories that the application will run the user click save, some tests are run and…
-
1
votes1
answer718
viewsA: Maven does not download libraries
The problem is not in the Maven or in the IntelliJ and yes in the code of pom.xml, I was including the <dependencies> within the <dependencyManagement>. It was enough to remove the…
-
-1
votes1
answer718
viewsQ: Maven does not download libraries
I’m using Intellij and the plugin for Maven (first time), I’m trying to make it work to download the libraries I use in my project, but it’s not downloading. pom.xml <?xml version="1.0"…
-
4
votes1
answer1896
viewsQ: Ignore . classpath and . project on Github
I can’t ignore the . classpath and . project files on Github. These are already in my . gitignore but after a while always end up coming back. I’m using Eclipse + Egit. Follow my file . gitignore…
-
-1
votes1
answer516
viewsQ: Nullpointerexception at java.io.File. <init>(Unknown Source) in Java with Lucene
I’m getting the following error in my Java code Exception in thread "Thread-2" java.lang.NullPointerException at java.io.File.<init>(Unknown Source) at…
-
5
votes2
answers3548
viewsQ: How to check if a directory exists in Java?
I’m trying to check if a directory typed in JTextField exists or not. I tried to use Files.notExists() but the first argument must be of the type Path and I couldn’t figure out how to convert from…
-
2
votes2
answers635
viewsQ: Jdialog does not design components in Java
I am developing an application that will run a processing soon, and I want a message warning that the process is running stay on the screen while it does this processing. I tried to do with the…
-
1
votes7
answers6999
viewsA: Split() integer with Javascript
As explained in the MDN, the split() serves to separate strings, and what you’re trying to do is separate an integer. What you can do is convert the integer to string: var n = 123456789; var digits…
-
0
votes6
answers708
viewsA: How to count the number of clients that returned from one year to the next through SQL?
I managed to solve the problem as follows: SELECT * FROM( SELECT DISTINCT(os1.cdcliente) FROM ordemservico os1 WHERE os1.auxordemservico = '/12' AND EXISTS ( SELECT os1.cdcliente FROM ordemservico…
-
1
votes6
answers708
viewsQ: How to count the number of clients that returned from one year to the next through SQL?
I have a table Serviços(Nro_Serv, Data, Cliente, Valor) and would like to get customers who did service with me in a year X (ex: 2011) and who also did in a year Y (ex: 2012). I tried to use…
-
1
votes3
answers923
viewsQ: Error ""AWT-Eventqueue-0" java.lang.Stringindexoutofboundsexception: String index out of range: 0" in Java when trying to do IF
I am making a condition in the execution of a search in Java, what happens is that I cannot have blank space, asterisk(*) or question mark(?) as the first character of the search. However Java is…
-
2
votes2
answers428
viewsA: How to remove the option selected in multiple Comboboxes?
One simple way to do this is by setting the values you need in an array and making a loop that fills the combobox. Done this you can make the event Combobox.Selectedindexchanged he: Clean other…
-
3
votes2
answers2110
viewsA: How to index and search for files in Lucene
Field "Text" is a Stringfield, which means it is not parsed, and all content will be indexed as a single token. It is effectively the same as, in Lucene 3.6, using Keywordanalyzer, or defining Field…
-
5
votes2
answers2110
viewsQ: How to index and search for files in Lucene
I am trying to generate a Java file indexer with the help of Lucene. I followed this guide from iMasters and tried to adapt to the version 4.7.0, the problem is that at some point the search is not…