Assuming 31 is the line at which your test starts, do this:
rspec some.spec:31
Assuming 31 is the line at which your test starts, do this:
rspec some.spec:31
Treetop seems pretty nice, but information on it’s usage is kind of scattered all over internet
. Here are a few tips that I used to debug grammars:
tree = parser.parse(content,:root => "rule_name")
if tree
puts "succesful"
else
puts "unsuccesful at #{parser.index}"
puts parser.failure_reason
end
Hope this helps you as much as it helped me.
If you receive this when deploying django on apache, it’s because you have something like:
print "Something %s" % value
The fix is to change it to:
print "Something %s" % str(value)
Just a simple usage example:
using System.Xml;
...
XmlDocument doc = new XmlDocument();
// loading a file
doc.Load("file.xml");
// searching for multiple nodes via XPath; this will select all elements wherever they may be
XmlNodeList books = doc.SelectNodes("//books");
foreach(XmlNode node in books)
{
// getting attributes; assuming <book Author="Whatever">
XmlAttribute author = node.Attributes["Author"];
string value = author.Value;
}
Monday: complexes ( as shown in T-Nation’s screw cardio article )
Tuesday: stationary bike cardio
Wednesday: running
Thursday: pyramid training
Friday:complexes again
Saturday: stationary bike cardio