Page 85 of 170

Pidgin with Gadu-Gadu account enabled crashes or hangs fix

I like Pidgin because it allows me to have all communicator accounts in one place. However few weeks ago I was forced to use Kadu as my Gadu-Gadu client. Pidgin started to hang while trying to connect to Gadu-Gadu (or few seconds after it). Happily there is am easy way to fix this. First of all, we need to disable Gadu-Gadu account. To do so, we need to edit ~/.purple/accounts.xml file:

vim ~/.purple/accounts.xml

Now we need to find Gadu-Gadu section. There should be a tag like this:

<setting name='auto-login' type='bool'>1</setting>

We need to change the value to 0, so the Gadu-Gadu account won't start automatically. Thanks to this, it won't crash or hang whole Pidgin communicator.

<setting name='auto-login' type='bool'>0</setting>

Then start Pidgin, go to Accounts -> Add/Edit, edit the Gadu-Gadu account:

settings-1

Select the "Proxy" tab (the last one) and choose "No proxy" option. Click "Save" and restart Pidgin. Gadu-Gadu protocol should work like a charm.settings-2

Ruby on Rails + Webrick: ERROR NoMethodError: undefined method ‘split’ for nil:NilClass

Recently after updating Ruby on Rails, after runnig Webrick in a development mode, it started to crush with such an error:

 ERROR NoMethodError: undefined method `split' for nil:NilClass
    /home/path/gems/rack-1.4.3/lib/rack/handler/webrick.rb:68:in `block in service'
    /home/path/gems/rack-1.4.3/lib/rack/utils.rb:387:in `block in each'
    /home/path/gems/rack-1.4.3/lib/rack/utils.rb:386:in `each'
    /home/path/gems/rack-1.4.3/lib/rack/utils.rb:386:in `each'
    /home/path/gems/rack-1.4.3/lib/rack/handler/webrick.rb:62:in `service'
    /home/path/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
    /home/path/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
    /home/path/ruby-1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

I don't know why it happens but I know how to fix it ;)
To do so, you need to find 68 line in a Webric server:

# Ofc change the path to your Webrick path
vim /home/path/gems/rack-1.4.3/lib/rack/handler/webrick.rb

Localize line 68 and change:

res[k] = vs.split("\n").join(", ")

to:

res[k] = vs.to_s.split("\n").join(", ")

It seams that the header value is somehow nil, that's why we cast it to empty string.

Copyright © 2025 Closer to Code

Theme by Anders NorenUp ↑