84 Posted Topics

Member Avatar for SasseMan

If these applications are run separately, there is no way to do this in Java, as it keeps things nice and clean (one of the reasons it is allowed on the web, otherwise people would be hijacking each others' applications all the time and it wouldn't be safe to have …

Member Avatar for jackmaverick1
0
155
Member Avatar for 18engineer

You might want to try jQuery's POST method: [URL="http://api.jquery.com/jQuery.post/"]http://api.jquery.com/jQuery.post/[/URL] (shamelessly stolen from the docs at the above linked page) Example: Request the test.php page and send some additional data along (while still ignoring the return results). [CODE]$.post("test.php", { name: "John", time: "2pm" } );[/CODE] All you need to do is …

Member Avatar for joehms22
0
153
Member Avatar for andarivaadu1

Just a reason as to why some people may have voted this question down: 1. Your code snippet is too long, try cutting it down to the bare mimimum, and replacing things like $information_array[5] with a more friendly variable, like $information_array['url'] while it may not work in your program, at …

Member Avatar for joehms22
-1
160
Member Avatar for Dancer90

Try this: you've got a curly brace missing after your printing of the underscore, either put one there or remove the one after the for loop right before it. Other than that, it looks good so far :)

Member Avatar for joehms22
0
377
Member Avatar for mark_31

I would use [URL="http://docs.python.org/library/urlparse.html"]urlparse[/URL] and a dictionary of HOSTNAME:NUM_TIMES_FOUND and some kind of way to decide whether or not it was too many. i.e. {'google.com':80, 'craigslist.org':2, 'daniweb.com':40} Then, say you wanted results from any one site to be less than one percent of your total you could add a counter …

Member Avatar for joehms22
0
313
Member Avatar for convoluted
Member Avatar for lassytouton
0
2K
Member Avatar for CobRalf

Py2exe will package all of your files together, although you may need to specify resources, it even bundles all of the packages python needs and the interpriter (my programs end up at about 6MB after packaging). [CODE]try: import py2exe import sys from distutils.core import setup import os except ImportError, err: …

Member Avatar for tendragons
0
383
Member Avatar for prvnkmr194

You should look at the [URL="http://www.ipdatacorp.com/mmurtl.html"]MMURTL OS book[/URL], it is online and entirely free, plus discusses lots of the basic OS concepts.

Member Avatar for michaelrules
0
188
Member Avatar for neocortex

The reason you are still getting some results is because Google still continues to support the SOAP protocol, but limits the results per it's [URL="http://code.google.com/apis/websearch/terms.html"]depreciation policy[/URL].

Member Avatar for joehms22
0
136
Member Avatar for nosehat

I would just try changing the type, and check for errors, like exceptions being thrown. [CODE]int("hello world") Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid literal for int() with base 10: 'hello world' [/CODE] Then just make sure that the most percise thing comes first, …

Member Avatar for richieking
0
131
Member Avatar for islam-morad

As you know the computer only does math, the compiled programs just tell the computer what functions to use based off the numbers, the CPU decodes all of the instructions coming in to it and does what is asked. Most of the time though you won't be dealing with binary …

Member Avatar for islam-morad
0
134
Member Avatar for Thropian
Member Avatar for atla
Member Avatar for richieking
0
170
Member Avatar for eman 22

Some more information will be useful, if you are asking about HTTP you want a 200 response code.

Member Avatar for joehms22
0
63
Member Avatar for cwarn23

You can actually [URL="http://docs.python.org/extending/extending.html"]bind C and C++ libraries to python[/URL], that way you wouldn't need to re-write the code, and would still get the efficiency of the original library.

Member Avatar for cwarn23
0
173
Member Avatar for deniseblue

First off on line 80 you need double quotes instead of single ones, when you use single quotes the JVM assumes that you are manually entering a char instead of a string. 113 is messing up because on 110 you have an open bracket and 112 is a close instead …

Member Avatar for deniseblue
0
172
Member Avatar for muncher10

If you are going to share answers, at least get an SVN. Aaaah, the if else burns!

Member Avatar for joehms22
-2
84
Member Avatar for d8m9

That is a good start, you now just need to generate a random number between 0 and 51, this can be achieved by: [CODE] import java.lang.Math; int a = (int) Math.random() * 52; //Create a random number between 0 and 51 [/CODE] Then use the variable a as an array …

Member Avatar for d8m9
0
240
Member Avatar for Melow

It sounds like compiz could be grabbing your control modifier, try to search through there and remove any compiz effect that only has control as a keyboard shortcut.

Member Avatar for Melow
0
221
Member Avatar for oggiemc

The registry may still be running in memory, try opening task manager (control + shift + escape) or (control + alt + delete) and killing the process.

Member Avatar for joehms22
0
66
Member Avatar for plasticfood

It looks to me like your if statement is executed every time you compare, that way if the first string in the ArrayList is not the one you entered it returns ___ is not a member. Try using an intermediate variable like this: [CODE]boolean found = false; for(String s : …

Member Avatar for plasticfood
0
117
Member Avatar for yamii

Try not hard coding the path, but rather coding it relative to your site root.

Member Avatar for joehms22
0
42
Member Avatar for shenbagam

I would also add a check to see if more than one username was returned, this could happen with SQL injection.

Member Avatar for joehms22
0
109
Member Avatar for jadacoy

The connection tray may be a side-effect. I used to have this happen with an old wireless router, for some reason when the IP address I was assigned by the router expired I wasn't able to get back on, try looking at your router settings, and boosting the time for …

Member Avatar for joehms22
0
230
Member Avatar for aurawind2k
Member Avatar for firecy

If you make a new class that holds your high scores and it implements java.io.Serializable, you can easily write it to a file and recover it intact later on; this takes out the mess of reading and parsing a file.

Member Avatar for joehms22
0
545
Member Avatar for hoover_red_one

Here is the [URL="http://download.oracle.com/javase/1.4.2/docs/api/java/util/ArrayList.html"]ArrayList documentation[/URL]. Here is a [URL="http://www.java-tips.org/java-se-tips/java.util/how-to-use-generic-arraylist.html"]quick example[/URL] on how to use ArrayLists. The toString method is derived from the Object class in Java. It simply returns a string that is printed out when you do a System.out.println(object).

Member Avatar for joehms22
0
633
Member Avatar for Rogue Hermit

I don't know what was going wrong, because it worked for me, try this though. [CODE]import java.util.Scanner; public class one { public static void countPercent(Scanner input) { String nucl = input.next(); int[] count = new int[4]; for (char single : nucl.toCharArray()) switch (single) { case 'B': count[0]++; break; case 'D': …

Member Avatar for joehms22
0
106
Member Avatar for fekioh

Try pickling. You can store large amounts of data in (almost) native python formats to the disk, then re-load them quickly later. [INDENT] The pickle module implements a fundamental, but powerful algorithm for serializing and de-serializing a Python object structure. “Pickling” is the process whereby a Python object hierarchy is …

Member Avatar for ultimatebuster
0
2K
Member Avatar for nsutton

Geany is quite a nice (but small) ide for python and about all other languages you will use. [URL="http://www.geany.org/Download/ThirdPartyPackages#MacOSX"]MacOSX Download Page[/URL] [URL="http://www.geany.org/Download/Releases"]Downloads for windows/links to others[/URL]

Member Avatar for justaguy101
0
153
Member Avatar for rasizzle

[QUOTE=rasizzle;1202984] [CODE]x_axis_list = ["Jan-06","Jul-06","Jan-07","Jul-07","Jan-08"] y_axis_list = [5,7,6,8,9][/CODE] [/QUOTE] In matplotlib you can use xticks() The first list is where each text piece will be placed, and the second is a tuple of strings. [CODE]xticks([1,2,3,4,5], ("Jan-06","Jul-06","Jan-07","Jul-07","Jan-08"))[/CODE]

Member Avatar for rasizzle
1
102
Member Avatar for joehms22

I need a way to check what service a port is running in python, thanks for the help in advance.

Member Avatar for SoulMazer
0
442
Member Avatar for fardoonmuhafiz

A light weight application should be small (I generally think under 15 MB). Be somewhat specified on it's purpose, like Notepad over Word, and I generally think it is portable and many times in one file.

Member Avatar for joehms22
0
77
Member Avatar for joehms22

Name: Joseph Nickname: Joel / Joe Height: 5'11'' Weight: 185 Hair: Brown Eyes: Blue/Green/Gray Location: Colorado, USA (One Mile Above Sea Level) Age: 17 Hobbies: Listening to music, architecture, programming(duh), learning seemingly useless skills (create toxins from peanuts, etc.) Relationship Status: Single Music: BNL, Classical, Norah Jones, Smooth Jazz Education: …

0
61

The End.