Was solved by
plugin.tt_news.amenuStart = 1.1.2000
Typo3 – AMenu is missing a bunch of entries
VMware Server 2 – DNS stops working?
a few days ago, almost all services (that somehow require a working DNS lookup) spread across three virtual machines (1x Ubuntu; 2x WinXP) stopped working. After two fracking years!
Well, it took me about two days to figure out some kind of workaround (no real “solution” yet).
Before you continue
… you should check if you really have the same issue:
ping google.com
should give you host not found. If you receive packets from Google you’re obviously fine – what are you doing here anyway?
Next test, if you indeed get a “host not found” result from ping command, your NAT by typing
ping 123.123.123.123
Please, change 123.123.123.123 to some IP address you know to be reachable ( and responds to ping (icmp packets) ).
Workaround
Plain simple: Modify the guests DHCP settings to get IP settings but use your preferred Nameserver.
Ubuntu (Debian should be the same):
vi /etc/dhcp3/dhclient.conf
edit the line
prepend domain-name-servers 124.124.124.124
124.124.124.124 should be your preferred Nameserver
restart network
/etc/init.d/networking restart
on a Windows Box it shouldn’t be hard to figure out, where to hack in the DNS settings :-)
MySql Server has gone away – ActiveRecord
I recently experienced above line in my Daemon’s log file – which of course, broke the whole damn thing. It seems the Rails framework has some kind of countermeasure in place because this never happened there before. A short query to the almighty Google led to this snippet:
Thread.new { loop { sleep 30.minutes ActiveRecord::Base.verify_active_connections! } }.priority = -10
Aufgeräumt
- Altes Zeug verworfen (ausgeblendet) – ein paar Artikel schon überarbeitet und wieder freigegeben
- Hier kommen (vermutlich) in Zukunft nur noch ein paar Codeschnipsel.
- Theme ist im Moment das Thematic Framework – ggf. leg ich noch n eigenes Stylesheet drüber.
Sinatra – Raw Post Data
puts @request.env['RAW_POST_DATA']
Ruby – Hash.to_xml
Hat mich gerade 2 Stunden gekostet. Ohne die ‘gem’Zeile funktionierts nicht.
require 'rubygems' gem 'activerecord', '2.3.9' # Wichtig! require 'active_record' v = {:param1 => "Test", :param2 => "Test2"} xml = v.to_xml puts xml
Umzug auf den VSERVER
So, zum Teil ist alles vom root auf den deutlich günstigeren vServer bei Hosteurope umgezogen. Soweit bin ich glücklich, und spar mir n batzen Asche.
ActiveRecord – Mysql Adapter – “Column Comments”
Upfront: extending existing Modules and Classes in Ruby is awesome.
for one of my recent projects I had to read the “comment” from an a MySQL table field. After a short look in ActiveRecords ConnectionAdapters for MySQL I realized the existing method uses
instead of the necessary
which includes the required “comment” column.
First I added an attribute (accessor) to the
MysqlColumn Classto store the comment.Next, the existing method, that loads and assings attributes like “fieldname”, “size”, “type” needed an upgrade. (Change SQL Statement & Assignment of “comment”)
Notes:
.rbfile in config/initializers