All posts by Telvis

grow where we are planted

I hope we grow where we are planted - even unexpected setbacks can work for our benefit.

(Jeremiah 29:7 KJV) And seek the peace of the city whither I have caused you to be carried away captives, and pray unto the Lord for it: for in the peace thereof shall ye have peace.

Installing WPScan

WPScan is a useful tool for finding vulnerabilities in your WordPress blog. Here are the steps I followed to install wpscan on centos 6.3.

1. Install Ruby 1.9.x and RubyGems 1.8.24 from the source: http://www.rosehosting.com/blog/how-to-install-ruby-1-9-3-and-rubygems-1-8-24-on-centos-6-2/

2. I also needed to install 'readline'

 sudo gem install rb-readline

3. Steps to install and run WPScan: https://github.com/wpscanteam/wpscan/blob/master/README.md

Valentine’s Day Scripture Usage on Twitter

heartsI'd like to know which bible verses were popular on twitter on Valentine's Day - 2013. I've added elasticsearch support to my project habakkuk to store religious tweets for analysis. It turns out to be a collection of love scriptures. Very Nice!

Results

  1. John 3:16  "For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life."
  2. 1  John 4:19 "We love because he first loved us."
  3. 1 Corinthians 13:4 "Love is patient, love is kind. It does not envy, it does not boast, it is not proud."
  4. 1 Corinthians 13:13 "And now these three remain: faith, hope and love. But the greatest of these is love."
  5. John 14:23  "Jesus replied, “Anyone who loves me will obey my teaching. My Father will love them, and we will come to them and make our home with them."
  6. Psalm 37:23 "The steps of a good man are ordered by the Lord: and he delighteth in his way."
  7. John 15:13 "Greater love has no one than this: to lay down one’s life for one’s friends."
  8. 1 Corinthians 13:7  "[Love]  always protects, always trusts, always hopes, always perseveres."
  9. Philippians 4:13 "I can do all this through him who gives me strength."
  10. Romans 5:8 "But God demonstrates his own love for us in this: While we were still sinners, Christ died for us."

Technical Details

To get the data for Valentines day 2013, I execute the following

$ python bible_facet.py -s 2013-02-14 -e 2013-02-15

It shows the raw query json for the Elasticsearch Query DSL. Below that it shows the top 10 bible references. Its basically just a faceted search on the bibleverse field.

    {
      "query": {
        "filtered": {
          "filter": {
            "range": {
              "created_at_date": {
                "to": "2013-02-15T00:00:00",
                "include_upper": false,
                "from": "2013-02-14T00:00:00"
              }
            }
          },
          "query": {
            "match_all": {}
          }
        }
      },
      "facets": {
        "bibleverse": {
          "terms": {
            "field": "bibleverse",
            "order": "count",
            "size": 10
          }
        }
      },
      "size": 0
    }

Total bibleverse 1568
  john 3:16 85
  i_john 4:19 42
  i_corinthians 13:4 31
  i_corinthians 13:13 24
  john 14:23 19
  psalm 37:23 18
  john 15:13 18
  i_corinthians 13:7 18
  philippians 4:13 17
  romans 5:8 15

 

Project Details

Please reference the elasticsearch readme in habakkuk for details regarding the query that obtained this data. Special thanks to http://www.biblegateway.com for the NIV Bible text. I should also shout out to openbible.info, his twitter Lent blog is awesome.

hot tea

We are like tea bags, we don't know what we're capable of until we get into hot water.

(Daniel 3:26, 27 NIV) "Nebuchadnezzar then approached the opening of the blazing furnace and shouted, “Shadrach, Meshach and Abednego, servants of the Most High God, come out! Come here!” So Shadrach, Meshach and Abednego came out of the fire, and the satraps, prefects, governors and royal advisers crowded around them. They saw that the fire had not harmed their bodies, nor was a hair of their heads singed; their robes were not scorched, and there was no smell of fire on them."

no gain

Some say "no pain, to gain". We can also say "no love, no gain"

1 Corinthians 13:3 NIV "If I give all I possess to the poor and give over my body to hardship that I may boast, but do not have love, I gain nothing."

knowledge

How much we love is more important than how much we know.

1 Corinthians 13:2 NIV "If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but do not have love, I am nothing."

gong

A life without love is like "The Gong Show" with no Show.

1 Corinthians 13:1 (NIV) If I speak in the tongues of men or of angels, but do not have love, I am only a resounding gong or a clanging cymbal.

getting better

Being perfect may not always be possible, but there's always room to get better.

2 Peter 1:5-7(NIV) - 5 For this very reason, make every effort to add to your faith goodness; and to goodness, knowledge; 6 and to knowledge, self-control; and to self-control, perseverance; and to perseverance, godliness; 7 and to godliness, mutual affection; and to mutual affection, love.