Multiobject algorithms, JMetal implementation to maximize and minimize
I have a big series of point that rapresenting some solution of my problem. Every point is a trade off between cost and recall (Es. Point1(cost1,recall1). I would use algorithms genetic to find the...
View ArticleHow does setTimeout() create a memory leak in this code?
I was reviewing the slides in this presentation: http://slid.es/gruizdevilla/memory and on one of the slides, this code is presented with the suggestion that it creates a memory leak: var buggyObject =...
View ArticleOpenGL ES 2D on Samsung 4 – no textures on the screen
I have Nexsus 4 and several HTCs and my game works fine. When I launch on Samsung 4 I see white rectangles (empty textures), no errors, Further, my game uses sensors but I see on Samsung 4 it doesn’t...
View ArticleCombinig two generic List
I want to union two generic list and want to produce new list , I am providing my code in a simple format. public class Example{ public static <E> List<E> union(List<? extends E>...
View ArticleTranslate GridView Header and Text
all! I have an website that contains 3 options idioms. When User click in some button to change Idiom, I need change all Header and some texts to my GridView. I made this option in my cs, but this...
View ArticleCant find my mistake
The compiler keeps saying this “IndentationError: expected an indented block”, but i cant find my mistake. PLease help a python newbie. class BackgroundUploadFTP(threading.Thread): def __init__...
View ArticleTreeView node only works one time
I have this treeview menu with this code : TreeNode treeNode4 = new TreeNode("Importação CT-I", array5); treeView1.Nodes.Add(treeNode4); TreeNode nodeusu1 = new TreeNode("Usuários"); TreeNode nodeusu2...
View ArticleHow to import and interact with MakeHuman models on Android?
I have recently been learning about OpenGL on Android and developed a basic human model using MakeHuman. Where I am stuck and somehow can’t find any information on Google or the MakeHuman site is how...
View ArticlePlace two font icons one above the other with CSS
I want to place two font icons one above the other. So I can use it as: <span class="icon1-on-icon2" /> Is it possible to define CSS class(es) to achieve this? It’s not permitted to use another...
View Articlerazor get not working
The following code doesn’t work. The Controller SupportController.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using...
View ArticleStripslashes in Android/Java
I’ve a webservice running and Android devices reading data from it. The data I want to send, is slashed by the server, to avoid hacking issues. Once its escapped, it’s being saved into the database....
View Articlehibernate narrow down lazy loaded collection
I have 2 classes: public class Car { private Integer id; private List<CarOrder> carOrders; } public class CarOrder { private Car car; private Long endDate; private Long id; } and hibernate...
View ArticleServing a language file depending on language preference settings
In my ember application I am supporting different languages. I am doing it this way: This is part of the index.html: <script src="scripts/vendor/ember.js"></script> <script...
View ArticleHow to show transparent image with instructions over my activity?
I have an activity with some photos, and I’m using ViewPager for swiping those photos. How can I show some transparent image at the activity start, just to show some instructions for swipe and stuff,...
View ArticleOpenGL ES Error to String
Is there a standard for getting an error string from glGetError() in OpenGL ES 1.1 or 2.0, on Android and iOS? I’m using something like this: #define AssertGL(x) { x; GLenum __gle = glGetError();...
View Articlein opengl es 2 how do I free up a texture (ios hard crash)
I have an iOS opengl es 2.0 app that needs to use a TON of large textures. Ideally 4096×4096. I have a struct array that contains all the info about the texture, and as I need to use each one I...
View ArticleSet two flags in Java regex.Pattern
I need a matcher like this: Matcher kuchen = Pattern.compile("gibt es Kuchen in der K\u00FCche",Pattern.CASE_INSENSITIVE).matcher(""); and the problem is that it is not simple ASCII. I know that in...
View ArticleStrange Javascript structure
I’m trying to get information from a website through parsing, and I’ve found this piece of javascript code: var product = { identifier: '198980', valid: '1378159199', fn: 'Entrada para IMAX Barcelona,...
View ArticleStrange Javascript structure
I’m trying to get information from a website through parsing, and I’ve found this piece of javascript code: var product = { identifier: '198980', valid: '1378159199', fn: 'Entrada para IMAX Barcelona,...
View ArticleElasticsearch CouchDB river bogus chunk size
Sorry, this is a kind of related to another post. Once my CouchDB gets a fair amount of documents in it, ES starts throwing errors in the log and doesn’t index newer files: [2013-08-19...
View Article