Posts
 
Reputation
Joined
Last Seen
Ranked #633
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
89% Quality Score
Upvotes Received
16
Posts with Upvotes
16
Upvoting Members
12
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
3 Commented Posts
1 Endorsement
Ranked #858
Ranked #456
~78.0K People Reached
PC Specs
Windows/Android
Favorite Tags
c++ x 131
java x 94
c x 17
php x 11

202 Posted Topics

Member Avatar for abhishek_s_n

Its important to understand how sending information over a connection works before deciding on a protocol. When you send data over a connection it is broken down into small, standard size chunks called packets. The difference in the two protocols you've described is how they handle packets. UDP simply takes …

Member Avatar for Sofiia
0
1K
Member Avatar for Firestone

Is there a simple way to do this in Dev-Cpp? There doesn't seem to be an area to compile linked .ico's into the project. I have tried using IconFX but it cannot add icons to a project that has already been compiled.

Member Avatar for Amina_6
0
960
Member Avatar for dmanw100

I'm trying to read in from a .txt file with a Scanner (see code). For some reason this line of code will never execute even though it can open the file and there is, in fact, data in it as such: Name Name Number Number [CODE] File playerFile = new …

Member Avatar for JamesCherrill
0
968
Member Avatar for mazdakiaa

It's best to have a pervasive presence, but if you have to choose a platform go with Facebook. Facebook has supported businesses longer through Pages and allows you to run campaigns targeted at a specific demographic easily right on the site. Google+ is a bit immature. It's also rather unpopular.

Member Avatar for agustina
0
2K
Member Avatar for Alex Edwards

I personally would like to read such a book but 6,000 pages is a lot of work for something that may never gain much respect. I like your idea but there are many Master's Theses that never go beyond being made.

Member Avatar for KelvinG
0
1K
Member Avatar for dmanw100

Hello, I've just begun working with assembly so I'm sorry if this question is simplistic. I would like to implement an atomic add (for incrementing an array pointer). My code looks like this: int * ptr; int step; asm("lock add %1, %2;\n" :"=m"(ptr) :"m"(ptr),"r"(step) : ); But I'm getting an …

Member Avatar for Feanis
0
318
Member Avatar for kaleem_ullah

If you're planning to do this for awhile you should pick a topic that [B]you're[/B] interested in so you can generate high-quality content. The best way to generate traffic and, by extension, revenue is to produce something that people want to repeatedly visit. Doing this requires quality content that people …

Member Avatar for BryceWillis
0
876
Member Avatar for dmanw100

I'm learning how to use the SDL libraries but I'm having a small problem playing the sound. The program appears to load the sound but either not play it or play it too low for me to hear. Here's my code so far: [CODE]#include "SDL/SDL.h" #include "SDL/SDL_mixer.h" Mix_Music *play_sound = …

Member Avatar for hassan.ahmad
0
499
Member Avatar for movielinks

Start by getting your friends and family to use it. Promotion doesn't have to be expensive at first. If you can build a devoted userbase they can provide a strong base for growth.

Member Avatar for davujose
0
219
Member Avatar for dmanw100

Hello, This doesn't seem to fit any particular forum, but I thought it might fit best here. I need to be able to add Java syntax highlighting functionality to a form on an internal website. Does anyone know of a syntax highlighting framework that supports Java and can be embedded …

Member Avatar for dmanw100
0
180
Member Avatar for Jashandeep

iPhone is a physical device running the iOS operating system while Android is an operating system that is run on multiple phones. The iPhone brand (its actually about 4 or 5 models of phone, I forget how many) is wholly owned by Apple while phones that run Android are made …

Member Avatar for joelchrist
-2
196
Member Avatar for WDrago

You don't really need so many try/catch blocks. Since you only need to catch an exception type once, you could write a functionally equivalent (and cleaner looking!) method like this: while (true) { try { iThx.connect(); tmp = iThx.readTemperature(); hum = iThx.readHumidity(); dew = iThx.readDewpoint(); iThx.close(); outFile = new FileWriter(logFileName, …

Member Avatar for WDrago
0
1K
Member Avatar for daniel.moore.5099940

Why not accept a number and direction (something that would equate to "row 2, up" for example) and have a for loop iterate over that particular row or column in the matrix and shift the values in the appropriate direction (while maintaining a copy of the top/bottom to handle the …

Member Avatar for daniel.moore.5099940
0
3K
Member Avatar for lizziekadango

It's been awhile since I've worked with C++, but I believe you need a semicolon at the end of your structure declaration. Line 13 should look like this: "};"

Member Avatar for lizziekadango
0
113
Member Avatar for tayyabatiq

You never define wParam which is why it fails to compile. You need to give it a type and assign it a value (it is never used outside of the check, so you need to give it a value somewhere). What do you mean when you say "without disturbing the …

Member Avatar for tayyabatiq
0
206
Member Avatar for prathiyus

What are image2, image1? Are they arrays? Paths? What format are the images? What do i,j, and k represent? You need to more clearly define the problem and show what you've already done. There are libraries available that support different formats, but you should be specific about what you need.

Member Avatar for Adak
0
113
Member Avatar for jamesmadison43

First think about what a matrix is: an ordered series of rows. This may seem obvious, but it makes it simple to take those rows and make one very long row (you just have to remember that every 'x' values is a new row). This structure could easily be converted …

Member Avatar for jalpesh_007
0
274
Member Avatar for capt_nemo

Java does not offer anything like that functionality (to the best of my knowledge). You could look into batch scripts as a way to support this (your program could call a batch script to schedule/unschedule the program to run at login). This is a terrible way to implement it (the …

Member Avatar for capt_nemo
0
188
Member Avatar for christinetom

Perhaps you want to add a path to the system Path? If you're using a Windows machine you can right click on Computer, select Properties, find the Advanced system settings button (which should bring up the System Properties window), select the Environment Variables button, then select "Path"->Edit->and add the path …

Member Avatar for christinetom
0
106
Member Avatar for jcmoney1010

The problem is related to the if/else block in your search function's for() loop. The if statement is executed each iteration, so if we find a match... great! Return x! But note that if the if fails, then the else is executed and -1 is returned. Thus you are only …

Member Avatar for dmanw100
0
113
Member Avatar for abhishekbalaji

What happens is the program attempts to access the memory at that address (let's assume some array "myArray" starts at address 50). If you attempt to access the memory at 49 it is entirely possible that you will not encounter a runtime issue (aka your program won't crash), but you …

Member Avatar for MandrewP
0
131
Member Avatar for Twilitbeing

I'm not sure I quite understand your question, but I believe what you mean is "can a function accept a generic array parameter?" The answer to this question is yes, just remember to make sure the types you use are correct (for example: be careful not to mix char arrays …

Member Avatar for dmanw100
0
270
Member Avatar for FUTURECompEng

What is the error message? I'm not exactly sure how this is supposed to operate, but I'm assuming you `endList.next = new node();` as otherwise endList.next will already be pointing to a node.

Member Avatar for FUTURECompEng
0
294
Member Avatar for harishjoy

I don't think either of those are C. I would recommend a tutorial [like this one](http://www.physics.drexel.edu/courses/Comp_Phys/General/C_basics/) if you're looking to learn C.

Member Avatar for harishjoy
0
117
Member Avatar for ekemedo

Depends on the platform. For Android you should start [by learning about the Android SDK](http://developer.android.com/training/index.html). For iOS I would start [by looking here](https://developer.apple.com/devcenter/ios/index.action), although I've personally not done any iOS work.

Member Avatar for dmanw100
0
106
Member Avatar for greystreet34

This is a good start, but remember the while() will exit if the test condition fails. If the number 7773 is entered this loop will fail (since 7773 % 10 is 3, which does not equal 7). I would suggest a for() loop that tested if the integer was still …

Member Avatar for dmanw100
0
238
Member Avatar for khalidshakar

One method would be to keep a list of all active clients and call a method that would iterate over that list and send your message to each. How is your server structured now? Is it multithreaded?

Member Avatar for khalidshakar
0
533
Member Avatar for liphoso

Your could write a simpel app if you're running Android. There are already applications that do this, though, so if you only want to track your lost cell phone I would recommend checking your phone's marketplace first.

Member Avatar for dmanw100
0
118
Member Avatar for babi.meloo

What's your question? One thing I see right off the bat is you're not converting the characters from the string to integers before checking if they're zero, odd, or even. The Integer class might help a bit (specifically parseInt()). Also, indexOf() looks up the index of the specified character in …

Member Avatar for NormR1
0
3K
Member Avatar for k22mac

Remember that replace() returns a string. It doesn't modify the string that called it directly, but rather it makes a new String object. You're really close, but you need to keep that in mind.

Member Avatar for dimasalang
0
116
Member Avatar for resmi sanker

How would you structure such an algorithm? A genetic algorithm won't be better than an algorithm specifically designed for solving your problem. Genetic algorithms are generally useful for problems where there isn't a known solution or that solution is not very efficient. Remember that in your problem every item must …

Member Avatar for James_6
0
131
Member Avatar for ramon.johnston.3

I would imagine that the links you've created probably point to items on your hard drive, which would not be visible from the web or another machine. I would recommend learning a bit of HTML even if you're just going to put up a small webpage. There's a pretty nice …

Member Avatar for drjohn
0
264
Member Avatar for Hemanth.Satkuri

The [Glass Pane](http://docs.oracle.com/javase/tutorial/uiswing/components/rootpane.html#glasspane) is useful in this case. You could place a progress bar or something similar onto the pane. Depending on your implementation you can block all actions or chose to pass some down to elements below (thus blocking certain controls, but allowing access to others). There are a …

Member Avatar for dmanw100
0
130
Member Avatar for DavidTPotterNY

It seems you don't have closing '}' for each opening '{' in your source. This is important since these braces define what code makes up each method.

Member Avatar for dmanw100
0
2K
Member Avatar for roydimeo

Registering with a username that describes your site (or will lead to your site in a web search) can help circumvent no-URL policies. If your site were [url]www.sellingexamplepopcornmakers.com[/url], you could make a username like SellingExamplePopcornMan. Obviously, don't use this technique on sites that wouldn't appreciate it, but you can use …

Member Avatar for ankitaray
0
233
Member Avatar for marypablate

Ensure you have relevant, quality content that you can share through social networking sites. Generating interest by establishing yourself as a conversation starter (or leading content producer) in your specific area. This should at least generate some interest in your niche and build a strong repeat-visitor base.

Member Avatar for stella.zoee
0
196
Member Avatar for zjbarden

If you know your stuff, then it should be a great place to get started. The problem is finding a customer base who needs your particular set of skills. Look for companies or individuals that need any niche skills you may have. That way you can charge a higher premium …

Member Avatar for Dani
0
355
Member Avatar for dmanw100

Hello guys, According to the w3 schools site HTML5 currently only supports OGG, WebM, and MP4. Most of my current media is in the WMV format so I would like to convert it to use on my site. Searching for converts returns lists of trial software or software that doesn't …

0
139
Member Avatar for onemanclapping

There is no way to determine what OS the program is running on. Perhaps make two functions, and if say the windows function fails, run the Linux function.

Member Avatar for Ancient Dragon
0
2K
Member Avatar for sha11e

Can you disconnect/reconnect on failure and, if so, are you able to send and receive messages then? If its a problem with networking this should work. Also, are you using UPD or TCP?

Member Avatar for sha11e
0
304
Member Avatar for ram619

Placing the ++ operator before a variable means you would like to increment the value stored in the variable [B]before[/B] using it. Placing the ++ after a variable means you would like to use the current value of the variable, then increment it before executing the next line. [CODE]int i …

Member Avatar for ram619
0
213
Member Avatar for Mxous

Are you allowed to use for loops? Something like: [CODE]for(; (int)(percentage) > 90;) { //set letter grade to A break; } for(; \\...[/CODE] switch statements and while loops could also work, but none of these are great solutions.

Member Avatar for Mxous
0
138
Member Avatar for MBPB

Your code will do what you want with a few minor changes. [CODE] int counter = -1; // Since Java arrays are 0-indexed (start at 0), //you need to initialize counter to -1 so the first index written to is 0 while(array[i] != -1 && counter < array.length) { i++; …

Member Avatar for DavidKroukamp
0
3K
Member Avatar for brandon66

You've made a simple logic mistake Brandon! Your for loop is set to always loop 10 times (thus the factorial of 10, not your input). Perhaps this would help? [CODE] int result = 1; for(int i = 1; i <= num; i++) result *=i;[/CODE]

Member Avatar for brandon66
0
156
Member Avatar for Jashandeep

This post might be in the wrong section. However, it sounds like you're asking if there is a content management system written in Java? There are a few, you could start by checking out [URL="http://www.magnolia-cms.com/"]Magnolia[/URL]. Its open source.

Member Avatar for dmanw100
0
82
Member Avatar for Knowsum

If you know your computer's model you can go to the manufacturer's website. The manufacturer normally distributes up-to-date drivers for their products, even if they're a bit older.

Member Avatar for caperjack
0
144
Member Avatar for befigard

You could check [URL="http://docs.oracle.com/javase/tutorial/2d/overview/images.html"]this[/URL] out. One general way to do this is to convert the image to a BufferedPicture, which can then be inserted in an ImageIcon. I believe this can be added to a JLabel.

Member Avatar for emclondon
0
139
Member Avatar for Beennn

You should pick a specific hardware platform to work with first. The [URL="http://www.arduino.cc/"]Arduino[/URL] board is one we've talked about in college. Although I've not worked with it, my friends who have claim its very straightforward to program. Its also designed to interface with and control a number of modern devices …

Member Avatar for Beennn
0
230
Member Avatar for vyrte

The rand() function returns an integer value. I recommend making "i" an integer and casting the result of this expression to a double. Try this: [CODE]double b = (double)(rand() % i + 1);[/CODE]

Member Avatar for vyrte
0
241
Member Avatar for marirs07

Is this [URL="http://www.gnu.org/software/make/manual/make.html#Overriding"]this[/URL] what you're looking to do?

Member Avatar for dmanw100
0
199

The End.