I want to map a FTP account as a drive in Windows10. I tried the program FTPUse unfortunately it doesn't work, and the author is at a loss why it is not working, even though there is nothing I'm doing wrong ? Any other suggestions ?

Member Avatar
Member Avatar
+0 forum 9

Hello, I am trying to style google map: like: http://www.akronyms.net/demo/arvin-html/v_1.5/ How? Here is a references: https://developers.google.com/maps/documentation/javascript/styling What I do not understand is to create a grey map I should include the following array variable: var styleArray = [ { featureType: "all", stylers: [ { saturation: -80 } ] },{ featureType: "road.arterial", elementType: "geometry", stylers: [ { hue: "#00ffee" }, { saturation: 50 } ] },{ featureType: "poi.business", elementType: "labels", stylers: [ { visibility: "off" } ] } ]; My question is where to include that array variable? I already try it and it does not work.

Member Avatar
Member Avatar
+0 forum 12

public Set<Product> getProductsByPriceFilter(Map<String, String> filterParams) { Set<Product> products = new HashSet<Product>(); String l = filterParams.get("low"); String h = filterParams.get("high"); BigDecimal floor = new BigDecimal(l); BigDecimal ceil = new BigDecimal(h); return products; } I have discovered an interesting phenomena. I have filterParams that should <String, String>. However, if I use filterParams.get with an existing key, it returns a Linked List. Where might be the issue? java.lang.ClassCastException: java.util.LinkedList cannot be cast to java.lang.String at com.packt.webstore.domain.repositoryImpl.ProductRepositoryImpl.getProductsByPriceFilter(ProductRepositoryImpl.java:103) Line 103 is String l = filterParams.get("low"); I've tried explicit conversion as well, but it doesn't seem to work.

Member Avatar
Member Avatar
+0 forum 8

I need a boolean to be stored with a String (or possibly a Path, not sure which one I want to use yet). I thought about using a Map, so I did some looking around and found out that LinkedHashMaps are the only type of Map that stay in Order when you do something with them. I could use two arrays, but I'm sure theres something better to use. Usually I would just make a helper class that stores the String, or Path, and the boolean and make Objects of this class. I know I could do this, but what's …

Member Avatar
Member Avatar
+0 forum 12

Hi all! I am working on creating an SMS language translator (SMS -> real English), and I am having trouble initializing a map for the SMS -> English codes. My code is below: map<string, string> THE_SMS_CODES{ ".02","Your (or my) two cents worth", "10X", "Thanks", "2MI","Too much information", "2U2" ,"To You Too", "4COL","For Crying Out Loud", "420" ,"let's get high", "<chuckle>","the speaker chuckles", "<frown>","the speaker is frowning", "<g>","Grin", "<grin>","the speaker is grinning", "<smile>","the one writing the message is smiling", "<smirk>","the one writing the message is smirking", "<wink>","the one writing the message is winking", "[$X$]","No spam !!", "JK","Just Kidding", "?","I have a …

Member Avatar
Member Avatar
+0 forum 4

I am using Eclipse helios and Android 4.1.2 i have followed the following documentation https://docs.google.com/document/pub?id=19nQzvKP-CVLd7_VrpwnHfl-AE9fjbJySowONZZtNHzw and done the coding exactly as described in tutorial.when i run my app on emulator it shows "This app wont run unless you update google play services" but on real device which is sony xperia which has google play services updated version it crahses with "App has stopped working".Any help is appreciated. This is my manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.emeterfinalapp" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="16" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_CORSE_LOCATION" /> <uses-feature android:glEsVersion="0x00020000" android:required="true"/> <permission android:name="com.example.emeterfinalapp.permission.MAPS_RECEIVE" android:protectionLevel="signature"/> <uses-permission …

Member Avatar
Member Avatar
+0 forum 10

Hi I have been trying to get a google map on one of my websites. In the past I had no trouble. But now having forgotten what I did I googled the topic and found an explanation that required adding javascript to the head section and a div with map-canvas in it. After checking and correcting some typos. I found it didn't work and read somewhere that the installation requires a key. I went to Google and got a key after setting the API to On. But don't know how to enter it. just pasting it after .../js as .../js?key= …

Member Avatar
Member Avatar
+0 forum 4

Hello, I have an one dimension numpy array with 1 to 5 numbers. I need to map these values to corresponding numbers between 0.76 to 1.24 with 0.12 interval. Then the problem is the find exact values in one array and fill the exact index in the second array. for example: `array([1,2,1,3,4,5])` Should be: `array([0.76,0.88,0.76,1,1.12,1.24])` I did this using if,elif but I though there has to be a elegent way to do this. def ClassConv(classNumVec): relativeMilk = np.empty([size]) for i in range(size): if classNumVec[i] == 1: relative[i] = 0.76 elif classNumVec[i] == 2: relative[i] = 0.88 elif classNumVec[i] == 3: …

Member Avatar
Member Avatar
+0 forum 1

I have a gps sending data to mysql db, but am having hard time ploting the values on google map. My javascript skills are not very good, pls help... javascript code <?php $server = "localhost"; $username = "root"; $database = ""; $password = ""; $conn = mysql_connect($server,$username,$password); mysql_select_db($database) or die("Unable to select database"); ?> <html> <head> <script type='text/javascript' src='jquery-1.6.2.min.js'></script> <script type='text/javascript' src='jquery-ui-1.8.14.custom.min.js'></script> <style> BODY {font-family : Verdana,Arial,Helvetica,sans-serif; color: #000000; font-size : 13px ; } #map_canvas { width:70%; height: 70%; z-index: 0; } </style> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false" /></script> <script type='text/javascript'> //This javascript will load when the page loads. jQuery(document).ready( function($){ //Initialize …

Member Avatar
Member Avatar
+0 forum 1

Sup everyone, Does anyone have any recommended tutorials/sites for Hash maps? I'm planning to use it to create and link "locations" in a basic text-based game but i've looked around and there seems to be a lot of description on hashmaps but not much tutorial/examples for them. Any sort of guide will be greatly appreciated. Cheers,

Member Avatar
Member Avatar
+0 forum 4

Hi, am interfacing gps tracker TK106 with our online platform. The data we get from gps device is in this format (06667778889-9BP05000066677788899140815A0533.8206N00009.7045W000.0165936157.6200000000-L0000F51C) Instractions form [this site](http://sourceforge.net/p/opengts/patches/1/) explains the variours data sets in the string above, for example the first 11 digits 06667778889 is the device's programmable ID ,used in placed of the IMEI number.The problem is, i need to find a way to dynamically seperate these digits automatically as they are sent by the gps device, so we can plot location of fleets in real time. Also, 0000F51C is a hex # (odometer reading), this have to be converted from …

Member Avatar
Member Avatar
+0 forum 7

Hi, i found this code [online](http://www.macrostash.com/2011/09/17/demo-use-a-php-mysql-database-to-load-markers-on-a-google-map/#comment-2675). After installing and running code on my website, the screen shows nothing back, though code is firmly in place. <script type='text/javascript' src='jquery-1.6.2.min.js'></script> <script type='text/javascript' src='jquery-ui-1.8.14.custom.min.js'></script> <style> BODY {font-family : Verdana,Arial,Helvetica,sans-serif; color: #000000; font-size : 13px ; } #map_canvas { width:100%; height: 100%; z-index: 0; } </style> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false" /></script> <script type='text/javascript'> //This javascript will load when the page loads. jQuery(document).ready( function($){ //Initialize the Google Maps var geocoder; var map; var markersArray = []; var infos = []; geocoder = new google.maps.Geocoder(); var myOptions = { zoom: 9, mapTypeId: google.maps.MapTypeId.ROADMAP } //Load the Map …

Member Avatar
Member Avatar
+0 forum 5

Hi Guys, Any body knows what is the efficient way to create the map (key,value pair ) using linklist using c .Apart from this in this map one key can have multiple values and i need to display those values. I don't want implementation in c++. example string1->"james" string1->"mike" string1->"harry";

Member Avatar
Member Avatar
+0 forum 5

I have declared, map<int, vector<int>> abcmap; map<int,vector<int>>:: iterator itmap; vector<int>SPLINKS; SPLINKS contains: 1 3 4 abcmap contains; 1=> 1 2=> 2 6 3=> 1 2 4 I want to iterate both SPLINKS and abcmap to find and erase elements that do not match in both containers; ie after execution; 2=>2 6 //not matched with either 1 or 3 or 4 I write something like; for(itmap = abcmap.begin(); itmap != abcmap.end(); ++itmap) { cout << endl << itmap->first <<" => "; for(size_t n=0; n<(*itmap).second.size(); n++) { for(itspl=SPLINKS.begin(); itspl!=SPLINKS.end(); ++itspl) { if((*itspl)==itmap->second[n]) { abcmap.erase(itmap); } } } } But I get debug …

Member Avatar
Member Avatar
+0 forum 2

Hello funs2code! I have the following problem. I need to count the number of occurrences of a concrete word in a text file. I've tried to count the number of occurrences of each word at first. The following code has no errors but it isn't working! When I type in a command line "project1.exe test.dat cat dog cat dog" the empty string is showed. I've cheked if-statements -> right working. Then I've made a conclusion that problem is in for-statement (with iterators). Can anyone explain me, guys? #include <iostream.h> #include <fstream.h> #include <map.h> #include <string.h> #include <iterator.h> typedef std::map<std::string, int> …

Member Avatar
Member Avatar
+0 forum 5

Hi I need to show coordinates from the map in the text box below. Can you make the code showing the latitude and longitude onmouseclick? I will be very grateful. <html> <head> <title>OpenLayers Example</title> <script src="http://openlayers.org/api/OpenLayers.js"></script> <script src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> </head> <body> <div id = "container" style = "width:1250px"> <div id="header" style="background-color:#CCCCCC;text-align:center;"><h1>Услуги с кадастрални данни</h1></div> <div style="width:900px; height:500px; float:left" id="map"></div> <div id = "featureinfo" style = "width:350px; height:500px; background-color:#CCCCCC; float:right"></div> <div id="wrapper" style="margin:5px"><div id="map" style="width: 800px; height: 450px"></div></div> <table cellpadding="5" cellspacing="0" border="1"> <tr> <td width="50%" valign="left"> <br> <h3>Get the Latitude and Longitude of a Point</h3> <p>When you click …

Member Avatar
Member Avatar
+0 forum 3

Hello everyone, I use the example from [Google](https://developers.google.com/maps/articles/phpsqlajax_v3) Now, I would like to know how to change center location from city to another city like this map in [example](http://http://www.enasher.com/billboards) please can you help me to know how becouse im new in google map and i have anthore question in my local host the marker appear but online it dosnt my map in this [site](http://www.http://blaady.com/flex/) click in sign location to see it.

Member Avatar
Member Avatar
+0 forum 1

I rote this code in my program JSONNode::const_iterator iter = root.begin(); for (; iter!=root.end(); ++iter) { const JSONNode& arrayNode = *iter; std::string type = arrayNode["type"].as_string(); if(type == "node") { std::string id = arrayNode["id"].as_string(); double lat = arrayNode["lat"].as_float(); double lon = arrayNode["lon"].as_float(); Node node; node.SetId(id); node.SetLatitude(lat); node.SetLongitude(lon); nodesMap.insert( std::pair<std::string, Node>(id, node) ); } else if(type == "way") { std::string wayId = arrayNode["id"].as_string(); wayNode.SetId(wayId); std::vector<Node> collection; const JSONNode& wayNodes = arrayNode["nodes"]; const JSONNode& nodes = wayNodes.as_array(); JSONNode::const_iterator WayIter = nodes.begin(); for (; WayIter!=nodes.end(); ++WayIter) { const JSONNode& arrayNode = *WayIter; std::string id = arrayNode.as_string(); if(nodesMap.find(id) != nodesMap.end()) { collection.push_back(nodesMap.find(id)->second); nodesMap.erase(id); } } …

Member Avatar
Member Avatar
+0 forum 1

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 have a java class that is being used by multiple people (from a UI). In the class i have a static HashMap with the userKey as the map key and an arraylist with data pertaining to the user as the value. I am using this kind of like a cache. Because populating the list everytime the user logs in is a very expensive procedure. Whenever a user logs in and modifies the data i am updating the list for that user in the map. Now the issue is that I donot want to keep the entries in the …

Member Avatar
Member Avatar
+0 forum 4

Okay so inside my ArcherArmor.cpp, I'm trying to figure out why the map initializer list isn't working, but for some reason I keep getting "Error C2593: 'operator =' is ambiguous". Here is my code: I also have a class which ArcherArmor is derived from, that has a struct called `Armor`, which I left out for simplicity. The main problem is that error! The only thing I can think of is that im initializing the map wrong. //ArcherArmor.h #include <string> #include <map> class ArcherArmor { private: map <int, Armor> soldier_armor; public: void ArcherArmor_shop(); }; //ArcherArmor.cpp #include "ArcherArmor.h" void ArcherArmor::ArcherArmor_shop(){ soldier_armor = …

Member Avatar
Member Avatar
+0 forum 5

So I'm trying to figure out why my get method doesn't pass its test. This is my attempt at the get method: public Value get(Object key) { //Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. for (Pair<Key,Value> item : list) { if (item.key.equals(key)) { return item.value; } } return null; } public Value put(Key key, Value value) { //Associates the specified value with the specified key in the map. for (Pair<Key,Value> item : list) { if (containsKey(key)==true) { //A map m is said to contain a mapping …

Member Avatar
Member Avatar
+0 forum 5

Okay so I have an `inventory` class that accesses a static vector from my base class `MainShop`. I also have a `SwordShop` class which inherits from `MainShop`. (Both Inventory and SwordShop are derived classes). //SwordShop class void SwordShop::Shop { //I have a setter function where it takes an integer and a string and adds its to my hashmap. //Also have a getter function which has a for loop displaying my items in my map this->setWeaponSoldier(1, "1) Meito Ichimonji\n +4 Damage\n 150Gold"); this->setWeaponSoldier(2, "2) Shusui\n +10 Damage\n 230Gold"); this->setWeaponSoldier(3, "3) Elixir\n +16 Damage\n 300Gold"); this->setWeaponSoldier(4, "4) Blade of scars\n +24 Damage\n …

Member Avatar
Member Avatar
+0 forum 8

Hi Team, Im reading collections and there is a topic called Backed Collections. I could not understand the output below . Please throw some light on it. TreeMap<String,String> map = new TreeMap<String,String>(); map.put("a","ant"); map.put("d","dog"); map.put("h","horse"); SortedMap<String,String> submap; submap = map.subMap("b","g"); System.out.println(map + " " + submap); map.put("b", "bat"); submap.put("f","fish"); map.put("r", "raccoon"); // submap.put("p" , "pig"); // out of range System.out.println(map + " " + submap); ** OUTPUT ** {a=ant, d=dog, h=horse} {d=dog} {a=ant, b=bat, d=dog, f=fish, h=horse, r= racoon} { b=bat, d=dog, f=fish} Please explain the output and one comment inside the code which says "out of Range".

Member Avatar
Member Avatar
+0 forum 4

hi! good day sir. how can i add a link <a> to body <body> with a function <onclick=""> that change the center of google map. HTML <a href="" onClick="myFunction()">location 1</a> FUNCTION function myFunction() { ??????? }

Member Avatar
Member Avatar
+1 forum 1

So for my homework i needa write a code that requires me to look up on a T key and adding stuff to T values. Could someone help me plz? (ie can i set both the key and value to template type) p.s. sorry not being able to expain the question too well! If you don't understand what i mean u can hv a look at the question: In this question, you are required to implement a template class for a container data structure that supports hashing. It should satisfy the following requirements. a. The complete implementation (including the class …

Member Avatar
Member Avatar
+0 forum 2

int main() { map<string,size_t> count; string word; while(cin >> word) count[word]++; --------(1) for(auto it=count.begin();it!=count.end();++it) cout << it->first << ": "<< it ->second <<endl; I donot understand the code particularly the line (1) Could anyone can explainÉ

Member Avatar
Member Avatar
+0 forum 4

Hi Every body Is my answer correct for this question - Obtain the minimal form for the following Boolean expression using Karnaugh map. F(U, V, W, Z) = ∑(0, 1, 2, 3, 6, 7, 8, 9, 10, 13, 15) My answer - ![a48a42f649b78dce10e6abdea215d087](/attachments/small/2/a48a42f649b78dce10e6abdea215d087.jpg "align-left") There are four pairs and one quad that reduce as given below: Pair-1(m7 + m6) reduces to U’VW Pair-2(m8 + m9) reduces to UV’W’ Pair-3(m13 + m15) reduces to UVZ Pair-4(m8 + m10) reduces to UV’Z’ Quad (m0 + m1 + m2 + m3) reduces to U’V’ Simplified Boolean expression for given K-map is F(U,V,W,Z) = …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, i implement all the steps from this tutorial http://wptrafficanalyzer.in/blog/android-geocoding-showing-user-input-location-on-google-map-android-api-v2 it works fine for me. shows map but when i enter the location in the textbox and hit find button the app restart and don't go through the specified location. please tell me the solution...

Member Avatar
Member Avatar
+0 forum 1

The End.