~ overflow ~

Archive for April, 2009

Sending a command result to another program

by z3n on Apr.21, 2009, under Linux Happyness, Tips & Hints

Problem:

I wanted to mass edit .htaccess files on my server, but i didn’t wanted to give a vi on every of them.

Solution:

As far as i know, there should be an easier solution for this, but this is the one i’ve found so far:

command | xargs -n1 command1

Example:

find ./ -depth -name .htaccess | xargs -n1 vi

Leave a Comment :, , more...

Fedora Core 6 (FC6) yum issues

by z3n on Apr.09, 2009, under Linux Happyness

Problem:

yum stopped working with funny messages:

Error: Cannot find a valid baseurl for repo: core

editing /etc/yum.repos.d/ files by removing the # near the baseurl, gives this other happy error message:

Setting up repositories
http://download.fedora.redhat.com/pub/fedora/linux/core/6/i386/os/repodata/repomd.xml: [Errno 14] HTTP Error 404: Date: Thu, 09 Apr 2009 16:23:29 GMT
Server: Apache
Content-Length: 249
Content-Type: text/html; charset=iso-8859-1

Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: core

Solution:

I have this old FC6 server but apparently there’s no info about how to fix the repositories, at least not new info, mostly of the information i’ve found is outdated, and apparently fedora has changed the address of the repos since 2008/08/28 (weirdly it still working since last week)

so i found at:

ftp://download.fedora.redhat.com/pub/fedora/linux/core/6/

a nice readme telling where the files are,

http://archives.fedoraproject.org/pub/archive/fedora/

all you need to do now, is replace into the .repo files at your’s /etc/yum.repos.d/ the new path and done!

Since this is a boring process, and i would need the .repo files myself i uploaded to the server, so:

Download Fedora Core 6 working yum repo files here.

6 Comments :, , more...

Speedy não resolve endereços

by z3n on Apr.08, 2009, under Tips & Hints

Not avaliable in english..yet :)
Leave a Comment :, , , more...

JS and CSS Packer in PHP

by z3n on Apr.03, 2009, under Coding

Problem:

No decent css/js packers in php

Solution:

Source Here

This CLI based script will compress the input files detecting their formats and placing on a defined folder, easying the automation of multiple files compression.

have fun!

1 Comment :, , , , more...

Firefox (and all mozilla based) issues on Fedora

by z3n on Apr.02, 2009, under Linux Happyness

Problem:

when running firefox on fedora 9+ you get this errors:

(firefox:30077): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)’ failed

(firefox:30077): GLib-GObject-CRITICAL **: g_object_set_qdata: assertion `G_IS_OBJECT (object)’ failed

(firefox:30077): Pango-CRITICAL **: pango_font_find_shaper: assertion `font != NULL’ failed

(firefox:30077): Pango-WARNING **: failed to find shape engine, expect ugly output. engine-type=’PangoRenderFc’, script=’latin’

(firefox:30077): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)’ failed

(firefox:30077): Pango-CRITICAL **: pango_font_describe: assertion `font != NULL’ failed
/usr/lib/firefox-3.0.8/run-mozilla.sh: line 131: 30077 Segmentation fault

and it simply won’t start. For others, like seamonkey, it simply shows “Segmentation Fault”.

Solution:

yum install xorg-x11-font*

Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!