@Ravalon and Iamthwee
Please stop at this right now otherwise this thread would just end up being closed.....
Its good if conversations flow but going in the same flame loop round and round doesn't actually help anyone's cause.
Thank you.
@Ravalon and Iamthwee
Please stop at this right now otherwise this thread would just end up being closed.....
Its good if conversations flow but going in the same flame loop round and round doesn't actually help anyone's cause.
Thank you.
I know Ruby on Rails, but there aren't enough posts right now on DaniWeb about RoR to justify a new forum for it. It is becoming more and more popular each day, but that doesn't mean that every website needs to have a forum about it, IMO. It's not a framework that's as easy to pick up as, say, a language like PHP, which we have a forum for, and we have lots of pretty newbie PHP programmers come here. If there were RoR questions, chances are that those developers would be knowledgeable enough to seek other ways to solve their problems, like mailing lists, IRC, etc. and wouldn't come to DaniWeb, where we don't serve the hardcore programmer as much. Just my 2 cents
Very nicely put. ROR isn't something kids start dabbling with and come up with a web page which says "Hello world". It works at a much higher level where professionals adopt the framework to deploy enterprise level solutions.....
Hi, i have made a code. Its meant to announce a "Sentence" but i dont know how to make a string into a sentece. The string up to now only announces the first word of the sentece.
I would strongly recommend you to go along with Mr. Raye's advice. But still if you insist on doing it the hard way, just for the sake of doing it, here is a untested, quick fix ....
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LIMIT_LENGTH 6
int main( void )
{
char ref_str[] = "/announce " ;
char lpcLine[] = "/announce Hello there" ;
char AMsg[200]= { '\0' };
int limit = strlen(lpcLine) - strlen( ref_str ) ;
char str_limit[LIMIT_LENGTH] = { '\0' } ;
char format[BUFSIZ] = { '\0' } ;
strcpy(str_limit,itoa(limit, str_limit, 10)) ;
strcpy(format, ref_str) ;
strcat( format, "%" ) ;
strcat( format, str_limit);
strcat( format, "c" ) ;
sscanf( lpcLine, format, AMsg ) ;
printf( "%s", AMsg ) ;
return 0 ;
}
I give you a Mercedes...
I put in some coke.
John Williams -> Composer
dreams and disturb
normal person would
Crawly -> Slither
You get to record alternative rock.
I put in a lighthouse.
the second part.
You get to be Prodigious.
I put in a headphone.
any moisture left.
Spiders -> Creepy
I click the mute check box, so now the volume control has no real use.
I put in some gasoline.
Humans -> strange beings
the dishes so
How about:
"Oh well, I had to pee somewhere...." ;)
Here I have put up a small and untested code snippet which moves files in a portable way from one location to another. Just change the file paths or accept the value from user...
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
size_t len = 0 ;
const char a[] = "c:/a/a.exe" ;
const char b[] = "d:/b/b.exe" ;
char buffer[BUFSIZ] = { '\0' } ;
FILE* in = fopen( a, "rb" ) ;
FILE* out = fopen( b, "wb" ) ;
if( in == NULL || out == NULL )
{
perror( "An error occured while opening files!!!" ) ;
in = out = 0 ;
}
while( (len = fread( buffer, BUFSIZ, 1, in)) > 0 )
{
fwrite( buffer, BUFSIZ, 1, out ) ;
}
fclose(in) ;
fclose(out) ;
if( remove(a) )
{
printf( "File successfully moved. Thank you for using this mini app" ) ;
}
else
{
printf( "An error occured while moving the file!!!" ) ;
}
return 0 ;
}
Hope it helped, bye.
Insist on getting things done in a right way by your subordinates.
Alien Probe -> Test Subjects
crap out of
Lost in a Potrait - Trapt
I have a real question now: when it talks about all those moderators stepping down for "personal reasons", how come there wasn't more warning? I just looked one day, and suddenly DMR had shifted ranks from "Super mod" to "Team Colleague". I was like, "Has Dani fired DMR for playing with the polls?" And there were a whole bunch of other mods that became Team Colleagues at the same time. No going away message, nothing!
Moderators here are given real good respect and I don't recollect anyone getting fired as such. In fact its like whenever a Team Colleague feels that he is ready to take on his moderator duties, he is welcome to do so. (so much I assume).
As far as stating the reason for their leaving is concerned, it would be too err....unprofessional or call it personal if you like. Many people left because of IntelliTXT, many because they couldn't fulfill their duties or didn't have enough time.
BTW, Joey, you really have started showing a lot of interest in Modly duties and talk, is an entry in the Mod community nearby ? :twisted:
Wow, that really is some configuration. Any chance you are one of those MMORPG freaks who like the graphics to be picture perfect...;)
In short, not to bother yourself with non standard things untill you get enough understanding of how things work under the hood or the full implication of using non standard functions or untill you become expert at writing wrapper modules as per Mr. Ravalon...:D
For the time being just stay clear of non standard things, and the knowledge of what is non standard will automatically come to you.
Hell jus ain't the same without you baby (Dead Man's theory)
Naughty women are what most of the men want. :D
Murder -> Inhuman crime
Nothing special, just the normal stuff required to get the Windows up and running, getting my code compiled and for listening to songs. Plain and simple. :D
is what we
Agreed. Though I am no expert on such things but here it goes.
Command line interface via the console window and actual system functions are altogether different things. The former just provides an interface for the user of admin to type commands in which are then executed by the latter. These commands are known as system or shell commands. These commands in turn tap into the core functionality of what is known as the kernel.
When you type in console window:
command line interpreter -> invoke system commands -> tap into kernel
Whereas when calling from programs:
hardcoded string -> invoke system commands -> tap into kernel
So I wouldn't regard it as cheating, but just a logical way of invoking the system commands...
just do it.
Lips of Deceit - Avenged Sevenfold
Insensitive men are better than scheming women...;)
Heh, I sure owe you one Mr. Happygeek....:D
BTW just one point away from another Rep Medal (shiny green dot) ;)
Violation -> Against law
size_t
is a macro which is declared in stddef.h
while defined in the header file string.h
It normally amounts to the same as unsigned int or unsigned long depending on the compiler implementation. Most of the functions of string.h require size_t
hence it has been used, though you could have used even signed int and got away with it, pushing the responsibility of type conversion on our dear old compiler. :D
Friar Tuck -> Buck up
I am happy to receive an invitation from your side.
I put in some cloth.
assurance from your
Robin -> Robin Hood
Hi
Hello.
1. Are programmers the most frustrated lot among all the IT professional in the recent years?
No. With great powers come great responsibities, if you think you are frustrated for reasons known to you, the same might be applicable to your Project Manager or any other senior.
2. If yes, then what the reasons are?
Maybe lack of interest in programming or not having an inclination towards programming related things...
3. Many have been telling me that most of the graduate programmers leave the programming field for good just after 5 years on average. Is it any way true?
No not true, in fact, if you work hard you automatically get recognized as a Lead Software Engineer or Software Consultant..IT totally depends on your efforts. (pun intended)
4. If yes, then what they do after leaving programming for good?
Some business maybe...;)
5. Programmers are always under pressure form the managers and management and often feel being neglected and underpaid and overused. If this is the case, what could be the solutions?
If programmers are under pressure due to their managers, even managers are under pressure due to their superiors...Its just a vicious circle.
On a final note, good and hard working programmers are never neglected. Also programmers program due to their inherent interest in the field not only for the sake of money.
Thanks and happy new year and an error free 12 months.
Same to you...May you have a successful debugging session.
Update: 41 seconds. :D
A good way to gain some rep power Niek...:D
Maybe even I should try out your way and see how things work for me.....;)
I thought all the changes to such critical things were made in the dummy project before touching the live working code...;)
Hey, we were all newbies once!
No, I would rather put it as "genius in making...." ;)
Secondly, what features are you going to have, or what will PerlBB offer us webmasters that phpBB and the commercial vBulletin don't offer us already? You have to make some unique features in your software if you want people to choose your software instead of someone else's.
Thinking about such things when you project has just seen daylight is not such a good thing. Also addding all the customer friendly features to your software along with all the goodies would be too much for him.
MushyPea, what you need to do is gather as many people as you can for your project, get Perl intermediates interested in your project and maybe then start worrying about the customer friendly features. Visit various Perl dedicated forums, get people interested by posting about your project in their geek lounge. A good and serious helping hand is what you require at this stage since the concept has already been seeded.
Your project should basically have two things, complete working template along with a good front end (to attract people).
Hope that gives you some ideas.
Saviour of Sanity, thats what my name also stands for....
The only thing bad is the name because I think It makes people think it's one those short books that only briefly go goes thru everything .
..which it actually is since its a beginners book. Not many developers would recommend you any of the Sam's series. Ditto with Dietel. A good book for beginners of C++ is Accelerated C++ , Thinking in C++ and for intermediate programmers C++ Programming Language.
Other beginner books don't teach you C++ at the level they ought to.....
You get accused for making use of Plastic. :P
I put in Python.