506 Posted Topics

Member Avatar for sivakaranlk

Try [URL="http://www.daniweb.com/forums/announcement9-2.html"]this[/URL].

Member Avatar for thekashyap
0
31
Member Avatar for aswin_agarwal

Use grep (obviously). Option -f might be of interest if ids.txt has needed format (one search pattern per line). If it doesn't have the needed format you might wanna set it up right using sed or something. Assuming all your numbered input dat files are in "." [CODE] grep -f …

Member Avatar for thekashyap
0
89
Member Avatar for Covinus

Surprising Salem didn't comment on this.. :) [PS: those wondering why, see his icon/avatar]

Member Avatar for Tom Gunn
1
1K
Member Avatar for thekashyap

------------------------------------------------------------ [COLOR=Blue][B]Intro:[/B][/COLOR] This is a small program that measures the performance of given java classes. In snippet there are 2 classes: 1. TestClass.java contains all java classes that are being measured for performance, I've picked up Narue's Sorting Algorithms as AUT (application under test) 2. AJPerf.java: contains the aspect that …

Member Avatar for thekashyap
0
150
Member Avatar for thekashyap

Hi *, Here is a small program I had created to search for a given .class file within given CLASSPATH. It is primarily used in our project on test machines where lotsa ppl put lotsa patches in lotsa paths/jars and finally end up wondering which class file is being used. …

0
211
Member Avatar for Dave Sinkula

Couldn't help notice such an interesting thread.. :).. as a smoker I also have a few things to add.. [quote=christina>you;393896]The problem is, children are more likely to smoke if their parents do.[/quote] NOT true. My granpa was the only one in my family (ALL his descendants) who smoked. In fact …

Member Avatar for jbennet
0
4K
Member Avatar for meabed

A few more I find useful... 1. Replace switch-case/if-else with array-indexing: [code=c++] switch ( queue ) { case 0 : letter = 'W'; break; case 1 : letter = 'S'; break; case 2 : letter = 'U'; break; } //or maybe if ( queue == 0 ) letter = 'W'; …

Member Avatar for Lisa1110
3
1K
Member Avatar for rusman
Member Avatar for sadaka

Haven't used Bloodshed, but procedure seems fine. Usually IDEs would give you an option to specify a custom makefile. Just one comment on the makefile contents: second line should be something like: (tab)gcc -o EngineMain EngineMain.o Engine.o

Member Avatar for sparty
0
154
Member Avatar for naya22

There are a few problems with the existing code itself: 1. Requirement says "void getScore()-should ask the user for a test score, store it in a [B]reference[/B] parameter variable," => This is not done. So teh values updated within the function won't be reflected in main. 2. Usually it's a …

Member Avatar for Manutebecker
0
3K
Member Avatar for lAmoebal

He he.. just to think of this makes me nostalgic.. :icon_smile: I wrote my first one in 1990 I think, I was so happy to see that perfect circle I made using circle() in BASIC. I also made squares and lines and rectangles but somehow circle was my favorite. :icon_lol: …

Member Avatar for stephen84s
0
362
Member Avatar for Spartan552

1. I wonder why things work without linking to /usr/local/sesam/lib/libssv.so if you need it. And if links without it I wonder why you need it. 2. Compare the size/timestamp of your mate's lib and your lib (/usr/lib/libstdc++-libc6.1-1.so.2). I think comparing the symbol table would be an overkill if size/timestamp are …

Member Avatar for Spartan552
0
169
Member Avatar for thekashyap

Hello Everyone, Does anyone know any design patterns for modules meant for encoding/decoding of protocol messages. E.g. BSSMAP/LAP... We need to write encoders and decoders for BSSMAP and BSSLAP messages for our product. All the IE (information elements) are defined by standards, so we know everything abt every field in …

Member Avatar for Yann Garcia
0
568
Member Avatar for BAEdwards

Interesting. :) Do you have global and/or static variables anywhere ? Also can you post: - TForm2.h - TForm2::TForm2() implementation

Member Avatar for thekashyap
0
168
Member Avatar for hezfast2
Member Avatar for hezfast2
0
111
Member Avatar for BBaller1211

Try debugging ! Code isn't complete ? where is StaticPong? Do simple step by step debugging using some debugger like Eclipse. Put a break point in the handler. Otherwise do it old style, put some traces in your handler function and the editxx() function to see where it is hung.

Member Avatar for thekashyap
0
146
Member Avatar for Option
Re: RAM

Depends on what you want it for.. If you're looking at 2-3 years of life and decent quality, go for almost any. If you want to overclock etc, there are specific ones.

Member Avatar for Maverick223
0
107
Member Avatar for r30028

If this was an assignment, then my guess is it's a trick thing and probably you're expected to write your own class that can represent a huge int like the one you have (exactly like what someone else has already done in links from Vijayan). In short there is no …

Member Avatar for vijayan121
0
202
Member Avatar for RBA
Member Avatar for jk_bscomp

RTFM. Even Yahoo can produce an answer for this.. ! [url]http://search.yahoo.com/search?p=how+to+create+jar+file&ei=UTF-8&fr=moz2[/url]

Member Avatar for peter_budo
0
472
Member Avatar for wonder_laptop

>> what does it mean to say we have a 32-bit processor ?!! In very dummy terms it means the processor would process 32-bits in one machine cycle. Say if it's 2GHz processor, it'll process 32-bits 2 giga-times a second. A 32 bit processor can address upto 32 bit long …

Member Avatar for wonder_laptop
0
132
Member Avatar for bhups40

If something isn't working and you donno why, please specify. If you donno how to handle some part of the assignment please specify. We can't do the assignement for you.

Member Avatar for bhups40
0
119
Member Avatar for David Wang

Assuming that your login form is a modal dialog, you can associate - a class to that dialog (if I remember correctly, this is done when you add the dialog) - member variables of this clas to the edit boxes in that dialog. When user has entered the data and …

Member Avatar for Radical Edward
0
295
Member Avatar for comjisu33
Member Avatar for hjfast

put complete code.. at least I don't understand half your problem. also I didn't know C++ allowed type names to start with numbers.

Member Avatar for Ancient Dragon
0
92
Member Avatar for want_somehelp

Each member variable has (at least) keywords specified for it apart from name. 1. Data type - could be a basic type (int, float, char,...) or user defined type (vector, std::string, CString, MyClass,...). 2. Access specifier: public, protected, private. Details are already given by wtf.

Member Avatar for thekashyap
0
112
Member Avatar for Zethgryn

I suggest you take it a bit more seriously and do it slowly. A few things: Before you start: - You've not given all the needed specs (e.g. mem speed, exact CPU) so I'm assuming you're not an expert at this (like me), so I suggest you do your [URL="http://www.ocforums.com/showthread.php?t=515316"]reading[/URL] …

Member Avatar for jbennet
0
124
Member Avatar for Narue
Member Avatar for ivailosp
1
680
Member Avatar for eeeman

[B] [B]Even harder than coding... designing code. UML diagrams[/B] [/B] >> Even more "interesting" you must say.. :) 1. You've posted in the wrong forum. 2. Problem is you've not followed the basic principles of [URL="http://en.wikipedia.org/wiki/MVC_Design_Pattern#Pattern_description"]MVC Pattern[/URL] E.g. only following dependencies are allowed: - C->V - C->M - V->M You …

Member Avatar for jwenting
0
645
Member Avatar for IT Girl

[quote=IT Girl;335223]I know.. C++ structs, loops, conditions, functions, file operations[/quote] Looking at the code you posted it's hard to beleive that.. Unfortunately given the number of basic errors in code are too many.. As someone said it's better if you brush up the basics, re-write this piece of code, [I]compile …

Member Avatar for lAmoebal
0
451
Member Avatar for Narue

Not sure if this belongs here, but non-the-less it has saved me LOT of time when I've to work with someone else's code. :) Use [URL="http://sourceforge.net/project/showfiles.php?group_id=2319"][/URL]Astyle to format the C, C++, C#, and Java code. [URL="http://sourceforge.net/project/showfiles.php?group_id=2319"]Download[/URL] [URL="http://astyle.sourceforge.net"]Documentation[/URL] [URL="http://sourceforge.net/projects/astyle/"]Project Home[/URL] [U]DISCLAIMER[/U]: Be warned, if you're scared of blind tool runs that …

Member Avatar for bector
2
8K
Member Avatar for eena75
Member Avatar for jasssvj

[url]http://www.siit.tu.ac.th/mdailey/class/2003_s2/its225/assignments/readdir.c[/url]

Member Avatar for WaltP
0
244
Member Avatar for sk8ndestroy14
Member Avatar for palegray.net
0
2K
Member Avatar for thekashyap

I needed to get links to some good Java, J2EE tutorials and was surprised that daniweb::Java didn't have a thread on that.. Of course it's easy enough having Sun provide tutorials on most things, there might be some covering specific topics in better ways. Anyway here are the links I …

Member Avatar for Ezzaral
1
893
Member Avatar for The Dude

Nice thread.. If ppl can also add a bit of review on a scale of 0-5 it would help.. Last I saw was 300.. It's the Troy/Alexander kinda theme.. I'll give it a 4.. The -1 is for the way movie winds up and be warned if you plan to …

Member Avatar for Lardmeister
0
423
Member Avatar for thekashyap

Does the binary of JVM (e.g. java.exe) provide an option to work in a backward compatible mode? My problem is I have JRE 1.6.0_01 installed on my machine and I have an application that requires JRE 1.4.2_XX. I don't want to install JRE 1.4.2 only for this one application. PS: …

Member Avatar for jwenting
0
307
Member Avatar for klarz
Member Avatar for ndeniche
0
58
Member Avatar for agrothe

Depending on your application one of the 2 approaches can be chosen.. If you have enough complexity in DB parts OR more than one servers connecting to DB layer, you might want to have database server separately.. In anycase as Ezzarel pointed out J2EE is designed EXACTLY for this purpose.. …

Member Avatar for tonakai
0
144
Member Avatar for shouvik.d

[quote=shouvik.d;409049]while going thru STL I came to know something knows as functors. Thought I understood what practically it is but still could not make out it's advantage and usage. Could anybody throw some light over it. I need to know in detail about it.[/quote] This isn't related to hash, hope …

Member Avatar for Rashakil Fol
0
153
Member Avatar for quintoncoert

[quote=venomlash;405862]I always learned that main returns an int so that you can put [inlinecode]exit(0)[/inlinecode], [inlinecode]exit(1)[/inlinecode] and other constructions in to tell you why the program quit. Or would that not work...?[/quote] Interesting question, to rephrase: If i have a void main() and in the code I write exit(11). When I …

Member Avatar for Salem
0
619
Member Avatar for lollerskates

Probably [URL="http://www.daniweb.com/forums/forum15.html"]Web Design[/URL] is more appropriate forum for this query. Not being a web-developer/expert my guess would be that JSP for front-end and Apache as a web-server should do your work. Looking at your problem stmt there doesn't seem to be much business logic and given a local network there …

Member Avatar for thekashyap
0
105
Member Avatar for tyroTechie

What Ezzaral said is true that " The attibutes inherent to the roll should go into CRoll", but IMO in the given list there are no such attrs. All attrs are specific to different usecases. An inherent attr would be something like a serial number (if there is such a …

Member Avatar for thekashyap
0
86
Member Avatar for Mr.UNOwen

Check out [URL="http://www.daniweb.com/code/snippet667.html"]this code snippet[/URL], it loads some class files and shows an example of loading a resource (directory or jar file) and then looking for a specific class in it. It uses URLClassLoader (one of the standard impl of ClassLoader), you'll find more implementations if you don't wanna write …

Member Avatar for thekashyap
0
86
Member Avatar for RohitSahni

my guess is you're missing one of the std libs to be passed on command line to the linker.. one that contains definition for String class..

Member Avatar for thekashyap
0
116
Member Avatar for ganurobotto

Nothing else than [URL="http://www.daniweb.com/forums/thread70096.html"]this[/URL] can help you my friend..

Member Avatar for Salem
0
115
Member Avatar for Firestone

[quote=jbennet;407180]Hey, is the Java VM written in C++ ?[/quote] Yeah, I first noticed that "java" executable is written in C/C++ when I had some hotspot error and it wrote down a core file, whose pstack showed calls from main()->createVM()... So it's C at least if not C++. You can execute …

Member Avatar for Rashakil Fol
0
374
Member Avatar for satish.paluvai

[quote=masijade;408118]Java will always take the most specific applicable method. In this case, using null, the String one is the most specific, applicable method.[/quote] Seems like String one is the ONLY applicable method. At the call options are create and Object using "null" or create a String using "null".. Object doesn't …

Member Avatar for ~s.o.s~
-1
112
Member Avatar for satish.paluvai

what's "dos"? AFAIK plain Eclipse can't do this. A war file is the web-achieve of J2EE.. you'll need to install some plug-in that supports development/creation of of web-achieves.. One such would be a licensed "IBM Rational Application Developer" or RAD.. once you install it, it installs required plug-ins for eclipse..

Member Avatar for Ezzaral
0
87
Member Avatar for eXceed69

Check the piece of code that's throwing this error.. it could be written by someone else, in which case only that guy can tell you what he meant by 100 ! Looking at the info available it's not possible to say anything..

Member Avatar for thekashyap
0
88

The End.