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

Hello, I have to code essentially what would mimic a std::map. I have a templated pair class, and a table class. I am given two tables, transition and action table, which are attached. Basically, I suppose to code a security system, where a door opens after someone punches in the combination BAAD. Anything else will sound the alarm. I understand the concept, but I do not understand how to create a mapping of the table. Below in the header file, `int (*Mapping)( Key k);` I cannot figure out how I would map key to value using the action and transition …

Member Avatar
+0 forum 0

hi, I'm new in Java and Hadoop. I'm in need of MapReduce code for large EEG data file split in Java. Based on channels(electrodes attached on head) and time, data have to be splitted. In mapper file splitting takes palce and in reducer it process the splitted data. For parallel processing mapper give splitted data to different nodes. Mapper(master node) and slave nodes have reduser. I have an overview of mapreduce code that I given below. I'm quite sure that it may be wrong, because I'm new in Java. Please help me to write map and reduce code. //getfile(File location) …

Member Avatar
+0 forum 0

Who, what, or how is memory-mapped I/O and memory maps set up in computer systems for use? I will try and be as clear as possible, and I hope someone here has the knowledge to really understand what I'm asking thoroughly, and have some answer that's good enough to make sense for me and future readers. Here I go... Memory-mapped I/O and port I/O are two standard, and most used methods of accessing devices across a computer system, such as sound cards, video cards, disks, ROM, etc. I am a computer programmer, and I make it my best effort to …

Member Avatar
+0 forum 0

I have a class orders which has its instanced stored in a QMap/Map and has a Key:int, value:order pattern. Everything went fine until I started iterating through the map and accessing the functions of the class.First I was trying to print out the order objects values using it's getter methods for example: `orderSet.value(i).getDate().toString("dd/MM/yyyy"); //OrderSet is my map` This however produced an error `error: passing 'const order' as 'this' argument of 'QDate order::getDate()' discards qualifiers [-fpermissive]` I then fixed this by adding 'const' to the getter methods and the previous line of code would successfully run and print out that objects …

Member Avatar
+0 forum 0

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

for some reason iam not getting the right map. i think the problem is x += 130; y += 130; #include "DarkGDK.h" const int ROWS = 10; const int COLS = 13; int level[ROWS][COLS] = { {1,1,1,1,1,1,1,1,1,1,1,1,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,0,0,0,0,0,0,0,1}, {1,0,0,0,0,1,1,0,0,0,0,0,1}, {1,0,0,0,0,1,1,0,0,0,0,0,1}, {1,1,1,1,1,1,1,1,1,1,1,1,1} }; void DarkGDK(void) { dbSyncOn(); dbSyncRate(60); dbDisableEscapeKey(); dbLoadImage("rock.bmp", 1); int x = 0; int y = 0; for(int r = 0; r < ROWS; r++) { x = 0; for(int c = 0; c < COLS; c++) { dbPasteImage(level[r][c], x, y); x += 130; } y += 130; } while(LoopGDK()) { if(dbEscapeKey() == 1) …

Member Avatar
+0 forum 0

Hi, Im using Microsoft's Bing Map control in order to display Push Pins based on a series of latitudes and longitudes that i have strored in the database. Once I figure out how to display multiple hard coded push pins, I can figure out how to pass the values from the database into variables. My problem right now is simply trying to figure out how to display more then one push pin. I have an array with four coordinates but only the first one gets displayed. [CODE] var map = null; var pinid = 0; var points = new Array( …

Member Avatar
+0 forum 0

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

I want to matching addresses, without necessarily displaying them on a map by using Google MAP. For example : [CODE]<input type="text" name="drop-off" id="drop" style="color:#666666"/>[/CODE] the customer will enter like this in the texe field : 10 Abbe......., then autmatically the address appear like this for example 10 abbey st and ect. Is it possible to make it with Google MAP API or there are many other things for this issue? thanks in advance!

Member Avatar
+0 forum 0

I am acquiring a google earth image in vb.Net using the following: [code] imgImage.Load("http://maps.google.com/staticmap?center=" _ + dblLat.ToString + "," + dblLong.ToString + _ "&zoom=" + intZoom.ToString + _ "&size=512x512&maptype=satellite") [/code] where imgImage is a PictureBox .net object. I need to know what the width and height of the image returned is in NauticalMiles. My understanding is that: - ZoomFactor=1 means 360deg, which means 360*60NM - ZoomFactor=2 means 180deg, which means 180*60NM - etc..... - ZoomFactor=5 should be equivalent to 1350NM When I actually check this distance on GoogleEarth I get something closer to 1100NM from North to South and from …

Member Avatar
+0 forum 0

This is excellent. A map of Britain in which the forthcoming extra-fast Internet is highlighted. It's [URL="http://www.guardian.co.uk/technology/blog/interactive/2009/mar/23/broadband-fibre-cabinet-bt-map"]here[/URL] on the Guardian website. A number of things become clear from this. First, unsurprisingly, there's a lot of concentration around London and Manchester, with Edinburgh getting a respectable look-in. This is pretty inevitable I suppose; major conurbations are going to get the major advances sooner than anyone else. Except... Does it really make sense that the places with the best communications already will get the best advances the most quickly? If I were living in a small village or something I don't suppose …

Member Avatar
+0 forum 0

The End.