Search Results

Search: Posts Made By: robfwauk
Forum: Programming 03-07-2012
1,410
Posted By robfwauk
Playing Video with MinGW and SDL
Hi All,

I was wondering if someone could clarify the best way to display mpeg video with SDL in MinGW.

After scouring the internet it seems there is not a lot of information regarding this...
Forum: Web Development 01-03-2012
1,863
Posted By robfwauk
Works like a charm, thanks alot :)
Works like a charm, thanks alot :)
Forum: Web Development 01-03-2012
1,863
Posted By robfwauk
Dynamic Hyperlink
Hi Guys/ Gals,

I am trying to create a link based on the current date however it doesnt seem to work.

Could someone please point me in the right direction.

Here is what i have so far..

...
1,772
Posted By robfwauk
Try parsing the value to the second file.. ...
Try parsing the value to the second file..


file1.sh:
#!/bin/sh
echo "Give the type"
read TYPE
./file2.sh ${TYPE}


file2.sh
#!/bin/sh
echo "$1"
Forum: Programming 10-21-2011
1,382
Posted By robfwauk
Try it yourself first. If you get stuck then show...
Try it yourself first. If you get stuck then show what you have done and we can point you in the right direction.
Forum: Programming 06-14-2011
1,309
Posted By robfwauk
Is Drive Valid Segfault
I have a program that allows users to specify the debug log file location and name.

I have tried using the access() and stat() but they both segfault if the drive say (d:\) is invalid. Both seem...
Forum: Programming 04-21-2011
2,968
Posted By robfwauk
hahaha how did i miss that. Thanks everyone,...
hahaha how did i miss that. Thanks everyone, really appreciate your help :)
Forum: Programming 04-21-2011
2,968
Posted By robfwauk
//populate result sprintf(result,...
//populate result
sprintf(result, "%s</field>\n", newtmp);
//copy result to this_line and output to file at later time.
sprintf(this_line, "%s", result);

I also need to be able to keep all tab...
Forum: Programming 04-21-2011
2,968
Posted By robfwauk
Hey Corona688, thanks for you help. So i now...
Hey Corona688, thanks for you help.

So i now have:-


//Global Declarations
char sSearchString[1024] = {0,};
char *result;




FILE *istream;
while(!feof(istream)) //main loop
{
char...
Forum: Programming 04-20-2011
2,968
Posted By robfwauk
Im looping through an xml file and using fgets on...
Im looping through an xml file and using fgets on the line storing it in a char *thisline[1024]. There will only ever be one tag on each line.
Forum: Programming 04-20-2011
2,968
Posted By robfwauk
Substring between XML
Hey Everyone,

Does anyone know if its possible to perform a substr on a value between an xml node

i.e.

<field="tmp">replace me</field>

I need to be able replace the value inside the tag...
1,603
Posted By robfwauk
Thanks Franklin52, this was exactly what i needed.
Thanks Franklin52, this was exactly what i needed.
27,966
Posted By robfwauk
within your main script call the R script like...
within your main script call the R script like so..


./R.sh $value


Which will parse whatever you have set $value as into R.sh.

Then in R.sh $1 will be whatever that first parameter is.
1,603
Posted By robfwauk
Readline Formatting
Hi All,

I have a function that loops through an XML file line by line and spits it the content out to a new file (sometimes certain lines need changing). This all works fine, however the...
1,453
Posted By robfwauk
@DGPickett where you $newvalue i actually...
@DGPickett

where you $newvalue i actually need this value to be pulled from another file.

Basically i have a second file with say 10 rows containing value1, value2 etc. I need (for every row...
1,453
Posted By robfwauk
Overriding XML File
Hi All,

I have an XML file (normally >3mb). I need to loop through this and override with some new (correct) values.

Here is a row of data:-
<row>
<field name="ID">1</field>
<field...
5,530
Posted By robfwauk
make sure you use ` instead of ' or "
make sure you use ` instead of ' or "
5,530
Posted By robfwauk
a1=`expr ${old} / 50`
a1=`expr ${old} / 50`
4
1,079
Posted By robfwauk
man grep | grep "\-D"
man grep | grep "\-D"
1,274
Posted By robfwauk
whats the job title? Doing some background...
whats the job title? Doing some background research on the company and its history is always useful. Also, think of questions you may want to ask them
2,521
Posted By robfwauk
Save a list of the directory just before the...
Save a list of the directory just before the copy, then loop through that list.

If your still having trouble, post the script you have tried
1,909
Posted By robfwauk
Sounds like you havent got NCopy installed ...
Sounds like you havent got NCopy installed

Example:-

http://joysofprogramming.com/install-libfile-ncopy-perl-ubuntu/
Forum: Programming 03-09-2011
3,612
Posted By robfwauk
I would nest the if statement in {} brackets, not...
I would nest the if statement in {} brackets, not sure if that matters, probably me being OCD :P

Anyway, you cannot be certain that the first number is smaller that the second number entered, so...
Forum: Programming 03-09-2011
3,612
Posted By robfwauk
change if (i=j) std::cout << "They...
change

if (i=j)
std::cout << "They are equal" << std::endl;
else {


to

if (i==j)
{
std::cout << "They are equal" << std::endl;
}
else {


------------------------
...
1,090
Posted By robfwauk
Im guessing the easiest way would be to put the...
Im guessing the easiest way would be to put the dbox.sh script in /usr/bin

Assuming that the file is always being copied to the same location your script would then do something like this..

run...
Showing results 1 to 25 of 42

 
All times are GMT -4. The time now is 11:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy