Ruby Interpreter (Cui) 1.9.2P180 [I386-Mingw32] Has Stopped Working (I Am Not Using MySQL )

Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working (I am not using MySQL)

Ok, i found the issue. My css links somehow caused the windows ruby interpreter to crash if the media attribute isn't defined on more than 1 link (crazy!).

Original (crashes):

link rel="stylesheet" href="/stylesheets/jqModal.css" type="text/css"
link rel="stylesheet" href="/stylesheets/main.css" type="text/css"

Modified (doesn't crash):

link rel="stylesheet" href="/stylesheets/jqModal.css" type="text/css" media="screen, projection"
link rel="stylesheet" href="/stylesheets/main.css" type="text/css" media="screen, projection"

Here's some insight into the same (or similar) issue.

Seems to be windows specific (again!) according to the post.

Why Rails fails with: ruby.exe has encountered a problem and needs to close. We are sorry for the inconvenience

You need to check if your 1.9 minor version is stable. There have been some issues with unstable minor 1.9 versions of language before...

auto_explain_threshold_in_seconds

As noted, you could comment out the config, and the error would go away, but it is trying to tell you that you have a slow query, and you'd probably want to know what's going on there.

It should work if you try the mysql2 gem instead of the mysql gem.

This seems like a duplicate of undefined method `explain' for #<ActiveRecord::ConnectionAdapters::MysqlAdapter

UPDATE:
As @twelve17 noted, the presence of this message in the log doesn't mean that you have a slow query yet, but that your adapter doesn't support the mechanism this uses to tell you when you do have a slow query. I should have said "You don't want to just turn this functionality off, you'd probably want to use the mysql2 gem so you can see when a slow query comes up"

How can I determine how loud a WAV file will sound?

Root Mean Square is often used to estimate the loudness of sound files. This is because a sound that is very loud might not be perceived that way if it is very short. Also remember that power increases exponentially with the square of amplitude.

The audio geeks at Hydrogen Audio know a ton about this stuff...check out their free Replay Gain software. You may not need to do any programming at all.

EDIT: Included comment feedback on power vs. amplitude.

Flash Site Architecture - one swf vs many?

In my experience, the common practice these days for (most) small to medium Flash websites/applications is a two SWF architecture, a shell that loads a core. Sometimes you can get by with just one SWF that tracks its own load progress. That said, you want to load content and assets on demand; images, video, animations and large textual content. These typically should not be embedded in the core SWF but loaded on user request. The primary advantage in either case here (one vs two SWFs) is code maintenance. You only need recompile the core SWF when you make updates to the application. In this model, you could still load additional SWFs that contained timeline-based animations, as long as you kept your application code in the core.

Hope that helps!



Related Topics



Leave a reply



Submit