prompt
stringlengths
1
63.6k
completion
stringlengths
1
53.1k
I have this file containing lines of text. The lines are single spaced. I want to make them double spaced. So I issued the command: Code: Select allsed -e 's/ / /' mytextfile | more The file remains unchanged. My system is debian squeeze with all of the updates applied.
Code: Select allsed -e 's/\ /\ \ /' mytextfile | more This work?
Code: Select allfor(int i=0; i<num; i++){ System.out.print(" Enter the name of student " + (i+1) + ": "); String name = sc.nextLine(); System.out.println("Enter the grades for " + name); System.out.print("Use the format x - grades ( 2 - 100 100): "); test.addStudent(i, new Student(name, sc.nextLine())); } When I run this code, after it asks for the name of the student, the program directly asks for the grade without pausing for me to enter a name. Thank you for your help.
The code seems fine to me. Are you instantiating sc like this: Code: Select allScanner sc = new Scanner(System.in);
hello I try to install QT4 and this is the result !! Code: Select allroot@debian:/home/user/Desktop# ./Qt_SDK_Lin32_offline_v1_1_3_en.run ./Qt_SDK_Lin32_offline_v1_1_3_en.run: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory what should I do ??
med-debian wrote:Code: Select all libgobject-2.0.so.0: cannot open shared object file: No such file or directory what should I do ?? apt-get install libglib2.0-0 http://packages.debian.org/squeeze/libglib2.0-0
Someone gave me code that I want to try out but it requires the module "tabular" as in http://packages.python.org/tabular/html/ and it appears not to be installed. My preference is to have it installed the proper Debian way with the apt-get tools, but so far have not been able to discover which package to use. There is a package called "python-prettytable", but that does not supply the "tabular" module, and nothing any closer has revealed itself in google or forum searches. Thanks for any tips, Nick
Try installing python-traitsbackendqt and python-traitsui. If that doesn't work you will probably have to download and install it manually. Code: Select all python-traitsbackendqt: /usr/lib/python2.6/dist-packages/enthought/traits/ui/qt4/tabular_editor.py python-traitsbackendqt: /usr/lib/python2.6/dist-packages/enthought/traits/ui/qt4/tabular_model.py python-traitsbackendqt: /usr/lib/python2.7/dist-packages/enthought/traits/ui/qt4/tabular_editor.py python-traitsbackendqt: /usr/lib/python2.7/dist-packages/enthought/traits/ui/qt4/tabular_model.py python-traitsbackendqt: /usr/share/pyshared/enthought/traits/ui/qt4/tabular_editor.py python-traitsbackendqt: /usr/share/pyshared/enthought/traits/ui/qt4/tabular_model.py python-traitsbackendwx: /usr/lib/python2.6/dist-packages/enthought/traits/ui/wx/tabular_editor.py python-traitsbackendwx: /usr/lib/python2.7/dist-packages/enthought/traits/ui/wx/tabular_editor.py python-traitsbackendwx: /usr/share/pyshared/enthought/traits/ui/wx/tabular_editor.py python-traitsui: /usr/lib/python2.6/dist-packages/traitsui/editors/tabular_editor.py python-traitsui: /usr/lib/python2.6/dist-packages/traitsui/qt4/tabular_editor.py python-traitsui: /usr/lib/python2.6/dist-packages/traitsui/qt4/tabular_model.py python-traitsui: /usr/lib/python2.6/dist-packages/traitsui/tabular_adapter.py python-traitsui: /usr/lib/python2.6/dist-packages/traitsui/wx/tabular_editor.py python-traitsui: /usr/lib/python2.7/dist-packages/traitsui/editors/tabular_editor.py python-traitsui: /usr/lib/python2.7/dist-packages/traitsui/qt4/tabular_editor.py python-traitsui: /usr/lib/python2.7/dist-packages/traitsui/qt4/tabular_model.py python-traitsui: /usr/lib/python2.7/dist-packages/traitsui/tabular_adapter.py python-traitsui: /usr/lib/python2.7/dist-packages/traitsui/wx/tabular_editor.py python-traitsui: /usr/share/doc/python-traitsui/examples/demo/Advanced/NumPy_array_tabular_editor_demo.py python-traitsui: /usr/share/doc/python-traitsui/examples/tutorials/traitsui_4.0/editors/tabular_editor/numpy_array.py python-traitsui: /usr/share/doc/python-traitsui/examples/tutorials/traitsui_4.0/editors/tabular_editor/python_source_browser.py python-traitsui: /usr/share/doc/python-traitsui/examples/tutorials/traitsui_4.0/editors/tabular_editor/sm_person_example.py python-traitsui: /usr/share/doc/python-traitsui/examples/tutorials/traitsui_4.0/editors/tabular_editor/tabular_editor.htm python-traitsui: /usr/share/doc/python-traitsui/examples/tutorials/traitsui_4.0/editors/tabular_editor/tabular_editor.rst.gz python-traitsui: /usr/share/doc/python-traitsui/examples/tutorials/traitsui_4.0/editors/tabular_editor/tutorial.desc python-traitsui: /usr/share/pyshared/traitsui/editors/tabular_editor.py python-traitsui: /usr/share/pyshared/traitsui/qt4/tabular_editor.py python-traitsui: /usr/share/pyshared/traitsui/qt4/tabular_model.py python-traitsui: /usr/share/pyshared/traitsui/tabular_adapter.py python-traitsui: /usr/share/pyshared/traitsui/wx/tabular_editor.py
Hey all , Its been a while since I did some bash scripting and as a result I am rusty. When running the script below , which is still very much a work in progress the answer prints as empty and is therefore not being read properly . I can get the answer to read by reading in outside of the while clause but then It wont exit the loop for some reason but nothing is standing out at me in terms of the logic used, Im guessing its something small. If anyone could highlight the error(s) in the problem line I would appreciate it. Code: Select all#!/bin/bash # script to list all the files in the downloads directory and ask the user # if they wish to move the files and if so , into which directory # Eg Music Movies Shows Pictures Distros etc # Hope to automate it eventually based on the type of file and keywords EX_HDD="/media/Expansion\ Drive/" for f in $(ls "$HOME/Downloads/") do echo "Would you like to move $f to External HDD? Y/N" while [ "$(read $answer)" != "Y" ] || [ "$answer" != "N" ] ######################### Problem Line ############################## do echo "Answer must be of the form Y or N" echo "Would you like to move $f to External HDD? Y/N" echo "Answer is $answer" #Answer prints as empty done echo "working so far" done Sample Output in its current form: Would you like to move 119305-GlassMaxX.tar.gz to External HDD? Y/N Y Answer must be of the form Y or N Would you like to move 119305-GlassMaxX.tar.gz to External HDD? Y/N Answer is
First, I believe the syntax you want for the 'read' command would be "read answer", not "read $answer". Also, when you execute a command within $( ... ), that command is executed in a subshell with its own environment (initially a copy of the calling environment), and any variable assignments you make in that environment get lost when you exit the subshell. Try something such as the following: Code: Select all echo "Would you like to move $f to External HDD? Y/N" read answer while [ "$answer" != "Y" ] || [ "$answer" != "N" ] do echo "wrong!" read answer done
I tried google, but can't seem to find an answer on this... I'm writing a program using numpy & python 2.6. I'm trying to add several shifted copies of a 2-D array into a larger 2-D array. Addition must be elementwise, since broadcasting is meaningless for what I'm doing. The obvious brute-force approach is create copies of the array, transform & grow them to the right size manually, and then add them. I'm rather reluctant to pull in that much overhead (insert/append, roll/shift, and have that many copies of that size...), so I went looking for a better solution. The ideal solution seems to be something like this (purely off the top of my head): AddWithShift(BaseArray,Array1,(shift1X=0,shift1Y=0,...),...,ArrayN,(shiftNX=0,shiftNY=0,...) But I'm ready to go with iterating through nested loops and manually shifting arrays, if need be. Background: I'm writing a program to estimate sprinkler precipitation depth when the sprinklers have a specified layout, given the sprinkler layout and spray profile. There is no free software available to do this; the only solution (SPACE from Fresno State) is closed-source, commercial, and Windows-only. I've gotten it to estimate precipitation of one sprinkler from hardcoded information; the data is stored as a 2-D numpy array. Now I have to add the precipitation patterns of multiple sprinklers. Due to the purpose, I don't expect the largest arrays to exceed 600x600 floats, or to see more than about 25-40 layers in the worst case. That would mean an incredibly dense system with sprinklers spraying 150+ feet. But for lesser needs, I want it to behave decently on an low-end machine (less than 1 GB ram, 1.6 GHz). I'm not sure if the overhead concerns are important at this scale; they may be unwarranted.
I guess, you can try SQLite. As they say it can hold up to 14 terabytes of information, and as I personally discovered, it's much easier to stuff it with numbers and eventually pull them out than to hold all that crap right in the memory. It doesn't need a server, either.
Hello programmers! Basically what I want to do is to parse data from my xml file: Code: Select all<?xml version="1.0"?> <!DOCTYPE linux [ <!ELEMENT linux (distribution+)> <!ELEMENT distribution (name, for, based_on, architecture, desktop, origin, description)> <!ELEMENT name (#PCDATA)> <!ELEMENT for (#PCDATA)> <!ELEMENT based_on (#PCDATA)> <!ELEMENT archittecture (#PCDATA)> <!ELEMENT desktop (#PCDATA)> <!ELEMENT origin (#PCDATA)> <!ELEMENT description (#PCDATA)> ]> <linux> <distribution> <name>Mint</name> <for>Beginners</for> <based_on>Debian, Ubuntu</based_on> <architecture>i386, x86_64</architecture> <desktop>Fluxbox, GNOME, KDE, LXDE, Xfce</desktop> <origin>Ireland</origin> <description>Linux Mint is an Ubuntu-based distribution whose goal is to provide a more complete out-of-the-box experience by including browser plugins, media codecs, support for DVD playback, Java and other components. It also adds a custom desktop and menus, several unique configuration tools, and a web-based package installation interface. Linux Mint is compatible with Ubuntu software repositories.</description> </distribution> <distribution> <name>Ubuntu</name> <for>Beginners</for> <based_on>Debian</based_on> <architecture>i686, x86_64</architecture> <desktop>KDE, LXDE, Unity, Xfce</desktop> <origin>Isle of Man</origin> <description>Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support. The Ubuntu community is built on the ideas enshrined in the Ubuntu Manifesto: that software should be available free of charge, that software tools should be usable by people in their local language and despite any disabilities, and that people should have the freedom to customise and alter their software in whatever way they see fit. "Ubuntu" is an ancient African word, meaning "humanity to others". The Ubuntu distribution brings the spirit of Ubuntu to the software world.</description> </distribution> <distribution> <name>Fedora</name> <for>Experienced</for> <based_on>Independent</based_on> <architecture>i686, x86_64</architecture> <desktop>GNOME, KDE, LXDE, Openbox, Xfce</desktop> <origin>USA</origin> <description>The Fedora Project is an openly-developed project designed by Red Hat, open for general participation, led by a meritocracy, following a set of project objectives. The goal of The Fedora Project is to work with the Linux community to build a complete, general purpose operating system exclusively from open source software. Development will be done in a public forum. The project will produce time-based releases of Fedora about 2-3 times a year, with a public release schedule. The Red Hat engineering team will continue to participate in building Fedora and will invite and encourage more outside participation than in past releases. By using this more open process, we hope to provide an operating system more in line with the ideals of free software and more appealing to the open source community.</description> </distribution> <distribution> <name>Debian</name> <for>Advanced</for> <based_on>Independent</based_on> <architecture>amd64, armel, hppa, ia64, i386, mips, mipsel, powerpc, s390, sparc64, x86_64</architecture> <desktop>AfterStep, Blackbox, Fluxbox, GNOME, IceWM, KDE, LXDE, Openbox, WMaker, Xfce</desktop> <origin>Global</origin> <description>The Debian Project is an association of individuals who have made common cause to create a free operating system. This operating system is called Debian GNU/Linux, or simply Debian for short. Debian systems currently use the Linux kernel. Linux is a completely free piece of software started by Linus Torvalds and supported by thousands of programmers worldwide. Of course, the thing that people want is application software: programs to help them get what they want to do done, from editing documents to running a business to playing games to writing more software. Debian comes with over 20,000 packages (precompiled software that is bundled up in a nice format for easy installation on your machine) - all of it free. It's a bit like a tower. At the base is the kernel. On top of that are all the basic tools. Next is all the software that you run on the computer. At the top of the tower is Debian -- carefully organizing and fitting everything so it all works together.</description> </distribution> <distribution> <name>openSUSE</name> <for>Beginners, Experienced</for> <based_on>Independent</based_on> <architecture>i586, x86_64</architecture> <desktop>Blackbox, GNOME, IceWM, KDE, LXDE, Openbox, WMaker, Xfce</desktop> <origin>Germany</origin> <description>The openSUSE project is a community program sponsored by Novell. Promoting the use of Linux everywhere, this program provides free, easy access to openSUSE, a complete Linux distribution. The openSUSE project has three main goals: make openSUSE the easiest Linux for anyone to obtain and the most widely used Linux distribution; leverage open source collaboration to make openSUSE the world's most usable Linux distribution and desktop environment for new and experienced Linux users; dramatically simplify and open the development and packaging processes to make openSUSE the platform of choice for Linux developers and software vendors.</description> </distribution> <distribution> <name>Arch</name> <for>Advanced</for> <based_on>Independent</based_on> <architecture>i686, x86_64</architecture> <desktop>Blackbox, Fluxbox, GNOME, IceWM, KDE, LXDE, Openbox, WMaker, Xfce</desktop> <origin>Canada</origin> <description>Arch Linux is an independently developed, i686- and x86_64-optimised Linux distribution targeted at competent Linux users. It uses 'pacman', its home-grown package manager, to provide updates to the latest software applications with full dependency tracking. Operating on a rolling release system, Arch can be installed from a CD image or via an FTP server. The default install provides a solid base that enables users to create a custom installation. In addition, the Arch Build System (ABS) provides a way to easily build new packages, modify the configuration of stock packages, and share these packages with other users via the Arch Linux user repository.</description> </distribution> <distribution> <name>PCLinuxOS</name> <for>Beginners</for> <based_on>Independent</based_on> <architecture>i586</architecture> <desktop>Enlightenment, Fluxbox, GNOME, IceWM, KDE, LXDE, Openbox, Xfce</desktop> <origin>USA</origin> <description>PCLinuxOS is a user-friendly Linux distribution with out-of-the-box support for many popular graphics and sound cards, as well as other peripheral devices. The bootable live CD provides an easy-to-use graphical installer and the distribution sports a wide range of popular applications for the typical desktop user, including browser plugins and full multimedia playback. The intuitive system configuration tools include Synaptic for package management, Addlocale to add support to many languages, Getopenoffice to install the latest OpenOffice.org, and Mylivecd to create a customised live CD.</description> </distribution> <distribution> <name>CentOS</name> <for>Experienced</for> <based_on>Red Hat</based_on> <architecture>i386, x86_64</architecture> <desktop>GNOME, KDE</desktop> <origin>USA</origin> <description>CentOS as a group is a community of open source contributors and users. Typical CentOS users are organisations and individuals that do not need strong commercial support in order to achieve successful operation. CentOS is 100% compatible rebuild of the Red Hat Enterprise Linux, in full compliance with Red Hat's redistribution requirements. CentOS is for people who need an enterprise class operating system stability without the cost of certification and support.</description> </distribution> </linux> to my html file by using this script: Code: Select all<html> <head> <script type="text/javascript"> if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET","distros.xml",false); xmlhttp.send(); xmlDoc=xmlhttp.responseXML; x=xmlDoc.getElementsByTagName("distribution"); i=0; function displayDistro() { name=(x[i].getElementsByTagName("name")[0].childNodes[0].nodeValue); for=(x[i].getElementsByTagName("for")[0].childNodes[0].nodeValue); description=(x[i].getElementsByTagName("description")[0].childNodes[0].nodeValue); txt="Distribution: " + name + "<br />For: " + for + "<br />Description: "+ description; document.getElementById("showDistro").innerHTML=txt; } </script> </head> <body onload="displayDistro()"> <div id='showDistro'></div> </body> </html> Problem is that I don't get any output! Can anybody point me to wright direction? I'm relatively new in JavaScript (a week or so ) and I can't figure out where did I make a mistake. Best regards!
that may have to do with the "onload" attribute, because "onload" is not "after having finished loading". hence your script may run when there is no document to parse. try a second <head> section between the </body> and the </html> tag, and call displayDistro() explicitly from there. but anyway, every browser has a javascript error console. you'll find information on what's going wrong with your script there.
hello I'm a new user of debian and I want use gcc, for this reason I have downloaded gcc-4.3_4.3.2-1.1_amd64.deb and this is th result Code: Select allroot@debian:/home/user/Downloads# dpkg -i gcc-4.3_4.3.2-1.1_amd64.deb (Reading database ... 117956 files and directories currently installed.) Preparing to replace gcc-4.3 4.3.2-1.1 (using gcc-4.3_4.3.2-1.1_amd64.deb) ... Unpacking replacement gcc-4.3 ... dpkg: dependency problems prevent configuration of gcc-4.3: gcc-4.3 depends on gcc-4.3-base (= 4.3.2-1.1); however: Package gcc-4.3-base is not installed. gcc-4.3 depends on cpp-4.3 (= 4.3.2-1.1); however: Package cpp-4.3 is not installed. gcc-4.3 depends on binutils (>= 2.17cvs20070426); however: Package binutils is not installed. dpkg: error processing gcc-4.3 (--install): dependency problems - leaving unconfigured Errors were encountered while processing: gcc-4.3 what should i do ?
Hello and welcome! Software in Debian is handled by tools that automatically download and install packages and their dependencies. Try the command: Code: Select allapt-get install build-essential
I'm updating linuxdoom that I found on DoomWorld. The sound server uses OSS using /dev/dsp. All the programming is done in VirtualBox and the sound works fine using the oss-compat package as I'm using ALSA. But it won't work in my host as it can't open /dev/dsp for writing even though it's there. Is there a reason why /dev/dsp opens on my guest machine but not in the host? Or, how do I make it work with ALSA?
On your host system some alsa app is probably using soundcard so you get that when you try to use oss node. I've managed to get over that one by using alsa oss wrapper (alsa-oss package) called aoss ... Just run aoss applicationhere and you should be good. If you are using pulseaudio, then use padsp instead of aoss.
I'm new to Python, but I've been using various versions of *nix for several years. I've been able to get my Python scripts to run in Terminal easily enough as python script.py. However, if I add #!/usr/bin/python2.6 to the first line of the script, and make it executable, I am not able to run the script as script or script.py. All I get is bash: script: command not found. I've tried #!/usr/bin/python as well as /usr/bin/env python2.6 , and I know that /usr/bin is in my $PATH. If anybody has any ideas as to what I need to do to set this aright, I would definitely appreciate it. This is a brand new installation of Debian, so it could be that I forgot a few Python modules.
I've also tried #!/usr/local/lib/python2.6 to no effect, and I've also tried several variations on a Mac running Snow Leopard, which didn't work either...
I'm using Squeeze and am trying to build Banshee 2.2 from source. Configure fails with this message: Code: Select allconfigure: error: Package requirements (dbus-sharp-glib-1.0 >= 0.5) were not met: No package 'dbus-sharp-glib-1.0' found Searching the repos for the missing package proved futile. Could someone tell me which package provides dbus-sharp-glib-1.0 ? Does this package exist in the Squeeze repos? Thanks.
I think you need this package libdbus-glib1.0-cil-dev which is only in Debian Testing/Sid. It will likely be difficult to compile Banshee 2.2 as you probably will need to compile this mono dbus package from the testing sources as well. I do not know how well or if you even can backport by directly installing it. I wouldn't. http://packages.debian.org/search?keywo ... ection=all
I've not done any programming, attempted it once or twice but never got anywhere. What would be a good language to start with? I want something that will work in both Linux and Windows and is preferably open source. I've seen some nice looking Java applications lately, is Java open source? I've heard very good things about Python but have never really used or seen any applications. Any other suggestions would be good. I am looking for something that is not too difficult for a complete beginner.
some of the more famous ones would be: deluge, wicd, exaile, dropbox. As the only one i can remember is exaile i had to check: http://en.wikipedia.org/wiki/List_of_Python_software I for one really got no clue, but whatever you will pick: someone will tell you there is a better choice. As long its linux i think you are good with python or perl (both are there for Windows, if it makes sense i don't know). C is said to be difficult. For me bash, perl and python are very difficult too (i don't get anywhere, it seems).
Hi everyone, I have a perl script that uses the device "Device::SerialPort" and uses "baudrate" function. I use it to get data from a serial connection. When I run it with as my user, it outputs a value. I want to graph this value in Cacti. It is running as www-data user. So I try executing my script as www-data to see if it works but then I get the following message: Code: Select allCan't call method "baudrate" on an undefined value at ./myscript.pl line 11. Any idea on what I could do to allow www-data to use this perl method? Thanks,
The error possibly results from wrong file permissions for the lockfile (or lock file directory). Take a look at SerialPort.pm (as shown by less -N): Code: Select all 276 sub new { [snip] 291 my $lockfile = shift; 292 if ($lockfile) { 293 $self->{LOCK} = $lockfile; 294 my $lockf = POSIX::open($self->{LOCK}, 295 &POSIX::O_WRONLY | 296 &POSIX::O_CREAT | 297 &POSIX::O_NOCTTY | 298 &POSIX::O_EXCL); 299 return undef if (!defined($lockf)); This means that if the user running your script cannot create the $lockfile with the specified permissions, the constructor returns undef instead of an object reference. Hence a subsequent attempt to access any object method will fail.
Hi folks ! maybe you can help me on this please: I search with vim to add incremented numbers from 1 to n, before an item having the same shape, but differents variables the context: i started to write subs from nothing, .srt format, which suppose to be like so: Code: Select all1 00:00:00,000 --> 00:00:10,000 my text 2 00:00:10,000 --> 00:00:20,000 following sentence but the fact is i didn't put numbers before timelines at the first place. I didn't know back then: Code: Select all00:00:00,000 --> 00:00:10,000 my text 00:00:10,000 --> 00:00:20,000 following sentencenow i have to add them, but the number of already written makes I have to find an automatic way. I use almost vim, and not a skilled programmer so, i searched soluces that suits me with vim and found this tip close from my needs: Code: Select allqa (to enter in [i]record[/i] mode ) Y (copy the line - the number "1" -) p (paste it) ctrl a (increment it) q (quit the [i]record[/i] mode) 15@a (repeat 15 times - for the test -) The problem of this method is that the added numbers appears with the same line's jump as recorded. But subs doesn't have same number of lines after the timeline, that makes in this case numbers can be mixed in the middle like so: Code: Select all1 00:00:00,000 --> 00:00:10,000 my text 00:00:10,000 --> 00:00:20,000 following 2 sentence if you have ideas, it would be appreciated !
Personally I wouldn't solve this in VIM, but I'd pass the problem to some programming language. You can use anything from Bash to C, personally I'd go for Python or PHP. Coincidentally I tutor some people in Python programming now, so I could give them this problem as an excercise. I'm going to sleep now (it's getting late here in Europe), so I wouldn't solve it at the moment anyway. But if you won't solve it by tomorrow (and if I don't forget...), I'll post here a Python solution, ok?
Starting SLIME in Emacs (M-x slime) results in an error message from clisp: Welcome to GNU CLISP 2.49 (2010-07-07) <http://clisp.cons.org/> Copyright (c) Bruno Haible, Michael Stoll 1992, 1993 Copyright (c) Bruno Haible, Marcus Daniels 1994-1997 Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998 Copyright (c) Bruno Haible, Sam Steingold 1999-2000 Copyright (c) Sam Steingold, Bruno Haible 2001-2010 Type :h and hit Enter for context help. [1]> ;; Loading file /usr/share/common-lisp/source/slime/swank-loader.lisp ... *** - READ from #<INPUT BUFFERED FILE-STREAM CHARACTER #P"/usr/share/common-lisp/source/slime/swank-loader.lisp" @143> : there is no package with name "ASDF" The following restarts are available: ABORT :R1 Abort main loop Break 1 SWANK-LOADER[2]> This seems to be strange because the Debian package cl-asdf is installed on this system (wheezy). Any ideas on how to resolve this?
Oofff, one of the most annoing things in lisp, for me of course, is when it tries to be complicated system into complicated system(OS). Put in ~/.clisprc Code: Select all(load "/usr/share/common-lisp/source/cl-asdf/asdf.lisp") But IMO it's much better to just download the latest slime tarball and put its content under ~/site/ and tell emacs about it: Code: Select all(setq use-home (concat (expand-file-name "~") "/")) (setq load-path (append (list (concat use-home "") (concat use-home "site/slime")) load-path))
Hello all, I am trying to build the Cortex-VFX library. SCons was used to handle the build part. I seem to miss something though. Here is where i have a problem : if not c.CheckLibWithHeader( env.subst( "boost_iostreams" + env["BOOST_LIB_SUFFIX"] ), "boost/filesystem/path.hpp", "CXX" ) : sys.stderr.write( "ERROR : unable to find the boost libraries - check BOOST_LIB_PATH. " ) Exit( 1 ) I've installed all the boost headers and libraries and i still get this message : Checking for C++ library boost_iostreams-1_38_... no ERROR : unable to find the boost libraries - check BOOST_LIB_PATH. I've set the right path to boost libs : /usr/local/lib. For example : libboost_iostreams-gcc43-mt-1_38.so I am stuck, i've read the SCons but i can't see anything wrong in my configuration. Is there anyone with a good grasp on SCons who could help me ? Thanks a lot. Cheers, Ash
Hi, I finally found why it was wrong. As expected it was stupid ... The SConstruct script was searching for a revision number with 3 parts. It turns out that my boost release did not has any patch number. The script was not made to handle this case and just added a "_" without any number, so the name for the lib was wrong. Pretty stupid .. huh... Cheers, Ash
Hi, I have the following piece of code that is supposed to dump the lines beginning with "#" in "file" to "newfile" Code: Select allwhile read -r line do if [ ${line:0:1} = "#" ] then printf "%s " "$line" 1>> $newfile fi done < $file If the, let's say, 5 first lines in "file" begin with a "#", all 5 should be copied to "newfile". However, the first line does not get copied, and I don't see why. Can somebody shed some light? How can I make the first line to be copied (as long as it begins with "#" of course). Thanks.
It seems to work fine for me. (The script does not handle empty lines very gracefully, but the output isn't affected.) Perhaps you could post the contents of your $file (at least the first half-dozen lines or so)?
Hi there, I'm looking for a mechanical simulator on 2D or 3D that represents motion of a mechanical device that has two or three rotating wheel in general. For example, I punch in test values: mass, radius, and the friction torque of the wheel bearing, it shows rotating motion of the wheel started by initial torque. The wheel eventually stops as time passes. I'm lack of funding and resources at the moment. I'm doing it for personal research project. -- I installed MBDyn (http://www.aero.polimi.it/mbdyn/) and two utilities: EasyAnimm - 3D animation program that shows the motion of simulated objected - .vol and .van file format, EasyDyn is C++ 3D graphic and MBDyn library wrapper so that the user creates solid objects data and performs analysis of the given problems. MBDyn requires gfortran not fort77. I spent few hours to figure out the build failures. I recommend to use mbdyne-1.4.0 package on the MBDyn website. Download EasyAnim-1.4-polimi.1 package. I uses the V library, which I never heard. MBDyn website provides the source package and installation instruction. You might install X Window related libraries: lesstif, libxaw7, libxaw7-dev liggsl0-devl, etc. Download EasyDyn package. It uses gsl library (GNU Scientific Library). You need to install gsl development package. Then, there is tedious part. you will have to add two or three GCC header files on the C++ source files. What I remember is string.h, stdlib.h removes most compile errors. EasyDyn sources also contains examples and pdf documents that how to use MBDyn C++ wrapper. Only problem I can think of during the installation was the package dependency. There were 15+ packages for the source build. I had to lower the version of GCC development tools and libraries. For example, gfortran-4.4 (4.4.5-8) complained 4.4.5-10 packages during the installation. I used aptitude -f install package_name. Whenever it asks for lower specific packages, I accepted it. I found a good website about MBDyn examples. http://www.sky-engin.jp/en/MBDynExamples/index.html This site uses MBDyn for analysis and MATLAB for 3D representation. MBDyn is a serious, proven research tool in engineering field. It's versatile. MBDyn + EasyAnimm + EasyDyn MBDyn + MATLAB MBDyn + gnuplot or other plotting programs MBDyn + Blender 2.4x + Python (It turns out Blender 2.5x doesn't recognize 2.4x python scripts.)
You might try Phun. It may look a little corny, but it is very very cool. A word of warning though, it is the old version of a program called Algodoo (~$36). Here is a quote describing Phun/Algoodoo. src: http://www.algodoo.com/wiki/Download For nostalgic reasons we still make a beta version of Algodoo available (called "Phun Edition" or often just "Phun"). Note: This version is not actively supported and the license explicitly prohibits commercial use as well as pre-installation or bundling with hardware and other means of volume installation of the software. It is intended for personal non-professional use only. Note that this also prohibits non-profit professional use of the software, e.g. for schools and public exhibitions. For professional use, Algodoo comes with support, many more features, including lasers and optics, graph plotting, vector visualization, incompressible water, skins, themes, a multi-sketch tool, support for interactive boards, and much more. You may be able to get by with the trial of Algoodoo or Phun for free for your project. I used Phun to model a trebuchet for physics before I started building, and it was very helpful. Another option is step (its in the repositories) Unfortunately step is not as user friendly or feature rich as phun. However it might suit your needs. I am unsure whether it is able to account for friction or not. Good Luck!
I know this has been asked a thousand times, but mine is kind of a different situation. I'd like to execute some command from my awesome WM promptbox (awful.widget.prompt) as root, whilst being a normal user. Being accurate, I just configured udisks-glue and it works perfectly as far as mounting and noticing via awesome popup notifications, but whenever I want to unmount some partition I need to open a terminal, type in "su", "umount xxx", etcetera. As far as I've seen, all my options are: 1. Using gksu/sudo. Though I prefer not to use them. 2. Using an external script with special permissions (I read where it can be executed as root even when it is not called by root, if chmod is used properly). I'd like to try and do it without having to call an external script. -- Then again, how would I implement that script into the promptbox, if it is provided by Awesome's libraries and I can't modify it? But I wonder if I could... 1. Use any special su option or configuration for being able to do so (erasing root's password is not an option, obviously). 2. Run awesome, and therefore the whole system, as root. I wonder if that would be dangerous as long as I know what I am doing. Any ideas? I normally use duckduck and scroogle for a fairly long time before asking on these forums, but this got me stuck for a bunch of hours. Thank you! [EDIT] This may not belong into the Programming section, but as far as I'm having problems with bash scripting... [solved] adding "user" in fstab did the trick.
danielmarti5 wrote:I know this has been asked a thousand times, but mine is kind of a different situation. No. It really isn't. danielmarti5 wrote:I'd like to execute some command...as root, whilst being a normal user. No. You really don't. danielmarti5 wrote:...but whenever I want to unmount some partition I need to open a terminal, type in "su", "unmount xxx", etcetera. man fstab danielmarti5 wrote:2. Run awesome, and therefore the whole system, as root. I wonder if that would be dangerous as long as I know what I am doing. I'm sorry for sounding harsh, but the mere fact that you even ask this question means that you don't know what you're doing. Running anything X as root is vastly more dangerous than you imagine.
I was trying to compile the latest Gnash on Squeeze. Took me a while to figure out I didn't have automake installed, but I eventually made it to the ./configure part. Now it seems 8GB of RAM isn't enough. Any ideas on what went wrong? I mean, watch this (it keeps on eating my 8GB of RAM and then I press CTRL+C when it starts eating swap): Code: Select allnatirips@nati-desk:/razno/progr/gnash/0.8.9/gnash$ ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... ^Cnatirips@nati-desk:/razno/progr/gnash/0.8.9/gnash$ <meahwhile in another terminal emulator> natirips@nati-desk:~$ ps -eF UID PID PPID C SZ RSS PSR STIME TTY TIME CMD <---snip---> atirips 15031 2918 0 31722 4932 0 15:41 pts/3 00:00:00 /bin/bash natirips 20666 8576 2 2372 1720 3 15:47 pts/2 00:00:00 /bin/bash ./configure natirips 20970 20666 0 2372 1032 0 15:47 pts/2 00:00:00 /bin/bash ./configure natirips 20971 20970 0 2373 1208 3 15:47 pts/2 00:00:00 /bin/bash ./configure natirips 20972 20971 0 2374 1096 1 15:47 pts/2 00:00:00 /bin/bash ./configure natirips 20973 20972 0 2375 1096 3 15:47 pts/2 00:00:00 /bin/bash ./configure <---snip---> There was like a gigazillion ./configures being ran.
"Latest version is a bit vague", is it 0.8.9 beta 1, or a development pull from svn/cvs/git? Are you building on Squeeze or Wheezy or a hybrid? And do you have "build-essential" installed, which provides "make"? The 0.8.9 beta 1 version in Wheezy lists as build-depends: Build-Depends: dpkg-dev (>= 1.13.19), debhelper (>= 7.0.50~7), sng, dh-buildinfo, autoconf, automake, libtool, intltool, docbook, docbook2x, libltdl-dev, libxmu-dev, dejagnu, autotools-dev, doxygen, xsltproc, docbook-xsl, libjpeg-dev, libpng12-dev | libpng-dev, libgif-dev, libagg-dev, libpango1.0-dev | pango-dev, libcurl4-gnutls-dev | libcurl3-gnutls-dev | libcurl4-openssl-dev | libcurl3-openssl-dev, libboost-dev, libboost-thread-dev, libboost-date-time-dev, libboost-program-options-dev, libgtk2.0-dev, libatk1.0-dev, python-all-dev, kdelibs5-dev, libgtkglext1-dev, python-gtk2-dev, libavcodec-dev, libavformat-dev, libswscale-dev, libspeex-dev, libgl1-mesa-dev, libsdl1.2-dev, libqt4-opengl-dev, qt4-qmake, python-support, libgstreamer-plugins-base0.10-dev | gstreamer-plugins-base-dev, libgstreamer0.10-dev | gstreamer0.10-dev, libmysqlclient-dev, xulrunner-dev Packages separated by " | " are alternatives. As you can see, it needs a lot more than automake. Maybe try the backport method will work better: https://sites.google.com/site/stevosfil ... kports.txt
I have an object called Beeper. It main methods are freq(int):sets the number of seconds between beeps, go(): uses clone() to run the private beep() method concurrently with main(), and then returns. The clone has CLONE_VM so that if the user wants to wait an additional <unsigned> second, he can. the add(int) method sets a private variable in the Beeper to the number of seconds to add. clone is called with Code: Select all clone( (int (*) (void *)) beep, stk + STKSIZ - 1, CLONE_VM, (void *) this); the beep prototype isCode: Select all friend int beep(Beeper & b); For data protection, I use a simple homemade mutex. At first I had made beep a normal class method, but the type cast must have done something: The program terminated early because "this" was 0x0... I'm not 100% sure why. So I made it a friend, and pass "this" explicitly. The test program works fine in gdb...but immediately ends when run from the bash!!! I know I should probably learn boost::thread or C++0x threading along with futures, but clone is so conveniant ... is there a way to get this to work, preferably as a normal member fuction? Heres the beeper .h, followed by beeper.cc, followed by main.ccCode: Select all#ifndef _BEEPER_H #define _BEEPER_H #include <unistd.h> #include <signal.h> namespace ybr { class Mutex { private: bool m_locked; public: Mutex() : m_locked(0), parent(getpid()) { } ~Mutex() { } const pid_t parent; // used if two ask for lock at same time bool lock(); void looplock() { while(!lock()) continue; } void unlock() { m_locked = 0; } bool locked() { return m_locked; } }; class Beeper { private: static const int STKSIZ = 512; char *stk; int m_freq; int m_add; Mutex add_lock; friend int beep(Beeper & b); public: Beeper(int i = 0); ~Beeper() { done() ; delete [] stk; } Beeper & freq(int); Beeper & add(int); Beeper & go(); Beeper & done() { kill(0, SIGKILL); return *this; } }; } #endif Code: Select all#include "beeper.h" #include <sched.h> namespace ybr { inline bool Mutex::lock() { static int guys_here = 0; ++ guys_here; if(guys_here == 2){ if(getpid() != parent) return 0; }else guys_here = 1; --guys_here; return (m_locked == 0)? (m_locked = 1): 0; // couldn't resist :") } Beeper::Beeper(int i) { if(i >= 0) m_freq = i; m_add = 0; stk = new char[STKSIZ]; } int beep(Beeper & b) { int save_add; while(1){ sleep(b.m_freq); while(b.m_add != 0){ b.add_lock.looplock(); save_add = b.m_add; b.m_add = 0; b.add_lock.unlock(); sleep(save_add); } write(STDOUT_FILENO, "\a", 1); } return 0; } Beeper & Beeper::freq(int i) { if(i > 0) m_freq = i; return *this; } Beeper & Beeper::add(int i) { if(i > 0){ add_lock.looplock(); m_add = i; add_lock.unlock(); } return *this; } Beeper & Beeper::go() { if(m_freq != 0) clone( (int (*) (void *)) beep, stk + STKSIZ - 1, CLONE_VM, (void *) this); return *this; } } Code: Select all#include <iostream> #include "beeper.h" inline void clearline() { std::cin.clear(); while(std::cin.get() != ' ') continue; } int main() { using std::cin; using std::cout; ybr::Beeper beeper; int num; cout << "Enter a positive integer for frequency of beep: "; while(!(cin >> num)){ cin.clear(); clearline(); std::cerr << "Input error: enter a positive integer: "; } beeper.freq(num); cout << "Enter a positive integer at any time to add time to count-down. " << "Enter q to quit. "; beeper.go(); while(1){ if(!(cin >> num)){ cin.clear(); clearline(); if(cin.get() == 'q') break; else continue; } beeper.add(num); } beeper.done(); return 0; } I'd upload this, but I can't figure it out Oh, and namespace ybr is my initials If someone could figure this out, that would be great ... I hope the code is somewhat readable. I learned C last year, started C++ this past fall.
clone() is very specific to linux. Try using pthread_create() instead
Hi! I just installed the boost library and boost thread, including the -dev and documentation in Lenny, but I cant get it to compile a simple threaded "hello world" -program. The source taken from: http://www.drdobbs.com/cpp/184401518 is correct and I suspect it's the linking process that fails. I also tried compiling another boost (non-threaded) file and that worked fine so it's obviously something with the Boost.Thread-implementation that fails. My source: Code: Select all#include <boost/thread/thread.hpp> #include <iostream> void hello() { std::cout << "Hello world, I'm a thread!" << std::endl; } int main(int argc, char* argv[]) { boost::thread thrd(&hello); thrd.join(); return 0; } When compiling (using g++) I get: Code: Select all /tmp/ccnRDFfX.o: In function `main': thread.cpp:(.text+0xc4): undefined reference to `boost::thread::thread(boost::function0<void, std::allocator<boost::function_base> > const&)' thread.cpp:(.text+0x110): undefined reference to `boost::thread::join()' thread.cpp:(.text+0x120): undefined reference to `boost::thread::~thread()' thread.cpp:(.text+0x144): undefined reference to `boost::thread::~thread()' collect2: ld returned 1 exit status Anyone have an idea what I'm missing/doing wrong?
What command are you using to compile? Are you specifying the include directories for the boost libraries (particularly boost/thread)? Have you checked whether the file thread.hpp can be found in that directory?
I need a reference document (book?) about the basic C++ and C functions. What I need: a) convert a string into any number type including a long double and vice versa b) compare strings c) manipulate strings i.e. insert, delete chars & substrings d) be able to write string parsers by iterating characters e) dynamic memory allocation & deallocation
Any book about C will cover these topics. The usual university treatment is K&R C. You really need to start at a basic book like this - any of them will teach you memory management, how to use pointers, and string handling. The regular C library calls can be found here. A serious tome about everything available for LInux.. here. There are all kinds of stuff inbetween those examples available online. For C++, any basic book on the subject will do.
This nasty piece of uneducated hackery Code: Select allcurl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0085&u=c"| sed -e '/F<BR\|Low/!d; s/<.*>//'|sed -n '1,${p;n;}'|cut -c 7- gives me the output I want Code: Select allRain. High: 9 Low: 6 but I cannot help thinking there must be a more elegant solution..?
I don't know if this is any better. I'll see your two seds and a cut, and I'll raise you two greps and two awks. Code: Select allcurl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0085&u=c" | grep -A1 Forecast | grep -v Yahoo | awk -F"-" '{ print $2 }' | awk -F"<" '{ print $1 }' Edit: Make that one grep and two awks.Code: Select allcurl --silent "http://weather.yahooapis.com/forecastrss?p=UKXX0085&u=c" | grep -A1 Forecast: | awk -F"-" '{ print $2 }' | awk -F"<" '{ print $1 }'
Hi, I'm creating a python module for doing some simulations on light propagation in multilayers. The idea is to program a few high level functions that later will allow me to perform different simulations easily. The thing is that the functions that are intended to be imported are few. The rest of them are merely auxiliary functions that the user should not care about. However, all these auxiliary functions are also imported when one does "import custom_module". Is there a way to make those auxiliary functions private, in the sense that they are not directly visible to the importer, just like the __attributes__ of a class? I am aware that I can do "from custom_module import f1, f2", but this is not what I want. Also, I could code the auxiliary functions into a separate module. Anyway, I was wondering if it is possible to make such private functions in the module so that they do not get in the way when importing the whole thing. Mind you, the only foreseeable user of this module will be myself, so this is not an issue for me, but could be for unforeseen future users. Thanks for your help.
Making functions private in python is done by code convention: private functions have a double underscore before the name of the function, e.g.: Code: Select all__my_private_function Another way to hide functions is importing only the necessary functions, for example: Code: Select allfrom numpy import matrix
I want to apply a (conversion) command to every file in a directory. I thought this bash script would work (in the example, the command is pdftotext and the directory contains pdf files) Code: Select all#!/bin/bash # Ahtiga Saraz for file in complete_path_to_dir do pdftotext $file done but apparently not. (Some commands allow syntax in which one supplies a text file containing filenames of successive inputs, but not pdftotext.) Any suggestions?
Try using wildcard expansion of the filenames: Code: Select allfor file in complete_path_to_dir/*.pdf
While looking for ways to pimp my gnu screen sessions I came across the following script on the Arch forums get_gmail: Code: Select all#!/bin/bash gmail_login="xxxxxxxx" gmail_password="xxxxxxxxxxx" dane="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \ https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \ --no-check-certificate | grep 'fullcount' \ | sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)" if [ -z "$dane" ]; then echo "!" else echo "$dane" fi However when I run the script I get the following error Code: Select all./get_gmail ./get_gmail: command substitution: line 12: syntax error near unexpected token `|' ./get_gmail: command substitution: line 12: `| sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"' Now I know that anything involving sed is normally above my level of competence so I was wondering if anybody here had any ideas on how to fix this script?
It seems like you've got some wild whitespace going on at the end of your lines. I think this might be messing up the line continuation character "\" if it's not at the end of the line. Anyway I stripped off all the extra spaces and tried it here and it worked fine.
Hi, I'm trying to install truecrypt 7.0 from source on debian lenny (no GUI). I followed these instructions, which were made for truecrypt 6.1: Code: Select allThe instructions there are for TrueCrypt 6.1a, but they work for TrueCrypt 6.3. Note that the Graphical interface comes up without any problems for TrueCrypt 6.3. Please read the Readme.txt file in the source directory to see if any other/newer versions of the packages mentioned need to be installed. On to the guide... The following aptitude commands are run as the root (superuser): aptitude install dmsetup aptitude install libwxgtk2.8-dev aptitude install libwxbase2.8-dev aptitude install libfuse-dev aptitude install libopencryptoki-dev aptitude install g++ aptitude install make gcc gcc-multilib manpages-dev gdb aptitude install wx2.8-headers aptitude install libopencryptoki0 aptitude install fuse-utils aptitude install libfuse2 ntfs-3g aptitude install libwxgtk2.8-0 (OR, you can run it all as one line: aptitude install dmsetup libwxgtk2.8-dev libwxbase2.8-dev libfuse-dev libopencryptoki-dev libopencryptoki-dev g++ make gcc gcc-multilib manpages-dev gdb wx2.8-headers libopencryptoki0 fuse-utils libfuse2 ntfs-3g libwxgtk2.8-0 OR, you can install all of the programs through the synaptic software package management GUI. I'm no command line expert, but I find it simpler to just type the commands above when I know what I want. ) I am 95% certain one or more of the items above is unnecessary, but it won't hurt to install all of them. I did not feel like going back and uninstalling different ones and trying to compile the application again. I know that if you have all of the above, compiling Truecrypt works. The following you can (should) do as your normal user. For the sake of instructions, I'm assuming your account name is 'plankton' and your home directory is '/home/plankton'. Substitute your actual home directory and account name for 'plankton'. 1. Download the Linux source code to Truecrypt from the official website to /home/plankton, and open a shell at that directory. Run gunzip truecrypt-6.1a-source.tar.gz tar -xvvf truecrypt-6.1a-source.tar You can combine both steps to one line, but I don't remember how and don't care to look it up at the moment. When you are finished, my instructions assume everything is in a directory /home/plankton/truecrypt-6.1a-source 2. Go to ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20 (you can paste that address into your web browser) and download all of the files with a '.h' extension at that location. Put them into a directory named 'pkcs' and paste the 'pkcs' directory into /home/plankton/truecrypt-6.1a-source/ directory 3. In your shell, cd to the /home/plankton/truecrypt-6.1a-source directory and type: export PKCS11_INC=/home/plankton/Desktop/truecrypt-6.1a-source/pkcs/ 4. Type 'make' and hit enter. Truecrypt will be compiled for you. http://forum.notebookreview.com/linux-c ... guide.html I went through to step 4 and typed make. It looks like all the .cpp files compiled, but then I got an error saying "nasm: command not available", so I did "apt-get install nasm" and typed make again. This time I got through to assembling Aes_hw_cpu.asm and got a slew of errors, reporduced below: Code: Select allfileserve:/home/rks171/downloads/truecrypt-7.0a-source# make Assembling Aes_hw_cpu.asm ../Crypto/Aes_hw_cpu.asm:204: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:206: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:290: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:298: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: parser: instruction expected ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: symbol `aes' redefined ../Crypto/Aes_hw_cpu.asm:305: error: parser: instruction expected ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: symbol `aes' redefined ../Crypto/Aes_hw_cpu.asm:305: error: parser: instruction expected ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: symbol `aes' redefined ../Crypto/Aes_hw_cpu.asm:305: error: parser: instruction expected ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: symbol `aes' redefined ../Crypto/Aes_hw_cpu.asm:305: error: parser: instruction expected ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: symbol `aes' redefined ../Crypto/Aes_hw_cpu.asm:305: error: parser: instruction expected ../Crypto/Aes_hw_cpu.asm:305: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:305: error: symbol `aes' redefined ../Crypto/Aes_hw_cpu.asm:305: error: parser: instruction expected [....] ../Crypto/Aes_hw_cpu.asm:326: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:326: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:326: error: expression syntax error ../Crypto/Aes_hw_cpu.asm:326: error: expression syntax error make[1]: *** [../Crypto/Aes_hw_cpu.o] Error 1 make: *** [all] Error 2 I cut out a lot of the errors in the interest in saving space, as they were mostly the same. I'm stuck on this error. Anybody know what the problem is?
Truecrypt 7.0a is not the same as 6.1 The original blog was 8 March 2009, so nearly two years old. Why bother installing from source when you can download both 32bit and 64bit truecrypt.tar.gz package from www.truecrypt.org? Then all you need to do is tar -xvf truecrypt.tar.gz to extract them and dpkg -i to install them. Truecrypt may be useful if you have it on Windows and want to use the same files on Linux. (Linux has good encryption built into the kernel, dm-crypt.)
Can anyone see what's wrong here.. It's my file class and everything exept the read_line and read_lines functions work. They only returns 'None' :S Why? I post only the class because I, myself think the problem lies there although I can't see it. Code: Select allclass file_object: def open_file(self, title, rw): if rw == 'r': self.data = open(title, 'r') elif rw == 'w': self.data = open(title, 'w') def write_lines(self, data): self.data.writelines(data) def write(self, data): self.data.write(data) def read_lines(self): self.data.readlines() def read_line(self): self.data.readline() def close_file(self): self.data.close() Here is the call also. Code: Select allfob = file_object() fob.open_file('wordlist', 'r') first_row = fob.read_line() second_row = fob.read_line() And here is the error msg. Code: Select allTraceback (most recent call last): File "/home/hexley/programming/functions.py", line 161, in <module> load_list() File "/home/hexley/programming/functions.py", line 76, in load_list list = int(first_row) TypeError: int() argument must be a string or a number, not 'NoneType' As I said, the write functions works.. Please help.. Thanks.
That code assigns the return value of read_line to first_row, but read_line isn't giving a return value. Hence, first_row has the value "None". This should work: Code: Select alldef read_line(self): return self.data.readline() I just want to add that files in python already behave like objects. You can read the lines of a file like this: Code: Select allfile = open(FILENAME) for line in file: print line
Hello all: gcc is not helpful saying what is wrong with this code. Does somebody know? Code: Select all#include <errno.h> #include <stdio.h> struct q43_fichero_s { FILE* fichero; char* registro; ssize_t registro_s; /*ERROR Here: " expected specifier-qualifier-list before ‘ssize_t’ " */ int error; }; typedef struct q43_fichero_s q43_FILE; q43_FILE q43_fopen(const char *path, const char *mode) { q43_FILE fich; fich.fichero=fopen(path,mode); fich.error=errno; fich.registro=NULL; fich.registro_s=0; return(fich); } Thanks
Typo: you doubled the 's' in 'size_t'.
I'm trying to setup a Thunar custom action for batch transcoding video files. The ffmpeg portion of the script I've got but making thunar's output useful is proving difficult. With thunar custom actions, you can pass along certain substitutions as arguments with the command/script: %f for the first selected file, %F for all selected files, %d for the directory containing the first selected file, etc. Unfortunately, %F outputs like so: Code: Select all/path/to/first/file /path/to/second file /path/to third/file The lack of whitespace escape sequences I fixed easily enough with sed but regardless of whether or not file/path whitespaces are escaped, using a for loop ignores the escapes and treats /path/to/second\ file as two separate variables: /path/to/second\ and file. Quoting the initial $* variable I'm feeding into for doesn't help, since then for just sees one big glob of text. Google has indicated that other people have run into similar walls but those people were all trying to perform the loop operation on every file in a directory, whereas I only want to perform the operation on the selected files given by thunar. Their solutions generally involved using find in a while loop, which doesn't appear to be of much use to me, since I don't want to process the entire contents of a directory. So how would I go about turning a BASH variable with a value along the lines of: Code: Select all/path/to/first/file /path/to/second\ file /path/to\ third/file Into something usable in a for/while loop? The script I've been testing with, forex.sh: Code: Select all#!/bin/bash #use absolute paths allargs="$*" wrkdir="$1" escwrkdir=`echo $wrkdir | sed -e 's/ \([0-z]\)/\\\&/g'` #no, I don't know why, when running in a script, sed requires 3 backslashes files=${allargs#$wrkdir } escfiles=`echo $files | sed -e 's/ \([0-z]\)/\\\&/g'` mkdir "$wrkdir"/old for f in $escfiles do g=${f#$escwrkdir} #h="$wrkdir"/"$f" #when using relative paths in thunar only cp "$f" "$wrkdir"/\old/"$g"_old echo echo all args=$allargs echo working dir=$wrkdir echo escaped working dir=$escwrkdir echo files=$files echo escfiles=$escfiles echo f=$f echo g=$g echo h=$h echo done echo done, you can now close this window The output of attempting to run it on a single file containing whitespaces: Code: Select allmkdir: cannot create directory `/home/icaria/Desktop/test folder/old': File exists cp: cannot stat `/home/icaria/Desktop/test\\': No such file or directory all args=/home/icaria/Desktop/test folder /home/icaria/Desktop/test folder/test 3 working dir=/home/icaria/Desktop/test folder escaped working dir=/home/icaria/Desktop/test\ folder files=/home/icaria/Desktop/test folder/test 3 escfiles=/home/icaria/Desktop/test\ folder/test\ 3 f=/home/icaria/Desktop/test\ g=/home/icaria/Desktop/test\ h= cp: cannot stat `folder/test\\': No such file or directory all args=/home/icaria/Desktop/test folder /home/icaria/Desktop/test folder/test 3 working dir=/home/icaria/Desktop/test folder escaped working dir=/home/icaria/Desktop/test\ folder files=/home/icaria/Desktop/test folder/test 3 escfiles=/home/icaria/Desktop/test\ folder/test\ 3 f=folder/test\ g=folder/test\ h= cp: cannot stat `3': No such file or directory all args=/home/icaria/Desktop/test folder /home/icaria/Desktop/test folder/test 3 working dir=/home/icaria/Desktop/test folder escaped working dir=/home/icaria/Desktop/test\ folder files=/home/icaria/Desktop/test folder/test 3 escfiles=/home/icaria/Desktop/test\ folder/test\ 3 f=3 g=3 h= done, you can now close this window The thunar custom action command: Code: Select allxfce4-terminal -H -e="forex.sh %d %F" Cheers in advance.
I know zero about Thunar, but a little about Bash. The following correctly parses the command-line parameters if you quote or backslash escape the filename with a space: Code: Select all#!/usr/bin/env bash # foo: a script to test command-line params for item in "$@" do echo "Here's one $item" done Output: Code: Select allhektor ~ ❯❯ bash foo bar /path/to/second\ file foo Here's one bar Here's one /path/to/second file Here's one foo hektor ~ ❯❯ bash foo bar '/path/to/second file' foo Here's one bar Here's one /path/to/second file Here's one foo hektor ~ ❯❯ bash foo bar "/path/to/second file" foo Here's one bar Here's one /path/to/second file Here's one foo
-->Shell Scripting NOTE: This looks like a homework, I know! Well, it's not, it's just a part of a bigger project, in which this could help me very much. So, I'd appreciate it very much if you help me with this... Hey... I have a file like this: 1 2 3 4 5 6 ... Now, I want to run this command, and each time, use one of the numbers in the line as: echo ... For example, put the first line in $1, second line in $2, third line in $3 and so on... And after that, try this command will all these variables. So that it'd return: 1 2 3 4 5 6 ... Your help would be appreciated guys, thanks.
I just tried it and this works for me: x is the input file Code: Select allfor i in `cat x`; do echo $i; done
Lets say you have a template functionCode: Select alltemplate <typename flex> void foobar(flex, flex);but you don't want the program to run the implicit instantiation if given int arguments. So whats the benefit of writing an explicit specializationCode: Select alltemplate <> void foobar(int, int) over a normal function Code: Select allvoid foobar(int, int)?
This article may clear things up for you: http://www.gotw.ca/publications/mill17.htm Moral #1: If you want to customize a function base template and want that customization to participate in overload resolution (or, to always be used in the case of exact match), make it a plain old function, not a specialization. And, if you do provide overloads, avoid also providing specializations. In this case, I don't think there would be a benefit to using a specialization over a plain function.
Recently I've found an interesting post about colorizing man pages using just one-string sed call. An original page is here: http://1-ananas-1.livejournal.com/549083.html And the script is: #! /bin/sh sed -r "s/\[(21|22|24|27)m/[0m/g;s/\[1m/[1;33m/g;s/\[2m/[0;36m/g;s/\[3m/[0;33m/g;s/\[4m/[0;32m/g;s/\[7m/[0;31m/g" | less -s And this should be a result: http://picasaweb.google.com/lh/photo/IM ... bedwebsite But... This script doesn't work on debian. I've tested it on squeeze, and author tested it on lenny. He uses LFS with the same version of sed/man/mandb/bash as in my deb, but script wokrs there. So, last 4 hours I've searched info in google/mans, and now I still cannot understand how this should work. If I can, then this script may be modified - I have already experimented with \x1b and placing 'm' modifier near 'g'... What I cannot find anywhere - are escapes [21m, [22m, [24m and [27m. What are they mean? And where I can find info about these escapes? If there is a sed/regexp Guru here, then please, explain me how this string works Thanks!
The escapes are color codes; it's up to the terminal emulator whether anything's done with them, though.
I can run a query using a single index value. The following works very well: Code: Select all#!/usr/bin/python # import MySQL module import MySQLdb # connect db = MySQLdb.connect(host="192.168.1.101", user="joel", passwd="falken12", db="my_ministries") # create a cursor cursor = db.cursor() #get user input lu = str(raw_input("Please enter date: ")) # execute SQL statement cursor.execute("SELECT bh_num, title FROM baptist_hymnal where last_used = %s order by b_ord",(lu)) # get the resultset as a tuple result = cursor.fetchall() # iterate through resultset for record in result: print str(record[0]).rjust(3), chr(9), record[1] db.close() Here is a modification of the code for multiple indices, (obviously don't know what I'm doing) that does not work: Code: Select all#!/usr/bin/python import MySQLdb db = MySQLdb.connect(host="192.168.1.101", user="joel", passwd="falken12", db="my_ministries") # create a cursor cursor = db.cursor() #get user input y = str(raw_input("Please enter the Year: ")) e = str(raw_input("Please enter the Season: ")) n = str(raw_input("Please enter the Sunday: ")) # execute SQL statement cursor.execute("SELECT OT, Psalm, Epistle, Gospel from lectionary where Year = y AND Season = e AND Sunday = n") # get the resultset as a tuple result = cursor.fetchall() # iterate through resultset when I run this code i get Code: Select all>>> Please enter the Year: A Please enter the Season: Advent Please enter the Sunday: 1 Traceback (most recent call last): File "/mnt/aragorn/jheaton5/backup/jheaton5/Documents/Python/My_Ministries/lectionary.py", line 12, in <module> cursor.execute("SELECT OT, Psalm, Epistle, Gospel from lectionary where Year = y AND Season = e AND Sunday = n") File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 166, in execute self.errorhandler(self, exc, value) File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in defaulterrorhandler raise errorclass, errorvalue OperationalError: (1054, "Unknown column 'y' in 'where clause'") >>> How should I code the query for multiple indices to get a result set?
cursor.execute("SELECT OT, Psalm, Epistle, Gospel from lectionary where Year = 'y' AND Season = 'e' AND Sunday = 'n'")
This is mainly a question for the bash group. We had a talk in the learning group and thought that dealing with "read" and "redirection" might be an idea. I stumbled across this (per chance): http://debianforum.de/forum/viewtopic.php?f=28&t=124191 Main idea/question is the following: You got a few files which contain text: file_0.txt: aepfel banane orangen file_1.txt: heute morgen nie file_2: feierabend Now you wanna mix them and the result is supposed to look like: aepfel, heute, feierabend bananen, morgen, feierabend orangen,, nie, feierabend. I guess the idea is clear. I tried this and that, but no luck. My last try looks like this: Code: Select all#!/usr/bin/env bash My_Mix=() Tmp_List=() NI=0 for e in "$@" do INDEX=0 until [[ -z "$1" ]] do read next_line < "$1" Tmp_List[$INDEX]="$next_line" ((INDEX+=1)) shift My_Mix[$NI]="${Tmp_List[@]}" ((NI+=1)) done done echo for e in "${My_Mix[@]}" do echo "$e" done exit 0 Which gives me: Code: Select allmarkus@refracta$ bash next_mix.sh *txt aepfel aepfel heute aepfel heute feierabend markus@refracta$ My approach might look very odd, cause it is. But i can't get my head around it and am looking for an idea. (I mainly post it to show that i tried it for quite a while. I got a lot of ideas, but they all fail ) I guess the answer will be way more easy. Obviously this is nothing but a finger-exercise. Thanks for the time and place.
I know that you were hoping to find a Bash solution, but this is a case where Perl would probably be more appropriate. Code: Select all#!/usr/bin/env perl use strict ; use warnings ; ## input files my $file0 = "file0.txt" ; my $file1 = "file1.txt" ; my $file2 = "file2.txt" ; ## output file my $otfile = "otfile.txt" ; ## initialize arrays of data from $file0 and $file1 my @array0 ; my @array1 ; ## append data from $file0 to @array0 open( FILE , $file0 ) || die "could not open $file0" ; while (<FILE>) { chomp ; push( @array0 , $_ ) ; } close FILE ; ## append data from $file1 to @array1 open( FILE , $file1 ) || die "could not open $file1" ; while (<FILE>) { chomp ; push( @array1 , $_ ) ; } close FILE ; ## get the "universal line" -- assumed to be first line of $file2 open( FILE , $file2 ) || die "could not open $file2" ; chomp( my $universal = <FILE> ) ; close FILE ; ## which is longer $#array0 or $#array1 ? my $maxlines = ( $#array0 >= $#array1 ) ? $#array0 : $#array1 ; ## write it all out open( OTFILE , ">$otfile" ) || die "could not overwrite $otfile" ; for my $i (0..$maxlines) { print OTFILE "$array0[$i], $array1[$i], $universal " ; } close OTFILE ; Code: Select all[ Mon 18-Oct-2010 1.36 soul ] nadir $ ./mix.pl [ Mon 18-Oct-2010 1.36 soul ] nadir $ cat otfile.txt aepfel, heute, feierabend banane, morgen, feierabend orangen, nie, feierabend [ Mon 18-Oct-2010 1.36 soul ] nadir $ .
i've been trying to set up an auto login to my idisk using cadaver. - read the man pages - put the following in my ~/.netrc Code: Select allmachine http://username@idisk.mac.com/ login username password xxxxxxxxxxxx username and xxx have the correct values .... from the way i read the man pages, if i enter cadaver at the cl it should log me onto my idisk. it doesn't. am i missing something? any help sincerely appreciated. why an idisk you ask? i was a longtime mac guy, most of my family use macs and we have a family account...
i figured it out. not sure if this will ever help anyone else - here is the answer anyway... to auto login the .netrc needs to be formatted this way (as opposed to the formatting in my original post) - Code: Select allmachine idisk.mac.com login username password xxxxxxxxxxxx then if you want to open your remote home directory automatically, edit the .cadaverrc as follows - Code: Select allopen http://idisk.mac.com/username scripting from this point looks pretty straight forward. should work with any webdav server.
hi there, I assume that this is a good place to ask about my problem. I'm using debian testing and somehow I don't get this installation to complete (sorry on my english). I have download mysql workbench source code; untar it; enter that dir and after that I've faloved instructions which is in dir, install file. I've install all dependencies but when I start ./autogen.sh here what console says: Code: Select allconfigure: error: Package requirements (sqlite3) were not met: No package 'sqlite3' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables SQLITE3_CFLAGS and SQLITE3_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. i've install sqlite3 from synaptic but problem is still active. how to solve this?
somehow a had solved problem: downloaded ubuntu DEB package and installed it. works fine
I just wrote a deb which replaces a configuration file (gdm.conf) in /etc/gdm/ The creation of the deb went fine. Only if I try to install the deb it complains: trying to overwrite '/etc/gdm/gdm.conf', which is also in package gdm 2.20.11-2 dpkg-deb: subprocess paste killed by signal (Broken pipe) Errors were encountered while processing: Is there something I can do to prevent this? I don't want to --force install packages. I want to make it force overwriting the gdm.conf written by gdm itself. Thanks
found the solution the key Replaces: gdm, gdm-themes
I'm looking for software for editing a mysql relational database via a web page. The database is a list of plant taxa, and the structure of the database reflects Linnaean biological classification, so has tables for Kingdom, Division (phylum), Class, Order, Family, Genus and Species. Each of these (except for Kingdom) is related to the one above it, so each genus is associated with a family, each order with a class etc. I have set up appropriate grants in the DB, and can use phpmyadmin to edit tables, and access views. phpmyadmin seems a little too powerful for what I want, unless its power can be restricted - can it?? I want the use to be able to add taxa by specifying a genus and species. If the genus is already known, they would then immediately see the taxonomy for the genus. BUT, if the genus is new, then they would be asked for the family to which the genus belongs. If the family was known, they would immediately see the taxonomy for the genus. BUT, if the family is new, then they would be asked for the order to which the family belongs etc etc The whole thing seems reminiscent of a hierarchical corporate directory, so I wonder if something generic has already been done that I could use as a starting point. Any pointers gratefully received. Thanks Bernie
I went a-googlin' http://www.cgiscriptshop.com/products/mdm/index.html http://www.burlaca.com/aerosql/ http://www.sqlbuddy.com/ Haven't tried a single one of these myself.
I've written a script to read from a config file containing an image filename. What I'm missing is a way to cp said filename output to a specific folder. Here is the code so far: Code: Select all#!/bin/bash nitrogen --no-recurse /home/canci/Pictures/wallpapers && more ~/.config/nitrogen/bg-saved.cfg | grep file | cut -c 6- It is supposed to cp the wallpaper I set with nitrogen to the slim login manager's theme folder. I want to have the same background on login as on my desktop. The "more" line grabs the filename properly, I just don't know how to grab the output and redirect to a cp command. I've tried this, but it doesn't work: Code: Select all#!/bin/bash nitrogen --no-recurse /home/canci/Pictures/wallpapers && $FILE=`more ~/.config/nitrogen/bg-saved.cfg | grep file | cut -c 6-` && cp $FILE /usr/share/slim/themes/canci/background.png I get this error: Code: Select all./slim-wallp: line 3: =/home/canci/Pictures/wallpapers/Blinds.jpg: No such file or directory What's wrong here? The "=" sign? How do I filter it out? TNX!
I solved the riddle. I declared the FILE value differently now. Code: Select all#!/bin/bash nitrogen --no-recurse /home/canci/Pictures/wallpapers && FILE=$(cat ~/.config/nitrogen/bg-saved.cfg | grep file | cut -c 6-) && cp $FILE /usr/share/slim/themes/canci/background.png
Dear All, Please have a look at the file http://dl.dropbox.com/u/5685598/test-flowchart.png which shows more or less what I am after. I need to generate a kind of flowchart where I also want to include images. Probably there is plenty of ways to achieve that, but (1) I would like to stay far way from Microsoft or Mac applications (2) if possible (and not too complicated to learn) I would like to use scripting (LaTex, Python, R) to generate this sort of diagrams (as long as this allows me to concentrate on the structure and leave the details of positioning the elements, resizing them etc.. to the program itself). Any suggestion is really appreciated. Larry77
I am learning Django which is a pretty smart Python Web Framework. I didn't quite understand what you actually want, but I guess, you can decode your images and encode them back with Python.
I want to use scite for an engineering computer course, so I installed Scite version 2.03 from the debian squeeze amd64 repositories. However, getting scite to function seems to require some adjustments. The first thing I did was to edit line 149 of /usr/share/scite/fortran.properties, putting in the name of the fortran compiler on our system (gfortran). 149 original: fc90=f90 -c -o $(FileName).o $(FileNameExt) 149 edited: fc90=gfortran -c -o $(FileName).o $(FileNameExt) After I did that, scite would compile a source file (hello_world.f95), but the compiled output (hello_world.o) did not have execute permissions and is smaller than the compiled output file (hello_world.terminal), generated directly with gfortran in a terminal. bob@c2d:~/computer/fortran$ gfortran -o hello_world.terminal hello_world.f95 -rwxr-xr-x 1 bob bob 8002 2010-09-16 16:10 hello_world.terminal -rw-r--r-- 1 bob bob 1992 2010-09-16 16:08 hello_world.o -rw-r--r-- 1 bob bob 121 2010-09-16 16:08 hello_world.f95 hello_world.terminal works while hello_world.o does not work, even after I changed its permissions with chmod. bash: ./hello_world.o: Permission denied bob@c2d:~/computer/fortran$ chmod u+x hello_world.o bob@c2d:~/computer/fortran$ ./hello_world.o bash: ./hello_world.o: cannot execute binary file So my first question is how do I get scite to put the right permissions on the compiled output. The next question is why the compiled output is not the same as the one from gfortran and why it does not work. Thanks for your help. (hello_world.f95) program hello_world print *, "Hello World!" end program hello_world
hello_world.o isn't linked yet, so it's literally unexectuable without modification(namely, running it through ld); whatever makefile equivalent scite's using is incomplete.
This is not a question on how to learn programming. It's a question of how to actually write a program. A text editor for instance... I'll need info on how to expand my experience and not just sit around and do basic stuff that's not useful anymore. I want to know how to actually write a e.g text editor. Learn where to begin and how it works. Any books / websites for that? I've got a very good answer on my other thread. http://ubuntuforums.org/showthread.php?t=1580581&page=2
Dive into source code. Pick apps you use that are not too big. That should give you some insight on subject.
Why is most Linux applications and Linux itself written in C and not C++? Personally I'm not a fan of neither, I like python better. But it would probably be good to know C or other low level language to. Could the answer of my question be that according to Wikipedia: "C is one of the most popular programming languages of all time, and there are very few computer architectures for which a C compiler does not exist." And should I learn C or is C++ more of my advantage with Linux related applications?
In the late 1960s, the world's largest manufacturer and user of computers decided to produce an operating system that could run on all of them, from the smallest mini-computer to the largest mainframe. Until that time, most operating systems targeted a single computer platform, and programming for that platform was either done in assembly language or in a high level language such as Algol, Lisp, or Fortran. Assembly language was not portable across different architectures, and the high level languages rarely permitted access to the hardware's core capabilities (or if they did, it was only through non-portable extensions to the language). In order to create this multi-platform operating system, the designers needed a programming language whose programs could be easily ported to all of the different systems, but powerful enough to make full use of each system's capabilities. The C programming language is the result of their efforts. It provides enough low level access to make good use of the platform's hardware, and yet does so in a standardized way such that the source code for one platform can be compiled to run on a different one.
I am a newbie c programmer, slogging through pratas "c primer plus" masterpiece, working on a sudoku solver. I've made 2. The first, in the 200 line range, works on a really unintelligent algorithm: initialize all the empty spots to 1, check square, increment last spot, if it reaches 10, reset to 0, the next to last spot gets incremented, etc. Its clumsey, but it works. The next is a variation on a theme: same thing, but increment the empty squares not to the next integer, but to the next possibility, defined as such if that number does not contradict one of the given numbers. It runs in the 300 line range, and ... (despite that I've worked upward of 8 hours on it (I'm a crazy newbie)) doesn't work. This post, just at the start, will have 3 posts: this one, (working !!!!) solver 1, and(almost working) solver 2. EDIT: Now that I know that code is scrollable, they are all in one. On the plus side, solver 1 is a very clean, if slow, solver. Dig in, and enjoy!! Heres solver 1, with some diagnostic 'printf's:Code: Select allVERSION 1 HEADER.H #include<stdio.h> #include<ctype.h> #include<stdlib.h> #define MAX 9 _Bool solve_square(int num, int *fill[], int square[][MAX]); int check_square(int num, int *fill[], int square[][MAX]); _Bool get_square(int square[][MAX]); int count_zero(int square[][MAX]); void set_empty(int *fill[], int square[][MAX]); void increment(int num, int *fill[]); void print_square(int num, int *fill[]); **************************************************** MAIN.C #include "header.h" #define ASCII_FIX 48 int main(void) { puts("Enter your 9*9 sudoku board " "For a blank square, type a single zero \'0\' " "If more than 9 numbers are entered per line " "Those extra digits will not be recognized"); int square[MAX][MAX]; if(!get_square(square) ) return 0; int num=count_zero(square); int *fill[num]; set_empty(fill, square); if(!solve_square(num,fill,square) ){ puts("UNSOLVABLE"); return 0; } else print_square(num, fill); return 0; } _Bool solve_square(int num, int *fill[], int square[][MAX] ) { int test,index; for(index=0;index<num;++index) *fill[index]=1; puts("Calculations have begun"); while( (test=check_square(num, fill, square))==0){ increment(num,fill); } if(test==2) return 0; else return 1; } _Bool get_square(int square[][MAX]) { int row, col; char test; for(row=0;row<MAX;++row) { for(col=0;col<MAX;) { test=getchar(); if(isspace(test) && test!=' ') continue; else if(test==' ') printf("Enter %d more numbers " "Column: %d Row: %d ", MAX-col, col,row); else if(!isdigit(test)){ puts("INPUT ERROR"); return 0; } else{ square[row][col]=test-48; ++col; } } while(getchar()!=' ') continue; } return 1; } ******************************************* SUPPORT.C #include "header.h" int count_zero(int square[][MAX]) { int row,col,count; count=0; for(row=0;row<MAX;++row) for(col=0;col<MAX;++col){ if(square[row][col]==0) ++count; } return count; } /* sets pointerslof argument "fill" to the zero squares in grid */ void set_empty(int *fill[], int square[][MAX]) { int row,col; int count=0; for(row=0;row<MAX;++row) for(col=0;col<MAX;++col) if(square[row][col]==0){ fill[count]=&square[row][col]; ++count; } } /* arguments: number of empty squares and address of the first pointer * purpose: increments the value stored at each fill * fill are pointers to all the empty spaces in grid */ void increment(int num, int *fill[]) { int index; *fill[num-1]+=1; for(index=num-1;index>=0;--index) if(*fill[index]>9) { *fill[index]=1; *fill[index-1]+=1; } else break; } void print_square(int num, int *fill[]) { int index; puts("Here are the numbers to be placed in the empty squares"); puts("They should be inserted from left to right and top to bottem"); for(index=0;index<num;++index) { printf("%2d",*fill[index]); if(index+1%9==0) putchar(' '); } putchar(' '); } *************************************** TEST.C #include "header.h" _Bool check_end(int num, int **fill); _Bool check_box(int square[][MAX]); _Bool check_col(int square[][MAX]); _Bool check_row(int square[][MAX]); _Bool check_end(int num, int **fill); _Bool test(int store[MAX]); int check_square(int num, int **fill, int square[][MAX]) { if(!check_end(num,fill)) return 2; else if(!check_row(square)) return 0; else if(!check_col(square)) return 0; else if(!check_box(square)) return 0; else return 1; } _Bool check_end(int num, int **fill) { int row; for(row=0;row<num;++row) if(*fill[row]!=9) return 1; return 0; } _Bool check_row(int square[][MAX]) { int row,col,store[MAX]; for(row=0;row<MAX;++row) { for(col=0;col<MAX;++col) store[col]=square[row][col]; if(!test(store)) return 0; } return 1; } _Bool check_col(int square[][MAX]) { int row,col,store[MAX]; for(col=0;col<MAX;++col) { for(row=0;row<MAX;++row) store[row]=square[row][col]; if(!test(store)) return 0; } return 1; } _Bool check_box(int square[][MAX]) { int row,col,index,srow,scol,store[MAX]; for(srow=0;srow<=(MAX-3);srow+=3) for(scol=0;scol<=(MAX-3);scol+=3) { for(row=srow, index=0;row<(srow+3);++row) { for(col=scol;col<(scol+3);++col,++index) store[index]=square[row][col]; } if(!test(store) ) return 0; } return 1; } /* Checks for repetitive numbers */ _Bool test(int store[MAX]) { int place, search; for(place=0;place<MAX-1;++place) for(search=place+1;search<MAX;++search) if(store[search]==store[place]) return 0; return 1; } I'm officially impressed with the forums: instead of filling up a thousand pages, it opened a scroll box!! Heres solver 2.0Code: Select allSOLVER 2 HEADER.H #include<stdio.h> #include<ctype.h> #include<stdlib.h> #define MAX 9 _Bool solve_square(int num, int *fill[], int pos[][MAX+1], int square[][MAX]); int check_square(int square[][MAX]); _Bool get_square(int square[][MAX]); int count_zero(int square[][MAX]); void set_empty(int *fill[], int square[][MAX]); void make_pos(int square[][MAX], int pos[][MAX+1]); void print_square(int num, int *fill[]); _Bool small_test(int square[][MAX],int row, int col, int val); ************************************** MAIN.C #include "header.h" #define ASCII_FIX 48 int main(void) { puts("Enter your 9*9 sudoku board " "For a blank square, type a single zero \'0\' " "If more than 9 numbers are entered per line " "Those extra digits will not be recognized"); int square[MAX][MAX]; if(!get_square(square) ) return 0; int num=count_zero(square); /* fill holds the address of all the empty points on the sudoku board */ int *fill[num]; /* pos holds all the possible values for each of the empty points */ int pos[num][MAX+1]; set_empty(fill, square); puts("In main()"); printf("*fill[0]=%d ",*fill[0]); make_pos(square,pos); if(!solve_square(num,fill,pos,square) ){ puts("UNSOLVABLE"); return 0; } else print_square(num, fill); return 0; } _Bool solve_square(int num, int *fill[],int pos[][MAX+1], int square[][MAX] ) { int test,index; int *val[num],*start[num]; /* val holds the address of a number in pos. * start holds the address of all the first values in pos * pos holds all the possibilites */ for(index=0;index<num;++index) start[index]=val[index]=pos[index]; printf("in solve_square(): *fill[0]=%d",*fill[0]); /*heres the bug I can't figure out: I can't derefrence fill. * period */ for(index=0;index<num;++index) *fill[index]=*val[index]; puts("Calculations have begun"); while( (test=check_square(square))==0) /* this would idealy be a macro, * but I didn't learn how to do those yet. */ /*the arrays in pos are 0 terminated. * when the value at fill hits 0, that means that the value in val * hit 0, which means that all the possibilitis in pos for that * point on the sudoku board are finished */ /* the if statement checks for this, and checks to make sure that * the following two things aren't true at the same time: the * point in the board being tested isn't the first one, and the * value being tested on in this case isn't the last value * (zero) */ /* the if block increments the number before * then checks if that number is 0 ( the last one) */ { *fill[num-1]=*++(val[num-1]); for(index=num-1;index>=0;--index) { if(*fill[index]==0 && (index!=0 || *val[index]!=0 ) ) { val[index]=start[index]; *fill[index]=*val[index]; *fill[index-1]=*++val[index-1]; } else break; } } if(test==2) return 0; else return 1; } _Bool get_square(int square[][MAX]) { int row, col; char test; for(row=0;row<MAX;++row) { for(col=0;col<MAX;) { test=getchar(); if(isspace(test) && test!=' ') continue; else if(test==' ') printf("Enter %d more numbers " "Column: %d Row: %d ", MAX-col, col,row); else if(!isdigit(test)){ puts("INPUT ERROR"); return 0; } else{ square[row][col]=test-48; ++col; } } while(getchar()!=' ') continue; } return 1; } **************************************** SMALL_TEST.C #define MAX 9 _Bool small_test(int square[][MAX],int row, int col,int val); _Bool test_all(int square[][MAX], int row, int col, int val, char mode); _Bool test_cube(int square[][MAX], int row, int col, int val); _Bool test(int store[MAX]); _Bool small_test(int square[][MAX],int row, int col,int val) { if(!test_all(square,row,col,val,'c')) return 0; else if(!test_all(square,row,col,val,'r')) return 0; else if(!test_cube(square,row,col,val)) return 0; else return 1; } _Bool test_all(int square[][MAX], int row, int col, int val, char mode) { int store[MAX]; int index; square[row][col]=val; for(index=0;index<MAX;++index) switch(mode) { case 'c': store[index]=square[row][index]; case 'r': store[index]=square[index][row]; } square[row][col]=0; if(!test(store)) return 0; else return 1; } _Bool test_cube(int square[][MAX], int row, int col, int val) { int store[MAX]; int srow,scol; int index=0; /* for a cube test, it needs to start at a set point in cube * * I use top left. Integer division gives 0, 1, or 2 * * multiply to get points in grid: 0, 3, or 6 * * Its beutifull. (And I was thinking of using range tests!!) */ srow=(row/3)*3; scol=(col/3)*3; square[row][col]=val; for(row=srow;row<(srow+3);++row) for(col=scol;col<scol+3;++col){ store[index]=square[row][col]; ++index; } square[row][col]=0; if(!test(store)) return 0; else return 1; } _Bool test(int store[MAX]) { int index; /* keeps test from returning false if it finds several zeroes * that would be bound to happen, unless it is solving a realy easy sudoku * remember: 0s mark blank points on the grid */ int coverup=10; int place, find; for(index=0;index<MAX;++index) if(store[index]==0) { store[index]=coverup; ++coverup; } for(place=0;place<MAX-1;++place) for(find=place+1;find<MAX;++find) if(store[find]==store[place]) return 0; return 1; } ****************************************** SUPPORT.C #include "header.h" void make_pos(int square[][MAX], int pos[][MAX+1]) { puts("In make_pos()"); int row, col; int srow,scol; srow=scol=0; int val; for(row=0;row<MAX;++row) for(col=0;col<MAX;++col) { if(square[row][col]==0) { for(val=1;val<=MAX;++val) { if(small_test(square,row,col,val)) { pos[srow][scol]=val; printf("val=%d ",val); printf("pos[%d][%d]=%d ", srow,scol,pos[srow][scol]); ++scol; } } while(scol<MAX+1) { pos[srow][scol]=0; ++scol; } ++srow; scol=0; } } } int count_zero(int square[][MAX]) { int row,col,count; count=0; for(row=0;row<MAX;++row) for(col=0;col<MAX;++col){ if(square[row][col]==0) ++count; } return count; } /* sets pointers argument "fill" to the zero squares in grid */ void set_empty(int *fill[], int square[][MAX]) { puts("In set_empty()"); int row,col; int count=0; for(row=0;row<MAX;++row) for(col=0;col<MAX;++col) if(square[row][col]==0){ fill[count]=&square[row][col]; printf("fill[%d]: %p",count,fill[count]); printf(" &square[%d][%d]= %p", row,col,&square[row][col]); printf(" *fill[%d]: %d ",count,*fill[count]); ++count; } } void print_square(int num, int *fill[]) { int index; puts("Here are the numbers to be placed in the empty squares"); puts("They should be inserted from left to right and top to bottem"); for(index=0;index<num;++index) { printf("%2d",*fill[index]); if(index+1%9==0) putchar(' '); } putchar(' '); } ************************************************** TEST.C #include "header.h" _Bool check_box(int square[][MAX]); _Bool check_col(int square[][MAX]); _Bool check_row(int square[][MAX]); _Bool newtest(int store[MAX]); int check_square(int square[][MAX]) { if(!check_row(square)){ return 0; } else if(!check_col(square)){ return 0; } else if(!check_box(square)){ return 0; } else return 1; } _Bool check_row(int square[][MAX]) { int row,col,store[MAX]; for(row=0;row<MAX;++row) { for(col=0;col<MAX;++col) store[col]=square[row][col]; if(!newtest(store)) return 0; } return 1; } _Bool check_col(int square[][MAX]) { int row,col,store[MAX]; for(col=0;col<MAX;++col) { for(row=0;row<MAX;++row) store[row]=square[row][col]; if(!newtest(store)) return 0; } return 1; } _Bool check_box(int square[][MAX]) { int row,col,index,srow,scol,store[MAX]; for(srow=0;srow<=(MAX-3);srow+=3) for(scol=0;scol<=(MAX-3);scol+=3) { for(row=srow, index=0;row<(srow+3);++row) { for(col=scol;col<(scol+3);++col,++index) store[index]=square[row][col]; } if(!newtest(store) ) return 0; } return 1; } /* Checks for repetitive numbers */ _Bool newtest(int store[MAX]) { int place, search; for(place=0;place<MAX-1;++place) for(search=place+1;search<MAX;++search) if(store[search]==store[place]) return 0; return 1; } lastly, heres a simple sudoku that you can use to test it out.928 731 546 741 625 398 365 849 217 652 418 739 179 306 482 834 972 165 593 167 824 487 293 651 216 504 903
I fixed it!!! Actualy, I fixed it around 5 weeks ago, but I didn't have internet access. There were an embarrassing number of bugs in the above posted version. It uses a crude brute force algorithm: it solves it in anything between < 1 second or < 10 seconds or all eternity Of course, the codes ugly in places, but sudoku is pretty boring and I lost interest after I got it working. Now I'm working on a maze game, using ncurses!!! ncurses rock!! I'll post the fixed sudoku solver and the (awesome) maze when I get it from my flash drive.
Hi. Recently I am setting up a Debian machine for C++ programming. I installed Debian stabe (lenny), X11 wasn't installed as I want to do programming in console environment with vim. I searched for the packages which help me to install the compiler and development libraries, but I am not sure which one should I install. I found g++ (http://packages.debian.org/lenny/g++) and libstdc++6-4.3-dev (http://packages.debian.org/lenny/libstdc++6-4.3-dev), should I install these packages for compiling and running a C++ program? And I wonder do I need to keep track of the latest development libraries package, or APT will handle it for me? Also I wish to have syntax highlight in vim. I tried to enable the feature by uncomment the line syntax on, but vim told me that the command was not available for the version of vim. I guess I am using vim-tiny right now, so I need to install the package vim (http://packages.debian.org/lenny/vim), am I right? Thank you very much!
GraphiteCube wrote:Also I wish to have syntax highlight in vim. I tried to enable the feature by uncomment the line syntax on, but vim told me that the command was not available for the version of vim. I guess I am using vim-tiny right now, so I need to install the package vim (http://packages.debian.org/lenny/vim), am I right? Yup, the default vim-tiny isn't really good enough for real work. Get a fuller version of Vim and browse the web for vimrc examples, and you should be off and running.
/usr/bin# cat search Code: Select all#!/bin/sh find ${3:-.} -iname "${2:-*}" | xargs grep "$1" -sl exit $? Figuring out how to make the $2 clause work, but still default to '*', is too much for my addled brain, but I'm probably missing something obvious, because I don't understand escape characters in the slightest. Any help? Thanks. [P.S. - I'm sure there are scripts out there that do this and more, and links to goods ones are welcome, but I'm also trying vaguely to learn bash, so an answer to this puzzle would be interesting in itself too]
More information would help people help you. Some suggestions: Please (always) put code into code blocks. It makes it more legible. Please tells us what you want this script to do. Give a detailed example or two of what an average run might look like. Please tells us what it actually does when you run it. Also, and this may seem minor but it may save your (digital) life someday: why are you running a search script as root?
perl dosent want to work it keeps telling me this /usr/bin/perl^M: bad interpreter: No such file or directory when i locate perl it gives me the following Code: Select all/usr/share/perl/5.10.1/unicore/lib/dt/Vert.pl /usr/share/perl/5.10.1/unicore/lib/dt/Wide.pl /usr/share/perl/5.10.1/unicore/lib/ea/A.pl /usr/share/perl/5.10.1/unicore/lib/ea/F.pl /usr/share/perl/5.10.1/unicore/lib/ea/H.pl /usr/share/perl/5.10.1/unicore/lib/ea/N.pl /usr/share/perl/5.10.1/unicore/lib/ea/Na.pl /usr/share/perl/5.10.1/unicore/lib/ea/W.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/AHex.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/ASCII.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Alnum.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Alpha.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Alphabet.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Any.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Arab.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Armn.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/AsciiHex.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Assigned.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Bali.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Beng.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/BidiC.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/BidiCont.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Blank.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Bopo.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Brai.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Bugi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Buhd.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/C.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Canadian.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cari.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cc.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cf.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cham.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cher.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cn.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cntrl.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Co.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Copt.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cprt.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cs.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Cyrl.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Dash.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Dash2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/DefaultI.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Dep.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Deprecat.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Deva.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Dia.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Diacriti.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Digit.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Dsrt.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Ethi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Ext.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Extender.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Geor.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Glag.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Goth.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Graph.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Grek.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Gujr.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Guru.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Hang.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Hani.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Hano.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Hebr.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Hex.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/HexDigit.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Hira.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/HorizSpa.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Hyphen.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Hyphen2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/IDSB.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/IDST.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/IdContin.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/IdStart.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Ideo.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Ideograp.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/IdsBinar.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/IdsTrina.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InAegean.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InAlphab.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InAncie2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InAncie3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InAncien.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InArabi2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InArabi3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InArabi4.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InArabic.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InArmeni.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InArrows.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBaline.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBasicL.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBengal.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBlockE.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBopom2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBopomo.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBoxDra.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBraill.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBugine.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InBuhid.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InByzant.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCarian.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCham.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCherok.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkCo2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkCo3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkCo4.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkCom.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkRad.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkStr.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkSym.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkUn2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkUn3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCjkUni.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCombi2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCombi3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCombi4.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCombin.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InContro.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCoptic.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCounti.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCunei2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCuneif.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCurren.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCyprio.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCyril2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCyril3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCyril4.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InCyrill.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InDesere.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InDevana.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InDingba.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InDomino.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InEnclo2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InEnclos.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InEthio2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InEthio3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InEthiop.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGenera.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGeomet.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGeorg2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGeorgi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGlagol.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGothic.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGreekA.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGreekE.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGujara.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InGurmuk.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InHalfwi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InHangu2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InHangu3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InHangul.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InHanuno.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InHebrew.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InHighPr.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InHighSu.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InHiraga.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InIdeogr.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InIpaExt.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InKanbun.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InKangxi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InKannad.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InKatak2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InKataka.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InKayahL.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InKharos.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InKhmer.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InKhmerS.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLao.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLatin1.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLatin2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLatin3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLatin4.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLatin5.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLatinE.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLepcha.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLetter.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLimbu.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLinea2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLinear.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLowSur.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLycian.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InLydian.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMahjon.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMalaya.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMathe2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMathem.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMisce2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMisce3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMisce4.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMisce5.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMiscel.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InModifi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMongol.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMusica.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InMyanma.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InNewTai.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InNko.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InNumber.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InOgham.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InOlChik.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InOldIta.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InOldPer.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InOptica.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InOriya.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InOsmany.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InPhagsP.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InPhaist.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InPhoeni.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InPhone2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InPhonet.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InPrivat.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InRejang.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InRunic.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSauras.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InShavia.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSinhal.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSmallF.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSpacin.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSpecia.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSundan.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSupers.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSuppl2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSuppl3.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSuppl4.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSuppl5.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSuppl6.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSupple.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSyloti.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InSyriac.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InTagalo.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InTagban.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InTags.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InTaiLe.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InTaiXua.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InTamil.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InTelugu.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InThaana.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InThai.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InTibeta.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InTifina.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InUgarit.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InUnifie.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InVai.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InVaria2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InVariat.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InVertic.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InYiRadi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InYiSyll.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/InYijing.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/JoinC.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/JoinCont.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Kana.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/KayahLi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Khar.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Khmr.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Knda.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/L.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/LC.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/LOE.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Laoo.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Latn.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Lepc.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Limb.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/LinearB.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Ll.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Lm.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Lo.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/LogicalO.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Lower.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Lowercas.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Lt.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Lu.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Lyci.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Lydi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/M.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Math.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Mc.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Me.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Mlym.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Mn.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Mong.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Mymr.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/N.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/NChar.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Nd.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/NewTaiLu.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Nkoo.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Nl.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/No.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Nonchara.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OAlpha.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/ODI.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OGrExt.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OIDC.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OIDS.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OLower.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OMath.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OUpper.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Ogam.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OlChiki.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OldItali.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OldPersi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Orya.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Osma.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OtherAlp.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OtherDef.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OtherGra.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OtherIdC.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OtherIdS.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OtherLow.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OtherMat.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/OtherUpp.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/P.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PatSyn.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PatWS.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PatternS.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PatternW.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Pc.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Pd.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Pe.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PerlSpac.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PerlWord.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Pf.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PhagsPa.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Phnx.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Pi.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Po.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixAln.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixAlp.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixBla.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixCnt.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixDig.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixGra.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixLow.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixPri.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixPun.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixSpa.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/PosixUpp.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Print.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Ps.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Punct.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/QMark.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Qaai.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Quotatio.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Radical.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Radical2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Rjng.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Runr.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/S.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/SD.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/STerm.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Saur.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Sc.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Shaw.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Sinh.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Sk.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Sm.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/So.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/SoftDott.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Space.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/SpacePer.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Sterm2.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Sund.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/SylotiNa.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Syrc.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Tagb.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/TaiLe.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Taml.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Telu.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Term.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Terminal.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Tfng.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Tglg.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Thaa.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Thai.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Tibt.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Title.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/UIdeo.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Ugar.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/UnifiedI.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Upper.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Uppercas.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/VS.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Vaii.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Variatio.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/VertSpac.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/WSpace.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/WhiteSpa.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Word.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/XDigit.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Xsux.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Yiii.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Z.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Zl.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Zp.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Zs.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/Zyyy.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/_CanonDC.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/_CaseIgn.pl /usr/share/perl/5.10.1/unicore/lib/gc_sc/_CombAbo.pl /usr/share/perl/5.10.1/unicore/lib/hst/L.pl /usr/share/perl/5.10.1/unicore/lib/hst/LV.pl /usr/share/perl/5.10.1/unicore/lib/hst/LVT.pl /usr/share/perl/5.10.1/unicore/lib/hst/T.pl /usr/share/perl/5.10.1/unicore/lib/hst/V.pl /usr/share/perl/5.10.1/unicore/lib/jt/C.pl /usr/share/perl/5.10.1/unicore/lib/jt/D.pl /usr/share/perl/5.10.1/unicore/lib/jt/R.pl /usr/share/perl/5.10.1/unicore/lib/jt/U.pl /usr/share/perl/5.10.1/unicore/lib/lb/AI.pl /usr/share/perl/5.10.1/unicore/lib/lb/AL.pl /usr/share/perl/5.10.1/unicore/lib/lb/B2.pl /usr/share/perl/5.10.1/unicore/lib/lb/BA.pl /usr/share/perl/5.10.1/unicore/lib/lb/BB.pl /usr/share/perl/5.10.1/unicore/lib/lb/BK.pl /usr/share/perl/5.10.1/unicore/lib/lb/CB.pl /usr/share/perl/5.10.1/unicore/lib/lb/CL.pl /usr/share/perl/5.10.1/unicore/lib/lb/CM.pl /usr/share/perl/5.10.1/unicore/lib/lb/CR.pl /usr/share/perl/5.10.1/unicore/lib/lb/EX.pl /usr/share/perl/5.10.1/unicore/lib/lb/GL.pl /usr/share/perl/5.10.1/unicore/lib/lb/H2.pl /usr/share/perl/5.10.1/unicore/lib/lb/H3.pl /usr/share/perl/5.10.1/unicore/lib/lb/HY.pl /usr/share/perl/5.10.1/unicore/lib/lb/ID.pl /usr/share/perl/5.10.1/unicore/lib/lb/IN.pl /usr/share/perl/5.10.1/unicore/lib/lb/IS.pl /usr/share/perl/5.10.1/unicore/lib/lb/JL.pl /usr/share/perl/5.10.1/unicore/lib/lb/JT.pl /usr/share/perl/5.10.1/unicore/lib/lb/JV.pl /usr/share/perl/5.10.1/unicore/lib/lb/LF.pl /usr/share/perl/5.10.1/unicore/lib/lb/NL.pl /usr/share/perl/5.10.1/unicore/lib/lb/NS.pl /usr/share/perl/5.10.1/unicore/lib/lb/NU.pl /usr/share/perl/5.10.1/unicore/lib/lb/OP.pl /usr/share/perl/5.10.1/unicore/lib/lb/PO.pl /usr/share/perl/5.10.1/unicore/lib/lb/PR.pl /usr/share/perl/5.10.1/unicore/lib/lb/QU.pl /usr/share/perl/5.10.1/unicore/lib/lb/SA.pl /usr/share/perl/5.10.1/unicore/lib/lb/SG.pl /usr/share/perl/5.10.1/unicore/lib/lb/SP.pl /usr/share/perl/5.10.1/unicore/lib/lb/SY.pl /usr/share/perl/5.10.1/unicore/lib/lb/WJ.pl /usr/share/perl/5.10.1/unicore/lib/lb/XX.pl /usr/share/perl/5.10.1/unicore/lib/lb/ZW.pl /usr/share/perl/5.10.1/unicore/lib/nt/De.pl /usr/share/perl/5.10.1/unicore/lib/nt/Di.pl /usr/share/perl/5.10.1/unicore/lib/nt/Nu.pl /usr/share/perl/5.10.1/version/Internals.pod /usr/share/perl/5.10.1/warnings/register.pm /usr/share/perl5/Algorithm /usr/share/perl5/Alien /usr/share/perl5/Binfmt /usr/share/perl5/Bundle /usr/share/perl5/Date /usr/share/perl5/Debconf /usr/share/perl5/Debian /usr/share/perl5/DebianNet.pm /usr/share/perl5/Dpkg /usr/share/perl5/Dpkg.pm /usr/share/perl5/Error /usr/share/perl5/Error.pm /usr/share/perl5/File /usr/share/perl5/Font /usr/share/perl5/Foomatic /usr/share/perl5/Git.pm /usr/share/perl5/HTML /usr/share/perl5/HTTP /usr/share/perl5/LWP /usr/share/perl5/LWP.pm /usr/share/perl5/Mail /usr/share/perl5/Net /usr/share/perl5/Sys /usr/share/perl5/Text /usr/share/perl5/Tie /usr/share/perl5/Time /usr/share/perl5/URI /usr/share/perl5/URI.pm /usr/share/perl5/WWW /usr/share/perl5/XML /usr/share/perl5/dialog.pl /usr/share/perl5/lwpcook.pod /usr/share/perl5/lwptut.pod /usr/share/perl5/Algorithm/Diff.pm /usr/share/perl5/Algorithm/DiffOld.pm /usr/share/perl5/Algorithm/Merge.pm /usr/share/perl5/Alien/Package /usr/share/perl5/Alien/Package.pm /usr/share/perl5/Alien/Package/Deb.pm /usr/share/perl5/Alien/Package/Lsb.pm /usr/share/perl5/Alien/Package/Pkg.pm /usr/share/perl5/Alien/Package/Rpm.pm /usr/share/perl5/Alien/Package/Slp.pm /usr/share/perl5/Alien/Package/Tgz.pm /usr/share/perl5/Binfmt/Format.pm /usr/share/perl5/Binfmt/Lib.pm /usr/share/perl5/Bundle/LWP.pm /usr/share/perl5/Date/Format.pm /usr/share/perl5/Date/Language /usr/share/perl5/Date/Language.pm /usr/share/perl5/Date/Parse.pm /usr/share/perl5/Date/Language/Afar.pm /usr/share/perl5/Date/Language/Amharic.pm /usr/share/perl5/Date/Language/Austrian.pm /usr/share/perl5/Date/Language/Brazilian.pm /usr/share/perl5/Date/Language/Chinese.pm /usr/share/perl5/Date/Language/Chinese_GB.pm /usr/share/perl5/Date/Language/Czech.pm /usr/share/perl5/Date/Language/Danish.pm /usr/share/perl5/Date/Language/Dutch.pm /usr/share/perl5/Date/Language/English.pm /usr/share/perl5/Date/Language/Finnish.pm /usr/share/perl5/Date/Language/French.pm /usr/share/perl5/Date/Language/Gedeo.pm /usr/share/perl5/Date/Language/German.pm /usr/share/perl5/Date/Language/Greek.pm /usr/share/perl5/Date/Language/Hungarian.pm /usr/share/perl5/Date/Language/Icelandic.pm /usr/share/perl5/Date/Language/Italian.pm /usr/share/perl5/Date/Language/Norwegian.pm /usr/share/perl5/Date/Language/Oromo.pm /usr/share/perl5/Date/Language/Romanian.pm /usr/share/perl5/Date/Language/Russian.pm /usr/share/perl5/Date/Language/Russian_cp1251.pm /usr/share/perl5/Date/Language/Russian_koi8r.pm /usr/share/perl5/Date/Language/Sidama.pm /usr/share/perl5/Date/Language/Somali.pm /usr/share/perl5/Date/Language/Spanish.pm /usr/share/perl5/Date/Language/Swedish.pm /usr/share/perl5/Date/Language/Tigrinya.pm /usr/share/perl5/Date/Language/TigrinyaEritrean.pm /usr/share/perl5/Date/Language/TigrinyaEthiopian.pm /usr/share/perl5/Date/Language/Turkish.pm /usr/share/perl5/Debconf/AutoSelect.pm /usr/share/perl5/Debconf/Base.pm /usr/share/perl5/Debconf/Client /usr/share/perl5/Debconf/ConfModule.pm /usr/share/perl5/Debconf/Config.pm /usr/share/perl5/Debconf/Db.pm /usr/share/perl5/Debconf/DbDriver /usr/share/perl5/Debconf/DbDriver.pm /usr/share/perl5/Debconf/Element /usr/share/perl5/Debconf/Element.pm /usr/share/perl5/Debconf/Encoding.pm /usr/share/perl5/Debconf/Format /usr/share/perl5/Debconf/Format.pm /usr/share/perl5/Debconf/FrontEnd /usr/share/perl5/Debconf/FrontEnd.pm /usr/share/perl5/Debconf/Gettext.pm /usr/share/perl5/Debconf/Iterator.pm /usr/share/perl5/Debconf/Log.pm /usr/share/perl5/Debconf/Priority.pm /usr/share/perl5/Debconf/Question.pm /usr/share/perl5/Debconf/Template /usr/share/perl5/Debconf/Template.pm /usr/share/perl5/Debconf/TmpFile.pm /usr/share/perl5/Debconf/Client/ConfModule.pm /usr/share/perl5/Debconf/DbDriver/Backup.pm /usr/share/perl5/Debconf/DbDriver/Cache.pm /usr/share/perl5/Debconf/DbDriver/Copy.pm /usr/share/perl5/Debconf/DbDriver/Debug.pm /usr/share/perl5/Debconf/DbDriver/DirTree.pm /usr/share/perl5/Debconf/DbDriver/Directory.pm /usr/share/perl5/Debconf/DbDriver/File.pm /usr/share/perl5/Debconf/DbDriver/LDAP.pm /usr/share/perl5/Debconf/DbDriver/PackageDir.pm /usr/share/perl5/Debconf/DbDriver/Pipe.pm /usr/share/perl5/Debconf/DbDriver/Stack.pm /usr/share/perl5/Debconf/Element/Dialog /usr/share/perl5/Debconf/Element/Editor /usr/share/perl5/Debconf/Element/Gnome /usr/share/perl5/Debconf/Element/Gnome.pm /usr/share/perl5/Debconf/Element/Multiselect.pm /usr/share/perl5/Debconf/Element/Noninteractive /usr/share/perl5/Debconf/Element/Noninteractive.pm /usr/share/perl5/Debconf/Element/Select.pm /usr/share/perl5/Debconf/Element/Teletype /usr/share/perl5/Debconf/Element/Web /usr/share/perl5/Debconf/Element/Dialog/Boolean.pm /usr/share/perl5/Debconf/Element/Dialog/Error.pm /usr/share/perl5/Debconf/Element/Dialog/Multiselect.pm /usr/share/perl5/Debconf/Element/Dialog/Note.pm /usr/share/perl5/Debconf/Element/Dialog/Password.pm /usr/share/perl5/Debconf/Element/Dialog/Progress.pm /usr/share/perl5/Debconf/Element/Dialog/Select.pm /usr/share/perl5/Debconf/Element/Dialog/String.pm /usr/share/perl5/Debconf/Element/Dialog/Text.pm /usr/share/perl5/Debconf/Element/Editor/Boolean.pm /usr/share/perl5/Debconf/Element/Editor/Error.pm /usr/share/perl5/Debconf/Element/Editor/Multiselect.pm /usr/share/perl5/Debconf/Element/Editor/Note.pm /usr/share/perl5/Debconf/Element/Editor/Password.pm /usr/share/perl5/Debconf/Element/Editor/Progress.pm /usr/share/perl5/Debconf/Element/Editor/Select.pm /usr/share/perl5/Debconf/Element/Editor/String.pm /usr/share/perl5/Debconf/Element/Editor/Text.pm /usr/share/perl5/Debconf/Element/Gnome/Boolean.pm /usr/share/perl5/Debconf/Element/Gnome/Error.pm /usr/share/perl5/Debconf/Element/Gnome/Multiselect.pm /usr/share/perl5/Debconf/Element/Gnome/Note.pm /usr/share/perl5/Debconf/Element/Gnome/Password.pm /usr/share/perl5/Debconf/Element/Gnome/Progress.pm /usr/share/perl5/Debconf/Element/Gnome/Select.pm /usr/share/perl5/Debconf/Element/Gnome/String.pm /usr/share/perl5/Debconf/Element/Gnome/Text.pm /usr/share/perl5/Debconf/Element/Noninteractive/Boolean.pm /usr/share/perl5/Debconf/Element/Noninteractive/Error.pm /usr/share/perl5/Debconf/Element/Noninteractive/Multiselect.pm /usr/share/perl5/Debconf/Element/Noninteractive/Note.pm /usr/share/perl5/Debconf/Element/Noninteractive/Password.pm /usr/share/perl5/Debconf/Element/Noninteractive/Progress.pm /usr/share/perl5/Debconf/Element/Noninteractive/Select.pm /usr/share/perl5/Debconf/Element/Noninteractive/String.pm /usr/share/perl5/Debconf/Element/Noninteractive/Text.pm /usr/share/perl5/Debconf/Element/Teletype/Boolean.pm /usr/share/perl5/Debconf/Element/Teletype/Error.pm /usr/share/perl5/Debconf/Element/Teletype/Multiselect.pm /usr/share/perl5/Debconf/Element/Teletype/Note.pm /usr/share/perl5/Debconf/Element/Teletype/Password.pm /usr/share/perl5/Debconf/Element/Teletype/Progress.pm /usr/share/perl5/Debconf/Element/Teletype/Select.pm /usr/share/perl5/Debconf/Element/Teletype/String.pm /usr/share/perl5/Debconf/Element/Teletype/Text.pm /usr/share/perl5/Debconf/Element/Web/Boolean.pm /usr/share/perl5/Debconf/Element/Web/Error.pm /usr/share/perl5/Debconf/Element/Web/Multiselect.pm /usr/share/perl5/Debconf/Element/Web/Note.pm /usr/share/perl5/Debconf/Element/Web/Password.pm /usr/share/perl5/Debconf/Element/Web/Progress.pm /usr/share/perl5/Debconf/Element/Web/Select.pm /usr/share/perl5/Debconf/Element/Web/String.pm /usr/share/perl5/Debconf/Element/Web/Text.pm /usr/share/perl5/Debconf/Format/822.pm /usr/share/perl5/Debconf/FrontEnd/Dialog.pm /usr/share/perl5/Debconf/FrontEnd/Editor.pm /usr/share/perl5/Debconf/FrontEnd/Gnome.pm /usr/share/perl5/Debconf/FrontEnd/Noninteractive.pm /usr/share/perl5/Debconf/FrontEnd/Passthrough.pm /usr/share/perl5/Debconf/FrontEnd/Readline.pm /usr/share/perl5/Debconf/FrontEnd/ScreenSize.pm /usr/share/perl5/Debconf/FrontEnd/Teletype.pm /usr/share/perl5/Debconf/FrontEnd/Text.pm /usr/share/perl5/Debconf/FrontEnd/Web.pm /usr/share/perl5/Debconf/Template/Transient.pm /usr/share/perl5/Debian/AdduserCommon.pm /usr/share/perl5/Debian/DebConf /usr/share/perl5/Debian/Debhelper /usr/share/perl5/Debian/Defoma /usr/share/perl5/Debian/DictionariesCommon.pm /usr/share/perl5/Debian/DebConf/Client /usr/share/perl5/Debian/DebConf/Client/ConfModule.pm /usr/share/perl5/Debian/Debhelper/Buildsystem /usr/share/perl5/Debian/Debhelper/Buildsystem.pm /usr/share/perl5/Debian/Debhelper/Dh_Buildsystems.pm /usr/share/perl5/Debian/Debhelper/Dh_Getopt.pm /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm /usr/share/perl5/Debian/Debhelper/Dh_Version.pm /usr/share/perl5/Debian/Debhelper/Sequence /usr/share/perl5/Debian/Debhelper/Buildsystem/ant.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/autoconf.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/cmake.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/makefile.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/perl_build.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/perl_makemaker.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/python_distutils.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/qmake.pm /usr/share/perl5/Debian/Debhelper/Sequence/bash_completion.pm /usr/share/perl5/Debian/Debhelper/Sequence/dkms.pm /usr/share/perl5/Debian/Debhelper/Sequence/python2.pm /usr/share/perl5/Debian/Debhelper/Sequence/python_central.pm /usr/share/perl5/Debian/Debhelper/Sequence/python_support.pm /usr/share/perl5/Debian/Defoma/Common.pm /usr/share/perl5/Debian/Defoma/Font.pm /usr/share/perl5/Debian/Defoma/FontCache.pm /usr/share/perl5/Debian/Defoma/Id.pm /usr/share/perl5/Debian/Defoma/IdCache.pm /usr/share/perl5/Debian/Defoma/Subst.pm /usr/share/perl5/Debian/Defoma/SubstCache.pm /usr/share/perl5/Debian/Defoma/User.pm /usr/share/perl5/Dpkg/Arch.pm /usr/share/perl5/Dpkg/BuildFlags.pm /usr/share/perl5/Dpkg/BuildOptions.pm /usr/share/perl5/Dpkg/Changelog /usr/share/perl5/Dpkg/Changelog.pm /usr/share/perl5/Dpkg/Checksums.pm /usr/share/perl5/Dpkg/Compression /usr/share/perl5/Dpkg/Compression.pm /usr/share/perl5/Dpkg/Conf.pm /usr/share/perl5/Dpkg/Control /usr/share/perl5/Dpkg/Control.pm /usr/share/perl5/Dpkg/Deps.pm /usr/share/perl5/Dpkg/ErrorHandling.pm /usr/share/perl5/Dpkg/Exit.pm /usr/share/perl5/Dpkg/Gettext.pm /usr/share/perl5/Dpkg/IPC.pm /usr/share/perl5/Dpkg/Index.pm /usr/share/perl5/Dpkg/Interface /usr/share/perl5/Dpkg/Path.pm /usr/share/perl5/Dpkg/Shlibs /usr/share/perl5/Dpkg/Shlibs.pm /usr/share/perl5/Dpkg/Source /usr/share/perl5/Dpkg/Substvars.pm /usr/share/perl5/Dpkg/Vars.pm /usr/share/perl5/Dpkg/Vendor /usr/share/perl5/Dpkg/Vendor.pm /usr/share/perl5/Dpkg/Version.pm /usr/share/perl5/Dpkg/Changelog/Debian.pm /usr/share/perl5/Dpkg/Changelog/Entry /usr/share/perl5/Dpkg/Changelog/Entry.pm /usr/share/perl5/Dpkg/Changelog/Parse.pm /usr/share/perl5/Dpkg/Changelog/Entry/Debian.pm /usr/share/perl5/Dpkg/Compression/FileHandle.pm /usr/share/perl5/Dpkg/Compression/Process.pm /usr/share/perl5/Dpkg/Control/Changelog.pm /usr/share/perl5/Dpkg/Control/Fields.pm /usr/share/perl5/Dpkg/Control/Hash.pm /usr/share/perl5/Dpkg/Control/Info.pm /usr/share/perl5/Dpkg/Control/Types.pm /usr/share/perl5/Dpkg/Interface/Storable.pm /usr/share/perl5/Dpkg/Shlibs/Cppfilt.pm /usr/share/perl5/Dpkg/Shlibs/Objdump.pm /usr/share/perl5/Dpkg/Shlibs/Symbol.pm /usr/share/perl5/Dpkg/Shlibs/SymbolFile.pm /usr/share/perl5/Dpkg/Source/Archive.pm /usr/share/perl5/Dpkg/Source/Functions.pm /usr/share/perl5/Dpkg/Source/Package /usr/share/perl5/Dpkg/Source/Package.pm /usr/share/perl5/Dpkg/Source/Patch.pm /usr/share/perl5/Dpkg/Source/Package/V1.pm /usr/share/perl5/Dpkg/Source/Package/V2.pm /usr/share/perl5/Dpkg/Source/Package/V3 /usr/share/perl5/Dpkg/Source/Package/V3/bzr.pm /usr/share/perl5/Dpkg/Source/Package/V3/custom.pm /usr/share/perl5/Dpkg/Source/Package/V3/git.pm /usr/share/perl5/Dpkg/Source/Package/V3/native.pm /usr/share/perl5/Dpkg/Source/Package/V3/quilt.pm /usr/share/perl5/Dpkg/Vendor/Debian.pm /usr/share/perl5/Dpkg/Vendor/Default.pm /usr/share/perl5/Dpkg/Vendor/Ubuntu.pm /usr/share/perl5/Error/Simple.pm /usr/share/perl5/File/Copy /usr/share/perl5/File/Listing.pm /usr/share/perl5/File/Copy/Recursive.pm /usr/share/perl5/Font/AFM.pm /usr/share/perl5/Font/Metrics /usr/share/perl5/Font/Metrics/Courier.pm /usr/share/perl5/Font/Metrics/CourierBold.pm /usr/share/perl5/Font/Metrics/CourierBoldOblique.pm /usr/share/perl5/Font/Metrics/CourierOblique.pm /usr/share/perl5/Font/Metrics/Helvetica.pm /usr/share/perl5/Font/Metrics/HelveticaBold.pm /usr/share/perl5/Font/Metrics/HelveticaBoldOblique.pm /usr/share/perl5/Font/Metrics/HelveticaOblique.pm /usr/share/perl5/Font/Metrics/TimesBold.pm /usr/share/perl5/Font/Metrics/TimesBoldItalic.pm /usr/share/perl5/Font/Metrics/TimesItalic.pm /usr/share/perl5/Font/Metrics/TimesRoman.pm /usr/share/perl5/Foomatic/DB.pm /usr/share/perl5/Foomatic/Defaults.pm /usr/share/perl5/Foomatic/PPD.pm /usr/share/perl5/Foomatic/UIElem.pm /usr/share/perl5/HTML/AsSubs.pm /usr/share/perl5/HTML/Element /usr/share/perl5/HTML/Element.pm /usr/share/perl5/HTML/Form.pm /usr/share/perl5/HTML/FormatPS.pm /usr/share/perl5/HTML/FormatRTF.pm /usr/share/perl5/HTML/FormatText.pm /usr/share/perl5/HTML/Formatter.pm /usr/share/perl5/HTML/Parse.pm /usr/share/perl5/HTML/Tagset.pm /usr/share/perl5/HTML/Tree /usr/share/perl5/HTML/Tree.pm /usr/share/perl5/HTML/TreeBuilder.pm /usr/share/perl5/HTML/Element/traverse.pm /usr/share/perl5/HTML/Tree/AboutObjects.pod /usr/share/perl5/HTML/Tree/AboutTrees.pod /usr/share/perl5/HTML/Tree/Scanning.pod /usr/share/perl5/HTTP/Config.pm /usr/share/perl5/HTTP/Cookies /usr/share/perl5/HTTP/Cookies.pm /usr/share/perl5/HTTP/Daemon.pm /usr/share/perl5/HTTP/Date.pm /usr/share/perl5/HTTP/Headers /usr/share/perl5/HTTP/Headers.pm /usr/share/perl5/HTTP/Message.pm /usr/share/perl5/HTTP/Negotiate.pm /usr/share/perl5/HTTP/Request /usr/share/perl5/HTTP/Request.pm /usr/share/perl5/HTTP/Response.pm /usr/share/perl5/HTTP/Status.pm /usr/share/perl5/HTTP/Cookies/Microsoft.pm /usr/share/perl5/HTTP/Cookies/Netscape.pm /usr/share/perl5/HTTP/Headers/Auth.pm /usr/share/perl5/HTTP/Headers/ETag.pm /usr/share/perl5/HTTP/Headers/Util.pm /usr/share/perl5/HTTP/Request/Common.pm /usr/share/perl5/LWP/Authen /usr/share/perl5/LWP/ConnCache.pm /usr/share/perl5/LWP/Debug.pm /usr/share/perl5/LWP/DebugFile.pm /usr/share/perl5/LWP/MediaTypes.pm /usr/share/perl5/LWP/MemberMixin.pm /usr/share/perl5/LWP/Protocol /usr/share/perl5/LWP/Protocol.pm /usr/share/perl5/LWP/RobotUA.pm /usr/share/perl5/LWP/Simple.pm /usr/share/perl5/LWP/UserAgent.pm /usr/share/perl5/LWP/media.types /usr/share/perl5/LWP/Authen/Basic.pm /usr/share/perl5/LWP/Authen/Digest.pm /usr/share/perl5/LWP/Authen/Ntlm.pm /usr/share/perl5/LWP/Protocol/GHTTP.pm /usr/share/perl5/LWP/Protocol/cpan.pm /usr/share/perl5/LWP/Protocol/data.pm /usr/share/perl5/LWP/Protocol/file.pm /usr/share/perl5/LWP/Protocol/ftp.pm /usr/share/perl5/LWP/Protocol/gopher.pm /usr/share/perl5/LWP/Protocol/http.pm /usr/share/perl5/LWP/Protocol/http10.pm /usr/share/perl5/LWP/Protocol/https.pm /usr/share/perl5/LWP/Protocol/https10.pm /usr/share/perl5/LWP/Protocol/loopback.pm /usr/share/perl5/LWP/Protocol/mailto.pm /usr/share/perl5/LWP/Protocol/nntp.pm /usr/share/perl5/LWP/Protocol/nogo.pm /usr/share/perl5/Mail/Address.pm /usr/share/perl5/Mail/Address.pod /usr/share/perl5/Mail/Cap.pm /usr/share/perl5/Mail/Cap.pod /usr/share/perl5/Mail/Field /usr/share/perl5/Mail/Field.pm /usr/share/perl5/Mail/Field.pod /usr/share/perl5/Mail/Filter.pm /usr/share/perl5/Mail/Filter.pod /usr/share/perl5/Mail/Header.pm /usr/share/perl5/Mail/Header.pod /usr/share/perl5/Mail/Internet.pm /usr/share/perl5/Mail/Internet.pod /usr/share/perl5/Mail/Mailer /usr/share/perl5/Mail/Mailer.pm /usr/share/perl5/Mail/Mailer.pod /usr/share/perl5/Mail/Send.pm /usr/share/perl5/Mail/Send.pod /usr/share/perl5/Mail/Sendmail.pm /usr/share/perl5/Mail/Util.pm /usr/share/perl5/Mail/Util.pod /usr/share/perl5/Mail/Field/AddrList.pm /usr/share/perl5/Mail/Field/AddrList.pod /usr/share/perl5/Mail/Field/Date.pm /usr/share/perl5/Mail/Field/Date.pod /usr/share/perl5/Mail/Field/Generic.pm /usr/share/perl5/Mail/Field/Generic.pod /usr/share/perl5/Mail/Mailer/qmail.pm /usr/share/perl5/Mail/Mailer/rfc822.pm /usr/share/perl5/Mail/Mailer/sendmail.pm /usr/share/perl5/Mail/Mailer/smtp.pm /usr/share/perl5/Mail/Mailer/smtps.pm /usr/share/perl5/Mail/Mailer/testfile.pm /usr/share/perl5/Net/HTTP /usr/share/perl5/Net/HTTP.pm /usr/share/perl5/Net/HTTPS.pm /usr/share/perl5/Net/HTTP/Methods.pm /usr/share/perl5/Net/HTTP/NB.pm /usr/share/perl5/Sys/Hostname /usr/share/perl5/Sys/Hostname/Long.pm /usr/share/perl5/Text/WrapI18N.pm /usr/share/perl5/Tie/IxHash.pm /usr/share/perl5/Time/Zone.pm /usr/share/perl5/URI/Escape.pm /usr/share/perl5/URI/Heuristic.pm /usr/share/perl5/URI/IRI.pm /usr/share/perl5/URI/QueryParam.pm /usr/share/perl5/URI/Split.pm /usr/share/perl5/URI/URL.pm /usr/share/perl5/URI/WithBase.pm /usr/share/perl5/URI/_foreign.pm /usr/share/perl5/URI/_generic.pm /usr/share/perl5/URI/_idna.pm /usr/share/perl5/URI/_ldap.pm /usr/share/perl5/URI/_login.pm /usr/share/perl5/URI/_punycode.pm /usr/share/perl5/URI/_query.pm /usr/share/perl5/URI/_segment.pm /usr/share/perl5/URI/_server.pm /usr/share/perl5/URI/_userpass.pm /usr/share/perl5/URI/data.pm /usr/share/perl5/URI/file /usr/share/perl5/URI/file.pm /usr/share/perl5/URI/ftp.pm /usr/share/perl5/URI/gopher.pm /usr/share/perl5/URI/http.pm /usr/share/perl5/URI/https.pm /usr/share/perl5/URI/ldap.pm /usr/share/perl5/URI/ldapi.pm /usr/share/perl5/URI/ldaps.pm /usr/share/perl5/URI/mailto.pm /usr/share/perl5/URI/mms.pm /usr/share/perl5/URI/news.pm /usr/share/perl5/URI/nntp.pm /usr/share/perl5/URI/pop.pm /usr/share/perl5/URI/rlogin.pm /usr/share/perl5/URI/rsync.pm /usr/share/perl5/URI/rtsp.pm /usr/share/perl5/URI/rtspu.pm /usr/share/perl5/URI/sip.pm /usr/share/perl5/URI/sips.pm /usr/share/perl5/URI/snews.pm /usr/share/perl5/URI/ssh.pm /usr/share/perl5/URI/telnet.pm /usr/share/perl5/URI/tn3270.pm /usr/share/perl5/URI/urn /usr/share/perl5/URI/urn.pm /usr/share/perl5/URI/file/Base.pm /usr/share/perl5/URI/file/FAT.pm /usr/share/perl5/URI/file/Mac.pm /usr/share/perl5/URI/file/OS2.pm /usr/share/perl5/URI/file/QNX.pm /usr/share/perl5/URI/file/Unix.pm /usr/share/perl5/URI/file/Win32.pm /usr/share/perl5/URI/urn/isbn.pm /usr/share/perl5/URI/urn/oid.pm /usr/share/perl5/WWW/RobotRules /usr/share/perl5/WWW/RobotRules.pm /usr/share/perl5/WWW/RobotRules/AnyDBM_File.pm /usr/share/perl5/XML/Twig /usr/share/perl5/XML/Twig.pm /usr/share/perl5/XML/XPathEngine /usr/share/perl5/XML/XPathEngine.pm /usr/share/perl5/XML/Twig/XPath.pm /usr/share/perl5/XML/XPathEngine/Boolean.pm /usr/share/perl5/XML/XPathEngine/Expr.pm /usr/share/perl5/XML/XPathEngine/Function.pm /usr/share/perl5/XML/XPathEngine/Literal.pm /usr/share/perl5/XML/XPathEngine/LocationPath.pm /usr/share/perl5/XML/XPathEngine/NodeSet.pm /usr/share/perl5/XML/XPathEngine/Number.pm /usr/share/perl5/XML/XPathEngine/Root.pm /usr/share/perl5/XML/XPathEngine/Step.pm /usr/share/perl5/XML/XPathEngine/Variable.pm /usr/src/linux-headers-2.6.32-5-common/arch/x86/include/asm/bitsperlong.h /usr/src/linux-headers-2.6.32-5-common/include/asm-generic/bitsperlong.h /var/cache/apt/archives/libalgorithm-diff-perl_1.19.02-2_all.deb /var/cache/apt/archives/libalgorithm-diff-xs-perl_0.04-1_i386.deb /var/cache/apt/archives/libalgorithm-merge-perl_0.08-2_all.deb /var/cache/apt/archives/libdigest-sha1-perl_2.13-1_i386.deb /var/lib/dpkg/info/libalgorithm-diff-perl.list /var/lib/dpkg/info/libalgorithm-diff-perl.md5sums /var/lib/dpkg/info/libalgorithm-diff-xs-perl.list /var/lib/dpkg/info/libalgorithm-diff-xs-perl.md5sums /var/lib/dpkg/info/libalgorithm-merge-perl.list /var/lib/dpkg/info/libalgorithm-merge-perl.md5sums /var/lib/dpkg/info/libapt-pkg-perl.list /var/lib/dpkg/info/libapt-pkg-perl.md5sums /var/lib/dpkg/info/libcairo-perl.list /var/lib/dpkg/info/libcairo-perl.md5sums /var/lib/dpkg/info/libdigest-sha1-perl.list /var/lib/dpkg/info/libdigest-sha1-perl.md5sums /var/lib/dpkg/info/libdpkg-perl.list /var/lib/dpkg/info/libdpkg-perl.md5sums /var/lib/dpkg/info/liberror-perl.list /var/lib/dpkg/info/liberror-perl.md5sums /var/lib/dpkg/info/libfile-copy-recursive-perl.list /var/lib/dpkg/info/libfile-copy-recursive-perl.md5sums /var/lib/dpkg/info/libfont-afm-perl.list /var/lib/dpkg/info/libfont-afm-perl.md5sums /var/lib/dpkg/info/libfont-freetype-perl.list /var/lib/dpkg/info/libfont-freetype-perl.md5sums /var/lib/dpkg/info/libglib-perl.list /var/lib/dpkg/info/libglib-perl.md5sums /var/lib/dpkg/info/libgnome2-canvas-perl.list /var/lib/dpkg/info/libgnome2-canvas-perl.md5sums /var/lib/dpkg/info/libgnome2-perl.list /var/lib/dpkg/info/libgnome2-perl.md5sums /var/lib/dpkg/info/libgnome2-vfs-perl.list /var/lib/dpkg/info/libgnome2-vfs-perl.md5sums /var/lib/dpkg/info/libgtk2-perl.list /var/lib/dpkg/info/libgtk2-perl.md5sums /var/lib/dpkg/info/libhtml-format-perl.list /var/lib/dpkg/info/libhtml-format-perl.md5sums /var/lib/dpkg/info/libhtml-parser-perl.list /var/lib/dpkg/info/libhtml-parser-perl.md5sums /var/lib/dpkg/info/libhtml-tagset-perl.list /var/lib/dpkg/info/libhtml-tagset-perl.md5sums /var/lib/dpkg/info/libhtml-tree-perl.list /var/lib/dpkg/info/libhtml-tree-perl.md5sums /var/lib/dpkg/info/liblocale-gettext-perl.list /var/lib/dpkg/info/liblocale-gettext-perl.md5sums /var/lib/dpkg/info/libmail-sendmail-perl.list /var/lib/dpkg/info/libmail-sendmail-perl.md5sums /var/lib/dpkg/info/libmailtools-perl.list /var/lib/dpkg/info/libmailtools-perl.md5sums /var/lib/dpkg/info/libnet-dbus-perl.list /var/lib/dpkg/info/libnet-dbus-perl.md5sums /var/lib/dpkg/info/libpango-perl.list /var/lib/dpkg/info/libpango-perl.md5sums /var/lib/dpkg/info/libperl5.10.list /var/lib/dpkg/info/libperl5.10.md5sums /var/lib/dpkg/info/libperl5.10.postinst /var/lib/dpkg/info/libperl5.10.shlibs /var/lib/dpkg/info/libsys-hostname-long-perl.list /var/lib/dpkg/info/libsys-hostname-long-perl.md5sums /var/lib/dpkg/info/libtext-charwidth-perl.list /var/lib/dpkg/info/libtext-charwidth-perl.md5sums /var/lib/dpkg/info/libtext-iconv-perl.list /var/lib/dpkg/info/libtext-iconv-perl.md5sums /var/lib/dpkg/info/libtext-wrapi18n-perl.list /var/lib/dpkg/info/libtext-wrapi18n-perl.md5sums /var/lib/dpkg/info/libtie-ixhash-perl.list /var/lib/dpkg/info/libtie-ixhash-perl.md5sums /var/lib/dpkg/info/libtimedate-perl.list /var/lib/dpkg/info/libtimedate-perl.md5sums /var/lib/dpkg/info/liburi-perl.list /var/lib/dpkg/info/liburi-perl.md5sums /var/lib/dpkg/info/libuuid-perl.list /var/lib/dpkg/info/libuuid-perl.md5sums /var/lib/dpkg/info/libwww-perl.list /var/lib/dpkg/info/libwww-perl.md5sums /var/lib/dpkg/info/libxml-parser-perl.list /var/lib/dpkg/info/libxml-parser-perl.md5sums /var/lib/dpkg/info/libxml-twig-perl.list /var/lib/dpkg/info/libxml-twig-perl.md5sums /var/lib/dpkg/info/libxml-xpathengine-perl.list /var/lib/dpkg/info/libxml-xpathengine-perl.md5sums /var/lib/dpkg/info/perl-base.list /var/lib/dpkg/info/perl-base.md5sums /var/lib/dpkg/info/perl-modules.conffiles /var/lib/dpkg/info/perl-modules.list /var/lib/dpkg/info/perl-modules.md5sums /var/lib/dpkg/info/perl-modules.postrm /var/lib/dpkg/info/perl-modules.preinst /var/lib/dpkg/info/perl.list /var/lib/dpkg/info/perl.md5sums /var/lib/dpkg/info/perl.postinst /var/lib/dpkg/info/perl.prerm /var/lib/dpkg/info/perlmagick.list /var/lib/dpkg/info/perlmagick.md5sums how the heck do i fix this problem?
Don't edit your scripts from windows.
In a - possibly futile - attempt at hacking openoffice pyuno, I have sofar succeeded in rebuilding some form of the debian openoffice packages associated with the package python-uno using the following:Code: Select allapt-get source python-uno export DEB_BUILD_OPTIONS="lang=en-US ccache nocheck" debuild -uc -us -b The build takes up about 10G of disk space and over 7 hours to construct! After the desired minor code changes, I want to make sure that ccache works, i.e. that only the required modules are compiled and/or linked. Is it a safe bet thatCode: Select alldebuild -uc -us -nc -bwill do the job? A little reassurance before risking having to redo the enitre 7 hour 10G build would be nice!! P.S. The initial debuild run did in fact generate about a 200M .ccache folder Thanks, Nick
I am not sure about debuild. But you could try using ccache whether it generated the required cache. Try "ccache -s" to print the statistics. If it works, after a new compilation, you should find a lot of increase in cache hit stats.
Hi all, I have a basic knowledge of C/C++ that has quickly failed me. In the program below (which is a piece of a larger one that I'm rewriting to C++ from plain C), I'm using stringstreams to merge file paths and file names and store them (trying to be as platform independent as possible) so that I can open them later. Unfortunately when I try to compile I get the following error three times: error: no matching function for call to ‘std::basic_ifstream<char, std::char_traits<char> >::open(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)’ The compiler (g++) tells me the lines that have problems are where the files are being opened. I know this isn't working because filename.str() doesn't seem to be a string! (I have tested this by "hard" typing the path, e.g. ifp.open("/home/user/data/") ) In the original C code, this was done using sprintf and variables filename* were defined as arrays of characters. I was hoping C++ had a better way to do this and though it exists, I'm afraid I'm missing something. Any input is appreciated Code: Select all#include <iostream> #include <fstream> #include <sstream> #include <string> #include <cstdio> #include <cstdlib> #include <cmath> #include <ctime> using namespace std ; int main() { //------Variable Declaration------// int first_file_number, last_file_number, file_counter ; string directory = "" ; stringstream filename, filenameapd1, filenameapd2, filenamefinaloutput ; //------Inputs------// cout << "type in the address of the directory where the data is held (e.g. C:\\data\\ or /home/user/data/)" << endl ; getline ( cin , directory ) ; cout << "WARNING: the data must be named as data#.asc" << endl << "begin with what file? data" ; cin >> first_file_number ; cout << "end with what file? data" ; cin >> last_file_number ; cout << "this program will sequentially analyze data" << first_file_number << " to data" << last_file_number << endl ; cout << "hit any key to continue" << endl ; cin.get() ; file_counter = first_file_number; while ( file_counter <= last_file_number ) { //------File Operations------// filename << directory << "data" << file_counter << ".asc" ; filenameapd1 << directory << "data" << file_counter << "apd1.asc" ; filenameapd2 << directory << "data" << file_counter << "apd2.asc" ; filenamefinaloutput << directory << "data" << file_counter << "finaloutput_withpowerspec.asc" ; cout << "opening file " << filename.str() << endl ; file_counter ++ ; ifstream ifp ; ofstream oAPD_1fp ; ofstream oAPD_2fp ; ifp.open ( filename.str() ) ; oAPD_1fp.open ( filenameapd1.str() ) ; oAPD_2fp.open ( filenameapd2.str() ) ; if ( !ifp.is_open() ) { cout << "the file " << filename.str() << "could not be opened" << endl ; break ; return 1 ; } } return 0 ; }
Solved by doing this: Code: Select allifp.open ( filename.str().c_str() ) ; Current standards say that fstreams must take char* arguments. Thanks to Bazzy of cplusplus.com forum
Code: Select allif [ "$#" -eq 0 ] then echo " you didn't add the file oyu want to check. do it now: " read target fi if [ -n "$1" ] then if [ -f "$1" ] then echo " target "$1" is a file" elif [ -d "$1" ] then echo "target "$1" is a directory" else echo "target dosna seem to exist" fi #elif [ -n "$target" ] # if [ -f "$target" ] # then # echo "target "$1" is a file" # elif [ -d "$target" ] # then # echo "target "$1" is a directory" # else # echo "target "$1" dosna seem to exist" # fi else echo "something went south" fi The commented elif-part is giving me an error though it looks exactly like the if [ -n "$1" ] -part Why? check0.sh: line 47: syntax error near unexpected token `else' check0.sh: line 47: `else '
You need a then after your first commented line Code: Select allelif [ -n "$target" ] then
Here's a sample function definition: Code: Select all long long *????? make_magic_square(long long size, long long array[size][size]); The question marks show the part where I'm cluless. I'm a begginer c programmer, working my way through Prata's "C primer plus" I'm one chapter behind classes, like extern, static, etc. Does the answer lie in there??
You'd just return a pointer, like with a classically allocated array. However, I think you're forgetting that VLAs don't last beyond the scope they were allocated in.
I'm installing a program in Debian Lenny. In the installation instructions is written: The binaries and executable scripts were installed in: /usr/local/sbin To be able to use the binaries from command line, make sure that '/usr/local/sbin' is set in PATH environment variable. You can check that with 'echo $PATH'. If not and you are using 'bash', open '/root/.bash_profile' and at the end add: PATH=$PATH:/usr/local/sbin export PATH I don't have a file /root/.bash_profile. I do have: /root/.bashrc and /root/.profile In none of these two files I see any reference to $PATH. In which file should I add PATH=$PATH:/usr/local/sbin export PATH
/usr/local/sbin is almost certainly in your root path already. You can check this as root Code: Select all# printenv or Code: Select allless /etc/profile If you need to add a path for root you can edit /root/.bashrc and add Code: Select allPATH=$PATH:/usr/local/sbin save the change, then run Code: Select all# source /root/.bashrc to activate the change.
Hello , I'm trying to compile Debian package of Exaile-3.1.999-rc1 on My Squeeze.But ,it fails with dh_usrlocal . Error: Code: Select allusername@dcbox:~/Desktop/builds/exaile/exaile-0.3.1.999-rc1$ dh_usrlocal dh_usrlocal: debian/exaile/usr/local/share/locale/tr/LC_MESSAGES/exaile.mo is not a directory rmdir: failed to remove `debian/exaile/usr/local/share/locale/tr/LC_MESSAGES': Directory not empty dh_usrlocal: rmdir debian/exaile/usr/local/share/locale/tr/LC_MESSAGES returned exit code 1 dh_usrlocal wants to remove files in debian/exaile/ directory.What am I missing?This source can be compiled by make && make install or make install-no-locale. Makefile for Exaile is available here: http://pastebin.ca/1884226 Thanks. Code: Select allusername@dcbox:~/Desktop/EXAILE/exaile-0.3.1.999-rc1$ dpkg-buildpackage -b -rfakeroot dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: source package exaile dpkg-buildpackage: source version 0.3.1.999-rc1-1 dpkg-buildpackage: source changed by xxx xxxxx <xyz@kxy.com> dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dh clean dh_clean debian/rules build dh build dh_testdir dh_auto_configure dh_auto_build make[1]: Entering directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1' python -m compileall -q xl xlgui python -O -m compileall -q xl xlgui make -C plugins compile make[2]: Entering directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/plugins' python -m compileall -q . python -O -m compileall -q . make[2]: Leaving directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/plugins' make -C po locale make[2]: Entering directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/po' find . -name "*.po" -exec ../tools/compilepo.sh {} \; ............................................................................................................... done. ................................................................................. done. ................................................................................................... done. ........................................................................................................................................................................... done. .................................................................................................................. done. ......................................................................................................................................................................................... done. ........................................................................................................................... done. ............................................................................................................................................ done. .......................................................................................... done. ...................................................................................................................... done. .......................................................................................................................... done. .................................................................................................. done. ....................................................................................................... done. ........................................................................................................ done. .............................................................................................. done. .................................................................................................. done. ....................................................................................................................... done. ............................................................................................................. done. ........................................................................................................ done. ..................................................................................................................................... done. ................................................................................ done. ......................................................................................................... done. ............................................................................................................... done. .................................................................................... done. ............................................................................................................................................................................................................................................................................................. done. ..................................................................................................... done. ............................................................................................... done. .......................................................................................................................... done. ......................................................................................................... done. ............................................................................................................................. done. ......................................................................................... done. ........................................................................................................ done. ........................................................................................................ done. .............................................................................................................. done. ............................................................................................................................ done. ....................................................................................................... done. ........................................................................................................... done. .......................................................................................... done. ....................................................................................................... done. ............................................................................................................................ done. ................................................................................................... done. .................................................................................................................................. done. .................................................................................................... done. .................................................................................... done. ...................................................................................................................................................................................................... done. ...................................................................................................... done. ....................................................................................................................................................... done. ....................................................................................................... done. ........................................................................................... done. ............................................................................................................................. done. ........................................................................................................................... done. ......................................................................................... done. ................................................................................................... done. ................................................................................................................................................ done. .......................................................................................... done. ............................................................................................................................. done. <stdin>:7: nplurals = 3... <stdin>:340: ...but some messages have only 2 plural forms msgfmt: found 1 fatal error ......................................................................................... done. ............................................................................................................................................................. done. ............................................................................................................................. done. ........................................................................................................................................................................ done. ............................................................................................................................................................................ done. ......................................................................................................... done. ................................................................................................... done. make[2]: Leaving directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/po' help2man -n "music manager and player" -N \ -h './exaile --help | sed "s/^ //"' \ -v './exaile --version | sed -n "4 s/.* v\\(.*\\)/exaile \\1/ p"' \ ./exaile \ | gzip -9 > exaile.1.gz Ready to install... make[1]: Leaving directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1' # Skipping dh_auto_test - empty override fakeroot debian/rules binary dh binary dh_testroot dh_prep dh_installdirs dh_auto_install make[1]: Entering directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1' mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/bin mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/metadata mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/player mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/migrations mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/migrations/database mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/migrations/settings mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/trax mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui/panel mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui/preferences mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui/widgets mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/16x16 mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/22x22 mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/24x24 mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/32x32 mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/48x48 mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/scalable mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/ui mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/ui/preferences mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/ui/widgets mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/migrations mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/migrations/migration_200907100931 mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/pixmaps mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/applications mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/man/man1 mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/etc/xdg/exaile install -m 644 exaile.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile install -m 644 xl/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl install -m 644 xl/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl install -m 644 xl/metadata/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/metadata install -m 644 xl/metadata/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/metadata install -m 644 xl/player/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/player install -m 644 xl/player/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/player install -m 644 xl/migrations/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/migrations install -m 644 xl/migrations/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/migrations install -m 644 xl/migrations/database/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/migrations/database/ install -m 644 xl/migrations/database/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/migrations/database/ install -m 644 xl/migrations/settings/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/migrations/settings/ install -m 644 xl/migrations/settings/*.py /home/v/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/migrations/settings/ install -m 644 xl/trax/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/trax install -m 644 xl/trax/*.py /home/v/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xl/trax install -m 644 xlgui/*.py[co] /home/v/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui install -m 644 xlgui/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui install -m 644 xlgui/panel/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui/panel install -m 644 xlgui/panel/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui/panel install -m 644 xlgui/preferences/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui/preferences install -m 644 xlgui/preferences/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui/preferences install -m 644 xlgui/widgets/*.py[co] /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui/widgets install -m 644 xlgui/widgets/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/lib/exaile/xlgui/widgets install -m 644 data/images/16x16/*.png /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/16x16 install -m 644 data/images/22x22/*.png /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/22x22 install -m 644 data/images/24x24/*.png /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/24x24 install -m 644 data/images/32x32/*.png /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/32x32 install -m 644 data/images/48x48/*.png /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/48x48 install -m 644 data/images/scalable/*.svg /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images/scalable install -m 644 data/images/*.png /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/images install -m 644 data/images/48x48/exaile.png \ /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/pixmaps/exaile.png install -m 644 data/ui/*.ui /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/ui install -m 644 data/ui/preferences/*.ui /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/ui/preferences install -m 644 data/ui/widgets/*.ui /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/ui/widgets install -m 644 data/migrations/*.py /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/migrations/ install -m 644 data/migrations/migration_200907100931/*.py \ /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/data/migrations/migration_200907100931/ install -m 644 data/exaile.desktop \ /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/applications/ install -m 644 exaile.1.gz /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/man/man1/ install -m 644 data/config/settings.ini /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/etc/xdg/exaile tools/generate-launcher "/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile" "/usr/local" "/lib" && \ chmod 755 /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/bin/exaile Generating launcher script make -C plugins install make[2]: Entering directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/plugins' mkdir -p /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/plugins/ for plugin in `python list.py`; do \ cp -r ${plugin} /home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/exaile/plugins/ ; \ done ; make[2]: Leaving directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/plugins' for f in `find po -name exaile.mo` ; do \ install -d -m 755 \ `echo $f | sed "s|^po|/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/locale|" | \ xargs dirname` && \ install -m 644 $f \ `echo $f | sed "s|^po|/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1/debian/exaile/usr/local/share/locale|"` ; \ done make[1]: Leaving directory `/home/mypc/Desktop/EXAILE/exaile-0.3.1.999-rc1' dh_install dh_installdocs dh_installchangelogs dh_installexamples dh_installman dh_installcatalogs dh_installcron dh_installdebconf dh_installemacsen dh_installifupdown dh_installinfo dh_pysupport dh_installinit dh_installmenu dh_installmime dh_installmodules dh_installlogcheck dh_installlogrotate dh_installpam dh_installppp dh_installudev dh_installwm dh_installxfonts dh_bugfiles dh_lintian dh_gconf dh_icons dh_perl dh_usrlocal dh_usrlocal: debian/exaile/usr/local/share/locale/tr/LC_MESSAGES/exaile.mo is not a directory rmdir: failed to remove `debian/exaile/usr/local/share/locale/tr/LC_MESSAGES': Directory not empty dh_usrlocal: rmdir debian/exaile/usr/local/share/locale/tr/LC_MESSAGES returned exit code 1 make: *** [binary] Error 1 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 mypc@dcbox:~/Desktop/EXAILE/exaile-0.3.1.999-rc1$ debian/control : Code: Select allSource: exaile Section: sound Priority: extra Maintainer: My Name <myname@address.com> Build-Depends: debhelper (>= 7.0.50~), python (>= 2.5), python-support, python-mutagen (>= 1.10), python-gst0.10, python-gtk2 (>= 2.17), python-gobject (>= 2.18), gstreamer0.10-plugins-good, python-dbus, Standards-Version: 3.8.4 Homepage: http://www.exaile.org Package: exaile Architecture: amd64 Depends: ${python:Depends}, ${misc:Depends} Description: exaile release candidate this is a test build. debian/rules: Code: Select all#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_auto_test: with dh_auto_test ,I gets some errors: http://pastebin.ca/1884230 Kindly Help.
Can't figure out Why dh_usrlocal fails; I don't know much about building python ran packages. for now ,used override_dh_usrlocal to build the package.package is built successfully. ofcourse ,binary is installed into /usr/local/bin . Wonder!because ,dh_auto_install completes without any errors.
Hi All, I've just downloaded the header files for Intel's tbb library using apt-get and there is some missing files. For example : tbb.h tbb_thread.h Did i made something wrong ?? These files are listed on the website and are supposed to be in : /usr/include/tbb http://packages.debian.org/sid/amd64/li ... v/filelist Thanks in advance. Cheers, Ash
apt-file search tbb.h libns3-dev: /usr/include/ns3/packetbb.h libtbb-dev: /usr/include/tbb/tbb.h apt-file search tbb_thread.h libtbb-dev: /usr/include/tbb/tbb_thread.h
Hey all, What am I, or my system missing here??? I've purged and reinstalled both build-essential and gcc prior to this post. So I tried compiling this: Code: Select all#include <stdio.h> int main(void) { printf("Hello World! "); return 0; } with this command line: Code: Select allgcc hello.c -o hello and got this: Code: Select allIn file included from /usr/include/stdio.h:28, from hello.c:1: /usr/include/features.h:346:25: error: sys/cdefs.h: No such file or directory In file included from /usr/include/stdio.h:34, from hello.c:1: /usr/lib/gcc/x86_64-linux-gnu/4.3.2/include/stddef.h:214: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’ In file included from hello.c:1: /usr/include/stdio.h:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’ /usr/include/stdio.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__USING_NAMESPACE_STD’ In file included from /usr/include/stdio.h:75, from hello.c:1: /usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’ /usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h: In function ‘_IO_feof’: /usr/include/libio.h:460: error: expected declaration specifiers before ‘__THROW’ /usr/include/libio.h:461: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/libio.h:463: error: storage class specified for parameter ‘_IO_peekc_locked’ /usr/include/libio.h:469: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/libio.h:470: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/libio.h:471: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/libio.h:489: error: storage class specified for parameter ‘_IO_vfscanf’ /usr/include/libio.h:491: error: storage class specified for parameter ‘_IO_vfprintf’ /usr/include/libio.h:492: error: storage class specified for parameter ‘_IO_padn’ /usr/include/libio.h:493: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’ /usr/include/libio.h:495: error: storage class specified for parameter ‘_IO_seekoff’ /usr/include/libio.h:496: error: storage class specified for parameter ‘_IO_seekpos’ /usr/include/libio.h:498: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ In file included from hello.c:1: /usr/include/stdio.h:89: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:95: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ In file included from hello.c:1: /usr/include/stdio.h:146: error: storage class specified for parameter ‘stdout’ /usr/include/stdio.h:147: error: storage class specified for parameter ‘stderr’ /usr/include/stdio.h:153: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:157: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:158: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:166: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:186: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:187: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:205: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:209: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:219: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:220: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:243: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:255: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /usr/include/stdio.h:272: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:296: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /usr/include/stdio.h:302: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /usr/include/stdio.h:306: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:313: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:315: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:324: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:328: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:339: error: storage class specified for parameter ‘printf’ /usr/include/stdio.h:342: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:348: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:354: error: storage class specified for parameter ‘vprintf’ /usr/include/stdio.h:357: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:358: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:367: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:369: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:370: error: expected declaration specifiers before ‘__END_NAMESPACE_C99’ /usr/include/stdio.h:398: error: storage class specified for parameter ‘dprintf’ /usr/include/stdio.h:402: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:413: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wur’ /usr/include/stdio.h:416: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:434: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:436: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wur’ /usr/include/stdio.h:438: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:445: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:462: error: storage class specified for parameter ‘vscanf’ /usr/include/stdio.h:462: error: expected ‘,’ or ‘;’ before ‘__wur’ /usr/include/stdio.h:467: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:490: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:494: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wur’ /usr/include/stdio.h:497: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:504: error: expected declaration specifiers before ‘__END_NAMESPACE_C99’ /usr/include/stdio.h:514: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:520: error: storage class specified for parameter ‘getchar’ /usr/include/stdio.h:521: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:533: error: storage class specified for parameter ‘getchar_unlocked’ /usr/include/stdio.h:543: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:547: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:556: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:556: error: storage class specified for parameter ‘putc’ /usr/include/stdio.h:562: error: storage class specified for parameter ‘putchar’ /usr/include/stdio.h:563: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:584: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:584: error: storage class specified for parameter ‘putc_unlocked’ /usr/include/stdio.h:585: error: storage class specified for parameter ‘putchar_unlocked’ /usr/include/stdio.h:592: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:595: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:595: error: storage class specified for parameter ‘putw’ /usr/include/stdio.h:599: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:612: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wur’ /usr/include/stdio.h:613: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:642: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:643: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:643: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wur’ /usr/include/stdio.h:652: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:653: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:653: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__wur’ /usr/include/stdio.h:657: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:668: error: storage class specified for parameter ‘puts’ /usr/include/stdio.h:675: error: expected declaration specifiers or ‘...’ before ‘FILE’ /usr/include/stdio.h:675: error: storage class specified for parameter ‘ungetc’ /usr/include/stdio.h:682: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’ /usr/include/stdio.h:688: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’ /usr/include/stdio.h:690: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:712: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’ /usr/include/stdio.h:717: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:727: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:732: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:733: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:751: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:765: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:776: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:788: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:801: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:803: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:804: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ /usr/include/stdio.h:809: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:810: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:814: error: expected declaration specifiers before ‘__BEGIN_NAMESPACE_STD’ /usr/include/stdio.h:820: error: expected declaration specifiers before ‘__END_NAMESPACE_STD’ In file included from /usr/include/stdio.h:826, from hello.c:1: /usr/include/bits/sys_errlist.h:28: error: storage class specified for parameter ‘sys_errlist’ In file included from hello.c:1: /usr/include/stdio.h:831: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:836: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:846: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token /usr/include/stdio.h:852: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:858: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__THROW’ /usr/include/stdio.h:886: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:890: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:893: error: expected ‘)’ before ‘*’ token /usr/include/stdio.h:916: error: expected declaration specifiers before ‘__END_DECLS’ hello.c:7: error: old-style parameter declarations in prototyped function definition hello.c:7: error: expected ‘{’ at end of input TIA, Barrie
Are you mixing the repositories because that can be a real problem? If you are using Stable you have to make sure that any software you use is compatible with Stable. Mixing repositories may break your system. I tried the program on my Lenny system and it worked. Code: Select alledbarx@edbarx-pc2:~$ gcc hello.c -o hello edbarx@edbarx-pc2:~$ ./hello Hello World! edbarx@edbarx-pc2:~$ Code: Select alledbarx@edbarx-pc2:~$ gcc --version gcc (Debian 4.3.2-1.1) 4.3.2 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Lenny 5.03 Openbox with gnome support Some of python-related packages installed include OpenOffice and python-numpy, although this problem was happening before I installed numpy.Code: Select all$ echo 'help("modules")' | python Please wait a moment while I gather a list of all available modules... * Detected Session: gnome * Searching for installed applications... Backend : gconf Integration : true Profile : default Adding plugin decoration (decoration) Initializing decoration options...done * NVIDIA on Xorg detected, exporting: __GL_YIELD=NOTHING * Openbox is already runningNever goes beyond this point. Only way to exit is with <ctrl>-C:Code: Select all^CTraceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site.py", line 342, in __call__ return pydoc.help(*args, **kwds) File "/usr/lib/python2.5/pydoc.py", line 1646, in __call__ self.help(request) File "/usr/lib/python2.5/pydoc.py", line 1683, in help elif request == 'modules': self.listmodules() File "/usr/lib/python2.5/pydoc.py", line 1804, in listmodules ModuleScanner().run(callback) File "/usr/lib/python2.5/pydoc.py", line 1855, in run for importer, modname, ispkg in pkgutil.walk_packages(): File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages for item in walk_packages(path, name+'.', onerror): File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages __import__(name) File "/usr/lib/python2.5/site-packages/FusionIcon/interface_gtk/__init__.py", line 3, in <module> import main File "/usr/lib/python2.5/site-packages/FusionIcon/interface_gtk/main.py", line 213, in <module> gtk.main() KeyboardInterrupt $ Anybody know what is broken?
So the fact it got stuck at the line "* Openbox is already running" made me think of switching Windows manager. First I tried metacity, and this just stopped in the same way (line "* Metacity is already running". With compiz (launched from the Compiz Fusion Icon), it got real exciting: Compiz restarted itself, but still ended up hanging until I killed it with <ctrl>-C.Code: Select all$ echo 'help("modules")' | python Please wait a moment while I gather a list of all available modules... * Detected Session: gnome * Searching for installed applications... Backend : gconf Integration : true Profile : default Adding plugin decoration (decoration) Initializing decoration options...done * NVIDIA on Xorg detected, exporting: __GL_YIELD=NOTHING * Starting Compiz ... executing: compiz.real --replace --sm-disable --ignore-desktop-hints ccp Backend : gconf Integration : true Profile : default Adding plugin move (move) Adding plugin mswitch (mswitch) Adding plugin wallpaper (wallpaper) Adding plugin fakeargb (fakeargb) Adding plugin glib (glib) Adding plugin mag (mag) Adding plugin place (place) Adding plugin workarounds (workarounds) Adding plugin crashhandler (crashhandler) Adding plugin staticswitcher (staticswitcher) Adding plugin showdesktop (showdesktop) Adding plugin fs (fs) Adding plugin colorfilter (colorfilter) Adding plugin atlantis (atlantis) Adding plugin bs (bs) Adding plugin wall (wall) Adding plugin rotate (rotate) Adding plugin firepaint (firepaint) Adding plugin scale (scale) Adding plugin expo (expo) Adding plugin neg (neg) Adding plugin blur (blur) Adding plugin mblur (mblur) Adding plugin bench (bench) Adding plugin shift (shift) Adding plugin annotate (annotate) Adding plugin trailfocus (trailfocus) Adding plugin notification (notification) Adding plugin vpswitch (vpswitch) Adding plugin dbus (dbus) Adding core settings (General Options) Adding plugin fade (fade) Adding plugin widget (widget) Adding plugin gears (gears) Adding plugin winrules (winrules) Adding plugin opacify (opacify) Adding plugin reflex (reflex) Adding plugin loginout (loginout) Adding plugin extrawm (extrawm) Adding plugin ezoom (ezoom) Adding plugin showmouse (showmouse) Adding plugin snow (snow) Adding plugin wobbly (wobbly) Adding plugin addhelper (addhelper) Adding plugin resizeinfo (resizeinfo) Adding plugin animation (animation) Adding plugin inotify (inotify) Adding plugin imgjpeg (imgjpeg) Adding plugin cubeaddon (cubeaddon) Adding plugin regex (regex) Adding plugin text (text) Adding plugin maximumize (maximumize) Adding plugin clone (clone) Adding plugin snap (snap) Adding plugin bicubic (bicubic) Adding plugin video (video) Adding plugin shelf (shelf) Adding plugin zoom (zoom) Adding plugin group (group) Adding plugin scalefilter (scalefilter) Adding plugin switcher (switcher) Adding plugin screenshot (screenshot) Adding plugin svg (svg) Adding plugin minimize (minimize) Adding plugin resize (resize) Adding plugin tile (tile) Adding plugin png (png) Adding plugin cube (cube) Adding plugin scaleaddon (scaleaddon) Adding plugin put (put) Adding plugin decoration (decoration) Adding plugin ring (ring) Adding plugin splash (splash) Adding plugin thumbnail (thumbnail) Adding plugin mousepoll (mousepoll) Adding plugin session (session) Adding plugin 3d (3d) Adding plugin fadedesktop (fadedesktop) Adding plugin water (water) Initializing core options...done Initializing move options...done Initializing place options...done Initializing staticswitcher options...done Initializing resize options...done Initializing decoration options...done Setting Update "speed" Setting Update "icon" Setting Update "command" Can anybody tell me what happens when they run help("modules") ??? Maybe I need to remove compiz from my system. It sure looks like it does some very weird things with python.
dbbolton gave me this hint to replace ding: Code: Select all#!/bin/sh # name: tranlate # path: ~/bin/translate egrep -n $1 /usr/share/trans/de-en | less exit 0 on my PC it does what it's supposed too do. on the laptop it does just the same if i run Code: Select allcd ~/bin ./translate pattern but if i run it from elsewhere Code: Select allcd /home/me translate pattern it spits out the complete content of /usr/share/trans/de-en, without piping it thru less. explainable or another miracle?
Several possibilities come to mind: Different versions of Debian have a different default shell. From Squeeze onwards /bin/sh links to dash. In earlier versions it links to bash. So there are lots of differences and I believe one difference is in extended regular expression pattern matching (egrep). I might be wrong. But you can check what /bin/sh links to on each system with Code: Select allfile /bin/sh There is also a possibility that you have a version 3 bash on one system and a version 4 bash on the other, which you can check with apt-cache policy. Again I know there are some big differences but I don't know enough about it to be useful and I might be way off the mark. edit: I read your post again and think the following is relevant and the stuff above is not. It's your path. There is a package called translate, which if installed will give you /usr/bin/translate so if this is the case you need to check if your path includes ~/bin before or after /usr/bin.
After creating applet class files using gcj-4.3, I find that machines using Sun JRE version 1.4.2_13 won't run the applets. The console message is "java.lang.UnsupportedClassVersionError: foopackage/fooclass (Unsupported major.minor version 49.0)". The java code in question was made to work for JRE 1.4, so can I get gcj-4.3 to make class files that are recognized by JRE 1.4? If not, which java compiler should I use? I guess this is giving me a clearer understanding of the claims I've heard about the java version mess. Any suggestions on how best to handle this would be greatly appreciated. Thanks in advance, Nick EDIT: Solution is to use the gcj switch -ftarget=1.4. This forces class files to be java 1.4 complient.
Hi. I've been programming Java for 12 years (from the very beginning pretty much). It's a very good language syntactically, but there are some things I don't like about it. Anyhow, I hope you enjoy Java, because I do for the most part. Let's put your gcj aside for a while. Most people use "standard" JDKs such as Sun's JDK. There are other JDKs such as OpenJDK which, I think, are considered pretty standard now. Between Java 1.4, Java 1.5, and Java 1.6, things have changed considerably. The bytecode (a .class file) that is generated by javac (the compiler program in these JDKs) has a different version number for 1.4, 1.5 and 1.6. You can run 1.4-compiled bytecode in a 1.5 or 1.6 JVM no problem. However, if you compile your Java code on 1.5 or 1.6, by default, that bytecode won't work in a 1.4 JVM. The version number of the bytecode will be greater than what a 1.4 JVM can understand. You should do a "man javac"; you'll see that there is a "-source" switch. For example you can specify "-source 1.4" in a 1.5 or higher compiler to generate bytecode that will run on a 1.4 or higher JVM. However, if your Java source code includes 1.5 or higher specific feature, the code won't compile using "-source 1.4", of course. I would really avoid gcj or whatever gcc's version of Java is called. That system is entirely different, and from my experience it does not work well at all. Every company that I've worked for that does serious Java programming avoided gcj with a 10 foot pole. I believe that gcj does something funky such as compile the Java to native code that runs directly on the CPU (not bytecode, which is interpreted). This is just not the way Java was meant to work. The applications that were more intricate, when compiled using gcj, always failed to work in my experience. You should make sure that gcj is not activated (or not installed). Do a "java -version" in your console. If you see output indicating that this is somehow related to GCC, you should configure things differently. Here are some links to help you configure your Java properly: http://wiki.debian.org/Java http://wiki.debian.org/Java/Sun Don't forget to run update-java-alternatives which is described in the second link. You should probably install OpenJDK or Sun JDK 1.6, and use the "-source" flag when using javac.
I want to convert FLAC files in a directory into MP3 in a different directory using gst-launch. I found a Gstreamer For Loop on the Internet and adapted it to my needs: Code: Select allfor song in *.flac ; do gst-launch filesrc location="$song" ! flacdec ! audioconvert ! lame quality=2 mode=0 vbr=4 vbr-quality=2 ! xingmux ! id3v2mux ! filesink location="${song/.ogg/.mp3}" ; done The loop grabs FLAC files in the current directory and stores the converted MP3's in the same directory, and I want to use different directories for the current location, the input and the output. That should be simple but it's impossible to search for information on the Internet when you have no idea about scripting. After some reading, I discovered I should search for "regular expressions" and bash replace operation, and understood the symbols used but I still need the basic concepts to do what I want. I don't know if I should edit the variable definition, the filesrc location, the filesink location or all of them. Could anyone edit the loop to suit my needs and/or provide links to the basics? Notice that I understand and defined the Gstreamer settings. I need help defining the substitution location.
try that: Code: Select allfor song in *.flac ; do gst-launch filesrc location="$song" ! flacdec ! audioconvert ! lame quality=2 mode=0 vbr=4 vbr-quality=2 ! xingmux ! id3v2mux ! filesink location="/new/path${song/.flac/.mp3}" ; done replace /new/path by the path where you want it. i don't know gst-launch, so i checked it with some othere examples. that did work. you might skip that and check the link: song is a variable (for i in *flac; for each in *flac; for whateveryouchoose in *flac). variables are called by: $variable_name; therefor its $song after the ; do the second location is the new_name, as your source is *.flac (and not *ogg) you now use ${/song/.flac/.mp3}; and not ${song/.ogg/.mp3} like in the example you linked to. to tell the new path add it in front of the variable: ${song/.flac/.mp3] -> /new/path/${song/.flac/.mp3} here is a short but easy explanation about for-loops: http://tille.garrels.be/training/bash/c ... sect_09_01 ps: i'm not that sure bout the /new/path/${song/.flac/.mp3} syntax, just change it if it doesn't work (say: /new/path${song/.flac/.mp3} or /new/path${/song/.flac/.mp3} or something like that). as said it did work here, but with a different application.
I am using bash and need to sort a bunch of numbers that look like the following example: Code: Select all9.1 9.2 ... 9.N 10.1 10.2 ... 10.N I am having trouble because the sort command either sorts by one field or the other, so if I just | sort -n I end up with Code: Select all9.1 9.20 9.21 ... 9.2 9.30 9.31 ... 9.3 ... 10.1 10.20 10.21 ... 10.2 Does anyone have a cunning way of sorting by field one and then subsorting by field 2 without losing the order of the first field? If I sort by field 2 then of course the 9 and 10 at the beginning would could out of order.
Hi. This seems to work: Code: Select all#!/usr/bin/env sh # @(#) s1 Demonstrate alternate separator for sort fields. set -o nounset echo ## Use local command version for the commands in this demonstration. echo "(Versions of codes used in this script -- local code \"version\")" version bash sort echo FILE=${1-data1} echo echo " Input data:" cat $FILE echo echo " With dot as separator:" sort -t. -n $FILE exit 0 Producing: Code: Select all% ./s1 (Versions of codes used in this script -- local code "version") GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu) sort (coreutils) 5.2.1 Input data: 9.1 9.20 9.21 9.2 9.30 9.31 9.3 10.1 10.20 10.21 10.2 With dot as separator: 9.1 9.2 9.20 9.21 9.3 9.30 9.31 10.1 10.2 10.20 10.21 See man sort for details ... cheers, drl
After much Googling, I have been unable to find what I'm looking for -- I would like to use python-gtk to create a notification popup like the one in my screenshot. Rhythmbox is able to do it without python-notify being installed on my system and I would like to know how to do that with a python gtk application.
Rythmbox does not have to be calling the Notification in python. It could be done in C++, PERL, BASH or Python. Make certain all needed libs are installed. You can have the libnotify which will work with BASH or from the Command line. You can also with the correct mods work this from PERL or Python. You could need if you work with all three Scripts....... libnotify1 libnotifybin libnotify0.4-cli libGtk2::Notify-perl libdesktop-notify-perl python-notify Bash / Command Line Code: Select allnotify-send "Alert Notification" "Important Message" Python The default stays open about 3 seconds Better to Frame the python program in a try: .......... except:Code: Select all #/usr/bin/python import pynotify try: import pynotify if pynotify.init("My Application Name"): Alert = pynotify.Notification("Alert Notification", "A Message From Your Applicaton") Alert.show() else: print "Error starting pynotify" except: print "pynotify not installed" Using a different approach to keep open until clicked. Code: Select all #!/usr/bin/python import gobject import pynotify def foo_cb(alert, action): print "%s" % (action) alert.close() loop.quit() if __name__ == '__main__': pynotify.init ("OK") loop = gobject.MainLoop () alert = pynotify.Notification("Important Alert", "This Alert will remain until you Click Ok") alert.set_urgency(pynotify.URGENCY_CRITICAL) alert.set_timeout (pynotify.EXPIRES_NEVER) alert.add_action ("blah", "OK", foo_cb) alert.show() loop.run ()
Hi to everyone, I'm trying to learn extended regular expressions but I'm feeling a little bit confused. In google I've looked how to start and all the related tools for ERE programming but I've found an infinity of ways....perl, gawk, egrep...... My idea is to make some advanced bash scripts which can also handle text patterns, text files modifications etc etc... Can someone be so kindly to clarify my doubts about ERE? Many thanks in advance.
Hmm, I would think of these as having an ascending set of capabilities. Grep is a tool that uses regular expressions to find matches. It doesn't do editing - it just scans input and returns lines that match what you are searching for (or lines that don't match a target, if you use the -v flag). Sed is a tool that uses regular expressions to edit text. It is very much line oriented - meaning it works line by line. That means that it gets complicated if you want to do editing tasks like "replace every case of 'bar' with 'buzz', but only if 'foo' appears at the start of the previous line." Gawk is GNU's implementation of awk, a full scripting language, built specifically to edit and handle text. Perl is a complete programming language. It's built-in power for text and data munging of all kinds is second to none. However, it can also do much, much more than that. (Example: you can easily write a working HTTP server or client in Perl. You can't in any awk implementation.) The varieties of regular expressions that each language handles will vary slightly. However, I wouldn't worry too much about that right away. Choose one of these and read up on it and search the web for tutorials. If you want to do significant editing of text files, I would recommend Gawk or Perl.
I couldnt find out, how to bind ctrl + s with a function. Any suggestions? I know about python-keybinder, but cant use it (Debian stable). Is there any other way?
callback function: Code: Select alldef key_press_event_cb(widget, event): from gtk.gdk import CONTROL_MASK if event.state & CONTROL_MASK: from gtk.gdk import keyval_name if keyval_name(event.keyval) == "s": print "You pressed control - s" return True return False bind to window: Code: Select allwindow.connect("key-press-event",key_press_event_cb)
Hi, I have been trying to convert the TCPEchoServer-Thread.cpp from http://cs.baylor.edu/~donahoo/practical ... practical/ to accept multiple connections. Currently it accepts multiple connections (default 5) but the clients have to wait until the first client closes the connection. I found the following example that works fine for my needs but I can't seem to get around of converting it to use threads rather than fork. Can anyone give me an example or help me to modify this please? Code: Select all/* A simple server in the internet domain using TCP The port number is passed as an argument This version runs forever, forking off a separate process for each connection */ #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> void dostuff(int); /* function prototype */ void error(char *msg) { perror(msg); exit(1); } int main(int argc, char *argv[]) { int sockfd, newsockfd, portno, clilen, pid; struct sockaddr_in serv_addr, cli_addr; if (argc < 2) { fprintf(stderr,"ERROR, no port provided "); exit(1); } sockfd = socket(AF_INET, SOCK_STREAM, 0); if (sockfd < 0) error("ERROR opening socket"); bzero((char *) &serv_addr, sizeof(serv_addr)); portno = atoi(argv[1]); serv_addr.sin_family = AF_INET; serv_addr.sin_addr.s_addr = INADDR_ANY; serv_addr.sin_port = htons(portno); if (bind(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) error("ERROR on binding"); listen(sockfd,5); clilen = sizeof(cli_addr); while (1) { newsockfd = accept(sockfd, (struct sockaddr *) &cli_addr, &clilen); if (newsockfd < 0) error("ERROR on accept"); pid = fork(); if (pid < 0) error("ERROR on fork"); if (pid == 0) { close(sockfd); dostuff(newsockfd); exit(0); } else close(newsockfd); } /* end of while */ return 0; /* we never get here */ } /******** DOSTUFF() ********************* There is a separate instance of this function for each connection. It handles all communication once a connnection has been established. *****************************************/ void dostuff (int sock) { int n; char buffer[256]; bzero(buffer,256); n = read(sock,buffer,255); if (n < 0) error("ERROR reading from socket"); printf("Here is the message: %s ",buffer); n = write(sock,"I got your message",18); if (n < 0) error("ERROR writing to socket"); } Thanks,
Code: Select allman pthreadsshould give you a good start.
I type Code: Select allgnome-schedule in Root terminal, and use crontab from the GUI of Gnome Schedule 2.0.2 to run some programs at specified time. I am facing some difficulties. The scenario is this: I use transmission BTclient as user to download torrent files. Unless I am the root I can not use gnome-schedule and crontab to run the following two codes at a specific time: Code: Select allpon dsl-provider and Code: Select allpoff dsl-provider When I am the root, I can not run Code: Select alltransmission, because my transmission configuration files are in /user/home/.config/transmission. In that case, following logic I have to use sudo to switch to user and then run transmission as a user to allow transmission to use the configuration files. But I can not combine the following two commands given in the respective man pages for my use: Code: Select all $ sudo -u yazza ls ~yazza ; to list the home directory of user yazza on a machine where the file system holding ~yazza is not exported as root: and; Code: Select alltransmission -g ~/user/home/.config/transmission ; although this code runs perfectly when I write the code from user shell. As root, I wish to use two commands together as super user.
I don't know gnome-schedule but this is simple enough with plain cron. You use root's crontab to run the root commands, and your own to run your own. Maybe you can run gnome-schedule once as root and once as user to achieve the same end, but anyway using cron is simple enough that a gui seems superfluous. Here is a very clear guide to using cron https://help.ubuntu.com/community/CronHowto
I had a look at the HOWTO thread - http://forums.debian.net/viewtopic.php?f=16&t=38976 But it doesn't seem to address my particular issue. I am running Debian Testing on my mythtv box. I use mplayer with vdpau as the option to play mythvideo files (mkv and avi). My current version of mplayer plays nicely with nvidia-libvdpau1 and nvidia-libvdpau1-driver to enable vdpau in mplayer (1:1.0.rc2svn20091101-0.0 - it was a deb from debian multimedia). The latest mplayer (testing/debain multimedia) depends on libvdpau1. Installing libvdpau1 requires that nvidia-libvdpau1 and nvidia-libvdpau1-driver are removed. The problem becomes that when this happens, mplayer can no longer play files using vdpau. However, if I download the source (apt-get source mplayer), i can configure mplayer using the --enable-vdpau option (nvidia-libvdpau1-dev is installed and NOT libvdpau1-dev). So it seems to me that the dependant libvdpau1 should not be a dependant. My ~/.mplayer/config file ensures that vdpau is used where needed. Code: Select allvo=vdpau,xv, vc=ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau, How can I build an mplayer deb that doesn't depend on libdvdpau1 (preferably with vdpau support enabled)?
I re-read the HOWTO carefully again. The source mplayer was version 1:1.0.rc2svn20091220. I first ran debchange -b -v 1:1.0.rc2svn20091222-0.0 to make sure that my build was greater than those from repos. Then I edited debian/rules (full path ../build/mplayer-dmo-1.0.rc2svn20091222/debian/rules) I went into that file and added --enable-vdpau to the end of the line CONFIG_MISC I then also edited debian/control. I removed the reference to libvdpau-dev as a dependency. I then ran dpkg-buildpackage -rfakeroot -us -uc. I installed the resultant debs (in ../build) and all is in order. No libvdpau on my system. I feel I should report this libvdpau1 issue somewhere. I suspect it will have an impact on mplayer users down the line. Any pointers as to how to go about that? EDIT: Another option is not to build with vdpau support. Instead edit debian/control and where there is a reference to libvdpau-dev in the dependencies section, change that to read libvdpau-dev | nvidia-libvdpau1-dev.
Hi, Can I use any shared library installed in /usr/lib for programming provided that I know what references are available? Basically I want to use libwbclient.so.0 (from samba/winbind) to resolve NT user/groups like in wbinfo. I have looked into the wbinfo code and used wbclient.h and have succesfully compiled but linking fails with "undefined reference" errors. (I use -lwbclient for linking). Any advice? Thanks,
You should be able to link against it if it's in the linker's path. You aren't trying to link an AMD64 program to an IA32 library, are you?
I am trying to setup kdevelop in Squeeze. When I run Automake and Friends, I get the following error. I googled several times without solving the issue. Code: Select all*** YOU'RE USING automake (GNU automake) 1.11. *** KDE requires automake 1.6.1 or newer make[1]: *** [cvs] Error 1 make: *** [all] Error 2 *** Exited with status: 2 *** Code: Select alledbarx@edbarx-pc:~$ apt-cache show automake Package: automake Priority: optional Section: devel Installed-Size: 1840 Maintainer: Eric Dorland <eric@debian.org> Architecture: all Source: automake1.11 Version: 1:1.11-1 Provides: automake1.11, automaken Depends: autoconf (>= 2.60), autotools-dev (>= 20020320.1), dpkg (>= 1.15.4) | install-info Conflicts: automake (<< 1:1.4-p5-1), automake1.10-doc, automake1.5 (<< 1.5-2), automake1.6 (<< 1.6.1-4) Filename: pool/main/a/automake1.11/automake_1.11-1_all.deb Size: 620474 EDIT: To add "SOLVED" to the title.
Sounds like KDevelop's only checking the first digit of the minor number to me.
I'm using MC (Midnight Commander) on a Debian server. When I open a directory I see: Permissions Nl Owner Group size MTime Name drwxr-xr-x 0 root etc. etc I only want to see the (file)Name column. That is how I had it before, but by accident I changed it and can't get it back. Thanks
<F9> -> Left -> Listing mode -> Brief file list is probably a solution...
Hi I've written a daemon which perform some custom tasks every minute, eg : - run some OS commands or programs - read some files (conf...) - write some others (log...) It works almost fine except that for unknown reason each daemon execution (once per minute) keep a few pipes (FIFO) opened. I can see the number growing withCode: Select all lsof | grep mydaemon | grep pipe | wc -l When the system can no longer allocate pipes, the daemon crashes I checked my code and I cannot find where I do not release the resources. I cannot narrow down the problem eg on conf files opening/closing, or OS cmd (which uses pipes) etc... So my question is : Does anyone know how to get more details regarding pipes/FIFOs opened ? "lsof" gives me some information but not enough to diagnose problem, or may be I did not use correct options. Thanks for help Tom
Perhaps, int fstat(int fd, struct stat *buf); RETURN VALUE On success, zero is returned. On error, -1 is returned, and errno is set appropriately. Peter.
Dear All, This must be a one-liner, but I cannot do this myself. Say you use subversion (http://subversion.tigris.org/) to keep some files under version control. You had your own project directory and directory containing the history of the modifications to your files under /home/john/projects and /home/john/repo. Now, you want to give both to your friend paul, who will have finally the directories /home/paul/projects and /home/paul/repo. However, now Paul cannot use subversion in his projects directory (subversion still looks for /home/john/repo, which does not exist now). How do you tell subversion it now has to look for the file history in /home/john/repo? I toyed around with --relocate, but with no success. Any help is appreciated. Cheers larry77
I'm very confused by your description. Why not simply have your friend checkout a working copy in whatever directory on his machine he wants?
Code: Select alldef read_dict(): FILE = file ("dict.txt","r") content = FILE.readlines() FILE.close for each in content: print each read_dict() doesn`t print the content of dict.txt on the screen. at this stage the content of dict.txt is just a single line: Code: Select all"this this the file of name" when i run the code outside the function it works. i don`t find the error. thanks
It works fine on my machine. Can't help, sorry.
Hi, Everyone know how to invoke a shell script the classical way: ./my_script.sh Some people use: sh my_script.sh ( i really don't see any advantages ... but that's not the matter) Recently i saw this strange way to invoke a schell script: . my_script.sh What does it mean ? I tried "which ." with no success. I'd appreciate an explanation at system level Which binary is executed behind this command ? Thank you
source command runs a script inside your current shell. http://learnlinux.tsf.org.za/courses/bu ... 10s02.html Which binary is executed behind this command ? cat the shell script to see what is binaries are being run.
after a break i started with python again: if the code looks like this Code: Select alldef save(): FILE = file("save.data.txt","a") FILE.write (" \ dunno why not work") FILE.close save() the short text is getting saved in save.data.txt if the code looks like this : Code: Select allFILE = open("save.data.txt","w") FILE.write (" \ lets see if it works \ ") FILE.close def save(): FILE = file("save.data.txt","a") FILE.write (" \ dunno why not work") FILE.close save() only the first FILE.write is getting saved, the second (save()) isn`t. also if i replace the "a" by an "w". why that? ( i know its not a real hot question, but i tried for an hour or so) greetings
I guess, it's a memory issue. This works: Code: Select alldef save1(): FILE = file("save.data.txt","a") FILE.write (" \ dunno why not work") FILE.close def save2(): FILE = open("save.data.txt","w") FILE.write (" \ lets see if it works \ ") FILE.close save2() save1()
Dear All, Something probably simple, but I know little about parallel programming. This is my problem: I need to run several applications (mostly python codes or R codes which are script but one can make then executable) located in different directories. Say you have a multicore machine (e.g. 4 CPUs): you would like to give a list of jobs and tell you machine: pick up a job per CPU and go though the list till you are done with all of them. How would you do that? Some time ago I gave parallel python (http://www.parallelpython.com/ , but now the site seems to be down) a try, but did not get much done. I now usually write a Makefile with the list of the jobs and then run make -j 4 all but sometimes it looks to me that my machine takes a long time to switch from a job to another after completion. Is there a more efficient (but not too complicated!) way of doing this? In case it matters, my typical application runs by typing ./my_python_code.py from the directory where the python code is. An example would probably save my day. Many thanks and happy 2009 to the people in this forum! larry77
In Java, you could write a multithreaded app fairly simply by writing a class that extends Thread or implements the Runnable interface. With C, you'd call the fork() and exec() system calls(fork() carves out a new process - threads are more difficult). You can spin off a process in the shell by appending the ampersand(&) to the command(this is the easiest way, if you've already got everything written and compiled). A script to launch four jobs would look like this:Code: Select all#! /bin/sh exec prog1 & exec prog2 & exec prog3 & exec prog4 &You don't always need the 'exec' part, but I don't know the rules for when you can and can't omit it(I'm pretty sure the last one always has to have it). Remember to chmod the script to make it executable.
I downloaded a file that I thought was a pdf but it is a RAR and I don't know what to use to extract it. I am not sure but it may be a windows type zip file of some type. Not much help on the web, or none that I could find. Ideas? After posting I found unRAR on Wiki and then checked the package manager and am in the proccess of installing as I post this edit. Will keep you informed Used the programs in the package manager and managed to extract the files I needed. Thanks to all who responded!
Just install unrar from the repositories. The one thing you should keep in mind is that unrar has sort of weird syntax. To extract an archive do: unrar e file.rar Just a solitary "e"--no prependend hyphen, just an e.
Dear All, I hope you will believe me if I tell you that I do not intend to start a "career" as a spammer... This is what I would need, namely a script (BASH or Python would be better for me) that logins into my work account and sends to another account an email with a given subject and body. I am planning to couple this to another script, so that if a certain event occurs, someone gets an automatically-generated email message. Can anyone help me out here? Many thanks larry77
Your script shouldn't log into the machine that sends the email; it should be on the machine that sends the email. You then set it as a cronjob for whatever days and times you want the mail to go out. Here's an example. I have an cronjob for two Perl scripts that allow me to send my wife an update from Google's weather service Monday-Friday at 3:30. The first script writes the email body to a file called 'letter', then this second Perl script sends the email out: Code: Select all#!/usr/bin/perl use warnings; use strict; use Mail::Mailer; my($mailer, $from_address, $to_address, $subject, @body, $server); open (my $fh, '/home/telemachus/letter') or die "Can't open files: $! "; $to_address = 'recipient@host.com'; $from_address = 'me@host.net'; $subject = 'Weather alert...'; @body = <$fh>; $server = 'username:password@host.net'; $mailer = Mail::Mailer->new('sendmail'); $mailer->open({ From => $from_address, To => $to_address, Subject => $subject, }) or die "Can't open:$! "; print $mailer @body; $mailer->close(); You need the Perl Mail::Mailer module to do this, but it's easily available from the CPAN. Then I create cronjobs like this: Code: Select all20 15 * * 1-5 /bin/sh -c /home/telemachus/bin/cronweather >> /home/telemachus/letter 30 15 * * 1-5 /bin/sh -c /home/telemachus/bin/mailer The first job creates the body file Monday-Friday at 3:20, and the second mails it out at 3:30. I'm sure you could do the same with Python, but I don't know the language well enough to help. Bash seems clumsy to me for something like this, but I'm sure some would disagree.
Hi, I have just started c programming under linux and need help with the following problem. I have downloaded the iptuils source code from the debian website and i have also downloaded the linux source code and installed on my current linux server. When i use make tool to build the iptuils i get following error: Code: Select allPlease, set correct KERNEL_INCLUDE make: *** [check-kernel] Error 1 Now i have linux kernel under the following dir: /usr/src/linux-source-2.6.18 The makefile has the following lines: Code: Select all# Path to parent kernel include files directory #KERNEL_INCLUDE=/usr/src/linux/include KERNEL_INCLUDE=/usr/src/linux-source-2.6.18 #LIBC_INCLUDE=/usr/include LIBC_INCLUDE=/usr/include As you can see i have changed the KERNEL_INCLUDE to the dir where i have decompressed the linux kernel but i still get the same error, i.e.: Code: Select allPlease, set correct KERNEL_INCLUDE make: *** [check-kernel] Error 1 How can i get passed this point or fix this error. Thanks for your help... Issue resolved....it was looking for autoconf.h which was in the following directory /usr/include/linux....just changed the KERNEL_INCLUDE=/usr/include and everything worked fine.... Thanks for all the help
As I recall, the source folder is usually a bad place to point to for headers. Install the appropriate linux-headers package.
Hey all, I just installed psptoolchain on my Debian machine-- I'm having some issues with it, though. I've tried to compile two separate projects and neither work. Specifically, I have the following files: main.c graphics.c // graphics library graphics.h // graphics library header game.c // game function game.h // game function header framebuffer.c framebuffer.h Makefile The graphics library, graphics.c, #includes png.h (the libpng library header) and all other files #include graphics.h. The linker error points to graphics.c as being the troublesome file and spits out a bunch of 'undefined reference' errors (followed by an 'ld returned exit 1 status' error), mentioning various libpng functions. The only thing I can think of is that the linker can't find the actual libpng libraries, though I'm not quite sure how to remedy this. Thanks so much!!
You might need to pass some more Code: Select all-I and Code: Select all-loptions to gcc.
I wrote in Python a program similar to split to split files. When I use it on a 1G .vob file to split it into 120 Mb chunks with: 1. 1 byte of RAM, it's too slow. And it's all right. 2. 1 Kb of RAM - mplayer says: can't read the file; 3. 1 Mb of RAM - everything is basically OK, only weird little squares glimpse from time to time, and that is annoying. 4. 20 Mb of RAM - I don't see anything wrong. My question is: Why does such a thing happen, and what amount of RAM is the best for file splitting?
It's OK now even with 1 Kb of RAM. Looked like I missed one byte somewhere in the second nested while loop.
Preface This is a long description but I figure it could help me when talking in IRC channels so I don't have to unintentionally spam and get kicked by the bot again. ................................................................................................... I've tried 3 different methods so far to install Eclipse followed by a PDT plugin install for PHP coding. To sum up the problem that all these 3 methods share is this Warning message I get. And after that Eclipse just dies telling me to see the log file which I don't understand. What's the proper way to install Eclipse and the PDT plugin on Debian Etch 4.01? $ /opt/eclipse/eclipse Warning: -Xms40m option not implemented in java-sablevm wrapper. Warning: -Xmx256m option not implemented in java-sablevm wrapper. .eclipse/org.eclipse.platform_3.3.0_1473617060/configuration$ gedit 1220684950704.log & Method 1 I got help from an Eclipse plugin dev on #eclipse channel. He told me that the Eclipse version 3.2 within Debian repos was pre-historic and that the sanest way to do things was to download the most up to date version from here. Eclipse+PDT all-in-one package And then unpack it and copy Eclipse folder into /opt But in order to make it work he said I needed Java6 that the Java5 in Debian repos was also pre-historic. Since I couldn't find any other Java version besides Java5 I went to #debian channel instead for some advice. Method 2 I explained my situation in #debian channel and somebody said if I wanted Debian support then I better use what's in Debian's repos. Well then I better use whatever that's in the repos then even if the Eclipse plugin dev warned me about using pre-historic software. In the end Debian support is the most important factor for me. Said and done I installed all the Sun Java5 packages there was to install from the repos and I used the outdated version of Eclipse. Everything went smoothly. But then there's the PDT plugin I wanted. To make a long story short I got some help from #eclipse to find the proper URLs to add in the Update Manager in order to install my PDT plugin. In the end it seems like all the old PDT packages that I could use for the pre-historic Eclipse version from within the Eclipse Manager is no longer supported. Method 2 didn't work. Method 3 So I tried to redo Method 1 again that was recommended by the #eclipse dev guy. This time using more up to date Java packages and this guide on google solved it. Getting Sun Java 6 on Debian 4.0 Then I downloaded the all-in-one file again Eclipse+PDT all-in-one package And then unpacked it and copied Eclipse folder into /opt and ran it. Still the same Warning message followed by a dying Eclipse. $ /opt/eclipse/eclipse Warning: -Xms40m option not implemented in java-sablevm wrapper. Warning: -Xmx256m option not implemented in java-sablevm wrapper. To summarize things here's my question again: What's the proper way to install Eclipse and the PDT plugin on Debian Etch 4.01? Method 4 There's one final resort. The #eclipse dev guy said he used method 1 successfully on Gentoo and Arch. But those distros are too difficult for me. He also said that Windows would work smoothly for this occasion. That's not a preferenced option for me. So what other easy Linux distros out there handles Java6+Eclipse+PDT the smoothest?
I think I'm gonna solve it by using VirtualBox and then running Ubuntu Hardy 8.04 from Debian Etch. Using this Eclipse+PDT guide. http://techmania.wordpress.com/2008/07/ ... lipse-pdt/
Dear All, I have just finished setting up a new box and I installed emacs22-gtk from the standard Debian testing repositories. However, when I open bash within emacs (M-x shell), if I try a simple ls command, this is what I get iselllo@lore-temp:~$ ls [0m[01;34mDesktop[0m [01;34mespresso-working[0m [01;34mmyprojects[0m [01;32mrepo.tar.gz[0m [01;34mespresso-build[0m [01;34minternet-download[0m [01;34mrepository[0m [01;34mtemp[0m [miselllo@lore-temp:~$ ls [0m[01;34mDesktop[0m [01;34mespresso-working[0m [01;34mmyprojects[0m [01;32mrepo.tar.gz[0m [01;34mespresso-build[0m [01;34minternet-download[0m [01;34mrepository[0m [01;34mtemp[0m [miselllo@lore-temp:~$ There are a lot of funny symbols looking like ^[[ . I do not know where they come from. Even after removing my .emacs file and thus taking away any customization, the problem stays there. Can anyone tell me what is going on? Cheers Larry77
Your ls is configured to color its output, though its output is connected to a text stream which has no notion of colors. It does this via ANSI escape codes (http://en.wikipedia.org/wiki/ANSI_escape_code) which are interpreted by a sufficiently clueful terminal. Your emacs is not of this category, and is printing the extraneous characters verbatim. You need to turn off colored output from ls and other commands, or teach emacs how to interpret them. Fortunately for you, this is emacs we're talking about, and almost certainly someone has already done this. Some plugin named "vt100-mode" or something like that.
I am using g++ to compile a testing c++ program. I have install the c++ environment. apt-get install build-essential gcc g++ gdb make automake autoconf libgcc1 The program is test.C #include <iostream.h> int main() { for(int i=0;i<5;i++) { cin>>i; cout<<"I is:"<<i<<endl; } return 0; } When I compile it with the command : g++ test.C -o test The error comes. test.C:1:22: error: iostream.h: No such file or directory test.C: In function ‘int main()’: test.C:5: error: ‘cin’ was not declared in this scope test.C:6: error: ‘cout’ was not declared in this scope test.C:6: error: ‘endl’ was not declared in this scope
just use Code: Select all#include <iostream> For all the standard headers (which you put in <>) you don't have to use the .h part.
I've been playing around with SDL(or trying to). However, when I try to compile the first example the dev package gives in the documentation(/usr/share/doc/libsdl1.2-dev/html[not entirely sure about last folder]) with the commandCode: Select allg++ `sdl-config --cflags` ex1-1.cpp -o ex1-1I get the errorCode: Select all/tmp/ccJAVsAm.o: In function `main': ex1-1.cpp:(.text+0x25): undefined reference to `SDL_Init' ex1-1.cpp:(.text+0x34): undefined reference to `SDL_GetError' ex1-1.cpp:(.text+0x6d): undefined reference to `SDL_Quit' collect2: ld returned 1 exit statusI can compile & assemble just fine. I even tried this involving files in the same folder(one containing a class, its header and a seperate file calling most of its functions) and recieved a similar error. If it matters(should it?), I originally installed Sidux and changed backed to Debian on this system(from time to time I end up needing to reinstall Linux, all my own fault probably). At the moment the system does not have internet access, so the packages are very piecemeal(I could probably sneak wifi, but it'd be slow, unreliable and apt-get wants to upgrade things like openoffice before it'll do anything), but the sdl-dev packages I got from the site a few days ago and, like I said, it refused to link files in the same directory. I believe I'm running gcc-4.2. I'm using a public computer and didn't think to check before I got on.
Does sdl-config have an option to output linker flags? Something like: Code: Select allg++ `sdl-config --cflags --libs` ex1-1.cpp -o ex1-1 Just a guess.
Hello, I recently installed R-reloaded-SE theme through Superkaramba, but I wanted to personalize it and started inserting some new code to the .theme file. Well, the problem is that I wanted to add a feature to display at all times the current GNU/Linux distro being used but I can't figure it out how to do it. Here is what I did until now: I know that the file /proc/version has this info, also there should be some /etc/*release file, but in Debian it seams that it was substituted by the /etc/debian-version file. Finally, I know that the command `lsb_release -d` gives this info as an output. However: (i) the debian-version file only contains the debian-version number in it so it would be incomplete; (ii) both /proc/version and lsb_release -d give output which I'd like to ignore, but I don't know how to do it. I tried to learn from grep and sed man and info pages and it seems to be a problem of using the correct options of 'sed' command in a pipe, unfortunately I simply can't understand how this command works. Anyone? BTW: (i) uname -o gives 'GNU/Linux' as an output; (ii) the output from /proc/version is: Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-18etch4) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Thu May 8 07:34:27 UTC 2008; (iii) the output from lsb_release -d is: Description: Debian GNU/Linux 4.0 (etch)
If all you want is "Debian" (or the like), try this: lsb_release -si Edit - For those who prefer to see and say "Debian GNU/Linux", this will do that: lsb_release -ds | awk '{ print $1 " " $2 }'
Dear All, I am a newbie making its first steps with Emacs. I like it quite a lot; I have recently discovered that Esc-! allows me to run bash commands, but how do I enable autocompletion then? It must be trivial, but I have not been able to find it online yet (I drowned into tons of documents...). Many thanks Larry
Download this file and put it in your site-lisp directory. http://namazu.org/~tsuchiya/elisp/shell-command.el Then put these lines in your ~/.emacs Code: Select all(require 'shell-command) (shell-command-completion-mode)
Excuse me for my lack of imagination and creativity... Is it possible to debug a program without an IDE?
I would think so... maybe with the help of a debugger
Hi, I recently tried to install/update some Mono components and received the following. Code: Select allE: mono-gac: subprocess post-installation script returned error exit status 3 E: mono-runtime: dependency problems - leaving unconfigured E: libmono-addins0.2-cil: dependency problems - leaving unconfigured E: libmono1.0-cil: dependency problems - leaving unconfigured E: libmono-addins-gui0.2-cil: dependency problems - leaving unconfigured E: libmono2.0-cil: dependency problems - leaving unconfigured E: mono-gmcs: dependency problems - leaving unconfigured E: monodoc-base: dependency problems - leaving unconfigured E: monodoc-browser: dependency problems - leaving unconfigured E: monodoc: dependency problems - leaving unconfigured I'm assuming that mono-gac has problems... but I've tried searching for information... but most results are people asking what "exit status 3" means. I've tried re-installing mono-gac but it just leads to the same result, and uninstalling looks like it wants to uninstall 1/2 my packages. (ok, I'm exaggerating :) Does anyone have any ideas? Code: Select alluname -a Linux baal 2.6.23-1-amd64 #1 SMP Fri Nov 30 12:19:15 UTC 2007 x86_64 GNU/Linux ps. Sorry if this is in the wrong forum. Couldn't decide if this was more of an 'installation' type problem or one more suited for the 'programming' forums.
When it gets to the point 'Configuring mono-gac...' what errors display there? The part of the log you've copied is only dpkg's end summary of things.
hi there at the moment, i'm playing a little bit with css style sheets. basically, all i want is a table of divs that have different background colors. my code is as follows: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>test</title> <link href="mystyle.css" rel="stylesheet" type="text/css"> </head> <body> <div id="header"> Titel </div> <div id="container"> <div id="left"> Text<br> Text<br> Text </div> <div id="right"> Navigation <div> <div> </body> </html> the css file mystyle.css contains the following code: div#header { width: 660px; margin: 0 auto; background-color: blue; } div#container { position: relative; width: 660px; margin: 0 auto; background-color: red; } div#left { position: absolute; left: 0px; top: 0px; width: 330px; background-color: white; } div#right { position: absolute; right: 0px; top: 0px; width: 330px; background-color: transparent; } the problem is that the divs inside the div "container" don't seem to be aware of the "container" in which they are embedded. the div "right" does not have the right background color. it's white but i want it to be red. this is why i set the background color in the "container" to red and to transparent in the div "right". i have no idea how to fix this. i tried a lot of things (float is another approach that i tried) but nothing worked. could it be because i'm using iceweasel (version 2 i think)? some advice would be very much appreciated. have a wonderful evening, cheers, crowhill.
I wrote this thinking it wouldn't work... But it does. Does it work in your browser? btw, this seems to work in IE 6. I haven't checked the other versions tho. Code: Select all<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>test</title> <link href="mystyle.css" rel="stylesheet" type="text/css"> </head> <body> <div id="header"> Titel </div> <div id="container"> <div id="left"> Text<br /> Text<br /> Text </div> <div id="right"> Navigation <div> <div> </body> </html> Code: Select all#header { width: 660px; background-color: blue; } #container { float: left; width: 660px; background-color: red; } #left { float: left; width: 330px; background: orange; } #right { float: left; width: 330px; background-color: green; } (edit) Ahhh yes, I remember why it works now. I floated the container along with the left and right column. Write that one down because you'll use it in horizontal <ul> menu's as well.
I've got a program I'm trying to script a front-end for, and it just asks for basic text user input. Is there any way to override user input for a program like this using bash? Or would it be easier to just re-code the original program to make it do what I want it to?
Huh? You have a program, which you are doing something to (or with) and it asks for input, but you don't want the input? Is that right? If so, remove the bit of the other program that asks for the input. Let's try again. What do you want to do and how is the other program not doing what you want it to do? Can you be more specific?
Hello, I recently bought a book on QT4 programming and am trying to compile the example code. When I run make QApplication is not recognized. I googled the problem and it appears that QTDIR is currently set for version 3. I couldn't find the procedure for changing it to version 4 though. I am currently running Debian testing and have the folders /usr/share/qt3 and /usr/share/qt4 Can anybody help me? Thank you, John Lazar
you want the export or setenv command. Try typing export QTDIR=/usr/share/qt4 and then launching the qt application. You can check that it has been set by typing echo $QTDIR.
is there a way to create a BaSH lib or reference a script in the head of a BaSH script in such a way as to include the defined functions it contains? I've never heard of this but I figured it might be worth seeing if anyone has figured out any work-arounds for this? thanks in advance.
The builtin command 'source' will load functions from a separate file into the current shell context: source filename
not sure if there is a way to do this but i figured why not ask... is there a way to change/over-write text that is echoed to a line... ??? examples: a progress bar (like wget) where you have text that is printed to a line.... then it is changed to read something else... a changed percentage, and a new line of chars to represent the progress bar. a line that reads: loading resource... and then: loading resource...done before moving on to the next line. is there a common way to do this simply using BaSH? If there is, I would greatly appreciate being pointed in the right direction. If not, I figured it was worth asking. Thanks anyway.
I'm not sure how to completely clear and change a line, but adding something to one line (as in your second example) is easy enough. If you add "-n" to the echo command, it supresses the new line. Something like this would give kind of an example of the effect:Code: Select all#!/bin/bash echo -n "loading resource..." sleep 2 echo "done" The word "done" would show up on the same line as "loading resource..." - the sleep line is just to create the dramatic pause in this example. In the real script just add "echo "done"" when you're really done.
Hello, I want to compile a simple Hello World kernel module. Unfortunately I get this message: make -C /lib/modules/2.6.18-4-686/build M=/home/dimitar/Desktop/Kernel Modules modules make[1]: Entering directory `/usr/src/linux-headers-2.6.18-4-686' make[1]: *** No rule to make target `Modules'. Stop. make[1]: Leaving directory `/usr/src/linux-headers-2.6.18-4-686' make: *** [all] Error 2 I installed kernel-headers and I know I have all files required to compile modules because I compiled ndiswrapper. Files: hello-1.c #include <linux/module.h> #include <linux/kernel.h> int init_module(void) { printk(KERN_INFO "Hello world 1. "); return 0; } void cleanup_module(void) { printk(KERN_INFO "Goodbye world 1. "); } makefile obj-m += hello-1.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean Please help me out 'cause I'm stuck here.
I changed the directory from Krenle Modules to Modules.
I've done a fresh install of Etch Beta that I've upgraded every day. Trying to compile some Fortran programmes that use the Blas and LaPack libraries, only to get the complaint /usr/bin/ld: cannot find -lblas and similar when trying to link to other libraries. But these libraries are right there in the default path, i.e. /usr/lib/libblas.so.3 etc. I've run "ldconfig -v", and those libraries are listed in the output, but still the linker complains about not being able to find them. I've tried setting the LD_LIBRARY_PATH=/lib:/usr/lib, but that didn't help either. I do note, however, that /etc/ld.so.conf includes /etc/ld.so.conf.d/i486-linux-gnu.conf, which in turn refers to the empty /usr/lib/i486-linux-gnu directory. I don't know whether or not this holds any significance. Would anyone know how I can get the linker to find these libraries in the default locations?
Answering my own question... I installed out of desperation also the *static* versions of the Blas/LaPack libs (and of g2c as well), and now the linker finds the libraries. Oh well... Yet, this is a curious state of affairs, as the man-page of ld clearly says that it will first search for static libraries (.a) in the usual places and, if it can't find what it is looking for, will then look for shared versions (.so) in those same places. Did I miss something, I wonder?
Hello! I can't seem to make a working Bash script to do the following: 1. I have a folder where multiple ZIP files are stored, all these ZIP files contain many subdirectories, so using this command will just make a big mess: for i in `find . -name "*.zip"`; do unzip -d `dirname $i` $i;done; What I want would be to unzip each folder into a directory created with mkdir with the ZIP filename as the directory name (without the ending .zip extension!) 2. Convert all PNG images into JPG in a directory with lots lots of subdirectories containing PNG images and finally removing all PNG images. 3. List all directories in a folder and adding "_old" to the end of the directory name. (I need this to separate older and newer projects) ------------------------------ I have tried many times, but with no success. I know that someone might think that I'm a Pr0-Linux user, but I'm just a normal user with nearly no knowledge about basic commands used in Linux. I appreciate it if someone could help me to make a Bash script to make my life easier; I am sure others will also benefit from it. Thanks!
rename 'y/A-Z/a-z/' *; for i in $(find -iname '*.zip'); do mkdir `basename $i .zip`; unzip -d `baseename $i .zip` $i; done EDIT: forgot about the png and old stuff, but I'm going to eat now, I'm sure you can add those things yourself, and if not you're just a forum away from help (:
I'm trying to setup an email server using "Life with qmail" as guide and I've reached the end of part 2.8.2.2 and then the following happens... Code: Select allroot@debian: /# qmailctl stop /usr/bin/qmailctl: line 108: syntax error: unexpected end of file How do I fix this? When I use ee to edit the file it's only 107 lines in the file. I've followed the instructions to the letter and even compared it with the provided script from the "Life with qmail" website... Life with qmail The script code Code: Select all#!/bin/sh # description: the qmail MTA PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin export PATH QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` case "$1" in start) echo "Starting qmail" if svok /service/qmail-send ; then svc -u /service/qmail-send /service/qmail-send/log else echo "qmail-send supervise not running" fi if svok /service/qmail-smtpd ; then svc -u /service/qmail-smtpd /service/qmail-smtpd/log else echo "qmail-smtpd supervise not running" fi if [ -d /var/lock/subsys ]; then touch /var/lock/subsys/qmail fi ;; stop) echo "Stopping qmail..." echo " qmail-smtpd" svc -d /service/qmail-smtpd /service/qmail-smtpd/log echo " qmail-send" svc -d /service/qmail-send /service/qmail-send/log if [ -f /var/lock/subsys/qmail ]; then rm /var/lock/subsys/qmail fi ;; stat) svstat /service/qmail-send svstat /service/qmail-send/log svstat /service/qmail-smtpd svstat /service/qmail-smtpd/log qmail-qstat ;; doqueue|alrm|flush) echo "Flushing timeout table and sending ALRM signal to qmail-send." /var/qmail/bin/qmail-tcpok svc -a /service/qmail-send ;; queue) qmail-qstat qmail-qread ;; reload|hup) echo "Sending HUP signal to qmail-send." svc -h /service/qmail-send ;; pause) echo "Pausing qmail-send" svc -p /service/qmail-send echo "Pausing qmail-smtpd" svc -p /service/qmail-smtpd ;; cont) echo "Continuing qmail-send" svc -c /service/qmail-send echo "Continuing qmail-smtpd" svc -c /service/qmail-smtpd ;; restart) echo "Restarting qmail:" echo "* Stopping qmail-smtpd." svc -d /service/qmail-smtpd /service/qmail-smtpd/log echo "* Sending qmail-send SIGTERM and restarting." svc -t /service/qmail-send /service/qmail-send/log echo "* Restarting qmail-smtpd." svc -u /service/qmail-smtpd /service/qmail-smtpd/log ;; cdb) tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp chmod 644 /etc/tcp.smtp.cdb echo "Reloaded /etc/tcp.smtp." ;; help) cat <<HELP stop -- stops mail service (smtp connections refused, nothing goes out) start -- starts mail service (smtp connection accepted, mail can go out) pause -- temporarily stops mail service (connections accepted, nothing leaves) cont -- continues paused mail service stat -- displays status of mail service cdb -- rebuild the tcpserver cdb file for smtp restart -- stops and restarts smtp, sends qmail-send a TERM & restarts it doqueue -- schedules queued messages for immediate delivery reload -- sends qmail-send HUP, rereading locals and virtualdomains queue -- shows status of queue alrm -- same as doqueue flush -- same as doqueue hup -- same as reload HELP ;; *) echo "Usage: $0 {start|stop|restart|doqueue|flush|reload|stat|pause|cont|cdb|queue|help}" exit 1 ;; esac exit 0
The solution was to download the the preprogrammed script from the link at Life with qmail. Apparently I managed to get something in the script that shouldn't be there because when I used the downloaded script everything worked as a charm...
Hi, I'm trying to build a package, in this case it was a kde theme called 'baghira'. When I tried to run './configure' using the prefix as shown below, the output stated that there is no acceptable C compiler found in the $PATH. Code: Select all:~/download/baghira-0.8$ ./configure --prefix=`kde-config --prefix` --disable-debug checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking for -p flag to install... yes checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for kde-config... /usr/bin/kde-config checking where to install... /usr (as requested) checking for style of include used by make... GNU checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. I checked 'config.log' but it wasn't helpful. To be sure, I tried to build a different package and I got the same error as above. I tried this: Code: Select all~$ gcc --version bash: gcc: command not found It would seems to me that I don't have the C complier, but when I do dpkg -l, these are the compilers installed on my PC: Code: Select allgcc-4.1 (4.1.1-19) gcc-4.1-base (4.1.1-19) gcj-4.1-base (4.1.1-17) These looks like the latest version of gcc compilers. Could that have caused the problem? If not, any idea what could be the problem? I'm using debian/etch by the way.
Are you positive gcc is installed? dpkg will show an 'ii' in front of the package if it is installed. Code: Select all$ dpkg -l|grep gcc ii gcc 4.1.1-15 The GNU C compiler ii gcc-3.3-base 3.3.6-15 The GNU Compiler Collection (base package) ii gcc-3.4-base 3.4.6-5 The GNU Compiler Collection (base package) ii gcc-4.1 4.1.1-21 The GNU C compiler ii gcc-4.1-base 4.1.1-21 The GNU Compiler Collection (base package) ii libgcc1 4.1.1-21 GCC support library /usr/bin/gcc should be a symlink to your gcc version: Code: Select all$ which gcc /usr/bin/gcc $ ls -la /usr/bin/gcc lrwxrwxrwx 1 root root 7 2007-01-03 05:49 /usr/bin/gcc -> gcc-4.1*