Skip to content

Instantly share code, notes, and snippets.

@vvikramjhu
Created August 12, 2013 20:04
Show Gist options
  • Save vvikramjhu/6214587 to your computer and use it in GitHub Desktop.
Save vvikramjhu/6214587 to your computer and use it in GitHub Desktop.
The test is as follows:
Deploy Drupal 7
Write a connector to collect all the data from http://nvd.nist.gov
Setup a cron to update the latest changes daily
Write this to MySQL
Create a user registration block, allow self registration
Create a search box for the NVD data - permit simple text search and use a levenshtian algorithm to do two things -
Find most likely matches
Display the most likely "alias" that represents multiple distinct name entries - take a look at Microsoft Office (you will see what I mean)
Create an area chart in HighStock charts that shows the incoming issues and the overall risk (CVSS) over time
Put this on VMWare and upload the image to Dropbox
Send me a Dropbox invitation so that I can see the work
Bonus - Create a Wordpress theme that looks like this - http://atlanticlegal.org (tabbed navigation, three columns, etc)
me :
Hello Ernest,
Glancing at the question , I am not sure how to collect data from the site. Do I scrape pages or do I look for feeds ? Not written a connector before so not sure how to proceed with this. My idea was to use the basic scraping method of using regular expressions for this but that would not be efficient and be very time taking. Please advise.
thanks,
V
me :
Dear Ernie,
I got a kindle version of drupal 7 after talking to people irc drupal. I have installed version 7 and mysql on my ubuntu system but I am not at all sure of how to get the connector working. If you have a quickstartup guide for drupal and if you can send me one, audio or pdf to get started and especially possible ways of what you had in mind about scraping the site, what methods to use and what are available to be used, that would be great as pointers. If there are some prebuilt libraries I can use for such purpose it would be great to be pointed to them. If on the other hand I have to employ a web bot to query the website at random intervals to get data from its database that would seem plausible but I have never done anything like that before so again any pointers would be great.
Looking forward to your reply and hoping to get started on this soon
thanks ,
V
employer:
Use acquia or bitnami. They are both easy to setup.
employer:
Did you look into Bitnami or Acquia?
Both of those offer preconfigured environments that can be up and running in minutes.
Also, note that there is no "connector".
When installing Drupal with Tomcat, you just need to make sure that your Drupal path is within the document root of the web server, and that you are navigating to the correct relative path.
If you want, send me screenshots, and I can address those precisely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment