Posts

three.js - Issue upgrading threejs with shaders -

i working on 3d dataviz. need show world data on , using chrome experiments (chromeexperiments.com/globe) guide. the issue visualizations made threejs r40 , hard find docs tried upgrade r71. i solved compatibility issues rendering world cant make show atmosphere, in fact, when try show atmosphere nothing shown (is atmosphere rendered black , hides world). i think problem shader not sure. does have clue? this code using: gist.github.com/glena/0b2875044cd6c39ff150 thanks ========== update: if remove fragentshader, rendered red sphere stills covers world black background: var mesh = new three.mesh(new three.spheregeometry(100, 40, 30), new three.shadermaterial({ uniforms: uniforms, vertexshader: shader.vertexshader }) ); the issue (as said @westlangley) was mesh.flipsided = true; ==> mesh.material.side = three.backside;

ant - build.xml ignoring <echo> tags and if options -

i have sencha ext.js project , trying user input , take action based on user input in build.xml file. here's build.xml : <?xml version="1.0" encoding="utf-8"?> <project xmlns:if="ant:if" xmlns:unless="ant:unless" name="psogn" default=".help"> <import file="${basedir}/.sencha/app/build-impl.xml"/> <target name="-after-build"> <echo>57 ...</echo> <property name="realperl" value="/usr/bin/perl"/> <echo>59 ...</echo> <exec executable="/bin/hostname" outputproperty="myhost"> <arg value="-s"/> </exec> <echo>64 ...</echo> <exec executable="${realperl}" outputproperty="env"> <arg value="../bin/getcf.pl"/> <arg value="--co...

python - "tput: Unknown terminal 'emacs'" messages when using PyCharm / iPython console on Windows -

i using pycharm ipython on windows. python have installed on box latest anaconda distribution, python 3.4 flavor. very often, while using console, numerous instances of following warning message: tput: unknown terminal "emacs" this mixed in normal output. has else experienced and/or fixed this? have dug through both ipython , pycharm documentation , have not found related. did install new recently? check path "unixy", example removed ...\git\bin path , solved problem me.

javascript - Jquery clone method to clone mutliple (more than one) div's (not a single div multiple times) inside a page -

i need method clone 4 div's id's d_1, d_2, d_3, d_4 including contents inside each div @ once , detach divs, , need find copy of d_1 , contents clone , append again page. something like: var cloned=$('[id^="d_"]').clone(); $('[id^="d_"]').detach(); and find div id =d_1 clone , append body. is possible? use document fragment. var $documentfragment = $(document.createdocumentfragment()); $('[id^="d_"]').each(function(){ $documentfragment.append($(this).clone().addclass("_cloned")); }); $documentfragment.clone().appendto(document.body); if want looking element fragment, can this: $(document.body).find("#d_1._cloned"). ... ; if want remove element , append first copied fragment: $("._cloned", document.body).remove(); $documentfragment.find("#d_1").clone().appendto(document.body);

How could I have access to content of csv file after upload with Angularjs? -

i have wrote simple csv upload function angular-file-upload. code following. think need access content of file upload. need first several rows of csv show preview of file. know how data? app.controller('reporting.importexternaldata.controllers.main', [ '$scope', 'fileuploader', function ($scope, fileuploader) { console.log('hahahahahaah'); var uploader = $scope.uploader = new fileuploader({ autoupload: false, queuelimit: 1, filters: [{ name: 'csvonly', fn: function(item) { console.log('in filter, file type (item.type) is: ' + item.type); console.info('size: ' + item.size); return true; } }] }); } ]); html: <div> <h2> choose csv file ...

c++ - Unable to compile PCAP Program in Visual studio -

following code retrieve mac addresses airpcap adapter. facing issues when executing program: please me in resolving error. #include <stdio.h> #include <conio.h> #include "packet32.h" #include <ntddndis.h> #include "stdafx.h" #define max_num_adapter 10 char adapterlist[max_num_adapter][1024]; int main() { lpadapter lpadapter = 0; int i; dword dwerrorcode; wchar adaptername[8192]; wchar *temp,*temp1; int adapternum=0,open; ulong adapterlength; ppacket_oid_data oiddata; boolean status; // // obtain name of adapters installed on machine // printf("packet.dll test application. library version:%s\n", packetgetversion()); printf("adapters installed:\n"); i=0; adapterlength = sizeof(adaptername); if(packetgetadapternames(adaptername,&adapterlength)==false){ printf("unable retrieve lis...

excel - How to assign value from a named range in one worksheet to a cell in the active worksheet? -

i trying archive data formatted worksheet called bod_labsheet 1 called data. have done similar using userforms encountering problems here. when run macro, error "method 'range' of object _worksheet failed" on line dataworksheet.cells(emptyrow, 2) = bodworksheet.range("bod_lab_date").value the data worksheet active when copying. should copy values bod_labsheet array, activate data worksheet , recopy values? here complete code: sub submit_bod() ' ' submit_bod macro ' dim dataworksheet worksheet, bodworksheet worksheet, suspendedsolidsworksheet worksheet dim datasheetname string dim bodsheetname string dim suspendedsolidsname string datasheetname = "data" bodsheetname = "bod_labsheet" suspendedsolidsname = "suspended_solids_labsheet" set dataworksheet = activeworkbook.sheets(datasheetname) set bodworksheet = activeworkbook.sheets(bodsheetname) set suspendedsolidsworksheet = activeworkbook.sheets(su...