Indexing, Retrieving, Deleting Documents in Elastic Search (Using Kibana) Elasticsearch (ELK Stack) – Part 1 I have been playing around with ELK (Elasticsearch, Logstash, Kibana – Elastic Stack) and I though I would paste some of my notes here. The command below will index (insert) a car document (object/row) into “cars” type (table) inside “vehicles” index […]
This may be a point where a lot of you may get confused. I see some people using them in if conditions without actually knowing what they do. Let me try to explain the concept with a couple of lines of code… See the code below and try to guess what is printed as the output: […]
What is a Java Bean? Is it just any java class? The answer is no! Many people think when they say “Java Bean” they are talking about just any java class, but this is not the case. A Bean is not just any java class. Java Beans are classes that need to abide by some […]
Recently, I heard 2 of my friends talking about the difference between a framework and a library, and I thought some may need a clear explanation to see the difference. Check out the simple diagram below. Library A library is essentially a set of functions that you can call, these days usually organised into classes. Each […]
For the new comers Django’s Get and Filter functions may be consuming when it comes to decide which one to use. The primary difference between the two is Get will return exactly one object while Filter will return a query object even if the result set contains only a single object. GET Returns the object matching […]
Here is another post to help out PHP beginners. So you created your connection object, wrote your query, created a statement object, bound your variables to protect yourself against injection attacks etc. Now you execute your query and wanna see if the execution was successful. How do you know if the query was successfully executed on […]
This is will a PHP basics posts. I see this question is asked a lot by the beginners so here it goes. Let’s see how you can detect which button was clicked in a PHP form. Detecting Which Button was Clicked in PHP Forms I am assuming you already know that for a button to […]
There are various ways that you can do string concatenation in Ruby: 1- Concatenate using “+” operator
myString = "Welcome " + "to " + "Ruby!"
2- Concatenate without the “+” operator
myString = "Welcome " "to " "Ruby!"
3- Concatenate using “<<” operator
myString = "Welcome " << "to " << "Ruby!"
4- Concatenate using “concat” method
myString = "Welcome ".concat("to ").concat("Ruby!")
5- Create an array of strings and use “join” method
foo = 
foo << "foobar"
string = foo.join
Check out the links below for some […]
If you are a web developer/webmaster, it is imperative that you understand positioning and know how relative, absolute and fixed positioning works. In this post, I will try to briefly explain how they work so that you can see the differences and use them correctly in your page design. Relative Positioning Every element on a […]
When it comes to security, you will hear a lot of people talking about things like hashing and encryption. But what are they? What are the differences? What are the practical approaches when it comes to choose which one to use? In this post, I will try to give a brief explanation about both concepts and try […]