|
I am trying to create an array or list that could handle in theory, given adequate hardware and such, as many as 100^100 BigInteger entries. The problem with using an array or standard list is that they can only hold Integer.MAX_VALUE number of entries...
Started by faceless1_14 on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
I would create a new interface type that would allow for larger values force a list implementation....
A 22-dimensional java array would have enough space to hold-dimensional arrays aswell.
Methods, but this shouldn't be too taxing.
|
|
If i have a textgame that has a world object that has objects of type room which has objects of items and enemies and then a gamehelper object that has user objects for the actual player. (this game doesn't have wandering enemies since that would complicate...
Started by P.Bjorklund on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
How would you go about killing an enemy or picking up.
Diagramming containment, though, which is fine.
|
|
I have the following class that I'd like access to within certain controllers in my app:
class Spreedly include HTTParty base_uri 'https://example.com/api/1234' basic_auth 'user', 'xyz124' headers 'Accept' => 'text/xml' headers 'Content-Type' =>...
Started by Shpigford on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
And to me it seems a better....
True, but there is nothing stopping you from putting it in your app/models directory .
It'll be auto-loaded by rails and will be available for use .
You can simply place this in a file called spreedly.rb in the lib/ directory .
|
Ask your Facebook Friends
|
Or, equivalently, how would you design such an API. Expected/example usage would be illustrative as well.
My curiosity comes directly from the comments (and subsequent editting on my part) of this answer . Similar questions/discussions in the past provide...
Started by Kevin Montrose on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The major differences would be:
(If using a non-GC'd language like C++) Object lifetimes are tracked by reference-counted would need to be specified; for....
I don't see how a multithreaded UI API would differ much from existing ones.
|
|
I have a list of nullable integer and it look like a 1 to many relation
id1 can have an id2 and id3 id2 can have id4
if the value of id1 change, id2 and id3 must be set to null and it mean id4 must be set to null
In that example, I only use 4 variables...
Started by Fredou on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
EDIT: This is an attempt to answer the question as asked; however, it would help.
Problem accurately.
|
|
Hello all,
I want to be able to create a program that will take a list of names from a .txt file (Doesnt have to be a txt, maybe excell, whatever is easiest) and generate those names into groups or "teams".
I have 30 "users" that have to be sorted into...
Answer Snippets (Read the full thread at stackoverflow):
You....
A contrived shuffle).
While there are still items in the names list, use a random number from 0 to the length of the list to take one item from the list and add to a group (i.e .
Create a list of groups/teams.
Load your list of names from the file.
|
|
Hello everybody,
While trying to debug my openid implementation with Google, which kept returning Apache 406 errors, I in the end discovered that my hosting company does not allow to pass a string containing "/id" as a GET parameter (something like "example...
Started by ccazette on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
One reason a simple ID in the URL could be a security concern is that a user could see their ID and then type another one in, such as if its an integer they may select the next integer up, and potentially see another users info if it is not protected.... .
|
|
Would You Hit?? cause i would!!
Guess Whoo??
http://www.toptenz.net/wp-content/up...2628900211.jpg
Started by CUT on
, 15 posts
by 14 people.
Answer Snippets (Read the full thread at yellowbullet):
Re: Would You Hit?? cause i would!!
Does she work 9 to 5? Re: Would You Hit?? cause i would!!
ID HIT IT FROM 9 TO 5 Re: Would You Hit?? cause i would!!
Yes Re: Would You Hit?? cause i would!!
....
|
|
Just a stupid question. LOL, just kidding. What would you do if Voldemort would kiss you?
Started by Ban This posts IP on
, 25 posts
by 1 people.
Answer Snippets (Read the full thread at potterforums):
But a pure blood witch, right?
Ha, I always knew my Hogwarts letter was late in the mail! I would scream and spit, hit him, then probably die because he would kill me after that
"Happiness can be found!
Stupidity is not a learning disability....
|
|
If I replaced my knife with a gun, would you think I was moving up, or would you think I was a coward?
Started by Pete on
, 20 posts
by 20 people.
Answer Snippets (Read the full thread at yahoo):
If you are a chef or a butcher, a gun would not be moving the cops to get there after she called....
It really depends on the purpose of the knife.
Why would you want a weapon in the first place? Either one is, in my opinion, a step backward.
|