- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 16
- Posts with Upvotes
- 16
- Upvoting Members
- 12
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
- PC Specs
- Windows/Android
202 Posted Topics
Re: 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 … | |
Re: 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. | |
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 … | |
Re: 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. | |
Re: 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. | |
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 … | |
Re: 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 … | |
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 = … | |
Re: 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. | |
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 … | |
Re: 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 … | |
Re: 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, … | |
Re: 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 … | |
Re: 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: "};" | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
![]() | Re: 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 … ![]() |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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? | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
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 … | |
Re: 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. | |
Re: 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? | |
Re: 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 … | |
Re: 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. | |
Re: 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++; … | |
Re: 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] | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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] | |
Re: Is this [URL="http://www.gnu.org/software/make/manual/make.html#Overriding"]this[/URL] what you're looking to do? |
The End.