Pages

Monday, 25 April 2016

10 things I learn while watching the porn

In the midst of sexual desire and relief, lies a porn film. Every human longs for sexual excitement and porn satisfies that. So, watching it is perfectly okay and
acceptable. Mind is the only sex organ and while viewing porn, it rejoices the most. Our uneasy and stressful thoughts get soaked in pleasure and we disown the world for some time.
But sadly, I often hear people saying that pornography promotes sexual violence and rape. Really?
Here are the things I realized while watching porn:

1. Women are the most beautiful creatures on earth
A woman's body is definitely most beautiful thing ever. Everything from the curves of her waist to her breasts -there's a sense of beauty and any man who doesn't respect that is a fool.

2. Women enjoy sex as much as men do
A woman attaches more emotions to sex but exhibits the same sexual desire as most men do. Most women enjoy good erotica. Who says men are the only ones who have the flaming sexual imaginations?
If you still don't believe me, this link will clear all your doubts.

3. Sex is best when practiced with freedom and not force
At the time of sex, people are way too focused on giving or taking and actually forget to just celebrate the moment and be themselves completely, rejoicing in it madly.

4. It takes a lot of guts to be a porn star
Sex is natural and porn is man-made. You are selling your soul in front of the camera and the world watches you, as your nudity loses its secrecy. How many of us can actually think of doing this in our wildest dreams?

5. Porn stars have to work hard to look good on screen
You think that lean, sexy muscles, and sensuousness comes naturally to porn stars? It involves a lot of hardwork, muscular endurance and preserverance to achieve it. Looking naked ain't easy. Anybody can look great with 'Gucci' and 'Armani' on them.

6. You make a conscious decision to watch porn and then call it a sin
Pornstars don't invite you to watch porn. It's your desire that urges you to watch it. In India, 70% of students who were surveyed had watched porn from the age of 10 years and 31% of the boys interviewed watched violent porn content. And 30 per cent of Indian women watch online porn.
So, who is a sinner?

7. Porn does not promote rape
No, pornography has not made sexism, misogyny or violence against women worse but instead it has become an outlet for both men and women to find their sexual identity by means of accessing sexual pleasure.

8. Porn stars make more money than you and me
In countries outside India, like the US, an average male porn star makes Rs 15 lakh a year whereas an average female performer earns Rs 20 lakh a year.
Source: Therichest

9. Porn only shows the sexual moves but hides the true character of a porn star
Just because a porn star acts horny all the time, it doesn't proves that her character is bitchy and heartless.

10. Banning porn sites in India will not change people's attitude.
Porn is sometimes actually good for you. Sexual health is important part of you and I don't think it's anyone's business to stop you from enjoying it. Yes, porn has the certain potential to be harmful but only if it originates from greed, lust and misanthropy.

Source - Navbharat time , india times

Saturday, 9 April 2016

Finally revealed what kattapa killed bahubali.

Year 2015 left one secret that why kattapa killed bahubali?
bit finally secret is disclose by none other than the movie director S. S. Rajamouli.
In recent interview he gave clue that kattapa killed bahubali because "he was asked to do so".

Still secret remains secret and finally we need to watch next part of movie to know the same.

Send Email with Meteor using Gmail SMTP

Meteor is new framework based on Node.js  for fast building and development of web application. In all web application there is a always need of sending email for many purpose.

Following code snippet show basic email functionality. Further i show different emails with MUP settings.

Adding package

First you need to add email package in your application

in current application folder write following line your terminal

meteor add email

this will add new package in your application, you can also add it directly in meteor application's package file by adding new line as follows

email

Setup the MAIL_URL

Create new file smtp.js under server directory. Meteor itself understand file's accessibility whether it is server side file or client side file as you put it in to server or client directory.

Add following code into smtp.js, here we are using Gmail's SMTP to send email.

Meteor.startup(function () {
process.env.MAIL_URL = 'smtp://email_username:email_password@smtp.gmail.com:587';
});


Add following code where you want to send email.

if (Meteor.isServer) {
Email.send({
from: "from@fornfromgeeks.com",
to: "me@myid.com",
subject: "Subject",
text: "Hello, Geeks"
});
}

Thursday, 31 March 2016

10 Places are hide on Google Map

  1. The Royal Residence, The Netherlands
  2. Buffalo Niagara International Airport
  3. Tantauco National Park, Chile
  4. Keowee Dam, South Carolina
  5. Mysterious Russian Site
  6. Minami Torishima Airport, Japan
  7. The Michael Aaf Building, Utah
  8. Cornell University Combined Heat and Power Plant, New York
  9. Babylon, Iraq
  10. Vlissingen, The Netherlands

Wednesday, 30 March 2016

5 things you can do with Oculus instead of gaming

  1. Gaming
  2. Architecture
  3. Art
  4. Medicine
  5. Therapy
  6. Tourism

Thursday, 17 December 2015

Meteor Js continuous integration with Codeship and Jasmine Js.


Hello, Following are simple steps to implements continuous integration for Meteor Apps on Codeship with Jasmine testing.

Lest assume that you have Codeship account and you have adequate knowledge of Jamine testing. Here you need to add Jasmine test cases in your project directory.

Also you need to create folder .deploy/staging, this folder will contains mup.json file and settings,json file. You need to configure mup.json file for deployment of your meteor project.

Codeship steps:

   - Clone latest Meteor repo from BitBucket
   - Paste the following script to "Setup Command" section, because codeship needs to  install Meteor      and other packages

        nvm install 0.10.33

     nvm use 0.10.33

     curl -o meteor_install_script.sh https://install.meteor.com/

     chmod +x meteor_install_script.sh

     sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g" meteor_install_script.sh

     ./meteor_install_script.sh

     export PATH=$PATH:~/.meteor/

     meteor --version

     npm install -g velocity-cli

     cd ~/src/bitbucket.org/https://username@bitbucket.org/username/reponame.git/ && meteor add sanjo:jasmine velocity:html-reporter


   - Paste following script to "Configure Test Pipelines" section

         meteor run --test


   - Setup deploy command in deployment section by choosing custom script
   
          npm install -g mup

     cd .deploy/staging

     mup deploy

Sunday, 13 December 2015

Testing in JavaScript using Velocity

Testing in JavaScript using Velocity


Unit testing required for to ensure the reliability and maintainability of software, and more there is also methods like Test-Driven Development and Behavior Driven Development are avilable.


Velocity supports many javascript framework for testing it includes;

  1. Jasmine

  2. Cucumber

  3. Mocha


Jasmine supports most of the modes of testing in meteor. Following image shows testing modes and supported frameworks.



Jasmine


Each of the framework has advantages and disadvantage but Jasmine has unique fratures that makes it eady to use and get started with.

To use Jasmine, it does not required to have Node.js installed.


Installation


To install Jasmine run following command in your project directory.

meteor  add sanjo:jasmine

We  also need to install Velocity Reporter package to see test result.
meteor  add velocity:html-reporter


Suites and Specs


Each suite in turn contains a set of Expectations that compare the results of the test - called the actual - with the expected value. A Suite is defined by calling the describe() function. It takes two parameters: the name of the Suite, and the function which contains the calls to the expectation methods called Specs. These are defined using the it() method. Like describe(), it() also accepts a name and function parameter. The it() function parameter may contain variables and one or more calls to the expect() method. Used in conjunction with a Matcher function, these carry out the task of comparing the actual and expected values. Here's a simple example to demonstrate:

describe  ("the todo page : page contents", function() {
     
   	it  ("should include a page title of 'Todo List'", 		function()  {
     		expect($('title').text()).toEqual('Todo  List');
   	});


   	it  ("should include a page heading of 'Todo List'",  	function() {
     		expect($('h1').text()).toEqual('Todo  List');
   	});
});


  Put  above code in  /test/jasmine/client/integration/todos/page-contents-spec.js,  Jasmine  supports folder structures.   


Pre-defined Matchers

In the above example, the toBeGreaterThan() method is a matcher. It represents a comparison such as ">" using plain English. There are many other matchers available, including:

  • toBe: represents the exact equality (===) operator.

  • toEqual: represents the regular equality (==) operator.

  • toMatch: calls the RegExp match() method behind the scenes to compare string data.

  • toBeDefined: opposite of the JS "undefined" constant.

  • toBeUndefined: tests the actual against "undefined".

  • toBeNull: tests the actual against a null value - useful for certain functions that may return null, like those of regular expressions (same as toBe(null))

  • toBeTruthy: simulates JavaScript boolean casting.

  • toBeFalsy: like toBeTruthy, but tests against anything that evaluates to false, such as empty strings, zero, undefined, etc…

  • toContain: performs a search on an array for the actual value.

  • toBeLessThan/toBeGreaterThan: for numerical comparisons.

  • toBeCloseTo: for floating point comparisons.

  • toThrow: for catching expected exceptions.

Example

Put follwing code in demoapplication.css

<head>
    <title>jasminetest</title>
</head>
<body>
<h1>Welcome  to Meteor!</h1>
	{{>  hello}}
</body>
<template  name="hello">
    <button  id="clickButton">Click Me</button>
    <p  id="buttonText">You've pressed the button  {{counter}} 		times.</p>
</template>

Put follwing code in demoapplication.js

if  (Meteor.isClient) {
    //  counter starts at 0
    Session.setDefault('counter',  0);
    Template.hello.helpers({
        counter:  function () {
            return  Session.get('counter');
        }
    });
    Template.hello.events({
        'click  button': function () {
            //  increment the counter when button is clicked
            Session.set('counter',  Session.get('counter') + 			1);
        }
    });
}


Write following tets to check counter display proper or not


inside tests/jasmine/cleint/integration/sample/buttonSpec.js


describe('clicking  the button', function () {
    //  reset the counter before each test
    beforeEach(function()  {
        Session.set('counter',  0);
    });
    it('should  show how many times the button was pressed', 	function () {
        //  Get the text we are testing
        var  text = $('p#buttonText').text();
         
       //  assert that we see 'You've pressed the button 			times.'
        expect(text).toEqual("You've  pressed the button 0 			times.");
    });
});


Output: