|
its urgent & no on is replying yp there . I am still waiting for somebody to assist
|
|
|
|
|
Noman, if it is that urgent, I suggest you temporarily make do with an existing script or scripts (as suitably modified), as I suggested previously, whilst proceeding to produce the necessary specification and requirements until such time that you are able to start the coding and eventual testing, then, continue to call for collaboration here and elsewhere until such time you have a product that meets your needs. If you are able to design and code, then ask question here if you run into trouble, but don't forget, we here are not mind readers, we need proper information of what might be troubling you. Also remember, any advice sought could potentially take a lot of time for replies to appear, CP is not a paid-for service.
As I suggested above, there may or may not be people interesting in pursuing such a venture, personally, I'm not. However, certainly there are suitably qualified PHP and MySQL database chaps as members here at CodeProject, but, they may already have their time committed elsewhere in both their day job and in their "private" projects, or indeed, with their family commitments.
If you can't get collaborators here or elsewhere and you become desperate, I don't care to suggest these people, but, in your case of "urgency", "RentaCoder", is an option - a poor option - but an option nonetheless.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Hi All,
Im new (Very New) to PHP. I have created a small script for use on Linux. When the script does certain things it will e-mail a user. Here i what I have so far:
$to = $email;
$subject = "Backup Account Quota Change";
$message = "The Quota for: $username has been changed\nYour new Quota is $quota";
$headers = "From: webmaster@mywebsite.com\r\nReply-To: webmaster@mywebsite.com";
$mail_sent = @mail( $to, $subject, $message, $headers );
echo $mail_sent ? "Mail sent" : "Mail failed";
Now ... How do i get it to use a remote mail server? For example our mail server is 192.168.0.11, and it needs to use a username of script.mail, and password of Password.
Could somebody also give me some idea on if this look ok? Any flaws/comments/suggestions?
Cheers
Si
|
|
|
|
|
|
I'm creating a new program. The ONLY thing which is important for me is the running time of the program. Should I use a regular expressions, or maybe should I write my own search code?
|
|
|
|
|
Stop spamming the forums. The answer is the same everywhere: the running time of the program will be much too long due to the repeated use of the same query expression.
It's time for a new signature.
|
|
|
|
|
If performance is truely the only thing which is important than write your own code.
But really is that all that matters? I think your time is worth a lot more than that. Why not use the regexp tools you have and try it out. My betting is that it will be good enough. But who knows without anything else to go on?
|
|
|
|
|
I'm creating a new program. The ONLY thing which is important for me is the running time of the program. Should I use a regular expressions, or maybe should I write my own search code?
|
|
|
|
|
Read the guidelines. Post your question in ONE forum.
btw, I can't be bothered making this reply to all your identical questions.
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
I think regular expression will do the trick
|
|
|
|
|
hello guys...i wanted to ask that what sort of application can be built using beagle board(with linux installed on it)?? Using it, can they just be embedded or they can be for a different domain as well (just like the development on Windows using MS Visual Studio)??
|
|
|
|
|
From what I've gathered, the Beagle Board is a single board computer.
Muzammil Saeed wrote: i wanted to ask that what sort of application can be built using beagle board
As seen as the Beagle Board is a computer, your question is the equivalent of saying "What programs can I write for a computer?". Just use your imagination as to what you could write for it?
Unless of course I misunderstand the question.
Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science.
WYSIWYMGIYRRLAAGW: What You See Is What You Might Get If You’re Really Really Lucky And All Goes Well.
|
|
|
|
|
Lloyd Atkinson wrote: Unless of course I misunderstand the question.
English is not my first language so hope you don't mind it. It is a single board computer. If I install Ubuntu on it, can we make all the same programs using it, just like we do it using VS 2008 on windows (of course with Mono installed on Ubuntu)??
|
|
|
|
|
Hi
I'm trying to convert a python script from blender to C++. The script is used to import 3D data from a file.
Things have been going right until I got to this part of the script:
# Generate verts and faces lists, without duplicates
verts = []
coords = {}
index = 0
for f in faces:
if f: # Line might be blank
for i, v in enumerate(f):
try:
f[i]= coords[v]
except:
f[i]= coords[v] = index
index += 1
verts.append(v)
Since I don't know python, I need help to interpretate this part of the code.
|
|
|
|
|
Hi - since my C++ is a bit rusty, I'll give you a pseudocode representation of the snippet:
for each face in faces
do
if "face is not a blank line"
then
for i = 1 to length(face)
do
v = face[i]
if v is not in coords
then
coords.add_item(key=v, value=index)
index += 1
verts.append(v)
fi
face[i] = coords.get_item(key=v)
end for
fi
end for
I think that should be it. Hope it helps.
Meh, just saw the date on this post - but now I have already typed it, so might as well submit :P
|
|
|
|
|
It's ok! And thanks, it helped!
|
|
|
|
|
hello guys ...im a newbie on linux. How can i run C++ programs on linux?? Can i get both compiler and the editor in same application (just like Turbo)??
|
|
|
|
|
Try a Google search for Linux C C++ compiler, I'm sure you will find many possibilities. My personal favourites were gcc with vi/emacs as editors, but things have progressed since those dark days of the twentieth century.
It's time for a new signature.
|
|
|
|
|
thanx......sometimes im short of tech words for such questions.thanx
|
|
|
|
|
Emacs is one such tool that can be used as a compiler and editor.
But I would stick with vi as editor and gcc command line, which is far better than any of the tools
you get.
"I'm willing to admit that I may not always be right, but I am never wrong." - Samuel Goldwyn
|
|
|
|
|
|
Eclipse/CDT is fairly easy to get to grips with if you're used to IDEs.
Anna
Tech Blog | Visual Lint
"Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"
|
|
|
|
|
Just use vi editor to create text file and save it with extension ".cpp"
Now compile it with "gcc <filename.cpp>". Then run it with "./a.out".
-By Ajay Kedare. B.Tech(IT)
|
|
|
|
|
The best and powerfull Development tool in linux is Vim
Enjoy it.
|
|
|
|
|
Hey guys,
For the last couple of hours i've been messing around with regex. I've never dared to lay my hands on this so please bare with me.
Basicly i'm trying to get some info from the following source
<random htmlcode here>
<td style="BORDER-RIGHT-STYLE:none;">
<a id="dgWachtlijstFGI_ctl03_hlVolnaam" title="Klant wijzigen" class="wl" href="javascript:
Pop(600,860,'klantwijzig','FrmKlant.aspx','?Wijzig=true&lcSchermTitel=&zoekPK=+++140+12++8',false,true); ">FIRST LINE A</a>
(SECOND LINE A)<br>
THIRD LINE A
</td>
<random htmlcode here>
<td style="BORDER-RIGHT-STYLE:none;">
<a id="dgWachtlijstFGI_ctl04_hlVolnaam" title="Klant wijzigen" class="wl" href="javascript:
Pop(600,860,'klantwijzig','FrmKlant.aspx','?Wijzig=true&lcSchermTitel=&zoekPK=+++140+12++8',false,true); ">FIRST LINE B</a>
(SECOND LINE B)<br>
THIRD LINE B
</td>
<random htmlcode here>
What i came up with this far is the following (thanks to rubular.com)
<?php
$bestand = 'output.txt';
$fd = fopen($bestand,"r");
$message = fread($fd, filesize($bestand));
$regexp = "FrmKlant.aspx.*\">(.*)<\/a>\s(.*)<br>\s(.*)\s\s(.*)";
if(preg_match_all("#$regexp#siU", $message, $matches))
{
print_r($matches);
}
?>
This actually seems to put the first and second line i need in a multidimensional array. So far so good, because i want a multidimensional array.
However, it doesn't seem to capture the 3rd line. And somehow it creates array[4]
[1] => Array ( [0] => FIRST LINE A [1] => FIRST LINE B )
[2] => Array ( [0] => (SECOND LINE A) [1] => (SECOND LINE B) )
[3] => Array ( [0] => [1] => ) [4] => Array ( [0] => [1] => )
What i'm looking for is this:
[0] => Array ( [0] => FIRST LINE A [1] => FIRST LINE B )
[1] => Array ( [0] => (SECOND LINE A) [1] => (SECOND LINE B) )
[2] => Array ( [0] => THIRD LINE A [1] => THIRD LINE B ) )
As you might have noticed, i'm lost! Any help would be greatly appreciated.
|
|
|
|