DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Elevate your data management. Join a lively chat to learn how streaming data can improve real-time decision-making, and how to reduce costs.

Platform Engineering: Enhance the developer experience, establish secure environments, automate self-service tools, and streamline workflows

Build Cloud resilience. High-profiled cloud failures have shown us one thing – traditional approaches aren't enough. Join the discussion.

Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.

Avatar

Lance Pollard

Joined Nov 2008

Stats

Reputation: 7
Pageviews: 304.8K
Articles: 2
Comments: 8
  • Articles
  • Comments

Articles

article thumbnail
Count Files In Directory With Ruby
Dir["your-directory/**/*"].length
November 9, 2010
· 4,309 Views
article thumbnail
Finding Elements By Attributes With Nokogiri
To find elements by attribute with nokogiri, no matter where the element/attribute is, use these: @doc = Nokogiri::XML(File.open("myFile.xml").read) # get elements with attribute: elements = @doc.xpath("//*[@*[attribute_name]]") # get just the attribute: attributes = @doc.xpath("//@*[attribute_name]") If you want them with a specific namespace, do this: # get elements with attributes from a given namespace: elements = @doc.xpath("//*[@*[namespace-uri()='http://foo.example.com']]") # get attributes from a given namespace: attributes = @doc.xpath("//@*[namespace-uri()='http://foo.example.com']")
September 29, 2009
· 9,294 Views

Comments

Periodic Table of the Elements

Sep 07, 2010 · Tony Thomas

See what tags your or any site uses on a cool Periodic Table interface! Super cool
Reflections on MongoDB

Aug 30, 2010 · mitchp

Nice 'from the trenches' reflection on MongoDB production use from CollectiveIdea.
Roll a blog with node.js, express and mongoDB

Aug 19, 2010 · Ciaran Jessup

Excellent example of a Node.js and MongoDB application
Real time online activity monitor example with node.js and WebSocket

Aug 14, 2010 · Rich LaMarche

Very helpful tutorial for streaming logs and stats from the shell directly to a web UI using node.js.
25 HTML5 Features, Tips, and Techniques you Must Know

Aug 14, 2010 · Joseph Randolph

A few html5 features I haven't seen that seem really useful, like the 'required' attribute and regular expression support. Good reference.
Top 10 CSS3 commands

Aug 14, 2010 · Tony Thomas

Nice overview of CSS3 commands you'll probably use.
PageRank Explained with Javascript

Aug 14, 2010 · Tony Thomas

PageRank Explained with Javascript. Contains an interactive chart, code samples, and an explanation of the underlying math, namely graph theory, linear algebra, stochastic matrices, eigenvector centrality, and the power iteration eigenvalue algorithm.
Active Record Query Interface 3.0

Aug 10, 2010 · Lance Pollard

sorry, it was already posted. if only i can delete posts...

User has been successfully modified

Failed to modify user

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: