How to install / Configure Mantis For Apache-PHP-PostgreSQL combination → I wanted to write this blog a long back, but better late than never. Three years back I was working on a project where we had used Mantis Bug Tracker for managing our bugs list, for that, I had to install it on a server from where our teams could access it to log the software bugs and update the fixes. Important learnings - with new php versions, I faced few issues with postgresql configs, then while setting up database instance for mantis I faced few issues with postgres port configs and how to give it on mantis config files, database user grant problem. I had to set up everything from scratch so learned a lot. (Note - mantisbt → mantis bug tracker) Why I have written this post → at that time I could not find any resource on web which would give me good tutorial on how to install mantisbt on Apache and PostgreSQL. So I wanted to put it on web so others could some of thei...
"Probabilistic Bag data-structure" Recently I was working on a NLP problem, wherein I needed this (this data-structure is a pretty simple thing which is already being used in industry also, I am sure). So here few important features or requirements that I had : NOTE: Any randomized data-structure works well only when it uses random-number generators which generate uniformly distributed values over the range. A probabilistic, randomized bag of objects data-structure with - a) Each object having some weight, b) Selection from this structure should be random but should be influenced by their weights c) The weights are positive and multiple objects can have same weight (there is no upper bound on weights but a lower bound of 0). So I searched online and there were some real great responses - I am basically consolidating them - There are many ways you can build such structures - 1) Using Lists : There are 2 main approaches using list Storing unique objec...
This isn't really a post, I am just writing a code to get all request parameters/attributes of a (HttpServletRequest) request object (almost every web developer must have tried this when in need). Sometimes while coding for form-submit-handling, or ajax request i.e. any request made to server, at server end, we need to know what all different parameters we receive from request. If this request was redirected/directed from some other jsp/servlet then we also would like to know if there is any request attribute present and if yes what all are those. So, to get all the request (i.e. javax.servlet.http.HttpServletRequest) object's parameters and attributes - Use this - System.out.println("To out-put All the request-attributes received from request - "); Enumeration enAttr = request.getAttributeNames(); while(enAttr.hasMoreElements()){ String attributeName = (String)enAttr.nextElement(); System.out.println("Attribute Name - "+attributeName+", V...
Comments
Post a Comment