Skip to main content

Posts

Showing posts from February, 2017

How to use Scraping Hub? (Step-by-Step)

Do you want to run your Scrapy framework’s spiders without any paid server? Do you want to get clear picture of the generated logs? Do you want to run multiple spiders at once? Do you want to setup cronjobs? I have used scrapinghub to do so without any price. Steps: 1.      Create a free account from here: scrapinghub.com 2.      Create an instance of spider 3.      Go to deploy and run spiders section 4.      Note down ID and API key from there 5.      Install the commandline tool shub using pip command   pip install shub   6.      Go to the root directory of the scrapy project 7.      Login to the instance of scrapinghub   shub login   8.      Enter API key and ID of project (Enter Y to remember the project or N to enter ID on each deployment) 9.      Deploy the latest project   shub deploy   Now after each change on the project, you will need to do    shub deploy  .

Java interview questions (Nepal)

At 2014, I completed my Bachelors in Computer Engineering. I had applied to number of software development companies in Nepal. Some of them are: 1. Deerwalk Inc. 2. Himalayan IT 3. F1 soft 4. Leapfrog Technologies 5. E & T Nepal There were different types of exams and tests. Interviews, written test, simple programming tasks, IQ tests, etc were pretty common in all the companies. As I had applied for Java developer's post, I faced various questions which I have compiled here for your references. It is really helpful to be able to answer these questions and go for any interview calls. Please let me know if there is any concern. 1. Difference between Class and Object 2. Difference between Abstract class and interfaces 3. What is singleton class? 4. What is reflection in java? 5. Difference between OOP in java and OOP in C ++ 6. Do you define a function in interfaces? 7. Can you name 15 keywords of java? 8. What is top-down approach? What is bottom-up approac