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: , , , ,

Ruby on Rails Database Indexes

Posted in Rails

Handy hint for better database performance in Ruby on Rails: Always add DB index in your Migration! By default, rails does not add indexes automatically for foreign key, you should add indexes by yourself. If you want to speed up your performance, I suggest to add an index for – foreign key – columns that […]

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: , ,

ActiveAdmin with http authentication

Posted in Rails

Ever asked yourself how to use HTTP Basic authentication with ActiveAdmin? There are several reasons to use HTTP Basic authentication for your backend. I needed a solution which can be recycled wherever I need a HTTP Basic authentication. I only wanted a central place for User and Password and I wanted just one call wherever […]

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: , , , ,

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: , , ,

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