Hi, I am creating a project which is a remake of a game so I want to be able to read a map from a Notepad file and store the location and character in the file so I can place a selected image in the location on the grid that I have already ceated. My text file looks like this: 8,8 00111000 00131000 00101111 11120231 1302c111 11112100 00013100 00011100 The "8,8" is the size of the map. In my game, the player gets to choose the character that they will use (the character is represented in teh text file with …

Member Avatar
+0 forum 0

I work for a small food charity that delivers hot meals to people in London. We are looking for a program that will make our logistics easier. We need a route planner that can take a list of postcodes and design routes that work with variable requirements such as the route should be no longer than one hour and no more than 12 meals per route. We don't think a programme currently exists and wonder whether it might be a final year project or other university project. Or maybe it is a project for a graduate wanting to add to …

Member Avatar
Member Avatar
+0 forum 3

Hi , I am new to hibernate and facing issues with composite key mapping.Please help,.While running class name Example,At line 36:- **List sites = session.createQuery("Select h from SiteStageDto h").list();** code is returning null pointer,the hql is returing right query but unable to fetch data to list. I am also posting the configuration hbm.xml file for both my class SiteStageDto ans Site_Uda_Stage. import java.util.Iterator; import java.util.List; import java.util.Set; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import com.ericsson.hibernate.HibernateUtil; public class Example { private static SessionFactory factory; public static void main(String[] args) { try{ factory = HibernateUtil.buildSessionFactory(); }catch (Throwable ex) …

Member Avatar
Member Avatar
+0 forum 3

I am working on a mapping system to support pathfinding over areas that are too large to hold in memory. The problem i have run into is how to load only a small part of the map when its all linked together and then dynamicaly load more of the map when it is needed and dump unnecessary pieces to disk. I was thinking I could use seralization to save the objects to disk only problem i have is they are all linked together multiple times and im not sure how to keep track of which links need to be updated …

Member Avatar
Member Avatar
+0 forum 5

Ok so im working on a mapping library for my pathfinding system and im trying to figure out what Data structure would be best to use for rapid calls up to several hundred a second, as low memory usage as possible, and not too difficult to store and load pieces(chunks) of the map from a sql relational database. Here is the scenario: * The map is devided up into sections called chunks for lack of a better term. Each chunk is connected by any number of links to its neighboring chunks if there is a way to walk from one …

Member Avatar
Member Avatar
+0 forum 2

I need graph coloring code in C# using four color mapping can any one help me?

Member Avatar
Member Avatar
+0 forum 5

This is working code. You will of course have to replace the directories used in this code with your own that will be unique to your particular situation. You also must have ArcGIS, and the newest version is 10 which will only work with python 2.6. There is plenty of comments in the code to try and help people understand what we area doing. I also much acknowledge the help of pyTony with his help in getting the csv file to work properly when spaces are involved and for Ene Uran's help for the initial bit of code that got …

Member Avatar
+0 forum 0

Hi, all. I would like to know about convertion from (x, y) to (latitude, longitude)? For Example: In my project(windows form - VB.NET) i have a Panel (control) and have a MouseMove Event then when i moving the mouse it have a location such as: Label1.text = e.X Label2.text = e.Y So how to convert it to?: Label1.text = Latitude(e.X) Label2.text = Longitude(e.Y) Your answer would be greatly appreciated. *Thanks,* **Bazzer Respeto**

Member Avatar
Member Avatar
+0 forum 2

Suppose that I have a login page where users need to enter their email addresses. The email addresses will only have a .edu domain name extension. I was wondering if there was a way for me to figure out what college the user went to based on his/her email address? I know the manual way is to simply copy/paste the ending of their email address. For example: [email]Jsmith10@mit.edu[/email] - I would manually type the 'mit.edu' into the URL address bar and figure out what school it is. However, this is very arduous, and there are 2000 colleges in the USA. …

Member Avatar
Member Avatar
+0 forum 4

Earlier on, in [URL="http://www.daniweb.com/software-development/java/threads/412571"]this thread[/URL] my question was answered about how to add objects of a custom class I called State into a HashSet which was a value for a key in a HashMap. [CODE]Map<String, HashSet<State>> mapping = new HashMap<String, HashSet<State>>();[/CODE] However, I need to ensure that there are only [I]distinct[/I] State objects in this HashSet. The way that I know they are distinct is by a char that is stored within a State. However, the HashSet does not know that. Can we please discuss a clear explanation of: [LIST=1] [*]The default behavior of a HashSet to ensure that the …

Member Avatar
Member Avatar
+0 forum 5

Ok, So i wrote this basic program that takes a map file as an input, and parses it and then draws the map. Its sort of like VERY BASIC tile mapping. The problem is, I cant think of a way to loop it so that no matter how many map cells are defined in the file, it will work. Right now i have if then else checks for how many are there, and it works, but its limited to 10 due to the size of the code, and its getting LONG. Is there any way for me to shorten this …

Member Avatar
Member Avatar
+0 forum 4

Hi everyone, I'm working on a small project and have run into some problems. Briefly described, what I'm attempting to do is: I've a rather large text file with a different sentence and I need to find all the words in each sentence and add them to some sort of index, so that the structure is: key = word and value = line number(s). For example like this: mistake | 0, 2, 4, 6 sun | 0, 1, 5, 10 rain | 3, 4, 10, 22 I need to make a tool to find the occurrence of a word in …

Member Avatar
Member Avatar
+0 forum 6

What I'm trying to do is parse a CSV file that has column headers, and map those headers - ideally to a class. The tricky part is that I need to be able to support various mappings because it will be interacting with different systems that give the headers different names. Additionally, being able to combine fields would be extremely helpful. Fortunately, the CSV will always be correctly formatted with all fields encapsulated in double quotes. Example [I][U]system1Data.csv[/U][/I] [CODE]"Address", "City", "State", "Zip" "001 Test Rd", "New York", "New York", "10001"[/CODE] [I][U]system2Data.csv[/U][/I] [CODE]"Street Number", "StreetName", "StreetSuffix" "City", "State", "Zip-5" "001", "Test", …

Member Avatar
Member Avatar
+0 forum 8

I'm sorry about my last bold post, I just like bold, but does any one know how the basics of mapping work and what mapping exactly is? I want to know because it might be necessary. And some sites I am banned from by IP so that's why I'm not too for the whole idea of people giving a bunch of link references. Sites I am banned from: [url]http://www.cplusplus.com[/url] [url]http://www.cprogramming.com[/url] [url]http://www.en.wikipedia.org[/url] Sorry if posting the sites was irrelevant. :(

Member Avatar
Member Avatar
-1 forum 20

The state of Oregon is holding a series of informational meetings in 20 areas around the state to identify the barriers to bringing Internet resources to their community. While obviously meetings are being held in urban locations such as Portland and the state capital of Salem, they are also being held in rural and remote locations such as John Day and Madras (with 5,078 residents, according to the 2000 census). The meetings are part of a [URL="http://www.daniweb.com/news/story234021.html"]project [/URL] funded by the American Recovery and Reinvestment Act of 2009, also known as the stimulus package. Oregon received a $1.6 million Broadband …

Member Avatar
Member Avatar
+0 forum 3

I am trying to develop a digital map based on the vehicle inertial sensor information. The Map output will be a road course shape on which the vehicle traveled. The map will be based on a fixed reference point. I have speed, yaw rate and time related information. what I tried to do is this---- [CODE]yaw_angle=m_f32_yaw_rate_s* delta_time*0.0174532; linear_distance=delta_time*m_f32_speed_s; distance_x_direction= linear_distance*cos(yaw_angle); distance_y_direction= linear_distance*sin(yaw_angle); total_yaw_angle=total_yaw_angle+yaw_angle; total_y_direction=distance_y_direction+total_y_direction; distance_x_direction_increment=distance_x_direction_increment+distance_x_direction; temp_keep_2.y=-temp_keep_2.y*cos(total_yaw_angle)-temp_keep_2.x*sin(total_yaw_angle)-total_y_direction; temp_keep_2.x=temp_keep_2.y*sin(total_yaw_angle)-temp_keep_2.x*cos(total_yaw_angle)-distance_x_direction_increment; coordinate_virtual_dm_source .push_back(temp_keep_2);[/CODE] The value temp_keep_2 contains the X and Y which corrosponds to the Vertical and perpendicula distance from a fixed point, like (0,0). But I think it is wrong. I am not …

Member Avatar
+0 forum 0

Hello, I am trying to map a URL to a sub path using .htaccess. Does this look right? //Rewrite to www Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^domain.co.uk/sub-path[nc] RewriteRule ^(.*)$ http://www.domain.co.uk/sub-path/$1 [r=301,nc] //301 Redirect Old File Redirect 301 [url]www.anotherdomain.co.uk[/url] [url]www.domain.co.uk/sub-path[/url] //301 Redirect Entire Directory RedirectMatch 301 [url]www.anotherdomain.co.uk(.*[/url]) www.domain.co.uk/sub-path/$1 Many thanks!

Member Avatar
+0 forum 0

Hi there, I have a few sites plus a few clients' sites I have designed and manage. At present, when I want to add a new feature to all of the sites, I code it into each site individually. What I want to achieve is to be able to update one file on one 'main' URL, and my other websites at different URLs get automatically updates as well. At the moment I am using reseller web hosting, which shares my sites across several servers, but if I upgraded my web hosting to a dedicated server so all my websites are …

Member Avatar
Member Avatar
+0 forum 3

Hi there, I have a few sites plus a few clients' sites I have designed and manage. At present, when I want to add a new feature to all of the sites, I code it into each site individually. What I want to achieve is to be able to update one file on one 'main' URL, and my other websites at different URLs get automatically updates as well. At the moment I am using reseller web hosting, which shares my sites across several servers, but if I upgraded my web hosting to a dedicated server so all my websites are …

Member Avatar
Member Avatar
+0 forum 1

Hi All, My first post here so here it goes... I am trying to do what I think should be a simple task but I cant seem to wrap my head around how to do it - any advice or help would be greatly received. I am tring to do the following: [LIST] [*]Load an image in to a form (the easy bit) [*]Click the image to place a 'dot' or marker over the image where I had just clicked it (there will be more than one 'dot' needed) [*]Then at that time, be able to click the 'dot' to …

Member Avatar
Member Avatar
+0 forum 2

I've been tasked with plotting various points onto a map. Due to financing and the nature of the project we can't use Google or any of that type of thing. So we have to do this the hard way using PHP or Javascript. I'm supplied a map(Mercator) and the coordinates of the 4 corners of the map. With that information I need to convert the lat and lon into x / y coordinates that I can mark on the map. [CODE] function convert_map($lat, $lon) { $width = 1281; $height = 1529; // X and Y boundaries $westLong = -75.196438; $eastLong …

Member Avatar
Member Avatar
+0 forum 1

[CODE] private Map<String , String> c = new HashMap<String , String>(); .... //regx to get mString c.put(mString.group() , mString.group()); ..... //regx to get mNumber c.put(mNumber.group() , mNumber.group()); ....... Set set = c.entrySet(); Iterator i = set.iterator(); while( i.hasNext() ) { Map.Entry me = (Map.Entry) i.next(); System.out.println(me.getKey() + " : " + me.getValue()); } [/CODE] And for some reason when it has Bob as the key and Bob as the value, it decides to allow Bob to be a key again and a value again so I end up with 2 Bob key & values when i only want one. Any …

Member Avatar
Member Avatar
+0 forum 1

[I]So, did anybody hear tonight's mysterious southeast Portland explosion? [/I] Apparently a lot of people, like my Portland friend, did. ("Tonight" was Sunday.) What's interesting is how they used Internet tools to track down the location. As described in an article in the [I]New York Times[/I], people immediately started using Twitter to send did-you-hear-that messages, and within five minutes had agreed to use the hashtag #pdxboom for messages about the phenomenon. Within an hour, a person had set up a Google [URL="http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&ll=45.52451,-122.641926&spn=0.032833,0.077162&z=14&msid=105810967145978747791.000482e8231e3af9d5624"]Maps [/URL]application to let people note their location, which triangulated on a particular location -- where, the next morning, …

Member Avatar
Member Avatar
+0 forum 2

I have a simple online credit application where customers put in their credit related data, i.e. Name, Address, SS #, Birthday, etc. I have to use another program to pull credit that requires me to input all that info. So currently I get my online app screen up and have to print it. Then manually type all the data into the second application. Is there a program that anyone knows of that I can use to map the data from one to another by clicking a button or something? Thanks so much for you help!

Member Avatar
Member Avatar
+0 forum 2

In addition to funding [URL="http://www.daniweb.com/news/story231771.html"]broadband projects[/URL] in the states, particularly in rural areas, the American Recovery and Reinvestment Act of 2009, also known as the stimulus package, includes funds for [URL="http://www.ntia.doc.gov/press/2009/BTOP_mapping_090701.pdf"]collection of state-level broadband data[/URL], as well as state-wide broadband mapping and planning. The project, which will also help create a national broadband map, is being managed by the Department of Commerce's National Telecommunications and Information Administration (NTIA). The State Broadband Data and Development Grant Program, announced on July 1, is a competitive, merit-based matching grant program that will provide approximately $240 million in grants to assist states or their …

Member Avatar
+0 forum 0

I knew it was going to happen, you knew it was going to happen, [URL="http://www.itwire.com/content/view/19244/53/"]everyone knew[/URL] that Street View would cause a privacy stink when it eventually launched in the UK. Everyone except Google it would appear. Although it is not saying how many images have been removed from the newly launched service following privacy complaints, you can be sure the number will grow and grow as the service spreads beyond the current 25 big cities which have been photographed and published already. There are reports of images being removed that show a man being arrested in North London, and …

Member Avatar
+0 forum 0

Reports suggest that Google Earth might have put the top secret British nuclear defence headquarters, at the Faslane HM Naval Base Clyde in Scotland, at risk from terrorist attack after the satellite mapping shows clear images of the facility. The images are highly detailed and even show a couple of Vanguard Class submarines docked. Newspaper reports recount how a couple of years back Google was asked to blur British military bases in Iraq as well as certain strategic military installations in the UK on grounds of national security. I am led to believe that updates to Google Earth have meant …

Member Avatar
+0 forum 0

Just months after [URL="http://www.daniweb.com/blogs/entry3136.html"]Google purchased [/URL]the entire online rights to a new satellite's imagery, the U.S. government, citing budget concerns, has [URL="http://www.usatoday.com/news/washington/2008-10-21-cognress-satellites_N.htm"]canceled plans[/URL] to launch two more commercial satellites. According to the Associated Press, the House and Senate intelligence appropriations committees cut approximately $1.7 billion in funding for 2008 and 2009. The National Reconnaissance Office was supposed to buy and launch two commercial-like satellites around 2012 under the program called the Broad Area Space-Based Imagery Collection satellite system, or BASIC, the article continued. Instead, approximately $300 million has been set aside for the Pentaon to determine whether it needs additional …

Member Avatar
+0 forum 0

Where would we be without satnav? Good question, as most of us seem to have lost the ability to drive anywhere without some annoying slightly posh woman barking instructions at us every few minutes. Of course, satnav is not all gravy: who could forget the [URL="http://www.daniweb.com/blogs/entry1242.html"]crazy satnav directions[/URL] that led drivers wanting to travel between Swaledale and Wensleydale in North Yorkshire, England via the suitably named village of Crackpot. Along a steep and twisty unlit track, which runs along the edge of a sheer drop down a 100 foot cliff, the maps were sending people. And just to make matters …

Member Avatar
Member Avatar
+0 forum 1

If you like using Google Maps and Google Earth in your applications, you're about to get better access to imagery. GeoEye Inc. of Dulles, Va., launched last Saturday a [URL="http://geoeye.mediaroom.com/index.php?s=43&item=304"]satellite[/URL] intended to provide high-resolution black-and-white and multispectral imagery. GeoEye and Google announced in [URL="http://www.reuters.com/article/internetNews/idUSN2837224420080829"]August[/URL] that Google had purchased the online commercial rights to all the images. Currently, Google uses imagery from another GeoEye satellite, IKONOS, but GeoEye-1 offers higher resolution -- .41m for monochromatic compared to 1m on IKONOS. However, due to U.S. security restrictions, a resolution of only .5m can be offered commercially. In other words, the images will …

Member Avatar
+0 forum 0

The End.