Posts

HTML/CSS footer on mobile site doesn't work on IPhone safari How to fix? -

i'm having trouble mobile website. client wants these text based buttons/links on bottom added them, i'm little rusty on using size percentages. i need make , stay on same line, stretch accordingly text isn't small read. can make looks , works fine on samsung or nexus, using iphone caused third text element move next line rather shrink. mobile website: http://teetimelawn.com/m/html/index.html edit (screnshot of iphone simulator showing problem): http://i.imgur.com/r0re0i5.png how typically looks on android phones liks nexus: http://i.imgur.com/tkplv4v.jpg html: <section id="footer"> <div id="footer"> <div id="full"><a href="http://www.teetimelawncare.com">full site</a></div> <div id="foot"><a href="tel:18156096969">call us</a></div> <div id="footer-right">tee time lawn care &copy; </d...

razor - Appaling RazorEngine 3.3 performance, compared to StringTemplate4 -

is there reason or doing wrong, why razorengine slow parse 100 different templates? looking stringtemplate, , performed 2 tests compare, per below. [test] public void teststringtemplate() { csstopwatch stopwatch = new csstopwatch(); stopwatch.start(); stringbuilder sb = new stringbuilder(); (int = 0; < 100; i++) { string template = @"hello there name <name> <surname> " + i; textparsetests.testmodel model = new textparsetests.testmodel(); model.name = "karl"; model.surname = "cassar"; template t = new template(template); t.add("name", model.name); t.add("surname", model.surname); var result = t.render(); sb.appendline(result); } stopwatch.stop(); var ms = stopwatch.elapsedmilliseconds; int k = 5; //109ms } ...

c++ - What is difference between int (*p)[3] and int *p[3]? -

this question has answer here: c pointer array/array of pointers disambiguation 11 answers i totally understand " int *p[3] " ( p array of 3 pointer meaning can have 3 different rows of number of ints allocating memory our size of different rows). my confusion lies " int (*p)[3] " signifies? "p" stores address of 3 contiguous memory of int or else? please clarify , how use use in program distinguish them. thanks lot in advance. @revised sorry putting duplicate question. didn't search doubt intensively. doubt still remains novice programmer. went through both pages of q/a c pointer array/array of pointers disambiguation and int (*p) [4]? second link partly clears doubt eliminate doubt please explain above question in reference stack , heap: example int *p[3]; // (1) take 12(3*4bytes) bytes of stack , heap depen...

How do you add borders onto a heatmap created by the pheatmap R package? -

i creating heatmap using following code: pheatmap(tissuedata3, color = colorramppalette(rev(c("#d73027", "#fc8d59", "#fee090", "#ffffbf", "#e0f3f8", "#91bfdb", "#4575b4")))(100), cellwidth = 20, cellheight = 2.8, border=true, treeheight_row=0, treeheight_column=0, kmeans_k = na, show_rownames = t, show_colnames = t, fontsize=2, scale="none", clustering_method = "complete", cluster_rows = false, cluster_cols = true, clustering_distance_rows = "euclidean", clustering_distance_cols = "euclidean", legend=true, ) however, resulting heatmap not contain borders. know how add borders cells , heatmap whole? i think correct parameter border_color default "grey60", suspected (incorrectly turned out) getting partial name match argument "border" value becomes colors()[1] [1] "white...

Bootstrap Carousel slide issue (Issue with Handlebars perhaps?) -

hoping can shed light on issue i'm having bootstraps carousel , handlebars. http://padpeep.com/collection/52 i hoping simple, handlebars loads in data php template forms slider. slider , thumbnail renders can't thumbs click , change slider position thumb. this bit doesnt work. see console output show foo (the slide id) not action click. $('.thumbbtn').on("click", function() { //var count = slide id var foo = $(this).attr("data-count"); //log console.log("thumbbuttonclick" + foo); //change carousel slide $('#mycarousel').carousel(foo); }); error: uncaught typeerror: property '5' of object # not function i got error when forgot include jquery ui library. add line after include jquery. <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></scrip

Display the last part of URL javascript? -

i need display last part of url using javascript! i using code display entire url: <script language="javascript"> document.writeln(document.location); var url = $(this).attr("href"); var part = url.substring(url.lastindexof('/') + 1); </script> if url this: domain.com/something/file i need display "file". <script type="text/javascript"> var segment_str = window.location.pathname; // return segment1/segment2/segment3/segment4 var segment_array = segment_str.split( '/' ); var last_segment = segment_array.pop(); document.write(last_segment); // alerts segment4 </script> jsfiddle: http://jsfiddle.net/hnmv3/1/

SAS Macro variable to represent what is in an IN statement in Proc SQL -

i have query want run through sas in proc sql getting data 1 of our company databases. @ top of query, ease of use mostly, want able put list of input variables. interested in getting data in dates , states. dates care contiguous make sas macro variable start date , end date , use between statement. that's easy enough. but, states, can't such thing. so, thought like %let states = ('ct', 'md', 'me', 'nc', 'wv'); and later on, want statement where (state_tp in &states) now, not work. and, i've tried several other variations can't seem work. possible? while code fine is, better solution (that might have less issues anyway) create dataset desired states, , join against (or use exists clause if better needs). easier maintain (as can keep dataset in editable format separate code, in excel) , may faster in cases. data states; input state_tp $; datalines; ct md me nc wv ;;;; run; proc sql; create table...