Friday, February 27, 2009

Error on git-warning

While I was executing a gui program from the console, I got the following error:

Application initialization failed: couldn't connect to display "0:0"
Error in startup script: invalid command name "mc"
while executing
"mc "git-gui: fatal error""
invoked from within
"if {[catch {package require Tcl 8.4} err]
|| [catch {package require Tk 8.4} err]
} {
catch {wm withdraw .}
tk_messageBox \
-icon error \
-typ..."
(file "/usr/bin/git-gui" line 34)

The problem turn out to be the fact that I am not in the sudoers list.

Friday, February 6, 2009

Unable to view Flex program in Firefox and Safari

If you have a Flex program, but you are unable to run it successfully in Firefox and Safari but you can run it inside internet explorer, then chances are you are having some problems with the javascript component that loads the flex program.

It may not be a flex program error, look in the javascript first.

Looking for content within files in Linux

Within your directory, type the following command:

sudo find . -print xargs grep "pattern to search for"

or if you have the name type, you can try

sudo find . -name "*.pl" xargs grep "pattern to search for"