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...
I think Fibonacci is one of the most studied sequences in mathematics and which is named after Leonardo Fibonacci . The Fibonacci numbers , and in conjunction the golden ratio , are a popular theme in culture (from Wikipedia ). It is used in many real-world applications like stock markets predictions (e.g. retracement, etc). I was also fascinated so I started looking at pattern formed by Fibonacci numbers and I found out few amazing things about it:- Java code for printing → Fibonacci Series (left/right/normal aligned) → FiboSeries.java Important → Why am I doing it? 1. for the love of numbers and maths, and 2. I wanted to find (which I haven't found yet) n-th Fibonacci number without going through all previous Fibonacci numbers, or at least find out how many digits are there in any n-th Fibonacci number or what is the sum of all digits of such n-th Fibonacci number. 1. Fibonacc...
Comments
Post a Comment