General :: Numerical Encoding Of Text, By Position?
Apr 26, 2010
I have a file of words and want to encode them in a numeric form, based on position.This is best explained by example:
PEOPLE ==> 123152
Reading left to right:
P was first encountered at position 1 so it is encoded as 1.
E was first encountered at position 2 so it is encoded as 2.
[code]...
View 5 Replies
ADVERTISEMENT
Jan 1, 2010
I want to count the digits in between the text in a file.
e.g.
write down the form
2.3 3.3 3.0 505.0 0.777E-07
22.3 3.3 5.0 503.0 1.777E-04
Then read this.
How can i do the counting of these digits present in between a text in a file?
View 9 Replies
View Related
Jan 3, 2011
I just received a spreadsheet. Column B contains thousands of rows that look like this:
Giant Red Pencil 0.99
Case 2.99
Green Box 1.49
Ruler 0.59
Spiral Ring 0.10
So each cell contains the item and price. I need the corresponding cells in column C to contain only the price like this:
0.99
2.99
1.49
0.59
0.10
How do I extract just the price from column B and put it in column C ?
View 2 Replies
View Related
Jun 24, 2011
There are many plain text files which were encoded in variant charsets.
I want to convert them all to UTF-8, but before running iconv, I need to know its original encoding. Most browsers have an Auto Detect option in encodings, however, I can't check those text files one by one because there are too many.
Only having known the original encoding, I then can convert the texts by iconv -f DETECTED_CHARSET -t utf-8.
Is there any utility to detect the encoding of plain text files? It DOES NOT have to be 100% perfect, I don't mind if there're 100 files misconverted in 1,000,000 files.
View 3 Replies
View Related
Sep 3, 2010
how to search in files text that is one-byte encoding? places - search for files in gnome in ubuntu searches only utf-8 text.i know one way: install wine and total commander, then search with it. what are better ways?[URL]
View 4 Replies
View Related
Mar 23, 2011
I want to convert many text files(copied from windows workstation) into utf-8 encoding file. Yes, iconv is available for it. However, I have to give source file encoding at the command line parameters! The problem is, at most case, I am not sure the source encoding of it. And, I also want to use a script to convert many files recursively.
View 2 Replies
View Related
Jan 1, 2011
To convert a text file to postscript format is easy with groff:groff -Tps file >file.ps But what if the input file is utf-8 (with non English characters in it)? How can you specify the encoding to groff or do you have to pipe the file through some other command?
View 1 Replies
View Related
Mar 3, 2011
I was working on a text file in open office writer last night, and this morning i tried to open it and a little thing popped up saying "ASCII Filter Options," prompting me for which character set, language and default fonts I wanted to use. (only after it asked if i wanted to recover the document, which i just did since it was asking me...) Now the document, which was very important, is a scrambled bunch of random characters! I cannot find the correct character set. Why is it prompting me for which character encoding I am using in the first place?
View 6 Replies
View Related
Jul 13, 2011
I have a file like:
ER- V67
ER+ V68
ER- V69
ER+ V70
[Code]....
I am using the code:
sort -k1
but it prints it by sorting the second column.
View 8 Replies
View Related
Mar 22, 2010
I have this .txt file
3183630 R
3574216 W
5264994 M
2656889 A
I want to sort it by the numerical order of column. After sort, I wish to get output like
2656889 A
3183630 R
3574216 W
5264994 M
anyone knows how to use sort to do that? or any other command?
View 6 Replies
View Related
Jun 19, 2010
I am using some "Numerical Recipes in C" routines in my C code.(I am using ludcmp() & lubksb().)These are used to find inverse of a matrix.After compiling my c code, I get following warning messages.I have not understood them at all. What is the meaning of these and why did they pop up and how to remove them?
Code:
nrutil.h:11: warning: 'sqrarg' defined but not used
nrutil.h:14: warning: 'dsqrarg' defined but not used
[code]....
View 7 Replies
View Related
Jun 15, 2011
I can view a php page only with links browser (a text browser) But when i use firefox i got an error "Content encoding error"
View 4 Replies
View Related
Nov 10, 2010
I get this:
0000000 1202 0 0 0 0 0 0 0
0000020 141 89 63 89 141 0 0 0
[code]....
How to go from decimal to numerical values?
View 4 Replies
View Related
Jan 18, 2010
what i am trying to do is to allow the user to key in data such as "23.23" or "24" , as it is the price of certain objectsHow am i able to design a check which will allow me to prevent users from typing in input such as "ab.21" or "rfrr" as this field is purely a numerical field. The problem i am facing is i tried using this search code.
Code:
echo "read this"
read this
[code]....
View 14 Replies
View Related
Mar 10, 2009
Using PHP 5.x. I would like to sort a set of values first numerically, then alphabetically. For example, here's my code so far:
Code:
<?php
print "<p style="font-family:verdana;font-size:10pt">
";
$myArray = array("1223:starfruit", "34112:oranges", "1223:zucchini", "321:apples", "34112:pears", "1223:tomatoes");
[code]....
I have fiddled with array_multisort but I can't seem to get my head around it or the many sort routines in PHP.
View 3 Replies
View Related
Dec 28, 2010
I'm trying to convert Flac audio file to AAC file using command line. It's working fine. Now I want to do the same using fifo And it's freezing.So could you tall me what I'm doing wrong.
View 2 Replies
View Related
Sep 18, 2009
How can I add, a custom encoding to kde konsole? Is there any other way to do it, execpt recompilling the qt-3 ?
View 1 Replies
View Related
Jul 1, 2011
I'd like to improve my computer's performance by storing files' system location (e.g.: /home/user/speech.odt) and HD position (head, sector, etc) and do the computer use that info from ram memory.I have a directory with several files and when I cd and ls it, it takes a while to the computer answer me. Plus, it would return immidiate find results.
View 2 Replies
View Related
Mar 15, 2010
we have a dedicated linux server for our web hosting services which we purchased a few months ago...however the support is limited and every time we ask for assistance we are told to find the answer ourselves and pay the techies to install our solution! Anyway... we seem to have issues with character encoding on our websites - any text that isn't fully ASCII coded is outputted as funny symbols - for example:
[Code]...
View 5 Replies
View Related
Jun 29, 2010
After installing Ubuntu 10.04 on an nvidia dualmonitor system there is a weird behavior. Every program starts in the middle of the two dual monitors (overlapping both).
View 1 Replies
View Related
Dec 3, 2010
I'm using vim 7.2.330 on 64 bit ubuntu 10.04, sometime in the last week every time I reopen a file it places the cursor at the top of the file. I can see in ~/.viminfo where it's saving the last position used, but it doesn't seem to be honoring it.
View 1 Replies
View Related
Dec 5, 2010
how to pass the position to zenity to be launched specific place of X11? No info are given [URL]
View 3 Replies
View Related
Aug 8, 2011
I am trying to edit a large bunch of files. Each file has four columns and I want to get rid of the first one, but in each line the number of the first column changes. the number in the first column ranges from 1 digit to 5. For example
1 aaaaa bbbbbb ccccc
23 aaaaa bbbbbb ccccc
15343 aaaaa bbbbbb ccccc
and the desired format would be
aaaaa bbbbbb ccccc
aaaaa bbbbbb ccccc
aaaaa bbbbbb ccccc
View 2 Replies
View Related
Mar 28, 2010
Suppose the cursor position line at bottom or top. What's the vim command to get the cursor position line at the mid of the windows in vim?
View 5 Replies
View Related
May 29, 2011
I'm new to the Linux OS, and this is also my first post on this form. My question is Can you physically adjust the position of the dashboard? I'm familiar with Mac OS X where you could "Physically" adjust to the top, left, right or originally at the bottom. Is it possible and if it is, can someone explain to me the process on going about that?
View 7 Replies
View Related
Jun 7, 2011
I am only using the 128 character set defined in the original ANSI standard. But as a whole how are the files implmeneted differently. I am not concerned with the display, i.e. if a tab is displayed with 6 or 8 characters but the actual internal representation in memory
One differnce I've hear is the use of (Windows) vs. for line termination (Linux).
View 3 Replies
View Related
Nov 15, 2010
I lastly used KDE (version 1.x ). Now I'm using KDE 3.5 for several weeks and one thing really annoys me: there are a lot of programs that don't remember their last window position and/or size. They always default to a specific location/size when I close and open them again. I give you some examples:
Program that doesn't remember anything:
- Konqueror
Program that remembers window size, but not position:
- KMail
Nice Program that remembers everything:
- Basket Note Pads
Is there a way to tell these programs to remember their position/size?And a second question about konqueror: Can I tell konqueror to remember the view mode? I prefer MultiColumn view, but it always defaults to Icon view.
View 11 Replies
View Related
Jan 24, 2011
What is the vim command I have to use when I want to perform a text substitution not on the current line or on the whole document or on lines from number x to number y but just from the current cursor position down to the end (or up to the beginning) of the document?
View 1 Replies
View Related
Mar 10, 2011
I've a string "this.is.a.name", and I would like to put it in an array. But, I've like to print the output of the array as:
Code:
echo ${array[0]}
echo ${array[1]}
echo ${array[2]}
echo ${array[3]}
I've tried with
[Code]....
View 4 Replies
View Related
Aug 7, 2010
I am working in ubuntu 9.x (linux karmic kernal) .I have restored the content from CD to hard disk. In the mid way of this process, it was failed. I would like to know this below thiongs,
1) which position it got failed ?
2)Any offset option is there in linux to point the particular CD position ?
View 1 Replies
View Related