Now the file upload feature is working, I have added the correctly indented php file as an attachment on post no: 3. The attached php script will create any missing smart channel files from the equivalent yum repo files. Any new smart channel files will be placed in a /new-smart-channels subdir of the yum repos directory.
Installation Copy the attached php CLI script below to a new file, called create-smart-channels.php. Change the permissions to something like: # chown root:root create-smart-channels.php # chmod 755 create-smart-channels.php
Then place the script in the directory that contains your yum repo files, usually /etc/yum.repos.d/
If you have set any open_basedir restrictions in /etc/php.ini, you will also need to add '/etc/smart/channels/:' to the search paths to allow create-smart-channels.php to read the contents of the /etc/smart/channels/ directory.
Warning: Do not allow php access to the whole of the /etc directory. This could be a security issue. Whatever access restrictions are set with open_basedir (if any), you should override these in your httpd.conf file, to restrict apache's php module to only allow access to php files under your apache's document root. To do this, use something like this in your httpd.conf file:
<Directory /> Options None AllowOverride None Order Deny,Allow Deny from all
# these are the only directories which the apache PHP module can # have access to. This setting overrides the settings in the # global php.ini file, which applies to the CLI version of PHP .....
I am using Aten UC232A Converter to communicate with my micro-controller device using 3 wire interface ie txd, rxd and ground. Though the converter gets detected and driver loaded in my suse11.2. The operation does not work. following are the logs.
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303 pl2303 4-2:1.0: pl2303 converter detected usb 4-2: pl2303 converter now attached to ttyUSB0
I am trying to connect a Garmin eTrex to my Maverick notebook. I am using a usb to serial convertor, which appears to use a well known chip set and is recognised:
Code: Oct 22 07:44:16 scamper kernel: [ 1068.953367] usb 5-1: pl2303 converter now attached to ttyUSB0
may be an advanced question but I need to know how to do this. Here at work I am in charge of recruiting and we have about 1,000 resumes in already. All of the resumes are in a .pdf format. I need to rename every .pdf in the following format:{firstnameLastname}.pdfThe only way I know how to do this is to convert all the .pdf files to text, extract the name out of the first few lines of text, import into excel, and then use VBA to rename the files in mass:Here is my logic so far:~Deskop/a = houses all the .pdfresumesOpen terminal: Code: cd ~/Desktop/afor f in *.pdf; do pdftotext -raw $f; done That will convert all of the preceding resumes into text filesNow I would like to append the name of the text file into the last line of the text file. So, for example, for Resume1.txt, I want to append "Resume1.txt" to the last line within Resume1.txt. So after I run the command I open Resume1.txt and on the last line within I want to see "Resume1.txt" on the last line, at the end of the resume.How can I do this? I would like to use a loop and have the terminal append the filename to the body of the text file until all of the have been appended.
And I was about to install the last dependency: ATK (Accessability Toolkit).I opened the Archive Manager to extract the "atk-1.26.0.tar.gz" file (yes, I'm still switching from Windows so I'm fond of GUI), but I noticed all the text in that window was boxes, like the □ type box for every letter of text.So instead I thought it wouldn't be a big deal, because the terminal and regular windows weren't screwed up.I opened a text file in gedit (reference to commands in terminal, such as how to extract files via terminal), but yet again all of the text was □-like boxes.
EDIT1: I should note that I was trying to do this in PERL, not sure if other alternatives are more simple?EDIT2: I should note that for text file 3 (reference), it's a long list of MANY cnp_id values and their corresponoding chr, start, and end values. So, the code will have to take the cnp_id from text file 1 and/or 2 and search through textfile 3 (reference) to match on the cnp_id and then take the corresponding chr, start, and end values and add to the relevant line in the output.EDIT3: Sorry, I should mention that the text file entries are all tab-delimited.I have 3 text files:File 1:Columns represent sample IDs (sample_id) and rows represent CNP IDs (cnp_id). Cells represents the confidence level (confidence) for each sample and CNP.Quote:
cnp_idP5E6_SNP6.0_JHP5_010408.CELP5E11reh_SNP6.0_JHP5_011808.CELP7C7_SNP6.0_JHP7_021208.CEL ... etc. CNP100.0044798340.0027929510.00305613
I want a tool / library / package in C/C++/Python for basically Text to Speech - Speech to Text in Linux.I've tried pyttsx in python , but it runs only in windows as expected, in Linux (openSUSE 11.2 , the script just hangs up )festival in C. - in Ubuntu - Could not configured it successfully.
I put a text file on my desktop and added a couple lines of text with gedit. File type shows text/plain. Double-click opens the file in gedit which is what I want. I'm using the file to temporarily hold some snips of code that I copy from file to file, but when I copy some html into the file and save it, now file properties show it's text/html and a double-click opens the file in firefox, which isn't what I want. Is there some way to keep the file type from changing itself?
I'm running and XP virtual machine using KVM / QEMU. THere are time when I need to copy text from an application in the Fedora host machine and paste the text into a different app in the XP guest machine. I was able to do this using Vitualbox on an earlier version of Fedora.
i am on processing text tasks And i found that if you assign a text to a variable is chomp'ed automatically the newline
Code:
variable=$(cat file.txt)
The problem is i can only access the items/lines using:
Code:
for line in $variable do echo $line # Other commands done
how do i convert this to an indexed array. More importantly, how do i get access to individual $line[0], ..., $line[n] Another thing, if the file.txt, has lines with spaces it is a mess using the for...in..., but echoing prints line by line...o_0
Is there a simple text editor for Linux that will let you color or highlight text on demand? Something like gedit or leafpad with color? I know I can probably do this with vi or emacs, but I'm looking for something simple, need not be feature rich.
I need to insert 3-4 lines of text to the beginning of a text file. The file is a largish MYSQL dump, the result of a backup shell script. This shell script should insert the required text.I've wrestled with sed, but lost.
I have to delete a certain line of text from the a textfile via ubuntu's shell scripting.I have done research, and it seems that most people advocate the usage of sed /d option. sed makes does not edit the text file. Hence, most options I discovered involved the use of a temporary variable/textfile and then overwriting the old file with the temporary new file. Is there anyway whereby I can bypass the use of temporary storage containers? I hope there is any magical combination of commands to edit the file directly.
I want to display something in my text view widget in glade using c code. that's all right. now I need to attach a save button beneath the text view.so that on click the text view content should save as a txt file..
I want to display the contents of a particular log file (simple text file, I mean in Linux). But there is a problem: The contents need to be organized in a fixed format. Have a look at this log file:
So, while displaying the contents of above file on a web page, I want to format the field names found in the log file: User Name:, Reported Problems Description:, and Remarks:. These fields may contain a variable length of text and no specific line number is assumed for them to appear on.
Well, what I am trying to do may sound wierd to some of you. The filed "Reported Problems Description:" can possible contain text which embeds colon (.
I would like to write a text user interface (TUI) to adjust some text config files etc. Is there a tool or application for creating TUIs like this. I�m talking about those types of config tools which you see executed at first boot.
since some days I have a strange problem with KMail (1.13.5) in KDE4.5.5. When I try to copy some text from an email and past it to any other program (e.g. Openoffice), not only the marked text will be pasted, but a kind of HTML code including the text.
This bug is not OpenSuse specific. I found the same bug in a Fedora mailing list (of course, whithout an answer): Strange Copy/Paste behavior in KMail 1.13.5/Kontact 4.4.8
The new feature in Gimp 2.7 that attaches basic text formatting options (bold, italicunderline, strike-through) to the active text box is either buggy or just bad design.The text edit buttons are actually being placed on top of the text box (which contains text) instead of off to the side, and that is causing me to not be able to see the text.See screenshot for example:GIMP version: 2.7.1Am I doing something wrong or are others experiencing this too?
I am looking for a way to keep a log and make if then statements if a line exitsts in the log. I also am looking for a way to make a simple loop, like goto line number, and I also am wondering how to add/remove bits of text from a text file (plugins line in server.properties)
I am trying to find sed command combination to print out the "start command" line, the id line and all lines between "details" and "stop command" only if "error" exists. Here's the original output (test.txt):
a sed command to add a text before line number in text file? I have text file with 500 lines, and i want to add 3 more lines with text after line 300, OR before line 302, isn't no problem.
I un-installed a few files related to Java yesterday (maybe I removed something else by mistake, I don't think so but I'm having trouble reading log files) and now every piece of text, excluding text rendered by the browser from webpages, is displaying as rectangles.
Trying to start Firefox reports:
Quote:
(firefox-bin:2185): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common' (firefox-bin:2185): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin' Segmentation fault
I have a question regarding to the Graphical Splash Screen. Is their a way to show the text based startup on booting your OS? So. I don't the OpenSuse Background with the loading line. But i want the half transparent black background if possible or just the black background with all the loading texts. The black and white screen.
I typically use tcsh or bash and often want to use 'man' to review a command's options. Currently when I quit man or ctrl-C, the man text disappears and I see the scrollback buffer that was there before I performed the 'man' command. I would like to still see the 'man' text I was viewing as a reference while I'm typing the command at the command prompt without opening a second window, how can I do that?