Hi
I am trying to create a map of file pairs... First I am searching a specified directory for files using the FindFirstFile and FindNextFile and when a file is found I search the map to see if the associated file is there. If the other file was added to the map, the new found file is inserted beside the previously found one. If an asso...
I have an table in my database which so far has been great for storing stuff in more than one object. But i want to be able to transform it into a multi-object array thingy.
Here is the data which is related to this new 'object' (in mysql):
uid field value
page:1 shop[2].location In Shops, Dundas Arcades,M...
Is there something like a two sided list in Java? Maybe a third party implementation?
Here a little example to demonstrate what I have in mind.
Original state:
A: 0-1-2-3
| | | |
B: 0-1-2-3
After removal of element 1 in B:
Null
|
A: 0-1-2-3
| / /
B: 0-1-2
The data structure must be accessible from both sides. So...
I'm having a bit of a hard time. Essentially I need a data structure that would work a bit like a database. I need to be able to have multiple bits of data for each key and have the possibility of having multiple keys with the same name. Then I need to be able to search that data structure and pull the correct keyword and check it agains...
I am stuck here:
my input file:
123 456 789
872 727 282
123 838 831
818 833 939
Now, I need to save data in a hashmap, 2d array or any best possible alternative like this:
key value
123 -> 456, 789, 838, 831
872 -> 727, 282
818 -> 833, 939
What is the best possible way (simple and optimized) to achieve this and using what?
I a...
After extensive research and fun learning about Google's mapping api, I am building a digital antenna map application. At this point, the next step in the project plan is to build a memory-map replication of the google map that is locating digital tv stations based upon input from the user's address. So, I am using this math code to form...
I understand that when we insert values into the STL map, a copy is made and stored.
I have code that essentially does a find on the map and obtains an iterator.
I then intend to use the iterator to change the value in the map.
The results are not what I would expect ie: the value is not changed when accessed from another part of the pr...
I need to simulate a mouse click using IE on a client side image map. Which object should invoke the fireEvent()? It cannot be simply the <area> object since it could be referenced by 2 different <img>s. It cannot be the <img> since we need a way to tell which part of the img is clicked which is defined in the <area> tag?
I've done som...
Hi!
I have the all the shapefiles (shp, dbf, ...) for my country's counties. I have a list of points (latitude/longitude) and need to reference each point with corresponding county.
I have looked into these tools and libraries. They can read, write and edit SHP files, but don't seem to be able to search stuff on them. I have converted ...
I have a weather map on my website (jpg), but it does not indicate cities. I would like to add point (with an index) show particular cities. What is the best way to do that. Can I use jquery for that?
...
I'm looking for a class like EnumMap, except for enum type values (ie. EnumValueMap<K,V extends Enum<V>>).
http://java.sun.com/javase/6/docs/api/java/util/EnumMap.html
Edit
If I was mapping, say, a few million Objects to 10 enum types, I imagined it would at least be possible to create a more memory-efficient implementation than just ...
Is the Go map type thread safe? I have a program that has many goroutines reading and writing to a map type. If I need to implement a protection mechanism, what's the best way to do it?
...
I'm looking for a .NET chart component that can display a world map, with the option to shade different countries.
Are there any freeware products that do this?
This needs to be "offline" so any Google type API will not be possible.
...
I need a data structure to store users which should be retrieved by id.
I noticed there are several classes that implement the Map interface. Which one should be my default choice? They all seem quite equivalent to me.
...
Here's a description of the data structure:
It operates like a regular map with get, put, and remove methods, but has a sort method that can be called to sorts the map. However, the map remembers its sorted structure, so subsequent calls to sort can be much quicker (if the structure doesn't change too much between calls to sort).
For e...
Hi there.
In a fresh VCL application Compile and Build operation produce same binary and map file (with minor differences at the end of .exe file even if "include version information in project" option is switched off - already discussed). Map file is same bite to bite. But wen I add any third-party component the binary and map(!) fil...
I have the following values for example:
0 0 0 1 3 2
These values refers to cluster Ids, where the member of the cluster is the
index of the vector. Hence we want to get this sort of output:
Cluster 0 -> 0,1,2
Cluster 1 -> 3
Cluster 2 -> 5
Cluster 3 -> 4
I tried the following construct but it doesn't seem to work:
What's the way t...
Is it possible to create an image map from a background image? I'd like to have the sides of the screen clickable and I do not see any way to accomplish this without a map.
...
Hi!
I have some class C that contains Map<A, Set<B>>, where A and B has long id and mapped in tables a and b. I want do some mapping of C into table with 2 attributes a_id and b_id. How can I do it?
Thanks.
...
Hi, I'm trying to insert multiple times this same key into map but with different values. It doesn't work. I know that operator[] does this job, but my question is, if this behaviour of insert is correct? Shouldn't insert() inserts? I wonder what standard says. Unfortunately I don't have it(Standard for C++) so I can't check.
Thank you f...