CodeBlock

RSS

Fedora Scholarship Dates Reminder

I’ve recently updated the Fedora Scholarship wiki page and filled in the TBD dates.

Reminder that all applications are due by February 24th - less than one month from now. We look forward to seeing your applications! Happy Fedora-ing!

FUDCon Blacksburg: Ham Radio People

There’s a number of hams bringing HT’s with them to FUDCon this year, and a number of repeaters to monitor while in VA.

There’s also going to be a VE session during FUDCon.

I started a wiki page here https://fedoraproject.org/wiki/FUDCon:Blacksburg_2012_Ham_radio_operations - if you’re going to have an HT with you, feel free to add your callsign so we know who to listen for.

JQuery’s Resizable of position: fixed; divs. Also: iframes.

As per a common and old bug with JQuery UI’s .resizable() method, you can’t, out of the box, perform re-sizing of a position: fixed; div.

My usecase for this was a panel-like page. I wanted the bottom “panel” to be re-sizable. The bottom panel was, in fact, position: fixed;.

After tons of Googling, Chome Inspector-stalking and trial-and-error, I came up with a solution that allows me to do this. The part I was not realizing in most of my testing, was that when .resizable() changes position: fixed; to position: absolute, it also adds a “top: 0;”… Figuring that out allowed me to solve the problem.

$(document).ready(function() {
    $("#fixed_div").resizable({
        handles: 'n',
        resize: function(event, ui) {
            $("#fixed_div").css("position", "fixed");
            $("#fixed_div").css("bottom", "0px");
            $("#fixed_div").css("top", "");
        }
    });
});

The next issue was that a large portion of the div right above this element was an iframe. Another known bug with Resizable is that it doesn’t work too well when you’re resizing and your cursor moves over an iframe. Some Googling later, I came up with this (pardon the ugly long line, I didn’t clean this up much):

$(document).ready(function() {
    $("#fixed_div").resizable({
handles: 'n', resize: function(event, ui) { $("#fixed_div").css("position", "fixed");
$("#fixed_div").css("bottom", "0px");
$("#fixed_div").css("top", "");
}, start: function () { var d = $("<div class='iframeCover' \ style='zindex:99;position:absolute;width:100%;top:0px;left:0px;\ height:" + $("#div_that_contains_iframe").height() + "px'></div>"); $("#div_that_contains_iframe").append(d); }, stop: function () { $('.iframeCover').remove(); }, }); });

This is just a modified version of this Stack Overflow answer. And there you have it.

Fedora Scholarship applications now being accepted

Are you a recent graduate of High School, or graduating in 2012, and planning on pursuing a college degree? Are you an active contributor to open source projects and Fedora?

If so, check out the Fedora scholarship. Applications are now being accepted until February 24th, 2012. Details can be found here: https://fedoraproject.org/wiki/Scholarship

Along with pride and recognition from the awesome Fedora Project community, the winner will receive the following (copied from the Wiki page linked above):

The Fedora Scholarship is intended to assist in the recipient’s college or university education. To this end, the recipient will receive $2,000 USD per year for each of the four years that he/she is in college.

Additionally, the recipient will receive funding for travel and lodging at the FUDCon nearest to his/her location each year of the scholarship, should he/she choose to attend.

The winner will also have the opportunity to administer the scholarship the following year. This looks great on a resume!

If you have any questions, and to apply (following the procedure outlined on the Wiki paged linked above), email scholarship@fedoraproject.org. Good luck!

Nov 6

Redmine, Gitosis, Passenger on CentOS/RHEL 6

I recently had to install Redmine for a set of projects some friends and I are working on. We wanted a place to track issues and whatnot, and Redmine seemed like a fairly good fit.

I followed the Wiki to set it up, made a ‘redmine’ group, added ‘gitosis’ and ‘apache’ to it.

However, after adding the repo in Redmine, I went to the repository tab and was disheartened when  I saw: “The entry or revision was not found in the repository”.

At first I assumed something like SELinux was blocking it, but the issue was still there after setting SELinux to Permissive.

I did some log searching and found a lot of:

fatal: Not a git repository: ‘/var/lib/gitosis/repositories/PROJECT.git’

fatal: Not a git repository: ‘/var/lib/gitosis/repositories/PROJECT.git’

fatal: Not a git repository: ‘/var/lib/gitosis/repositories/PROJECT.git’

fatal: Not a git repository: ‘/var/lib/gitosis/repositories/PROJECT.git’


After doing lots of research, I realized that Passenger doesn’t necessarily run as the ‘apache’ user. I gave ‘apache’ permissions to the repo, but it turns out that Passenger runs as whatever user config/environment.rb belongs to.
Well this wasn’t good for my setup, but luckily all I had to do was force Passenger to run as the apache user.
My Redmine virtualhost block now looks like this:

<VirtualHost *:80>
 ServerName redmine.myproject.org
 DocumentRoot /srv/web/redmine/public
 RailsEnv production
 PassengerUser apache
</VirtualHost>

Back on Fedora Planet

This is a test, but I’m adding my new Tumblr blog back to Fedora Planet now. Posts tagged with #fedora will appear in Planet.

RMagick gem on OpenSuSE

So, today I discovered that installing RMagick on OpenSuse 11.4 requires both `libtool` and `libbz2-devel`, as well as the standard ImageMagick-devel.

Specifically, it took me some time to realize that libtool was needed, but after doing some log searching and a lot of internet searching, I happened upon this page: http://rubyforge.org/forum/forum.php?thread_id=48104&forum_id=33

Figured I would pass it along.