talha06

0

votes
0

answer
5

views

How to handle big textual data to create WordCloud?

I have a huge textual data that I need to create its word cloud. I am using a Python library named word_cloud in order to create the word cloud which is quite configurable. The problem is that my textual data is really huge, so a high-end computer is not able to complete the task even for long hours...
talha06
1

votes
1

answer
65

views

PyTorch - GPU is not used by tensors despite CUDA support is detected

As the title of the question clearly describes, even though torch.cuda.is_available() returns True, CPU is used instead of GPU by tensors. I have set the device of the tensor to GPU through the images.to(device) function call after defining the device. When I debug my code, I am able to see that the...
talha06
1

votes
3

answer
8k

views

Ext JS 4.1 - How to render an image dynamically?

I need to re-render an image (Ext.Image) after some events. I found doComponentLayout function but it didn't work for me unfortunately. How can I re-render an image which is an item of form?
talha06
1

votes
0

answer
22

views

Neo4j browser - How to export the graph with having a white background?

When I export the graph as PNG through the Neo4j Browser, its background color is set to black which makes it almost unreadable. How can I customize the exported PNG as I want to set its background to white? Detail regarding Neo4j: Version: 3.5.2 Edition: Community
talha06
1

votes
1

answer
26

views

Why do we have to explicitly specify the entities while creating a Room Database as the entities are already annotated?

While using Room Persistence Library, I wonder why we have to explicitly specify the entities while creating a RoomDatabase as the entities are already annotated with @Entity annotation. I mean We could simply skip the entities attribute of the @Database annotation.
talha06
1

votes
1

answer
1.8k

views

TreePanel Error : Uncaught TypeError: Cannot call method 'substring' of undefined

I've a problem while rendering TreePanel. I'm using MVC structure, here's my definition: (By the way I don't use dynamic loading, included ext-all-debug.) Menu - Model Ext.define('RIA4.model.Menu', { extend : 'Ext.data.Model', idProperty : 'menuId', fields : [ { name : 'menuId',...
talha06
1

votes
1

answer
597

views

JsTestDriver - Missing artifact error

I'm trying to integrate JsTestDriver to Maven to test also my scripts before deploying. Actually I follow up the steps described at Google Code here. But unfortunately I'm not able to resolve dependency. Despite I added repository and plugin-repository to my Maven settings.xml, I still get error 'Mi...
talha06
1

votes
1

answer
3k

views

Unable to get connection from MySQL DB while using c3p0 with Spring 3.1 & Hibernate 4

I'm facing a frustrating error while getting connection from mysql db. I'm using c3p0 with Spring 3.1 & Hibernate 4.. Any helps will be appreciated a lot! Thanks in advance.. With regards.. Here's my maven dependencies for pooling: org.hibernate hibernate-core ${hibernate.version} org.hibernate hib...
talha06
1

votes
1

answer
777

views

Ext JS 4 - Vertical ButtonGroup DOM Exception

Getting an exception like this while trying to have a single column vertical buttongroup: Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1 [ext-all-dev.js:88026] var btn1 = Ext.create('Ext.button.Button', { text: 'BTN 1', iconCls: 'icon-database-go-32' }); var btn2 = Ext.create('Ext.button.Button', {...
talha06
1

votes
1

answer
500

views

jxl - MS Excel compatibility error

I'm trying to generate an Excel report using jxl API - but I have been facing compatibility issues with MS Excel. The generated report which contains some styles such as bold fonts, auto resized cells, etc. works like a charm with LibreOffice Calc. But if I try to open the same .xls file with MS Exc...
talha06
1

votes
1

answer
124

views

intellij idea - unable to commit files contain “@” in the file names using subversion

I'm using Subversion 1.8 within IntelliJ Idea 14 as version control system. But I'm not able to commit files contain @ in the file names. Sample file name: [email protected] Getting this error: svn: E200009: a peg version is not allowed here Tried to add @ at the end of the file name as it is...
talha06
1

votes
1

answer
2k

views

Ext JS - Multiline display field

I display a multi-line textarea in a displayfield but the text is shown as concatenated instead of line by line. Here is the sample fiddle: https://fiddle.sencha.com/#fiddle/10f6 How can I make the text to be displayed in displayfield in exactly same way with textarea?
talha06
1

votes
1

answer
800

views

Mongo DB Java 3.x Driver - Group By Query

I'd like to learn how to implement group by query using Mongo DB Java 3.x Driver. I want to group my collection through the usernames, and sort the results by the count of results DESC. Here is the shell query which I want to implement the Java equivalent: db.stream.aggregate({ $group: {_id: '$usern...
talha06
1

votes
1

answer
0

views

neo4j - The size of the database is 28 MB despite no data is stored

As the title of the question clearly describes, the size of my database is 28.16 MB despite I have removed all the data stored. I have added the detail of the database below:
talha06
1

votes
1

answer
3.2k

views

Spring 3.1 MVC - Getting character encoding error while using @ResponseBody annotation

I'm facing character encoding problem while using @ResponseBody annotation. If I use response.getWriter().write() method I have no problem which I can't see Turkish characters like ş,ö,ı, etc.. (I see just question mark instead of them) I'm using Spring's CharacterEncodingFilter with UTF-8 encodi...
talha06
1

votes
1

answer
353

views

Ext JS 4.2 - Vertical button tooltip issue

I'm facing vertical button tooltip issue using Ext JS 4.2 as it's shown at below: Here's my button configuration: var btnSubmit = Ext.create('Ext.button.Button', { text: 'Giriş', iconCls: 'icon-login', tooltip: 'Sisteme giriş yapmak için tıklayınız...[Enter]' });
talha06
1

votes
2

answer
2k

views

Sencha Touch 2 - Android Packaging errors

I'm trying to package my Sencha Touch 2 based mobile application for Android. Followed the steps mentioned at the Sencha documentation, always getting some different errors. None of these commands works: (added errors below of each command) $ sencha package build packager.json [ERR] Command must be...
talha06
1

votes
1

answer
437

views

MongoDB Java API - How to combine sample aggregation with a find query?

I need to get a randomized sample of documents in a collection with a find criteria. Bson sample = com.mongodb.client.model.Aggregates.sample(size); BasicDBObject query = new BasicDBObject().append('myKey', value); How can I combine this sample aggregation with the find query?
talha06
1

votes
1

answer
161

views

extjs - How to set Ext.Img's data by a part of response?

Ext.Img provides a method named setSrc to set URL of an image. In order to prevent another call to the server when the image is a part of form data, I need to set the image through the response data.
talha06
1

votes
1

answer
729

views

iText PDF - How to add multiline footer?

I am able to add a single line footer to the generated PDF using iText PDF but I need to add a multiline footer. I have tried that concatenating two strings with the new line character of Java (\n) but no chance (see Code #1). Also, have tried to set the multiline footer through the float x, float...
talha06
1

votes
1

answer
1.2k

views

Spring 5 with JUnit 5 + Mockito - Controller method returns null

I try to test a method named as loadData defined in MainController which returns result as a string. Despite that this method actually returns data when the web app runs on servlet container (or when I debug the code), no data returns when I invoke it from a test class based on JUnit 5 with Mockito....
talha06
1

votes
2

answer
1.6k

views

Sencha Cmd - Error executing page compilation Circular extends reference for class Sample.deadlock

I'm trying to compile my Ext JS 4.1.1.a based application using 64-bit Linux OS. Here's my application hierarchy(Maven based Java Web Application): + src +main +webapp + extjs + app - app.js - index.jsp + resources + WEB-INF Command: sencha compile -classpath=extjs/src,js page -yui -in index.jsp -...
talha06
1

votes
2

answer
1.9k

views

Unable to decrypt MD5 hashed byte array

I'm using Apache DS with Spring LDAP for authentication and user management. Apache DS sends password fields as hashed byte arrays, so I need to decrypt it into String. I'm using MD5 hashing. For example, here's the window that is used to enter password using Apache DS Studio: (For the sake of demon...
talha06
1

votes
1

answer
1.4k

views

HttpTransportProperties.Authenticator is not found in Axis2

Just generated Java code from WSDL using Apache Axis 2. The service is protected with basic authentication. When I try to create authentication object in order to set the username and password, the class (HttpTransportProperties.Authenticator) is not found in the library. How can I set basic authent...
talha06
2

votes
1

answer
310

views

Different styles for Font Icons

I'm using Font Awesome and icomoon icons for my web application by defining font faces. Here is the font-face configuration: @font-face { font-family : 'FontAwesome'; src : url('../fonts/font-awesome-4.2.0/fonts/fontawesome-webfont.eot?32940503'); src : url('../fonts/font-awesome-4.2...
talha06
1

votes
1

answer
8.3k

views

Changing image bit depth using matlab

I want to change 8-bit images' bit depths to 4-bit, 2-bit depths using Matlab. Source images are 8-bit and jpg files. I wanted to take advantage of png 'BitDepth' parameter, so first I tried to convert images into png format. Then I tried to use this parameter; but I'm getting errors. Also it's OK f...
talha06
2

votes
1

answer
7.6k

views

ExtJS 4.1 - How to add items to toolbar dynamically?

I'm trying to minimize windows as a button at a taskbar - which is actually a toolbar but I couldn't add button dynamically to the taskbar. I tried calling doLayout() function but it didn't work either. Here's what I tried - any help will be appreciated a lot! Thanks in advance. this.addListener('sh...
talha06
2

votes
1

answer
6.7k

views

WEKA - JDBC Connection Exception

I'm facing JDBC connection problem while trying to connect MySQL DB using WEKA. Here's my DatabaseUtils.properties file: jdbcDriver=com.mysql.jdbc.Driver jdbcURL=jdbc:mysql://localhost:3306/mydb And I added jdbc-mysql jar into the path: /opt/SenchaSDKTools-2.0.0-beta3:/usr/lib/lightdm/lightdm:/usr/l...
talha06
2

votes
1

answer
74

views

Wikidata - resultset.hasNext() returns false despite the results are retrieved

As the title clearly describes, we resultset.hasNext() returns false unexpectedly. Here is my SPARQL query and Java source code based on Jena: SELECT ?s ?label WHERE { ?s rdfs:label ?label. FILTER(CONTAINS(LCASE(?label), 'university'@en)). } LIMIT 5 Query query = QueryFactory.create(PREFIX + sparqlQ...
talha06
2

votes
1

answer
623

views

ApacheDS - cannot verify the quality of the non-cleartext passwords

I'm getting cannot verify the quality of the non-cleartext passwords error while trying to add an entry into my organizationalUnit. I use MD5 hashing method while storing password. (with userPassword attribute) A blog post says the solution is adding ads-pwdcheckquality attribute with value of 0; bu...
talha06
2

votes
2

answer
512

views

How to get Dbpedia resource details using Jena?

After I query dbpedia over its Sparql endpoint, I get results as Jena ResourceImpl objects. Then how I can get details of this resource? For example if this resource is a person; how can I get his/her birthDate? I tried this one; but it always returns null. QuerySolution querySolution = resultSet.ne...
talha06
3

votes
1

answer
4k

views

Ext JS 4 - How to control rowEditor inside controller

I want to learn how can I controller rowEditor plugin inside controller.. Here's rowEditor definition: Ext.define(appName + '.view.department.DepartmentGrid', { initComponent: function() { this.rowEditor = Ext.create('Ext.grid.plugin.RowEditing', { clicksToEdit: 2 }); } } ** Controller** this.contro...
talha06
1

votes
3

answer
71

views

How to distribute Microsoft Office addin?

I have developed a PowerPoint addin using Visual Studio. I need to share it with others. How can I share this addin to let others to use it?
talha06
3

votes
4

answer
4.5k

views

ExtJS 6 - How to upload a file without using form?

Ext JS provides fileuploadfield which is bundled with a button to browse local files. I just need to upload a file using as soon as it is selected from local instead of using a submit button in order to trigger the post process. Could not find an event which is fired after the file is selected. p.s....
talha06
2

votes
1

answer
7.6k

views

Sencha Touch 2- Unable to get ref view from controller

I'm trying to get view by ref. inside a method defined in controller. I'm getting error which says Object [object Object] has no method 'getUserForm'. Here's my view and controller, I'll be happy if someone can help me.. Thanks in advance. User Form Ext.define(appName + '.view.user.UserForm', { ext...
talha06
2

votes
1

answer
1.4k

views

IntelliJ Idea 11 - How to expand Tomcat Server Stacktrace

While debugging Java EE applications, I can't see full stacktrace I see just a generic exception log; I'm looking details from Chrome Developer Tools or Firebug. How can I see full stacktrace at Debugger panel of IntelliJ Idea 11?
talha06
4

votes
2

answer
24.6k

views

“You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax error” Hibernate 4 [duplicate]

This question already has an answer here: How can I write SQL for a table that shares the same name as a protected keyword in MySql? [duplicate] 3 answers I'm getting the error I added below while saving Folder entities into database using Hibernate 4.1 & MySQL 5. I don't have any problems with oth...
talha06
4

votes
5

answer
9.8k

views

Sqoop - Could not find or load main class org.apache.sqoop.Sqoop

I installed Hadoop, Hive, HBase, Sqoop and added them to the PATH. When I try to execute sqoop command, I'm getting this error: Error: Could not find or load main class org.apache.sqoop.Sqoop Development Environment: OS : Ubuntu 12.04 64-bit Hadoop Version: 1.0.4 Hive Version: 0.9.0 Hbase Version: 0...
talha06
5

votes
3

answer
1.9k

views

Getting java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl despite the dependencies are defined

Despite that I have defined the related dependencies as I have added below, getting the java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl exception when my app makes a call to the web service. javax.xml.ws jaxws-api 2.2.10 com.sun.xml.ws jaxws-rt 2.2.10 pom p.s. The servlet...
talha06
13

votes
3

answer
19.4k

views

Hibernate encodes wrong while persisting objects [UTF-8]

I'm facing with UTF-8 encoding problem while persisting my model objects. In Turkish 'ı' is a letter. Also there're some other Turkish characters that is included in UTF-8 encoding. While I persist my model objects, all 'ı' characters are persisted as '?' to DB. I'm using MySQL 5.5 on Ubuntu Linux...
talha06

View additional