Security issues for CQ/AEM Instances
Contact me at LinkedIn  RailsZilla at Facebook  RailsZilla at twitter   google +1  Contact me at Xing  connect me at github

Security issues for CQ/AEM Instances

Posted in Ruby, Start

Because I was checking some security issues in my job, I was concerned with exploits for the Adobe AEM system. We can find a lot of old Adobe AEM Versions out there. To find Websites using Adobe AEM, just go to google and enter: 1inurl:content/geometrixx By doing this, we will get a lot of results […]

Tags: , , , ,

Projekt Euler – probem 4 in Ruby

Posted in Ruby

Let’s go on with part four of our mathematical soultions-series in Project Euler: Problem: The Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers. […]

Tags: , ,

Prime in Ruby – alternative solution

Posted in Ruby

As I showed in my article here, we can have another way of doing this job: 1234567require ‘prime’ goal = 600851475143 Prime.each(goal) do |number|    @container = [number] end puts @container.last This small piece of code illustrates togeter with my other solutions, that we have a vast amount of ways doing things in Ruby …

Tags: , , ,

Project Euler – problem 3 in Ruby

Posted in coffee break, Ruby

This is part three of our mathematical soultions-series in Project Euler: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? Now we can have a short and a detailed version to solve this problem. The short one is nearly a joke with […]

Tags: , , ,

Project Euler – problem 2 in Ruby

Posted in coffee break, Ruby

Hi folks, this is part two of our soultions-series for the mathematical problems in Project Euler. Project Euler – problem number two: “Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, […]

Tags: , , , , , ,

Project Euler – mathematical problem 1

Posted in coffee break, Ruby

I recently heared about “Project Euler” from a friend. For all of those who have not heared about this project: “Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve.” The first mathematical problem to solve was: If we list all the natural numbers below […]

Tags: , , , ,

Ruby 2.0 encoding is utf-8

Posted in Rails, Ruby

As I wrote in my article about Encoding, Ruby methods dealing with encodings return or accept Encoding instances as arguments (when a method accepts an Encoding instance as an argument, it can be passed an Encoding name or alias instead). Normally, the default script encoding is Encoding::US-ASCII, but it can be changed by a magic […]

undefined method visit for RSpec

Posted in Rails, Ruby

Writing full-stack tests is important. In this article it’s all about behavior-driven development (abbreviated BDD) and fixing the errors which can occour. I have three simple steps to check that your test will run. Lets say we use the following Integration Test in our static_pages_spec.rb: 123456789require ‘spec_helper’ describe "Static pages" do   describe "Home page" […]

Tags: , , , , , ,

Invalid multibyte char (US-ASCII) Ruby

Posted in console, Ruby

I was playing with Couchbase and plain Ruby in my Terminal. Then I got the error message: 1invalid multibyte char (US-ASCII) If you got this error, you know that this is a result of having special chars. To fix this, you have to add a ‘magic comment’ in the script. Here is a step-by-step instruction […]

Tags: , , ,

Ruby on Rails performance issues

Posted in coffee break, Rails, Ruby

I was thinking several times about this message and discussed it with some friends: http://engineering.twitter.com/2011/04/twitter-search-is-now-3x-faster_1656.html Twitter started to rewrite their search engine using Lucene instead of MySQL and replaced the Ruby-on-Rails front-end by a Java server, which is supposedly to be faster … ?!? As you can read in the article: “Over time, we had […]

Tags: , , , , , ,

Copyright © 2011-2017  - RailsZilla – Ruby on Rails tutorials, tips and tricks All rights reserved. | Imprint | Privacy