Skip to content

Instantly share code, notes, and snippets.

View kilaulena's full-sized avatar

Lena Herrmann kilaulena

  • Zalando Marketing Services
  • Berlin, Germany
  • X @kilaulena
View GitHub Profile
1) Error:
test_0001_should_allow_to_add_a_place_to_favorites_being_logged_in(Acceptance: Favorite a place):
ActionView::Template::Error: undefined method `params' for #<UserMailer:0x00000107ff28e8>
/Users/lena/.bundle/ruby/1.9.1/gems/actionpack-3.0.11/lib/action_view/base.rb:193:in `params'
/Users/lena/.bundle/ruby/1.9.1/bundler/gems/i18n_viz-50d42526ecf5/lib/i18n_viz/view_helpers.rb:22:in `display_i18n_viz?'
/Users/lena/.bundle/ruby/1.9.1/bundler/gems/i18n_viz-50d42526ecf5/lib/i18n_viz/view_helpers.rb:5:in `translate'
/Users/lena/devel/railslove/lysbon/app/views/user_mailer/confirmation_instructions.text.erb:1:in `_app_views_user_mailer_confirmation_instructions_text_erb___174597756938345910_2233858620_1726467605911877121'
/Users/lena/.bundle/ruby/1.9.1/gems/actionpack-3.0.11/lib/action_view/template.rb:162:in `block in render'
/Users/lena/.bundle/ruby/1.9.1/gems/activesupport-3.0.11/lib/active_support/notifications.rb:54:in `instrument'
/Users/lena/.bundle/ruby/1.9.1/gems/actionp
@kilaulena
kilaulena / gist:2561283
Created April 30, 2012 18:56
Drilling in your wall and not in cables
TIL when you drill in your wall (eg to hang up a shelf), these are ways to avoid drilling into a power
supply:
- I always thought this rule of thumb would suffice: do not drill within a straight vertical or
horizontal line from power sockets. TIL in Germany to be on the safe side, you need to add a 20cm safety
distance to each side of these lines. Within this distance can be supply lines too!
- Power supply line detectors are worthless when they are cheap, the pricier ones can help you a bit, but
they still are no guarantee: when the lines are deeper within the wall, they can not be detected exactly
at all.
@kilaulena
kilaulena / stats.sh
Last active December 13, 2015 18:38
#!/bin/bash
# Tells you how your photos are distributed over the year - in which months do you take the most photos?
#
# call with
# ./stats.sh 2>/dev/null
# because there will be some broken exif data
date
echo "Total photos:"
public class Studentin
{
private String name;
private String vorname;
private String studiengang;
private int matrikelnummer;
Studentin () {} //Standardkonstruktor
Studentin (String n, String v, String f, int m)
@kilaulena
kilaulena / gist:8006679
Last active December 31, 2015 15:28
hello world in mysql
# encoding: UTF-8
# based on http://zetcode.com/db/mysqlrubytutorial/
#
# gem install mysql2
require 'mysql'
begin
con = Mysql.new 'localhost', 'root', ''
web | POST /quote
web | ERROR [2020-07-29 11:53:46,289] [a2a441ebe0184341a2354a1484740a2a] sales_cockpit_be.recommendation_client: Could not post data to `https://sales-cockpit-reco-test.zms-automation-test.zalan.do/recommendation-sales-cockpit` (401)
web | Stack (most recent call last):
web | File "/usr/local/lib/python3.8/site-packages/gevent/baseserver.py", line 26, in _handle_and_close_when_done
web | return handle(*args_tuple)
web | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/ggevent.py", line 155, in handle
web | super(GeventWorker, self).handle(listener, client, addr)
web | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/base_async.py", line 56, in handle
web | self.handle_request(listener_name, req, client, addr)
web | File "/usr/local/lib/python3.8/site-packages/gunicorn/workers/ggevent.py", line 159, in handle_request