# Security issues for CQ/AEM Instances

TweetBecause 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 […]

# Projekt Euler – probem 4 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. […]

# Prime in Ruby – alternative solution

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 …

# Project Euler – problem 3 in 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 […]

# Project Euler – problem 2 in 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, […]

# Project Euler – mathematical problem 1

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 […]

# Ruby 2.0 encoding is utf-8

TweetAs 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 […]

# Ruby on Rails performance issues

TweetI 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 […]

## Invalid multibyte char (US-ASCII) 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: encoding, gem, magic comment, ruby