Posts

javascript - google map multiple polyline -

i have google map sample multiple polygons. changed new google.maps.polygon function polyline as new google.maps.polyline({ paths: arr, strokecolor: '#ff0000', strokeopacity: 0.8, strokeweight: 2, fillcolor: '#ff0000', fillopacity: 0.35 }) but not drawing lines. fiddle here . how set object name infowindow content. tried with var infowindow = new google.maps.infowindow({ content: }); edited fiddle . a google.maps.polyline doesn't have paths property. change: new google.maps.polyline({ paths: arr, strokecolor: '#ff0000', strokeopacity: 0.8, strokeweight: 2, fillcolor: '#ff0000', fillopacity: 0.35 }) to: new google.maps.polyline({ path: arr, strokecolor: '#ff0000', s...

Git an existing project -

i missing something. attempting use git existing project , our team working it. following did: ssh user@domain.com cd /directory/of/gitproject git init git add . git commit 'first commit' i thought bring local, exit ssh connection, local: git clone user@domain.com/directory/of/gitproject/.git mylocalgit when this, not appear git repository. .git not repository; directory contains is. want clone that directory, not .git . by way, when creating repository on server want pull/push to/from, should pass --bare git init . make first commit local machine, not on server.

python - Scrapy finishes crawl prematurely -

i've had crawler running months last few weeks it's been finishing prematurely after few crawled pages out of tens of thousands of pages should crawled. it's sitemapspider following sitemap_rules . class foositemapspider(sitemapspider): name = "foo" sitemap_urls = ["http://www.foo.se/sitemap.xml"] sitemap_rules = [ ('/bostad/', 'parse_house') ] all url's want crawl looks this: http://www.foo.se/bostad/address-1-259413 http://www.foo.se/bostad/address-2-275754 there aprox 50,000+ pages should crawled, instead spider stops crawling after 0 crawled pages , handful of pages crawled, without error. says: 2015-06-25 19:37:38 [scrapy] info: closing spider (finished) 2015-06-25 19:37:38 [scrapy] info: dumping scrapy stats: {'downloader/request_bytes': 106313, 'downloader/request_count': 310, 'downloader/request_method_count/get': 310, 'downloader/response_bytes': 2809...

arrays - Get image width between given range with getElementbyClass javascript -

how can width of elements between given range jquery or javascript? let's have buch of images hidden want select ones big enough matter client. this code working on: var imglink = document.getelementsbyclassname("imglink") array imglk; (i=0;i<imglink.length;i++) { if(imglink[i].style.size >= "600px"){ imglk += imglink[i]; } } (i=0;i<imglk.length;i++) { if(imglk[i].style.display == "none"){ imglk[i].style.display = "block"; imglk[i].style.opacity = "1"; } }

c# - Sorting using a Repeater with pagination -

i have repeater , i'm using pagination. works, funny stuff sorting. first of all, if press sort button, pagination control shows twice. secondly, paginates based on default sort order. ideas might wrong? protected void btnsort_click(object sender, eventargs e) { show_data(); } public void show_data() { sqlconnection con = new sqlconnection(configurationmanager.connectionstrings["pbrconnectionstring"].connectionstring); string srtorder = cbosortby.text; sqldataadapter adp = new sqldataadapter("select [acct_list].*, [acct_grp_list].acct_grp [acct_list] left join [acct_grp_list] on [acct_grp_list].acct_grp_pk = [acct_list].acct_grp_fk order " + srtorder + "", con); dataset ds = new dataset(); adp.fill(ds, "tacctlist"); //pagination code set number of records loads @ time. // done speed loading, since list gets long. pageddatasource pds = new ...

How to show a label after same second in a VB.NET -

i wondering how in vb.net. imagine have form has 4 labels hidden. want show them 1 after each other delay. example, when run app first show first label after 5 second show second 1 , after 5 second show other 1 , on. know should use timer , write code in tick don't know how. tell me timer code. can rest of that. assuming winforms? 1 way done... public class form1 private labelsenumerator ienumerator private sub form1_load(sender object, e eventargs) handles mybase.load dim labels() label = {label1, label2, label3, label4} each lbl label in labels lbl.hide() next labelsenumerator = labels.getenumerator timer1.interval = timespan.fromseconds(5).totalmilliseconds timer1.start() end sub private sub timer1_tick(sender object, e eventargs) handles timer1.tick if not isnothing(labelsenumerator) if labelsenumerator.movenext labelsenumerator.current.show() ...

Select a tab in Firefox from command line -

firefox lets open new urls command line. there way select existing tab command line, title or url? yes, there is: install mozrepl addon start it: tools -> mozrepl -> start use telnet connect running mozrepl instance: $ telnet 127.0.0.1 4242 you can use rlwrap enable readline -like keybindings inside telnet session: $ rlwrap telnet 127.0.0.1 4242 define function searching tab given url , switching it. 1 https://github.com/emacsmirror/cedet/blob/master/lisp/cedet/semantic/db-mozrepl.el pretty cool: function semanticselecttab(url) { var numtabs=gbrowser.browsers.length; for(i=0; i<numtabs-1; i++) { if(gbrowser.browsers[i].contentdocument.location.href.indexof(url)>=0) { gbrowser.tabcontainer.selectedindex=i; break; } } } run this: repl> semanticselecttab("https://stackoverflow.com/questions/31055148/select-a-tab-in-firefox-from-command-line")