Posts

Showing posts from April, 2012

android - AsyncTaskLoader not initialized after screen rotation -

i using recyclerview getting data adapter gets data trough asynctaskloader. runs fine until rotate screen portrait landscape. @ point nullpointer exception when using .forceload(); on asynctaskloader have absolutelly no idea why fileloader null when same oncreate method called regardless of orientation , works on portrait , doesnt on landscape. here code: package sk.tomus.filescoper; import android.content.activitynotfoundexception; import android.content.intent; import android.content.sharedpreferences; import android.net.uri; import android.preference.preferencemanager; import android.support.v4.app.loadermanager; import android.support.v4.content.loader; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.support.v7.widget.gridlayoutmanager; import android.support.v7.widget.linearlayoutmanager; import android.support.v7.widget.recyclerview; import android.util.log; import android.view.view; import android.widget.toast; import java.io.f...

input - Avoid re-loading datasets within a reactive in shiny -

i have shiny app requires input 1 of several files. simplified example be: library(shiny) x <- matrix(rnorm(20), ncol=2) y <- matrix(rnorm(10), ncol=4) write.csv(x, 'test_x.csv') write.csv(y, 'test_y.csv') runapp(list(ui = fluidpage( titlepanel("choose dataset"), sidebarlayout( sidebarpanel( selectinput("data", "dataset", c("x", "y"), selected="x") ), mainpanel( tableoutput('contents') ) ) ) , server = function(input, output, session){ mydata <- reactive({ infile <- paste0("test_", input$data, ".csv") data <- read.csv(infile, header=false) data }) output$contents <- rendertable({ mydata() }) })) in reality, files read in large, avoid reading them in each time input$data changes, if has been done once. example, making matrices mat_x , mat_y available within environment, , withi...

ssl - Gitlab pages and Jekyll - issue with set up TLS Lets Encrypted -

i try add ssl/tls on static web site. use gitlab static pages, , jekyll content. follow instructions set tls - gitlab tutorial . i stack on part - got 404 error gitlab pages once build finishes, test again if working well: # note we're using actual domain, not localhost anymore $ curl http://yourdomain.org/.well-known/acme-challenge/5tbu788fw0tq5eowzmdu1gv3e9c33gxjv58hvtwtbdm the problem next generated certificate command ./letsencrypt-auto certonly -a manual -d example.com created custom page letsencrypt-setup.html in root directory whit appropriate content. i run jekyll build command , created _site/.well-known/acme-challenge/5tbu788fw0tq5eowzmdu1gv3e9c33gxjv58hvtwtbdm.html page. when run curl command page worked , without .html extension - both commands work, , return appropriate value curl http://localhost:4000/.well-known/acme-challenge/5tbu788fw0tq5eowzmdu1gv3e9c33gxjv58hvtwtbdm curl http://localhost:4000/.well-known/acme-challenge/5tbu788fw0tq5eo...

How to create individual chunks when using #+ with spin function in knitr R package -

when using #+ spin cannot separate chunks. for example if r script 1 below: #+ data(cars) #+ cars #+ plot(cars$speed, cars$dist) i get: ```{r } data(cars) ```{r } cars ```{r } plot(cars$speed, cars$dist) ``` but not separate chunks, commands embedded in same chunk. how can separate chunks spin?

C: Accessing pointer to pointer to struct element from pointer to structure -

i want access members of struct double pointer error "error: expected identifier before ‘(’ token" c double pointer structure double pointer struct inside struct : struct test{ struct foo **val; }; struct foo{ int a; } int main (){ struct test *ptr = (struct test *)malloc(sizeof(struct test)); ptr->val = &foo; /*foo malloced , populated*/ printf ("value of %d", ptr->(*val)->a); } i've tried: *ptr.(**foo).a you want this: #include <stdio.h> #include <stdlib.h> struct test { struct foo **val; }; struct foo { int a; }; int main(void) { struct test* test_ptr = malloc(sizeof(struct test)); struct foo* foo_ptr = malloc(sizeof(struct foo)); foo_ptr->a = 5; // equivalent (*foo_ptr).a = 5; test_ptr->val = &foo_ptr; printf ("value of %d\n", (*(test_ptr->val))->a); free(test_ptr); free(foo_ptr); return 0; } output: c02qt2ubfvh...

How to embed a map into Netlogo using GIS extension? -

the format of map imported should preferably ".shp" file.also please tell how create such file. have tried kml didn't work. yes, vectors need .shp imported. can create vector files in gis programs (arcgis, qgis, etc) , export .shp. or there's online tools converting kml .shp (eg http://www.zonums.com/online/kml2shp.php ) raster files need saved .asc or .grd use dataset in netlogo.

How to extract text in square brackets from string in JavaScript? -

how can extract text between pairs of square brackets string "[a][b][c][d][e]" , can following results: → array: ["a", "b", "c", "d", "e"] → string: "abcde" i have tried following regular expressions , no avail: → (?<=\[)(.*?)(?=\]) → \[(.*?)\] i don't know text expecting in string of array, example you've given. var arrstr = "[a][b][c][d][e]"; var arr = arrstr.match(/[a-z]/g) --> [ 'a', 'b', 'c', 'd', 'e' ] typeof 'array' can use `.concat()` on produced array combine them string. if you're expecting multiple characters between square brackets, regex can (/[a-z]+/g) or tweaked liking.

ruby - Passenger and Rails are Code Caching despite correctly loading Development Environment? -

i'm working simple rails application, built rails getting started guide . i'm running in vagrant development vm using apache2 , passenger (libapache2_mod_passenger). i'm having issue code caching. my rails app appears caching controllers , models, not views. can load new controller or model code running sudo service apache2 restart on vagrant. correctly setting railsenv development in virtual host. i've tried setting rackenv development both instead , additionally. i've inspected rails internal configuration , discovered correctly detecting development environment. rails.env returns "development". inspection of rails.application.config shows should be. from in app through vagrant: cache classes: --- false ... local requests: --- true ... perform caching: --- false ... cache store: --- :null_store ... except caching classes, because have restart web server in order load new controller code. the kicker when run rails server on lo...

javascript - Regular expression acting weird? -

if have: var invalidcharacters = /[-+e.]/i; and if(invalidcharacters.test(document.getelementbyid("postcode").value)) { var error_cardno ="please use numbers in post code."; document.getelementbyid("formtital").innerhtml=error_cardno; console.log("test invalidcharacters true in cardno"); return; } i enter input "+", , gets pass, despite var invalidcharacters = /[-+e.]/i; the test true if input has "-", "e" , "." , why not "+"? why not true on test if input has +, , how fix true? scenario same several validations throughout code. let me know if need full function! (have mercy i'm new) sorry guys, understand can not reproduce problem code shown. however, problem still there (for whatever unknown reason). however, has same problem me, try setting input giving woe text not numbers. there seems letting - + pass when input number type. doing fixed code. he...

For loop not running in python and pygame -

i trying create bingo programs takes user input numbers , number of boards. whenever number gets called, type in , displays on screen. tracker program. anyways, trying loop running program knows numbers being called. problem is not running. not ask me call number. sure simple missing. here portion of code. in function way. global previous_numbers_called previous_numbers_called=[] in range(75): called=int(input("enter number called:")) previous_numbers_called.append(called) here entire code in case need it. import pygame import math import color import sys import os import random import cx_freeze import time import glob pygame.init() white=color.white black=color.black blue=color.blue screen_width=800 screen_height=600 gamedisplay=pygame.display.set_mode((screen_width,screen_height)) pygame.display.set_caption('bingo tracker') clock=pygame.time.clock() fps=60 the_x=pygame.image.load('mark.png') instructions=pygame.image.load('bingotrackeri...

javascript - IndexedDB - Detect If Indexing -

i have scenario initial use of web application may require ~2k records downloaded , stored in indexeddb offline usage. in testing, performance seems quick once records loaded , indexed. however, there period it's indexing , unresponsive during time. understandable, there way find out if indexeddb "is indexing" or extent? can't seem find in indexeddb documentation. provide better user experience if aware of that. there's indeed nothing in spec being able observe indexing; it's intended happen behind scenes, , observable when complete (e.g. if transaction commits or aborts due key constraint error in existing data). if notice particular browsers becoming unresponsive when new index being created should file bugs against browser(s). in chrome, @ least, createindex() call should "instant", , behind scenes index populated asynchronously walking on values in object store compute index entries. happens in same process , thread createindex() c...

javascript - UI Bootstrap control uib-carousel with custom buttons -

i trying control carousel through buttons, rather controls above carousel (i hiding chevron icons). i inspected chevron icon , found in source: <a role="button" href="" class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isprevdisabled() }" ng-show="slides.length > 1"> <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span> <span class="sr-only">previous</span> </a> i tried adding attributes (except class) button, not work: <button type="button" class="btn btn-default btn-block" ng-click="prev()" ng-class="{ disabled: isprevdisabled() }" ng-show="slides.length > 1">previous</button> i guessing not work because button not within uib-carousel, not know 'prev()' , 'isprevdisabled()' functions are. can reference function, or crea...

c# - Linq performance: should I first use `where` or `select` -

i have large list in memory, class has 20 properties . i'd filter list based on 1 property , particular task need list of property . query like: data.select(x => x.field).where(x => x == "desired value").tolist() which 1 gives me better performance, using select first, or using where ? data.where(x => x.field == "desired value").select(x => x.field).tolist() please let me know if related data type i'm keeping data in memory, or field's type. please note need these objects other tasks too, can't filter them in first place , before loading them memory. which 1 gives me better performance, using select first, or using where. where first approach more performant, since filters collection first, , executes select filtered values only. mathematically speaking, where -first approach takes n + n' operations, n' number of collection items fall under where condition. so, takes n + 0 = n operation...

python - Get path of all the elements in dictionary -

i have dictionary in python , want path of values param1 or param2, ... replace these other values. value of param1 need ['optionsettings'][2]['value']. can have generic code this, print path of nodes/leaves below dictionary { "applicationname": "test", "environmentname": "abc-nodejs", "cnameprefix": "abc-neptune", "solutionstackname": "64bit amazon linux 2016.03 v2.1.1 running node.js", "optionsettings": [ { "namespace": "aws:ec2:vpc", "optionname": "associatepublicipaddress", "value": "true" }, { "namespace": "aws:elasticbeanstalk:environment", ...

Multiple conditions in guard statement swift -

is there way include multiple conditions in guard statement of swift? example if want check 2 optionals values nil using guard how should using single guard statement? //check code func demo(){ var str = [string: string]() str["status"] = "blue" str["asd"] = nil guard let var2 = str["asd"],let var1 = str["status"] else { print("asdsfddffgdfgdfga") return } print("asdasdasd") } //// guard check 1 one condition. if first true check next otherwise executes else part

c# - How to convert WebElement to string? -

here code i'm trying . i'm using c# basic if else statement compare. iwebelement findtitle = driver.findelement(by.classname("heading3")); if (title = findtitle.text) { console.writeline("test pass"); } else { console.writeline("test fail"); } you assigning value title , not comparing it. use == compare if (title == findtitle.text) if want compare using ignore case use if (findtitle.text.indexof(title, stringcomparison.ordinalignorecase) != -1) this check if findtitle text contains text of title .

web - Should we check CSRF token for read only actions -

i have heard many people suggest csrf handling mandatory actions performing write operations optional action performing read operations? if yes please share example how action performs read operations can exploited using csrf. ordinarily safe methods not have protected against csrf because not make changes application (i.e "read only" state in question), , if they're returning sensitive information protected same origin policy in browser. if site implemented per standards, requests should safe , therefore not need protection. however, there specific case "cross-site dos" * attack executed. reporting page takes 10 seconds execute, 100% cpu usage on database server, , 80% cpu usage on web server. users of website know never go https://yoursite.example.org/analysis/getreport during office hours because kills server , gives other users bad user experience. however, chuck wants knock yoursite.example.org website offline because doesn'...

maven - gradle fails to resolve dependency via nexus proxy repository -

i'm new nexus (and maven matter). i'm in process of migrating existing nexus config new server , having little issue. serving local artifacts fine, when gradle tries resolve particular dependency fails locate artifact. resolves fine against old repository. both old , new repositories configured proxys > not resolve org.jboss.ws.native:jbossws-native-jaxrpc:3.0.4.ga. required by: xxx.xxx:0.0.1-snapshot > org.jboss.ejb3:jboss-ejb3-ext-api:1.0.0 > org.jboss.javaee:jboss-ejb-api:3.0.0.ga > not find version matches org.jboss.ws.native:jbossws-native:3.0.4.ga. now, confusing bit. the new repo proxy , uses exact settings old 1 uses. can browse new repo in nexus , see offending artifact. can search artifact name is found fine. difference can see between 2 old repo has cache of remote artifacts , new 1 has yet cache anything here relevant config (same on both) type: proxy provider: maven2 format: maven policy: release default local storage: file:///home...

ios - Does not conform to protocol UIPickerViewDataSource -

i don't know what's wrong coding. tried follow tutorial same error happen. error: type 'fourthviewcontroller' not conform protocol 'uipickerviewdatasource' here code: import uikit let characters = ["jaja bink", "luke", "han solo", "princess leia"]; let weapons = ["lightsaber", "pistol", "keris"]; class fourthviewcontroller: uiviewcontroller, uipickerviewdatasource, uipickerviewdelegate { @iboutlet weak var doublepicker: uipickerview! override func viewdidload() { super.viewdidload() // additional setup after loading view. } override func didreceivememorywarning() { super.didreceivememorywarning() // dispose of resources can recreated. } func numberofcomponentsinpickerview(pickerview: uipickerview) -> int { return 2 } func pickerview(pickerview: uipickerview, titleforrow row:...

javascript - jQuery replace for the new select box only and not the earlier one -

i explain scenario. have website , trying collect "type of business" members in website. display existing businesses have been entered , allow user choose 1 of them. if user wishes enter "type of business", have allowed him choose, "**other". when clicks on "**other" box displayed in user enters "type of business" , gets added. now if user has multiple business, allow him "add other". when clicks on "add other" again shown "type of business" including 1 entered earlier. if user chooses "**other" again - box displayed , when user enters "type of business" same displayed in earlier box , current box. i want new value should replaced new select box , not earlier one. how make happen. i have writed small php code similar. <!doctype html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script...

python - Changing the rotation of tick labels in Seaborn heatmap -

Image
i'm plotting heatmap in seaborn. problem have many squares in plot x , y labels close each other useful. i'm creating list of xticks , yticks use. passing list function rotates labels in plot. nice have seaborn automatically drop of ticks, barring able have yticks upright. import pandas pd import numpy np import seaborn sns data = pd.dataframe(np.random.normal(size=40*40).reshape(40,40)) yticks = data.index keptticks = yticks[::int(len(yticks)/10)] yticks = ['' y in yticks] yticks[::int(len(yticks)/10)] = keptticks xticks = data.columns keptticks = xticks[::int(len(xticks)/10)] xticks = ['' y in xticks] xticks[::int(len(xticks)/10)] = keptticks sns.heatmap(data,linewidth=0,yticklabels=yticks,xticklabels=xticks) seaborn uses matplotlib internally, such can use matplotlib functions modify plots. i've modified code below use plt.yticks function set rotation=0 fixes issue. import pandas pd import numpy np import matplotlib.pyplot plt ...

.push not working for angularjs and pubnub -

i working on pubnub chat. , trying push new message array of messages. have array of message objects like object {0: object, 1: object, 2: object, 3: object, 4: object, 5: object, 6: object, 7: object, 8: object, 9: object, 10: object, 11: object, 12: object, 13: object, 14: object, 15: object, 16: object, 17: object, 18: object, 19: object} each object contains data like object {content: "asd", date: "2016-08-29t05:10:41.208z", sender_username: "siehyvar", sender_uuid: "1294553"} now trying push object object {content: "hi", sender_uuid: "1294553", sender_username: "siehyvar", date: "2016-08-29t05:47:40.232z"} with following code $scope.messages: []; scope.$on(api.getmessageeventnamefor(), function(ngevent, m) { scope.$apply(function() { $scope.messages.push(m); }); }); and error getting messages.push not function i suppose messages here array of objects .push functi...

bootstrap-fullscreen-select not working when placed in form -

>hi multiselect code working fine when placed in form stop working,please me! when place in form not load @ all <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>title</title> <script src="jquery-3.1.0.min.js"></script> <script src="bootstrap/js/bootstrap.min.js"></script> <script src="bootstrap-fullscreen-select.min.js"></script> <link rel="stylesheet" href="bootstrap-fullscreen-select.css"> <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"> </head> <body> <div class="form-group"> <label for="food" >country</label> <select id="food" class="form-control mobileselect " multiple data-style="warning" > <option value="pizza"...

Fetching class from array of circles created using javascript -

var a1 = linegroup.selectall("circle")[0]; // gives array of circles //here code not working: var a1 = linegroup.selectall("circle")[0]; function classarray() { return linegroup.select("circle").attr("class"); } var = a1.map(classarray); following array of circles get: [<circle cx=​"74" cy=​"425.5" r=​"8" class=​"limited circlesmall preliteracy">​</circle>​, <circle cx=​"108" cy=​"368" r=​"8" class=​"intermediate circlesmall earlywriting">​</circle>​, <circle cx=​"142" cy=​"273.7" r=​"8" class=​"advanced circlesmall preliteracy">​</circle>​, <circle cx=​"346" cy=​"391" r=​"8" class=​"basic circlesmall writing">​</circle>​, <circle cx=​"380" cy=​"460" r=​"8" class=​"limited circlesmall preliter...

frappe - ERPNext Unable to switch back to site erpnext -

i experimenting on creating new apps frappe. @ stage after creating site, had switch default site using bench use library . want switch erpnext (the default app). it's not working when run: bench use erpnext or bench use erp-next or bench use erp_next . what's site name default erpnext site. or there other way achieve this? the current site name in sites/currentsite.txt of bench folder.

indexing - Filtered Index in SQL Server missing predicate does not work as expected -

Image
i experimenting filtered indexes in sql server. trying shrink filtered index down putting following hint bol practice: a column in filtered index expression not need key or included column in filtered index definition if filtered index expression equivalent query predicate , query not return column in filtered index expression query results. i have reproduced problem in small test script: table looks follows: create table #test ( id bigint not null identity(1,1), archivedate datetime null, closingdate datetime null, objecttype integer not null, active bit not null, filler1 char(255) default 'just filler', filler2 char(255) default 'just filler', filler3 char(255) default 'just filler', filler4 char(255) default 'just filler', filler5 char(255) default 'just filler', constraint test_pk primary key clustered (id asc) ); i need optimize following query: select count(*) ...

ios - Error Domain=NSCocoaErrorDomain Code=3840 "No string key for value in object around character 1." -

this json string returned server. trying map object mapper class , print values following error. error domain=nscocoaerrordomain code=3840 "no string key value in object around character 1." {'status': false, 'updatedstatus': true, 'connectionstatus': true} and following mapper class public class info: mappable { internal let kstatuskey: string = "status" internal let kconnectionstatuskey: string = "connectionstatus" internal let kupdatedstatuskey: string = "updatedstatus" // mark: properties public var status: string? public var connectionstatus: string? public var updatedstatus: string? // mark: objectmapper initalizers /** map json object class using objectmapper - parameter map: mapping objectmapper */ required public init?(_ map: map){ } /** map json object class using objectmapper - parameter map: mapping objectmapper *...

python - I can't able to push on heroku -

i have app on heroku named floating-river-39482 .and i'm trying deploy app giving command git push heroku master . got error terminal this remote: ! no such app sleepy-inlet-36834. fatal: repository 'https://git.heroku.com/sleepy-inlet-36834.git/' not found in error message name of app sleepy-inlet-36834 .but i'm trying push app floating-river-39482 . don't have app named sleepy-inlet-36834 . how can correct error? it looks you've somehow got git repository referencing old (or deleted) heroku application. what can open .git/config file in project, , switch out https://git.heroku.com/sleepy-inlet-36834.git/ url correct 1 heroku application: https://git.heroku.com/floating-river-39482.git . then give go =) to explain further: heroku works using git setup 'remote'. remotes places can push (or pull) code from. git creates remotes listing them in project's .git/config file.

java - ArrayList of class, get specific value created in another class -

may title isn't specific one, don't know how call it. explain in detail i have these classes: public class channelcomponent { private string name; private string mode; //(1p1c / xpxc / 1pxc) private list<sourceprovidedport> publishers = new arraylist<sourceprovidedport>(); private list<sinkrequiredport> subscribers = new arraylist<sinkrequiredport>(); public channelcomponent(string name, string mode) { this.name = name; this.mode = mode; } public boolean canisubscribe(sinkrequiredport newport) { if ((mode.equals("1p1c") || mode.equals("1pxc")) && subscribers.size() < 1) { subscribers.add(newport); return true; } else if (mode.equals("xpxc")) { subscribers.add(newport); return true; } return false; } public string getname() { return name; } public string ge...

javascript - AngularJS loop over multiple arrays in array -

which easiest way loop on array in js? [[45,67,4],[7.8,6.8,56],[8,7,8.7]] thanks in advance! in html angular: <!-- assuming myarray variable on $scope object --> <div ng-repeat="innerarray in myarray"> <div ng-repeat="value in innerarray"> {{ value }} </div> </div> or in js, use for -loops: var myarray = [[45,67,4],[7.8,6.8,56],[8,7,8.7]]; (var = 0; < myarray.length; i++) { var innerarray = myarray[i]; // loop through inner array (var j = 0; j < innerarray.length; j++) { var myvalue = innerarray[j]; console.log(myvalue); } }

php - Organise custom classes -

i'm trying learn basics of slim 3 , have difficulties trying figure out proper way organise custom code, esp. custom classes. instance, want create custom error handler : <?php namespace app\handlers; // [...] final class error extends \slim\handlers\error { // [...] } ... documentation i've checked hasn't revealed under path save class definition or how configure framework can found in index.php entry point: <?php require __dir__ . '/../vendor/autoload.php'; // [...] $app = new \slim\app(['settings' => ['displayerrordetails' => true]]); $container = $app->getcontainer(); $container['errorhandler'] = function ($c) { return new app\handlers\error($c['logger']); }; fatal error: class 'app\handlers\error' not found i'd appreciate hint. you're problem not related framework @ all. slim doesn't tell keep custom code because it's matter of free choice. your erro...

c - Algorithm to store complete binary tree into an array -

i learning data structure right now, book know complete binary tree, store in array. cannot come algorithm it, nor transform array complete binary tree. can me in c? think question solved in recursion, traversal in binary tree, cannot it, nor solve in non-recursion method. you need traversal in-order function calling pointer function. edit: pointed out @peter skarpetis, can avoid using globals or static s passing parameter after pointer function: struct container { void *data; int count; }; void tree_walk_recurse(const t_node *node, void (*func)(void *, void *), void *data) { if (node->left) tree_walk_recurse(node->left, func, data); func(node->data, data); if (node->right) tree_walk_recurse(node->right, func, data); } void tree_walk(const t_node *root, void (*func)(void *, void), void *data) { if (root && func) tree_walk_recurse(root, func, data); } void insert(void *data, void *ptr) { struct data *array = ptr; ...

r - write.csv with encoding UTF8 -

i using windows7 home premium , r studio 0.99.896. have csv file containing column text in several different languages eg english, european, korean, simplified chinese, traditional chinese, greek, japanese etc. i read r using table<-read.csv("broker.csv",stringsasfactors =f, encoding="utf-8") so text readable in it's language. most of text within column called named "content". within console, when have look toplines<-head(table$content,10) i can see languages are, when try write csv file , open in excel, can no longer see languages. typed in write.csv(toplines,file="toplines.csv",fileencoding="utf-8") then opened toplines.csv in excel 2013 , looked liked this 1 [<u+5916><u+5a92>:<u+4e2d><u+56fd><u+6c1..... 2 [<u+4e2d><u+56fd><u+6c11><u+822a><u+51c6..... 3 [<u+5916><u+5a92>:<u+4e2d><u+56fd><u+6c1..... and forth w...

csv - Storing Special Characters titles in update_post_meta in Wordpress -

i have created custom plug-in store user information via csv import. have created custom post types along custom fields. stored in database, except special characters in user name 'Évana ' . how overcome problem. update_post_meta($post_id,'username_name', $line_of_text[1]); note: have read values csv , converted array. here $line_of_text[1] holds values of user name. i stored special characters values in post title using htmlentities() function. http://php.net/manual/en/function.htmlentities.php

javascript - Cannot display another map on map click listener event -

i trying create page loads small google map , working fine. want add map event click shows bigger div displaying google map same lng , lat. div shown google logo , beige background color , there no map , can't figure out problem. working on visual studio 2012 , google map shown using javascript. below code: var latlng; function initialize(lng, lat) { var myoptions = { zoom: 17, center: latlng, maptypeid: google.maps.maptypeid.roadmap }; var map = new google.maps.map( document.getelementbyid("map_canvas"), myoptions); var marker = new google.maps.marker({ position: latlng, map: map, icon: "/images/marker.png", title: "this place." }); var contentstring = 'hello <strong>world</strong>!'; var infowindow ...