Skip to content

Instantly share code, notes, and snippets.

@MagmaRules
MagmaRules / _attributes.html.erb
Created July 25, 2013 11:41
Changes for redmine using Oracle DB
- <p><%= f.text_field :start_date, :size => 10, :disabled => [email protected]?, :required => @issue.required_attribute?('start_date') %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
+ <p><%= f.text_field :start_date, :size => 10, :disabled => [email protected]?, :required => @issue.required_attribute?('start_date'), :value => @issue.start_date ? @issue.start_date.strftime(Setting.date_format) : "" %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
{
"from": 0,
"size": 10,
"query": {
"custom_score": {
"query": {
"filtered": {
"query": {
"query_string": {
"query": "t-vida",
@MagmaRules
MagmaRules / gist:1296906
Created October 18, 2011 22:19
Error connecting to cluster
initializing ...
22:17:21,604 INFO [plugins] [Decay II] loaded [], sites []
22:17:23,728 INFO [node] [Decay II] {elasticsearch/0.17.8}[8492]: initialized
22:17:23,728 INFO [node] [Decay II] {elasticsearch/0.17.8}[8492]: starting ...
22:17:23,849 INFO [transport] [Decay II] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/192.168.1.72:9300]}
22:17:26,923 INFO [zen] [Decay II] failed to send join request to master [[Jaeger][c9i507UYSnyWGgfXlK9ubA][inet[/192.168.1.72:9300]]], reason [org.elasticsearch.transport.RemoteTransportException: [Decay II][inet[/192.168.1.72:9300]][discovery/zen/join]; org.elasticsearch.ElasticSearchIllegalStateException: Node [[Decay II][CLCZGeyXQOe-BD10OJ81Ug][inet[/192.168.1.72:9300]]{client=true, data=false}] not master for join request from [[Decay II][CLCZGeyXQOe-BD10OJ81Ug][inet[/192.168.1.72:9300]]{client=true, data=false}]]
22:17:29,955 INFO [zen] [Decay II] failed to send join request to master [[Jaeger][c9i507UYSnyWGgfXlK9ubA][inet[/192.168.1.72:9300]]], reaso