Hi,
I am looking to develop/locate a find-replace tool for XPS documents.
Does anyone know how to detect the the fonts used within XPS Documents within C#? And also how to produce an ODTTF Fils based on TypeFace Characters/Font?
Kind regards,
Matt
...
Hello!
I have an array of strings.
How might I be able to figure out what index a string is in a array?
Thanks,
Christian Stewart
...
What I would like to script: a PHP script to find a certain string in loads of files
Is it possible to read contents of thousands of text files from another ftp server without actually downloading those files (ftp_get) ?
If not, would downloading them ONCE -> if already exists = skip / filesize differs = redownload -> search certain st...
Hello,
How would I figure out where a specific item is in an array? For instance I have an array like this:
("itemone", "someitem", "fortay", "soup")
How would I get the index of "someitem"
Thanks,
Christian Stewart
...
I'd like to know why I have a memory error with this:
The problem appears on char* value = aMap.find(keync)->second
If I put manualy char* value = "key0" it works!!!
using std::map;
map <char*, char*> aMap;
void search(const char* key) {
const int LEN = strlen(key);
char* keync = new char[LEN];
for (int i= 0; i < LEN; i...
I feel like I've seen something like this before, but not sure where and searches aren't turning up anything useful. A library like this would evaluate xpath-like string expressions that would resolve to references to actual components (if they exist) in a Flex application's display list tree.
...
Hi
I'm trying to find all long filenames in a directory using:
find . -regex './[^/]\{5,\}.txt'
According to the GNU find documentation, -regex uses emacs regex by default. So this should give me all files longer than 5 characters (excluding extension). Unfortunately it does not work. It matches nothing. I've tried various variation...
So I understand that a line such as:
find /var/log/ -mtime +60 -type f -exec ls -l {} \;
Will list all files in /var/log which were modified 60 days or more ago.
After reading through the find man page though I noticed:
Measure times (for -amin, -atime, -cmin, -ctime, -mmin, and
-mtime) from the beginning of today rather th...
My shell script:
#!/bin/bash
if [ $# -lt 2 ]
then
echo "$0 : Not enough argument supplied. 2 Arguments needed."
echo "Argument 1: -d for debug (lists files it will remove) or -e for execution."
echo "Followed by some path to remove files from. (path of where to look) "
exit 1
fi
if test $1 == '-d'
then
find $2 -mmi...
Single Table Inheritance using ActiveRecord. Since we can use @test = Employee.all and find all the employees created. How does rails do this? Since we only use a User Table. How does it know about employees and retrieve only employees? Rails Magic? Explanation anyone? Thank you in advance.
Base Class : Person (inherits ActiveRecord)
Su...
I have a string (not xml )
<headername>X-Mailer-Recptid</headername>
<headervalue>15772348</headervalue>
</header>
from this, i need to get the value 15772348, that is the value of headervalue. How is possible?
...
There is no utilites like find, grep , "ls -laR" to find files in Android os. IS there a way or is there a list of current default files in the os file system hierarchy?
...
hi dear friends and good morning
The following question may be complicated and critical for my systems
I have 4 Linux machines with cluster
My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system
remark: need to scan each file in the linux system and verify if the file include IP address if ye...
Hi folks,
On unix-like systems we have apropos to search the manual page names and descriptions so we can find context related information.
For example apropos delete would give me a list of all kinds of software related to "deleting" stuff. Does anybody know if that already exist for Python or do I have to code it?
What I basically w...
I want to create a model, "Whitelist" to build a list of users that I do not want displayed in my main model, "User".
Example Controller
def index
@users = User.find(:all) #These are to be filtered behind the scenes in the model
end
Example Model
class User ActiveRecord::Base
has_many :whitelist
def self.find
#Add somethi...
I'm using ActiveRecord and Ruby (outside of Rails) to track some statistics.
I added a method (total_cost) to one of my models to do calculations using a couple of the columns in the current model as well as a column from another model.
I'd really like to be able to use some of ActiveRecord's provisions for math (averaging, sums) and ...
Hi,
I'm building my first Rails project - its a ToDo app, which are supposed to send out warnings when a Task are X minutes from its deadline.
Im trying to create a variabel with the tasks that are X minutes from its deadline. The X minutes are diffrent for every Task - which means that its stored in the database. So I got two columns ...
I have a find command that I would like to sort such that entries for certain directories are sorted last. The reason is that this list is to be passed to etags to create a tags table and I would like certain third-party tool directories to be after all the code I actively edit.
Can someone suggest a good easy way in to sort the list a...
The documentation for Python 2.7 lists string.find as a deprecated function but does not (unlike atoi and atol) provide an alternative.
I'm coding in 2.7 at the moment so I'm happy to use it but I would like to know:
what is it going to be replaced with?
is that usable in 2.7 (if so, I'll use it now so as to avoid recoding later)?
...
Hello,
I want to know the positions of the "_" in a string:
string str("BLA_BLABLA_BLA.txt");
Something like:
string::iterator it;
for ( it=str.begin() ; it < str.end(); it++ ){
if (*it == "_") //this goes wrong: pointer and integer comparison
{
pos(1) = it;
}
cout << *it << endl;
}
Thanks,
André
...