Emma frontend ???, for MySQL
by Mickey
Fedora 14.
emma-0.6.tar.gz
Trying to compile emma frontend for MySQL but I get Error below and I
don't see a python2.4 in Fedora
# ./setup.py
/usr/bin/env: python2.4: No such file or directory
# cat setup.py
#!/usr/bin/env python2.4
import os
import os.path
import sys
from glob import glob
from distutils.core import setup
from emmalib import version
icon_data = glob('icons/*.png')
glade_data = ['emmalib/emma.glade',
'emmalib/plugins/table_editor/table_editor.glade']
theme_data = ["theme/README.html"]
theme_gtk_data = glob("theme/gtk-2.0/*")
other_data = ['changelog']
setup(name="emma",
version=version,
description="emma is the extendable mysql managing assistant",
author="Florian Schmidt",
author_email="flo(a)fastflo.de",
url="http://emma.sourceforge.net",
scripts=['emma'],
package_dir={'emmalib': 'emmalib'},
packages=[
'emmalib',
'emmalib.plugins.table_editor',
'emmalib.plugins.pretty_format'
],
data_files=[
("share/emma/icons", icon_data),
("share/emma/glade", glade_data),
("share/emma/theme", theme_data),
("share/emma/theme/gtk-2.0", theme_gtk_data),
("share/emma", other_data),
],
license="GPL",
long_description="""
Emma is a graphical toolkit for MySQL database developers and administrators
It provides dialogs to create or modify mysql databases, tables and
associated indexes. it has a built-in syntax highlighting sql editor with
table- and fieldname tab-completion and automatic sql statement formatting.
the results of an executed query are displayed in a resultset where the
record-
data can be edited by the user, if the sql statemant allows for it. the sql
editor and resultset-view are grouped in tabs. results can be exported
to csv
files. multiple simultanios opend mysql connections are possible.
Emma is the successor of yamysqlfront.
"""
)
Also ,
#python setup.py
no gtk. you will not be able to start emma
# rpm -qa | grep gtk
authconfig-gtk-6.1.11-1.fc14.i686
libcanberra-gtk2-0.25-4.fc14.i686
gtkmm24-2.22.0-1.fc14.i686
usermode-gtk-1.106.1-1.fc14.1.i686
gtk2-2.22.0-1.fc14.1.i686
qtcurve-gtk2-1.8.1-1.fc14.i686
gtk2-engines-2.20.1-2.fc14.i686
gtk+-1.2.10-70.fc13.i686
kcm-gtk-0.5.3-5.fc14.i686
pygtk2-2.17.0-7.fc14.i686
gtkglext-libs-1.2.0-10.fc12.i686
pygtk2-libglade-2.17.0-7.fc14.i686
gtkimageview-1.6.4-2.fc14.i686
gtkhtml2-2.11.1-8.fc14.i686
webkitgtk-1.3.6-1.fc14.i686
gtkhtml3-3.32.1-1.fc14.i686
gnome-python2-gtkhtml2-2.25.3-26.fc14.1.i686
python-slip-gtk-0.2.13-1.fc14.noarch
report-gtk-0.20-1.fc14.i686
13 years, 3 months
problem in oracle installation
by karpaga raj
sir i want to install oracle10g R2 in fedora 12 kindly give me the details to install the same
and how can i get the following packages
rpm
-Uvh setarch-*
rpm
-Uvh --force tcl-*
rpm
-Uvh compat-db-*
rpm
-Uvh --force libXau-devel-*
yum
install libXp libaio
yum
install compat-libstdc++* compat-libf2c* compat-gcc* compat-libgcc*
kindly help me to solve the problem
13 years, 3 months
Using latexmk with kile?
by Kirk Lowery
Hi!
I just installed kile on my F14 box, and am unsure how to proceed with
integrating latexmk with it. I've google'd around but there's not much out
there.
Anyone have any experience with this?
TIA!
Kirk
--
$DO || ! $DO ; try
try: command not found
13 years, 3 months
Preupgrade issues F13->F14
by Wade Hampton
I just upgraded my netbook from F13 to F14 (i386). Can't say
it went smoothly. Netbook is a Gateway (by Asus) with n450
and 250G HD.
First, before the preupgrade, updates to moddle were failing.
Preupgrade did not detect this when it did its check so when
it did the upgrade, it failed after a few hours of upgrading. I
switched to the virtual term, did a chroot /mnt/sysimage
and then rpm -e moddle, followed by a restart of the update
and the update finished.
Second, after preupgrade successfully ran (the second time),
the netbook failed to boot on the new kernel. It boots fine
on the old kernel (from F13). I think I need to make a new
initrd (saving that for this weekend).
Other than that, it seems to be working well. BTW, loaded
F14 i386 on the two Compaq netbooks from Best Buy ($200
on black Friday) -- other than the wifi, all worked out of the box.
Got the wifi working using the broadcom RPMs as it seems
to not be in the F14 kernel yet.
Overall, thanks for a GREAT Fedora!
Happy New Year,
--
Wade Hampton
13 years, 3 months
recursively count the words occurrence in the text files
by S Mathias
I just can't google for it:
I'm searching for a "bash" "one liner" (awk, perl, or anything) for this:
there are text files, in several directories:
mkdir one
mkdir two
mkdir three
echo "word1 word2 word3" > one/asf.txt
echo "word2 word4, word5" > one/asfcxv saf.txt
echo "word1. word2" > one/dsgsdg.txt
echo "word6, word3!" > two/sdgsd dsf.txt
echo "word6" > two/ergd.txt
echo "asdf, word2" > three/werdf.txt
echo "word7, word8 word9 word10" > three/qwerb erfsdgdsg.txt
echo "word4 word3" > three/web erg as.txt
so it does the magic* "recursively":
$ SOMEMAGIC > output.txt
cat output.txt
asdf 1
word1 2
word2 4
word3 3
word4 2
word5 1
word6 2
word7 1
word8 1
word9 1
word10 1
$
*recursively count the words occurrence in the text files like: "word1 2"
can anyone point to a howto/link? [re: i just can't google for it :\]
13 years, 3 months
Headphones not working
by Richard Allen
I dont know what I did but suddenly my sound is broken.
I'm running Fedora 14 (x86-64) on a Dell Latitude E6410. The problem is
as soon as I plug in my headphones I loose the sound. If I unplug the
headphones I get sound out of the built in speakers of the laptop.
After I lost sound I started experimenting with the settings in sound
preferences and I'm pretty sure I have tested all possible combinations
without success.
Has anyone seen something like this before?
PS: Happy new year! :)
[rdegroot@rdegroot-lt ~]$ lsmod | grep snd
snd_hda_codec_nvhdmi 13724 4
snd_hda_codec_idt 55722 1
snd_hda_intel 24447 4
snd_hda_codec 86743 3
snd_hda_codec_nvhdmi,snd_hda_codec_idt,snd_hda_intel
snd_hwdep 6392 1 snd_hda_codec
snd_seq 53791 0
snd_seq_device 6191 1 snd_seq
snd_pcm 80190 3 snd_hda_intel,snd_hda_codec
snd_timer 19892 2 snd_seq,snd_pcm
snd 63984 16
snd_hda_codec_nvhdmi,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore 6576 1 snd
snd_page_alloc 7559 2 snd_hda_intel,snd_pcm
[rdegroot@rdegroot-lt ~]$ dmesg | grep -i hda
[ 17.428829] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low)
-> IRQ 22
[ 17.428910] HDA Intel 0000:00:1b.0: irq 47 for MSI/MSI-X
[ 17.428939] HDA Intel 0000:00:1b.0: setting latency timer to 64
[ 17.524868] ALSA sound/pci/hda/hda_codec.c:4435: autoconfig:
line_outs=1 (0xe/0x0/0x0/0x0/0x0)
[ 17.524873] ALSA sound/pci/hda/hda_codec.c:4439: speaker_outs=1
(0xd/0x0/0x0/0x0/0x0)
[ 17.524877] ALSA sound/pci/hda/hda_codec.c:4443: hp_outs=1
(0xb/0x0/0x0/0x0/0x0)
[ 17.524881] ALSA sound/pci/hda/hda_codec.c:4444: mono: mono_out=0x0
[ 17.524883] ALSA sound/pci/hda/hda_codec.c:4455: inputs: mic=0xa,
fmic=0x11, line=0x0, fline=0x0, cd=0x0, aux=0x0
[ 17.525693] ALSA sound/pci/hda/patch_sigmatel.c:3031: stac92xx:
dac_nids=1 (0x13/0x0/0x0/0x0/0x0)
[ 18.529600] input: HDA Intel Mic at Ext Right Jack as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 18.529756] input: HDA Intel Line Out at Sep Left Jack as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 18.529873] input: HDA Intel HP Out at Ext Right Jack as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 18.530192] HDA Intel 0000:01:00.1: PCI INT B -> GSI 17 (level, low)
-> IRQ 17
[ 18.530198] hda_intel: Disable MSI for Nvidia chipset
[ 18.530301] HDA Intel 0000:01:00.1: setting latency timer to 64
[ 46.282388] hda-intel: IRQ timing workaround is activated for card
#1. Suggest a bigger bdl_pos_adj.
13 years, 3 months
Yum vs. PackageKit
by Beartooth
On all machines running F14 with a usable GUI, PackageKit's gpk-
update-viewer (which I run daily, sometimes more) often tells me it sees
no updates, or only very few. I've been making it a practice, every time
it claims that, to run yum update.
Very often yum gets a great long list (anywhere from a dozen to
two or three hundred, the latter in cases of a laptop which hasn't been
booted for weeks).
Comments, please! Am I the only one seeing this??
--
Beartooth Staffwright, Neo-Redneck Not Quite Clueless Power User
I have precious (very precious!) little idea where up is.
13 years, 3 months
What in this file could make both rsync and git fail?? :(
by Ankur Sinha
Hello,
I have a simple shell script which I want to upload using rsync, or to a
git repository. For some reason, rsync fails, and so does git. rsync
fails at "generating_files phase=1" (and times out), and git just hangs
before timing out. I can't seem to paste the file to fpaste.org either.
I get a 503 for some reason. I've checked my network, and therefore
something in the file is erroneous. Can someone please confirm/clarify
this? It's because of some unprintable characters someplace (I think).
I've copied it to a new file, moved it, changed permissions, but the
error persists.
#!/bin/bash
#
# File : wiley2bibtex : convert the wiley citations to bibtex
#
usage ()
{
echo -ne "wiley2bibtex : Convert citations from Wiley on line
library to BibTeX\n"
echo -ne "Usage: wiley2bibtex inputfile outputfile\n"
}
parse()
{
if [ -f /usr/bin/dos2unix ] ; then
dos2unix "$1" > /dev/null 2>&1
else
echo "Could not find dos2unix. Continuing without converting"
fi
# Check if it's downloaded from Wiley
grep "Provider: John Wiley & Sons, Ltd" "$1" > /dev/null
if [ 0 -ne $? ]; then
echo -ne "Does not appear to be from the Wiley online library\n"
echo -ne "Misses the required Provider: header\n"
echo -ne "Exiting"
exit 1
fi
echo -ne "@Article{" > $2
# Get the values
TY=$(grep "TY -" "$1" | awk 'BEGIN { FS = " - " }; { print $2 }')
TITLE=$(grep "TI -" "$1" | awk 'BEGIN { FS = " - " }; { print
$2 }')
JOURNAL=$(grep "JO -" "$1" | awk 'BEGIN { FS = " - " }; { print
$2 }')
VOLUME=$(grep "VL -" "$1" | awk 'BEGIN { FS = " - " }; { print
$2 }')
ISSUE=$(grep "IS -" "$1" | awk 'BEGIN { FS = " - " }; { print
$2 }')
PUBLISHER=$(grep "PB -" "$1" | awk 'BEGIN { FS = " - " }; { print
$2 }')
SERIAL=$(grep "SN -" "$1" | awk 'BEGIN { FS = " - " }; { print
$2 }')
URL=$(grep "UR -" "$1" | awk 'BEGIN { FS = " - " }; { print $2 }')
DOI=$(grep "DO -" "$1" | awk 'BEGIN { FS = " - " }; { print $2 }')
START_PAGE=$(grep "SP -" "$1" | awk 'BEGIN { FS = " - " }; { print
$2 }')
END_PAGE=$(grep "EP -" "$1" | awk 'BEGIN { FS = " - " }; { print
$2 }')
YEAR=$(grep "PY -" "$1" | awk 'BEGIN { FS = " - " }; { print $2 }')
AUTHOR_NUM=$(grep "AU -" "$1" | wc -l)
# understand this!
for i in "$(grep "AU -" $1 )"; do
AUTHOR=$(echo "$i" | awk 'BEGIN{FS = " - "}; { print $2}' | awk
'BEGIN {FS = ","};{print $2 " " $1 ","}')
done
AUTHOR=$(echo $AUTHOR | sed "s/\,$/./")
# create ourselves a keyword
PRIME_AUTHOR=$(grep "AU -" -m 1 $1 | awk 'BEGIN{FS = " - "}; {print
$2}' | awk 'BEGIN {FS = ","};{print $2}')
KEYWORD="$PRIME_AUTHOR$YEAR"
# Start making our file!
echo -ne $KEYWORD >> $2 ; echo "," >> $2
if [ "$DOI" ] ; then
echo -ne "\tDoi = {" >> $2 ; echo -ne $DOI >> $2 ; echo "}," >>
$2
fi
if [ "$AUTHOR" ] ; then
echo -ne "\tauthor = {" >> $2 ; echo -ne $AUTHOR >> $2 ; echo
"}," >> $2
fi
if [ "$TITLE" ] ; then
echo -ne "\ttitle = {" >> $2 ; echo -ne $TITLE >> $2 ; echo "},"
>> $2
fi
if [ "$JOURNAL" ] ; then
echo -ne "\tjournal = {" >> $2 ; echo -ne $JOURNAL >> $2 ; echo
"}," >> $2
fi
if [ "$VOLUME" ] ; then
echo -ne "\tvolume = {" >> $2 ; echo -ne $VOLUME >> $2 ; echo
"}," >> $2
fi
if [ "$ISSUE" ] ; then
echo -ne "\tissue = {" >> $2 ; echo -ne $ISSUE >> $2 ; echo "},"
>> $2
fi
if [ "$YEAR" ] ; then
echo -ne "\tyear = {" >> $2 ; echo -ne $YEAR >> $2 ; echo "},"
>> $2
fi
if [ "$URL" ] ; then
echo -ne "\turl = {" >> $2 ; echo -ne $URL >> $2 ; echo "}," >>
$2
fi
if [ "$PUBLISHER" ] ; then
echo -ne "\tpublisher = {" >> $2 ; echo -ne $PUBLISHER >> $2 ;
echo "}," >> $2
fi
if [ "$PAGES" ] ; then
echo -ne "\tpages = {" >> $2 ; echo -ne $START_PAGE >> $2 ; echo
-ne "-" >> $2 ; echo -ne $END_PAGE >> $2 ; echo "}," >> $2
fi
echo -e "}" >> $2
cat $2
}
if [ $# -ne 2 ] ; then
echo "Incorrect usage"
usage
exit 1;
fi
if [ ! -f "$1" ] ; then
echo "$1: No such file." 2>&1
usage # Print usage message and exit.
exit 2
fi
parse $*
Thanks,
regards,
Ankur
13 years, 3 months
Fedora 14 and Nvidia 460 Fermi
by Michael Miles
Hello there
I just a had a big surprise when I got a shiny new Nvidia 460 GTX for
Christmas.
I tried to get the Cuda device working under Fedora 14 x86_64 and there is
no support out yet for Cuda 3.2
All the Video works ok under the Nvidia 260 driver package but getting Cuda
to work is another thing all together.
Has anyone out there had similar problems with this card.
This is one hot damn card and the only real support is with Windows 7 x64
I am running Windows now and everything works flawlessly but I miss the
security under Fedora.
I am seeing now that I have to wait for linux drivers and cuda support to
become available under fedora 14
Seti at home is where I am having the real problems under Fedora.
No matter what I do with Cuda 3.2 under Fedora it just errors out all the
cuda workunits
With this card under Windows I get 860 gflops / second computation speed
with double precision computing.
Under Fedora the speed is cut in half and errors out all the Cuda workunits
I really miss Fedora
Michael
13 years, 3 months