Skip to main content

Posts

Showing posts with the label ruby

Chef: ChefDK

Create a linux machine, login into it and execute the following command: curl -s https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk Now we need to change the default ruby to point it to the chef ruby and not the system ruby. Execute the following command for it. echo 'eval "$(chef shell-init bash)"' >> ~/.bash_profile Note: eval  is part of POSIX. Its an interface which can be a shell built-in.Its described in the "POSIX Programmer's Manual":  http://www.unix.com/man-page/posix/1posix/eval/ eval - construct command by concatenating arguments It will take an argument and construct a command of it, which will be executed by the shell. This is the example of the manpage: 1 ) foo = 10 x = foo 2 ) y = '$' $x 3 ) echo $y 4 ) $foo 5 ) eval y = '$' $x 6 ) echo $y 7 ) 10 In the first line you define  $foo  with the value  '10'  and  $x  with the value  'foo' . Now define  $y , which consists ...

Coding Standards

 Schemaless: Nosql Variable state has different instances that have different values that need to be stored inside them.  Common state when most of the instances have the same value so it is easier to reteive. the above is a method in which we can make our RDBMS system more flexible like NoSQL but make them more rigid then the NOSQL. Then in our traditional schema we need the data that fits the schema. But in the predicate one we can handle different types of data and decide how we are going to handle that data. We can use xml for this pupose. To keep a check on xml data we can use xml schema.. but now a days there is relax compact notation. RELAX NG is a simple schema language for XML, based on [ RELAX ] and [ TREX ]. A RELAX NG schema specifies a pattern for the structure and content of an XML document. A RELAX NG schema thus identifies a class of XML documents consisting of those documents that match the pattern. Consider a simple XML represen...