129 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for bprosic

Hi everyone, here is code in React. I dont know how to re-render this array prototype map in React? import React, { useState, useEffect } from 'react'; const Help = () => { const initialObject = [ { fileName: 'Horizon.txt', fileSize: 450, }, { fileName: 'Something.png', fileSize: 2720, }, ], …

Member Avatar for bprosic
1
91
Member Avatar for HelenLF

I have a leaflet.js map on a Bootstrap web page. On first view of the page the map doesn't show, but on resize it shows. Can anyone suggest a fix for this? This is my code. html <div id="mapid"></div> css <link rel="stylesheet" href="https://unpkg.com/leaflet@1.5.1/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin=""/> #mapid{ height: 500px; width: 100%} …

Member Avatar for HelenLF
0
2K
Member Avatar for Siberian

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 for copahost
0
2K
Member Avatar for davy_yg

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: …

Member Avatar for cereal
0
596
Member Avatar for Kert

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 …

Member Avatar for newcoder310
0
354
Member Avatar for Doogledude123

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 …

Member Avatar for Slavi
0
292
Member Avatar for nathan.pavlovsky

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 …

Member Avatar for nathan.pavlovsky
0
663
Member Avatar for durrat

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 …

Member Avatar for Dhiru_1
0
2K
Member Avatar for ggeoff

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 …

Member Avatar for ggeoff
0
2K
Member Avatar for Afi83

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 …

Member Avatar for Gribouillis
0
594
Member Avatar for accra

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 …

Member Avatar for Masterblank
0
2K
Member Avatar for Tycellent

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 …

Member Avatar for Tycellent
0
282
Member Avatar for accra

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 …

Member Avatar for accra
0
781
Member Avatar for accra

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; …

Member Avatar for accra
0
428
Member Avatar for can-mohan

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 for Schol-R-LEA
0
2K
Member Avatar for shelton22

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 …

Member Avatar for shelton22
0
275
Member Avatar for Auroch

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 …

Member Avatar for Auroch
0
361
Member Avatar for firedesire

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 = …

Member Avatar for Alberto Bucur
0
1K
Member Avatar for Hanan_1

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 …

Member Avatar for Ajay Gokhale
0
379
Member Avatar for janith.amarawickrama

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) …

Member Avatar for Banfa
0
509
Member Avatar for edarcy

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 …

0
197
Member Avatar for mythos061

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 …

0
286
Member Avatar for aravind326

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 …

Member Avatar for aravind326
0
385
Member Avatar for Damian_2

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`, …

Member Avatar for Damian_2
0
740
Member Avatar for munchlaxxx

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> …

Member Avatar for JamesCherrill
0
323
Member Avatar for Damian_2

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 …

Member Avatar for Damian_2
0
332
Member Avatar for murali2489

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", …

Member Avatar for murali2489
0
232
Member Avatar for momonq1990

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 for jparkton
1
303
Member Avatar for jonathan710

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 …

Member Avatar for richieking
0
319
Member Avatar for skyyadav

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 for techofunda
0
210

The End.