1,265 Posted Topics

Member Avatar for vathsala1

as an aside, check out TeraTerm. its probably the best Serial/FTP/SSH terminal interface available. if you're going to do any amount of serial work, you really need to get away from HyperTerm. [url]http://www.ayera.com/teraterm/[/url]

Member Avatar for jephthah
0
244
Member Avatar for bradleykirby

you could do something like [code=perl] if (str =~ /^[a-z](?:\d\w{2,6}|\w{2,6}\d|\w\d\w{1,5}|\w{2}\d\w{0,4}|\w{3}\d\w{0,3}|\w{4}\d\w{0,2}|\w{5}\d\w?)$/i) { ... stuff ... } [/code] but i would rather [code=perl] if (str =~ /^[a-z](\w{3,7})/ ) { if ($1 =! /\d/ || $1 =! /[A-Z]/ || $1 != /[a-z]/) { die "must have one number, cap, and lowercase!\n"; } ... …

Member Avatar for peter_budo
0
350
Member Avatar for josolanes

if it were me, i'd probably get on the [URL="http://www.nongnu.org/cvs/#mailinglists"]CVS help mailing list [/URL]and ask the experts if there's a way to restore. for the best chance of getting help from them, you'll want to clearly and concisely describe what exactly you had, what you did, and what you have …

Member Avatar for josolanes
0
234
Member Avatar for prade

go to this page [url]http://www.codecutter.net/tools/winbgim/[/url] get the download. the zip file contains 3 items. the files [B]winbgim.h[/B] and [B]graphics.h[/B] must be copied to your MinGW [B]include[/B] directory. the folder [B]libbgi.a[/B] must be copied to your MingW [B]lib[/B] directory. include the appropriate header files to use the functions in your program.

Member Avatar for jephthah
0
113
Member Avatar for virgin199

oh, oops. sorry for the neg rep to Robert and FBody. I'll find a post to give you green on tomorrow. maybe someone else will make your posts, above, green too. my bad.

Member Avatar for jephthah
-2
670
Member Avatar for martin314

interesting read. thanks, Martin, and welcome. Pop on by the C Forums when you feel like it. we have a special tag "gimmetehcodez" for those homework-seeking posts you enjoy.

Member Avatar for jephthah
1
165
Member Avatar for habib_parisa

maybe i'm missing some details, but it seems to me that you're trying to allocate > 5GB of ram, above and beyond whatever your operating system and its various running processes require. it looks like you dont have the RAM, so your computer faults.

Member Avatar for jephthah
0
188
Member Avatar for johndoe444

epsilon definitely depends on the application. i prefer to just hold it out at arm's length and close one eye. if it lines up, we're good. that's called "engineering approximation". but, sadly, the quality engineers don't like it. :( for large integers like factorials use a big number library, not …

Member Avatar for jephthah
0
185
Member Avatar for prade

quickheal is a virtually-unknown AV product. the few reviews i find, complain that it prone to registering false positives. some reviewers have found it makes their computer virtually unusable. I recommend you remove your crappy AV software and get something with a decent reputation. many people use AVG. I personally …

Member Avatar for Ancient Dragon
0
171
Member Avatar for scrappy57
Member Avatar for jephthah
0
389
Member Avatar for faramira

i'm sure the PHP forum will be your best source for help. good luck.

Member Avatar for jephthah
0
27
Member Avatar for ani_joe

welcome to daniweb. please familiarize yourself with the forum rules. you attract the ire of regulars when you bump old threads long dead with new questions, or otherwise "hijack" someone else's thread. Notice your question has been moved to it's own thread. as to your problem .... pthreads.h and sched.h …

Member Avatar for jephthah
0
94
Member Avatar for vegaseat

everybody loves to hate on Schildt, don't they? i think the majority of criticisms against his [I]C: A Reference Manual[/I], are trivial. I'm not saying it's a great book, and there are undoubtedly some errors, but it's not as bad as the bandwagon lined up against him would like to …

Member Avatar for mitrmkar
2
233
Member Avatar for scrappy57

as of Dec 2008, MD5 is known to be broken. Older linux distributions used MD5. Newer ones do not. the US Government declared [QUOTE][B]Do not use the MD5 algorithm[/B] Software developers, Certification Authorities, website owners, and users should avoid using the MD5 algorithm in any capacity. As previous research has …

Member Avatar for jephthah
0
81
Member Avatar for dr_michali

(1) means to not cast the return value of malloc. Simply write [icode]x=malloc (T*sizeof(float*));[/icode] instead of [icode]x=(float**) malloc (T*sizeof(float*));[/icode]. the cast is not required by the C standard and is redundant. this is at best "bad practice" and at worst can hide a serious bug if you didn't include the …

Member Avatar for dr_michali
0
232
Member Avatar for Dream2code

the "find" command can spill out a lot of garbage when searching from root if he doesnt have su permission. makes it difficult to find what you're looking for. you can suppress the warnings, tho i forget exactly how. you can [icode]man find[/icode] for details. but have you checked the …

Member Avatar for Dream2code
0
163
Member Avatar for prushik

uncool_jatish, YOU PLAGIARIZING[I] <<flower>>[/I] if you're going to beg for "ratings" by stealing someone else's work, at least have the common courtesy to paraphrase your source material rather than posting it verbatim. or do you think we're so stupid we can't find where you cut and paste from? [url]http://www.linfo.org/create_c1.html[/url] .

Member Avatar for Banfa
0
202
Member Avatar for icewolf

I've never used libcurl. I'd love to help you, but all i can do is read the libcurl example that does exactly what you're looking for, and repeat what it says, but that would be kind of dumb and a waste of everyone's time, since [URL="http://curl.haxx.se/libcurl/c/getinmemory.html"]you can just go read …

Member Avatar for icewolf
0
4K
Member Avatar for praneshss
Member Avatar for johndoe444

jatish, YOU PLAGIARIZING[I] <<teddy-bear>>[/I] if you're going to beg for "ratings" by stealing someone else's work, at least have the common courtesy to paraphrase your source material rather than posting it verbatim. or do you think we're so stupid we can't find where you cut and paste from? [url]http://www.lisha.ufsc.br/teaching/os/exercise/hello.html[/url] . …

Member Avatar for jephthah
0
255
Member Avatar for KMW12345

do you really think you have so novel an approach to STD DEV that needs to dig up a thread that is 3 years old? because i assure you the OP hasn't been wainting for 3 years for your answer. .

Member Avatar for jephthah
0
660
Member Avatar for prettyann

it's not correct to test the return value of fscanf as a NULL character. fscanf returns an int. specifically: [QUOTE]Upon successful completion, these functions return the number of successfully matched and assigned input items; this number can be 0 in the event of an early matching failure. If the input …

Member Avatar for jephthah
1
146
Member Avatar for HeavySoul

what is the value of BUFFER, that determines how many characters fgets pulls in at a time ? the target string could be hitting the fgets boundary right where the searched pattern is occuring. it might seem unlikely, but the fewer number of characters in the string being read by"fgets" …

Member Avatar for girishn
1
134
Member Avatar for antonius61

hi tony. do you guy use a scripting language like Perl or Python? i would think those language might help you move up in your job.

Member Avatar for antonius61
0
105
Member Avatar for hosamath

yeah, well you little punks need get your ass inside at night and do your homework.

Member Avatar for replicajewelry
0
484
Member Avatar for yasokrish

fread statement reads the first 40 bytes from a file and puts them in a character array called buffer. buffer is only 12 bytes in size. this situation is generally considered to be A Bad Thing.

Member Avatar for muditAggarwal
0
163
Member Avatar for rpineres

here's this template again. where is this coming from? some thread somewhere that tells you to post like this?

Member Avatar for rpineres
0
117
Member Avatar for karthiken07

It's more accurate to say that Notepad doesn't know anything about fonts. Notepad is worthless. Forget that it exists. as for creating custom documents, you [I]can [/I]use [URL="http://en.wikipedia.org/wiki/OLE_Automation"]Windows OLE Automation[/URL] to programmatically create and modify MS Office documents (Word, Excel, etc.) complete with font and formatting and graphs and images …

Member Avatar for Ancient Dragon
0
158
Member Avatar for shahab.burki
Member Avatar for jephthah
0
119
Member Avatar for Vytautas

+1 point for using code tags. :-) -1 point for not searching this website for one of many examples of the Knights Tour :-( net score: neutral :-| .

Member Avatar for jephthah
0
1K
Member Avatar for Xufyan

Xufan your codes don't work because they are wrong. Narue has given you code that works. now do the following: (1) read Narues post above and fully understand the second example with the if/else statements. (2) take the first statement with teh ? : operators, and insert parentheses around them …

Member Avatar for jephthah
0
142
Member Avatar for jephthah

Name: Jephthah Height: avg Weight: working on it. Hair: yup Eyes: 20/20 Location: Gilead Age: "get off my lawn" Hobbies: smiting Ammonites Relationship Status: yes Fav Music: NPR, i guess. It always seems to be on :-\ Education: BS in Bovinoscatology Work: *sigh* If I must. Favorite Food: all the …

0
80
Member Avatar for Xufyan

if he'd bother to pay attention in the first thread he made on this, he'd understand this already.

Member Avatar for jephthah
-2
166
Member Avatar for shamly
Member Avatar for kworcester
Member Avatar for kworcester
0
277
Member Avatar for Amu_anu

where you think you are? some sort of do-my-homework-for-me service? i'd tell you to go to the Java or C++ forum, but they'd just laugh at you if you post this "gimmetehcodez" question. when you're ready to show the work done, point out where you're stuck, and ask a coherent …

Member Avatar for jephthah
-2
100
Member Avatar for artikapri
Member Avatar for jephthah

i know the general answer to using [ICODE]goto[/ICODE] is always "No!". I understand why, especially when teaching basics to new programmers, because it can lead to very bad practices and horrible spaghetti code. but ... when i write certain hardware drivers, i have to immediately cease executing a function if …

Member Avatar for nezachem
0
137
Member Avatar for shahab.burki

well, yes, it's obvious. you dont' have to mince words about it. We can plainly see that he's misspelled "encrypt" in one of the encryption functions. "encrpyt" is not a word.

Member Avatar for shahab.burki
0
275
Member Avatar for deckchairboy
Member Avatar for bumsfeld
1
372
Member Avatar for serious01

you dont make any sense. standard C will will work on Borland just fine.

Member Avatar for jephthah
0
98
Member Avatar for Excalibur69

wow, Dutch still live in SA? i thought you all jumped ship a while back.

Member Avatar for jephthah
0
67
Member Avatar for trance girl
Member Avatar for fribacka

welcome Fribacka! stop by the C or C++ forums, and ask questions or contribute answers as you feel suited.

Member Avatar for jephthah
0
145
Member Avatar for aprogramer
Member Avatar for reeds
Member Avatar for lionaneesh

const means constant. that it won't be changed anywhere within the scope where it is implemented. if a function takes, for example, a pointer to a "const char" argument, you know you can pass in a string to that argument and your string will not be modified by the function.

Member Avatar for jephthah
0
120
Member Avatar for marinkapell1
Member Avatar for lionaneesh

this is a classic error. the macro just replaces the code in the program with your #define'd value verbatim. therefore, it's calculating according to the order of operation: [iCODE]225 / 15 * 15[/iCODE], which is 225. change your #define to [code]#define SQR(x) (x * x)[/code] .

Member Avatar for aman rathi
-1
214
Member Avatar for jasneg16

there's no reason why you should be afraid of <stdlib.h>. it won't bite you. you should not use <conio.h> that library has been obsolete for 20 years. most modern compilers do not use it. as to "how to randomize", here's the simple answer: if you want a random number from …

Member Avatar for WaltP
0
147

The End.