Posts

jekyll - How to use a variable included in a layout in posts using that layout? -

consider following 3 snippets specified files: <!-- _includes/my_var.html --> {% assign my_var = 'foo' %} and <!-- _layouts/default.html --> {% include my_var.html %} ... and post: --- layout: default --- i'd reference {{my_var}} the last 1 doesn't appear see variable defined in includes file. nil value of my_var . wrong expect should in scope? if so, what's alternative approach? you cannot layout variables page or post. but, looks configuration variable, can set in _config.yml , access anywhere site.my_var .

javascript - How to bind a $scope variable to a normal variable in AngularJS? -

in angularjs controller, have variable $scope.name assigned input's ngmodel . i wanted save value of $scope.name normal variable, process in controller without changing value of input box. so did var name = $scope.name the issue is, 2 seem linked... when change value of name , value of $scope.name changes, , changes value of input box. how can stop this? how can assign $scope variable normal variable, once, without continued binding? thank you! you need use angular.copy() like: var name; $scope.name = 'name'; function copy(){ name = angular.copy($scope.name); } see more

osx - Create a timestamp given date values columns in Excel -

Image
i have date in following format: column a: day (number form) column b: month (number form) column c: year (yy number form, in case 15 , 16 2015 , 2016) column d: hour (number form, 0 through 23) column e: minute (number form) how can convert timestamp (namely, timestamp representing number of minutes)? don't see kind of "dateserial" type function in excel (at least on mac version). you can formula: =date(2000+c1,b1,a1)+time(d1,e1,0) this number around 42000, need format in number format want. then if want time difference between 2 rows use: =f2-f1 and format cell custom format of [hh]:mm:ss note method excel stores date/time is: dates whole numbers each day since jan 1st 1900 in 42000's. time decimal based on 24 hours being 1. so both current time 42531.63956 or 6/10/2015 3:21:33 or so, when mask applied. excel uses method can math on values. method on how output displayed depends on format of cell in number resides.

data visualization - highcharts solidgauge - make it striped or 3D -

Image
i using highcharts solid gauge make donut charts. i want blue series 3d. want green series 3d. how do this? if not possible, want red series striped, not solid. thank help. please ignore bugs. based on can research, doesn't seem can apply 3d settings solid gauges. you can donut charts, however, can see in example: http://jsfiddle.net/brightmatrix/nxkv5woh/ . all added here following code: chart: { type: 'pie', options3d: { enabled: true, alpha: 45 } }, this result: as striped series, there highcharts plug-in pattern fills might helpful you: http://www.highcharts.com/plugin-registry/single/9/pattern-fill . if, however, wanted banded effect looks spokes on wheel, achieve "dummy" series of even-numbered data on separate series, each data point has alternate color. i hope information helpful.

java - How to transfer an <option> tag's element into an array in javascript? -

how should options inside dropdown list (under html) , convert array in javasctipt? code snippet comes jsp/ html. form.projectlist java object call <c:foreach items="${form.projectlist}" var="val"> <option ${form.project eq val.projectid?'selected="selected"':''} value="<c:out value="${val.projectid}"/>"><c:out value="${val.project}"/></option> </c:foreach> use id of select , jquery populate array. following var arr=new array(); $("#dropdwonid option").each(function() { arr.push($(this).text()); });

java - Spring boot component scan include a single class -

i using spring component scan auto detect beans as: @componentscan({"com.org.x, com.org.y"}) the issue want classes in com.org.x scanned want single class, com.org.y.someservice.class , alone scanned com.org.y how can achieve ? also apart using context scan, how can created bean , inject in application context ? you should define bean using method annotated @bean in configuration class, explained in the documentation .

android - qemu: hardware error: Can't set isa irqs with no isa bus present -

my english not good. firstly i'm sorry this. have problem android studio. operating system linuxmint. after updating v2.1.2, avd doesn't work. error output this: cannot launch avd in emulator. output: qemu: hardware error: can't set isa irqs no isa bus present. cpu #0: eax=00000000 ebx=00000000 ecx=00000000 edx=00000663 esi=00000000 edi=00000000 ebp=00000000 esp=00000000 eip=0000fff0 efl=00000002 [-------] cpl=0 ii=0 a20=1 smm=0 hlt=0 es =0000 00000000 0000ffff 00009300 cs =f000 ffff0000 0000ffff 00009b00 ss =0000 00000000 0000ffff 00009300 ds =0000 00000000 0000ffff 00009300 fs =0000 00000000 0000ffff 00009300 gs =0000 00000000 0000ffff 00009300 ldt=0000 00000000 0000ffff 00008200 tr =0000 00000000 0000ffff 00008b00 gdt= 00000000 0000ffff idt= 00000000 0000ffff cr0=60000010 cr2=00000000 cr3=00000000 cr4=00000000 dr0=00000000 dr1=00000000 dr2=00000000 dr3=00000000 dr6=ffff0ff0 dr7=00000400 efer=0000000000000000 fcw=037f fsw=0000 [st=0] ftw=00 mxcsr=00001f80 f...