Posts

Showing posts from March, 2014

Performing randomization using JavaScript on Qualtrics -

i have around 1000+images , want perform randomization on these images on qualtrics such 1 image appears whenever takes survey. guide me through not have background in java script. i have prepared following code, code consist of image id's in array. function random generates random number based on total number of image id's in array. number use select 1 image out of array. image appended web link. however, not sure logic of code correct or not. helpful if take @ this, new java scripting qualtrics.surveyengine.addonload(function() {var currentquestionid = this.getquestioninfo().questionid; var arr1=[im_aggu9te6ep0pjn3,im_79zbxlcrr1irxnz,im_2i5fytch,im_5uxw4ird0tmupmt,im_5dnomsomydrvboj] function randomimage() { var idx = math.floor(math.random()*max_plus_one); return images[idx]; }; var image1 = randomimage(); image1.style.display = 'https://az1.qualtrics.com/controlpanel/graphic.php?im= 'imgae1 since don't have background in javasc

node.js - Is there any way to integrate my Facebook Messenger bot with an ionic app? -

i have made facebook messenger bot using node.js , hosted on heroku. how can integrate bot ionic app, bot runs on app , not on facebook messenger. new this, please me out. appreciated. thanks. the facebook messenger platform building bots run on facebook messenger , use native features of facebook messenger , not on website/app. period. but there couple of things can integrate website , bot , make them work more tightly together. checkbox plugin : signup user messenger bot directly website/app. send messenger : authenticate user website/app message : i.e. can begin messenger conversation user website/app. read more these possibilities here .

html - How to add and delete data into a MySQL database using PHP? -

i add / delete information database using php @ area. mean have array of courses user has selected , combine array courses have in database. same thing except instead of adding courses deleting. though using concat, can't figure out how use in code. my php file looks this: <?php include("account.php"); //connect mysql database session_start(); $dbc = mysqli_connect($hostname, $username, $password, $database) or die("unable connect mysql database"); echo "connected mysql<br>"; $adchoice = $_post['adlist']; $user = $_post['name']; $num = $_post['number']; if(isset($_post['submit'])) { $query2 = "select * studentdb studentname = '". mysqli_real_escape_string($dbc,$user) ."' , studentid = '". mysqli_real_escape_string($dbc,$num) ."'" ; $result2 = mysqli_query($dbc,$query2); if (mysqli_num_rows($result2) == 1) { while($row = mysqli_fetch_

Partiton RDBMS ( DB2 ) table data either by SQL query or Java -

i have implement partitioning column data ( column name : id ) large database table ( db2 ). table has more billion rows , keeps growing. partitioning has implemented illustrated here i.e. have calculate minid & maxid specified range. id column values unique not sequential simple approach illustrated in above link not work - i.e. starting id keep adding range. with rownumtab ( select rownum, id ( select rownumber() on (order id) rownum, id idtable ) mod(rownum,1000)=0 or mod(rownum,1000)=1 ur ) select t1.id min_id , t2.id max_id rownumtab t1 inner join rownumtab t2 on t1.rownum+999=t2.rownum ur; this above query gives me min_id,max_id particular range - 1000. this query works small tables large table having few billion rows, assigning row number each row not completing in realistic time. any alternate suggestions achieve kind of partitioning? challenge described here too. reading id values memory doing java manipulation not feasib

hadoop - Merge large number of spark dataframes into one -

i'm querying cached hive temp table using different queries satisfying different conditions on more 1500 times inside loop. need merge them using unionall inside loop. stackoverflow error due fact spark cannot keep rdd lineage. pseudo code: df=[from hive table] tablea=[from hive table] tablea.registertemptable("tablea") hivecontext.sql('cache table tablea') in range(0,2000): if (list[0]['column1']=='xyz'): df1=query tablea df=df.unionall(df1) elif (): df1=query tablea df=df.unionall(df1) elif (): df1=query tablea df=df.unionall(df1) elif (): df1=query tablea df=df.unionall(df1) else: df1=query tablea df=df.unionall(df1) this throws stackoverflow error due rdd lineage becoming hard. tried checkpointing follows: for in range(0,2000): if (list[0]['column1']=='xyz'): df1=query tablea df=df.unionall(df1)

regex - AND operator for text search in Emacs -

i new emacs. can search text , show lines in separate buffer using "m-x occur". can search multiple text items using or operator : one\|two , find lines "one" or "two" (as explained on emacs occur mode search multiple strings ). how can search lines both "one" , "two"? tried using \& , \&& not work. need create macro or function this? edit: i tried writing function above in racket (a scheme derivative). following works: #lang racket (define text '("this line number one" "this line contains 2 keyword" "this line has both 1 , 2 keywords" "this line contains neither" "another 2 & 1 words line")) (define (srch . lst) ; takes variable number of arguments (for ((i lst)) (set! text (filter (λ (x) (string-contains? x i)) text))) text) (srch "one" "two") ouput: '(&qu

angularjs - Multi EventEmitter -

dears, i know how can use eventemitter multiple functions i'm having buttonframe component has 3 buttons. trigger same button function parent component, working fine 1 eventemitter how can call second , third button function ? i have created sample in plunker https://plnkr.co/edit/kaa1j1tppkoxxlgm6wye?p=preview -->button frame import { component, eventemitter, oninit, input, output } '@angular/core'; @component({ selector: 'buttonframe', template: `<button (click)="ufbaclist()">account list</button> <button (click)="ufbapprove()">approve</button> <button (click)="ufbattachments()">attach</button> ` }) export class buttonframecomponent implements oninit { @output() eufbaclist: eventemitter<any> = new eventemitter(); @output() eufbapprove: eventemitter<any> = new eventemitter(); @output() eufbattachments: eventemitter<

PHP Loop through Results and Parse out Values -

i'm working api returns set of invoices based on query - here's example of result returns 6 invoices store in $invoices variable: simplexmlelement object ( [id] => 11109617-58f0-4eff-8f95-9663a2ddeb2f [status] => ok [providername] => xero demo [datetimeutc] => 2017-04-04t23:31:03.2920449z [invoices] => simplexmlelement object ( [invoice] => array ( [0] => simplexmlelement object ( [contact] => simplexmlelement object ( [contactid] => 0e72016e-7c60-4a19-b8d0-1d2c58cc0b49 [name] => metfill constructions ) [date] => 2017-03-02t00:00:00 [duedate] => 2017-03-16t00:00:00 [status] => authorised

android - notifyDatasetChanged() not working on the adapter -

i've created custom list 4 textviews...the data in list saved through dialog has ok button. when add data, gets saved in list(works fine till now). when add next element, rows gets same value last one...the notifydatasetchanged() not working...am wrong somewhere?...this code... ok.setonclicklistener(new view.onclicklistener() { @override public void onclick(view view) { string val = editquantity.gettext().tostring(); valq1 = integer.parseint(val); listview l; l = (listview) v.findviewbyid(r.id.order_listview); myadapter adapter = new myadapter(getactivity(), row); l.setadapter(adapter); row.add(""); adapter.notifydatasetchanged(); builder.dismiss(); } }); builder.setview(dialog); builder.show();

c# - how to change font family of urdu characters in a textbox -

i using jquery convert english characters urdu characters in text box (asp: server side control ). want change font family of these urdu characters. there way or library, having collection of font families, change font family? please use inline css in div,span,p or tag in : for html: <input style="font-family:georgia, serif" value="اڈوبی عریبک بولڈ"/> for asp: <asp:textbox id = textbox1 runat ="server" style="font-family:georgia, serif" /> instead of georgia, serif use font-family

jquery - Javascript pause and resume transition animation on text -

i try pause/resume transition animation on text. have try many solution similiar question, still not succeed. i want pause 'color effect' when click pause button, , when click resume button 'color effect' finish job coloring whole text based on rest duration. here's code. $(document).ready(function(){ $('#start').on('click', function() { $(this).text('resume'); $(this).attr('disabled',true); $('span').addclass('active'); $('span').dequeue(); }); $("#stop").click(function() { $('#start').attr('disabled',false); $('#start').clearqueue(); $("span").stop(); /* * similiar below, * still not perfect. * when duration of background-position-x has finished, * transition start again. , yet still not perfect */ /*$('span').animate({ 'background-position-x

bash - calculate balance on certain day from monthly projection -

i have list of monthly outgoings looks this: 1st - car - 100 3rd - rent - 400 7th - gas , electricity - 51 8th - phone - 12 17th - internet - 30.74 21st - insurance - 45.21 27th - patreon - 2 28th - water - 12.9 the above example similar in structure monthly outgoings. let's paid on 23rd of every month. write script (preferably in bash) input current bank balance , subtract that's coming out of bank between $current_date , 22nd of month? so run script time in month , quick glance @ how surplus money have. here's annotated bash solution, not optimal solution: #! /bin/bash if [[ -z ${1} ]]; echo "missing argument: current balance" exit 2 fi # current balance comes in first argument, multiplied 100 cent-value (bc decimal) current_balance=$(scale=0; echo "${1} * 100" | bc -l) # current day without leading 0 current_day=$(date +"%-d") # last day of current month last_day_of_month=$(date -d "-$(date

How to use double do loop in Scheme? -

i want use "do" command show (1 1)(1 2)(1 3)(2 1)(2 2)(2 3)(3 1)(3 2)(3 3) , code below: (lambda ( ) (define 1) (define b 1) (do ((a 1 (+ 1))) (= 3) (do ((b 1 (+ b 1))) (= b 3) (display b) ))) but show 3 as result. did wrong? how should correct it? to michael vehrs, thank lot, works! i'm still confusing exit condition. tried change the > in code to = and shows (1 1)(1 2)(2 1)(2 2) . because stops when = 3 won't print? so "list" command can combine several variables. how "newline" command? tried remove , add () in last. thank answer. i'm new scheme learner trying use on tracepro. have tip(book, youtube video, website) me learning scheme? advise help. you mean: (lambda () (do ((a 1 (+ 1))) ((> 3) (newline)) (do ((b 1 (+ b 1))) ((> b 3)) (display (list b)))))) your code has number of problems: exit condition do loop incorrect (and makes procedure retu

How to step into Angular 2 JavaScript code - import statements? -

i developing angular 2 application (exchangemodule) , receive following error when loading application: 127.0.0.1/:16 error: (systemjs) unexpected value 'frameworkservice' imported module 'exchangemodule' error: unexpected value 'frameworkservice' imported module 'exchangemodule' @ eval (http://127.0.0.1:8080/node_modules/@angular/compiler/bundles/compiler.umd.js:13982:37) @ array.foreach (native) @ compilemetadataresolver.getngmodulemetadata (http://127.0.0.1:8080/node_modules/@angular/compiler/bundles/compiler.umd.js:13967:46) @ runtimecompiler._compilecomponents (http://127.0.0.1:8080/node_modules/@angular/compiler/bundles/compiler.umd.js:16688:49) @ runtimecompiler._compilemoduleandcomponents (http://127.0.0.1:8080/node_modules/@angular/compiler/bundles/compiler.umd.js:16626:39) @ runtimecompiler.compilemoduleasync (http://127.0.0.1:8080/node_modules/@angular/compiler/bundles/compiler.umd.js:1

sql server - Deriving Dynamic Column in SQL -

i have table this: store_id | week ---------+-------- a1 | 201601 a1 | 201602 a1 | 201604 a1 | 201606 a1 | 201607 a2 | 201552 a2 | 201603 a2 | 201604 a2 | 201605 a2 | 201608 i need derive dynamic week column next ideally looking this: store_id | week | dynamic_week ---------+--------+------------- a1 | 201602 | 1 a1 | 201603 | 2 a1 | 201605 | 4 a1 | 201606 | 5 a1 | 201607 | 6 a2 | 201552 | 1 a2 | 201603 | 4 a2 | 201604 | 5 a2 | 201605 | 6 a2 | 201608 | 9 the logic is: min(week) each store considered first week of sales corresponding store. preceding values in dynamic week incremented based on reference of first week of sales on each store. i tried row_number() , rank() , dense_rank() , couldn't solution that's needed. 3 things didn't work. can suggest me possible solution. thanks in advance. edit:

C programming--- how to save a string with spaces in FILE and recall them -

Image
i saw few similar problems in website , tried follow methods either methods don't work or couldn't understand properly. i having trouble saving strings spaces file , recalling them. #include<stdio.h> int main() { char a[200]; char b[200]; char c[200]; char bug[100]; int s; file *fp; printf("press 1 add\npress 2 show\n"); scanf("%d",&s); if(s==1) goto level1; else goto level2; level1: gets(bug); printf("name: "); gets(a); printf("address: "); gets(b); printf("comment: "); gets(c); fp=fopen("practice2.txt", "a+"); fprintf(fp, "\n%s\t%s\t%s\t",a,b,c); fclose(fp); printf("\n1 add\n2 show\n"); scanf("%d",&s); if(s==1) goto level1; else goto level2; level2: fp=fopen("practice2.txt", "r"

java - lambda expression prevents class from spring component-scan -

our application have class test @component annotation. lambda expression being used here. @component public class test{ private scheduledexecutorservice schedulerexecutorservice; private long timeoutforrollback=180000; private long timeoutfailoverdelay=180000; public static test getinstance() { if (instance == null) { /*actual instance created via reflection. using new understanding */ instance = new test(); } return instance; } public void handlefailover(){ schedulerexecutorservice.schedulewithfixeddelay( () -> { schedulerexecutorservice.shutdown(); }, timeoutforrollback, timeoutfailoverdelay, timeunit.milliseconds); } } but test class bean not created. when method commented, test class bean created. using java 8 oracle , eclipse neon2. suggest if c

javascript - How to upload multiple images and object data in Angular js to Spring Controller -

Image
request multipart file angular js not getting mapped spring controller request parameter file. my angular js code uplaod multiple images , object data looks below angular js controller: adminservice.addimage($scope.gallery, $scope.logo.image).then(function(success) { alertservice.alert("addded successfully") $scope.back(); $scope.isloading = false; } service js file adminserv.addimage= function(obj, file) { var deferred = $q.defer(); var formdata = new formdata(); formdata.append("advertisementrequestjson", json.stringify(obj)); formdata.append("files", file); $http.post(app_config.api_url + 'api/saveadvertisementdetails', formdata, { transformrequest: angular

HX711 module and NodeMCU devkit 0.9 -

good morning. i have nodemcu devkit 0.9 , trying interface load cell amplifier (hx711), saw has libraries nodemcu. i tried 2 options: custom build nodemcu-build.com master , dev branches. after flashing bin file , opening esplorer /dev/ttyusbx port tried upload basic web server code here . when go browser , type ip nothing displayed. build own firmware, uncommenting hx711 module , limiting flash size 4m , use esp-open-sdk have xtensa-lx106-elf module. after building without errors flashed generated bin file , same thing happened. web server doesn't seem running. bit confused because bin working devkit 0.9 board last 1 available in releases, 0.9.6-dev_20150704, 1 doesn't have modules need proceed hx711 project. when build using 1.4/1.5/2.0 nodemcu firmware i'm not able same things working (at least web server basic code). tried several combinations of user configs (baud rate, activating devkit 0.9 define, develop mode, auto flash vs 4m flash). what procedure

activerecord - how to perform a search query of a foreign key field's attribute in rails? -

i have 2 models exam , student . exam.rb class exam < applicationrecord belongs_to :year belongs_to :student, class_name: "student" def self.search(search) if search self.where('student. ?', "%#{search}%") else self.all end end end student.rb class student < applicationrecord belongs_to :year has_many :exams end the student field in exam.rb refers student object . model student has attribute name , want perform search based on attribute , find out list of exams taken student . possible make such query ? if , correct way implement ? thanks you can implement using joins , where : exams_list = exams.joins(:student).where('students.name ?', "%#{search}%")) hope helps.

html - How to add custom font in shopify site -

hi, i have added font code @font-face { font-family: 'gotham-book'; src:url('{{ "gotham-book.eot" | asset_url }}'); src:url('{{ "gotham-book.eot" | asset_url }}#iefix') format('embedded-opentype'), url('{{ "gotham-book.woff" | asset_url }}') format('woff'), url('{{ "gotham-book.ttf" | asset_url }}') format('truetype'), url('{{ "gotham-book.svg | asset_url }}#gotham-book') format('svg'); font-weight: normal; font-style: normal; } also uploaded font files in assets folder. question: how use font headings, theme using sass variables,

java - Calendar Event via Intent does not set Start Date and End Date -

i have stucked in problem start date , end date not setting in calendar event please let me know whats problem here code intent intent = new intent(intent.action_edit); intent.settype("vnd.android.cursor.item/event"); mycalendar.set(calendar.year, year); mycalendar.set(calendar.month, monthofyear); mycalendar.set(calendar.day_of_month, dayofmonth); mycalendar.set(calendar.hour_of_day, hours); mycalendar.set(calendar.minute, minutes); log.d("endtime", mycalendar.gettime().tostring()); intent.putextra("allday", false); intent.putextra("rrule", "freq=yearly"); intent.putextra("endtime", mycalendar.gettime().tostring()); intent.putextra("title", data.gettitle()); startactivity(intent); log d/endtime: thu apr 13 12:00:00 gmt+05:00 2017 doesn't set in calender here screen shot please have look calender image data

kentico - CMS Repeater Select top N row++ -

Image
i need load more button control repeater shown content. here steps in end after load more button clicked: repeater bind data (full data/all rows). keep maximum items count (static) repeater. set total row show (static) + 1 , initialize value select top n row limit. repeater bind data again (the amount show only). check if repeater items count less maximum items count, if not hide load more button. suppose these steps can give me expected output? //declaration public static int max = 0; public static int totalshow = 0; //setupcontrol() if(!ispostback){ rptitems.classname = "blog"; rptitems.path = "/shared/%" rptitems.databind(); max = rptitems.items.count(); } //this part put under new function totalshow += 1; rptitems.selecttopn = totalshow; rptitems.databind(); lbnloadmore.visible = rptitems.items.count() < max; besides, i'm confusing functions shown below: both class cmsrepeater , what's different? 1 should use in ord

c++ - Is it possible to assign two structure of different type? -

my need assign similar structure another, names different. if of same name use =(assignment) directly. dont want use memcopy copy bits. struct first{ int i; char c; } struct second{ int i; char c; //we can overload assignment operator copy field. void operator = ( struct first& f) i=f.i; c=f.c; } int main() { struct first f; f.i=100; f.c='a'; struct second s=f; } but getting compilation error. error: conversion "first" non-scalar type "second" requested. not sure if possible. you need constructor use struct second s=f; such as: struct second{ int i; char c; second(first const& f) : i(f.i), c(f.c) {} ... }; to use assignment operator, use: second s; // no need use struct in c++ s = f; btw, proper interface , implementation operator= function should be: second& operator=(first const& f) { i=f.i; c=f.c; return *this; }

How to save and restore ConEmu Layout -

is possible save , restore conemu session? i have open 3 windows 1: open new window. cd project frontend dir. , run local server 2: open new window. cd project backend dir. , run backend app server 3. open new window. cd project top dir. so, avoid task need save layout , preserving path.

javascript - converting data from db to chartjs areachart dynamic data -

Image
i have question populating dynamic data chartjs area chart, manage query database clinics these query result : select tbl_clinics.clinic_name, coalesce(count(tbl_check_up.check_up_id),0) total_checked_up tbl_clinics left outer join tbl_queue on tbl_clinics.clinic_id = tbl_queue.clinic_id left outer join tbl_check_up on tbl_queue.queue_id = tbl_check_up.queue_id tbl_clinics.user_id = 102 group tbl_clinics.clinic_name now, here ajax function query , response of json data object : function getpieclinic() { $.ajax({ url: siteurl+"patients_report/piedataclinic", type: "get", datatype: "json", success:function(response) { alert(response) } }); } now question how convert or put chartjs areachart data like. area chartjs format code below: // context jquery - using jquery's .get() method. var piechartcanvas = $("#piechart").get(0).getcontext("2d"); var piechart =

Rxjs-DOM load function does not fire angular 2 -

i working on angular 2 project need call specific functions , after elements on page loaded. tried use eventfrom function observable, worked when expecting 'click' operation, once switched 'load" did not fire @ all. next tried use rxjs-dom load function , not fire either. here code have right now: ngafterviewinit(): void { let input = this.container.nativeelement.getelementsbyclassname('list-item'); let source = rx.dom.load(input); let subscription = source.subscribe((x) => { console.log('next!'); }, (err) => { console.log('error: ' + err); }, () => { let temp = this.container.nativeelement.getelementsbyclassname('list-item'); console.log(temp.length); }); } <div class="list-wrapper"> <div class="list"> <div class="list-item" *ngfor="let item of items"> <img src={{item.ima

iphone - On iOS 9.3 My app is showing black screen while in 3d view controller view is appearing -

Image
when launch app in 9.3 app showing black screen when launch app in ios 10 working fine. minimum target 9.0 , using swift3.0

preview - How to open MS Word doc online at specified position? -

i have long word document. have preview online @ page of web site (usually using office online or google disk doc viewer this). want open @ specified destination, e.g. on page should opened @ chapter (it should scrolled page chapter a). on page b should scrolled chapter b , on. do these viewers has such functionality (assuming not)? there other support it? or not viewer specific , should create bookmarks on page , provide viewer in way (i have no idea how)?

html - Left side div is not aligning properly in bootstrap -

this question has answer here: how create sticky left sidebar menu using bootstrap 3? 3 answers i have sticky header in code. , trying add 1 more sticky div in left side. looking fine. when try scroll content, layout changing. @ minimum size (mobile size) left side div not aligning properly. please suggest. var onresize = function() { $("body").css("padding-top", $(".navbar-fixed-top").height()); }; $(window).resize(onresize); $(function() { onresize(); }); $(document).ready(function () { $('body').scrollspy({ target: '#mainnavbar', offset: 10 }); }); html, body { height: 100%; } body { padding-top: 50px; } .navbar-nav { float: left; margin: 0; } .navbar-nav>li { float: left; } .navbar-nav>li>a { padding-top: 15px; padding-bottom

python - why isnt my arduino working with serial? -

i trying use wii nunchuk mouse arduino. project here. here error message: photo if wondering why not posting on page, because several years old , noone goes on there anymore. in python script, forgot initialize baud rate when defining serial object "port" # port arduino board connected port = 'arduino_port' try instead, # port arduino board connected port = serial.serial('/dev/ttyacm0',9600) #or whatever port called

swift - IOS Autocompletion not working on RxCocoa Xcode 8.3 -

i'm having problem rxswift , rxcocoa. have update latest version 3.3 , xcode 8.3 there problem autocomple feature rxcocoa. everytime write textfield.rx.text. there no autocomple import uikit import rxswift import rxcocoa class firstviewcontroller: uiviewcontroller { @iboutlet weak var textfield2: uitextfield! @iboutlet weak var textfield1: uitextfield! var textfield1observerble: driver<string?>! var textfield2observerble: driver<string?>! override func viewdidload() { super.viewdidload() // additional setup after loading view, typically nib. textfield1.rx.text. } override func didreceivememorywarning() { super.didreceivememorywarning() // dispose of resources can recreated. } } anyone have problem rxcocoa autocompletion? how can fix that. many thanks. there workaround: you add asobservable() @ end , use dot operator auto complete suggestion following: textfield1.rx.text.asobservable().

unity3d - Unity 5.6.0f3 does not compile any c# script (System.RuntimeType not found) -

i downloaded latest unity version 5.6.0f3 , can't script compile. steps: 1) open unity , create new project 2) add script component object in hierarchy 3) press play => error: runtime critical type system.runtimetype not found all compiler errors have fixed before can enter playmode! unityeditor.sceneview:showcompileerrornotification() any idea can cause error? have no other scripts or assemblies in asset folder. it's complete new project 1 default script. platform: windows 10 x64 (latest updates installed) unity: 5.6.0f3 x64 ide: vs 2017 (but did not use yet, because default script fails compile) edit: unity 5.5.3 x64: assertion @ ..\mono\metadata\domain.c:718, condition `mono_defaults.runtimetype_class != 0' not met using system.collections; using system.collections.generic; using unityengine; public class test: monobehaviour { // use initialization void start () { } // update called once per fra

Override property types in child classes in java android -

i'm trying implement app mvp (model-view-presenter) pattern in android i'm facing problem. want have abstract base presenter view class property of generic type viewinterface when creating real presenter i'd property of type realpresenterview , if possible without needing override same function in presenters. as didn't explain myself here's bit of code illustrate case, first base presenter: abstract public class basepresenter { protected viewinterface view; protected viewinterface getview() { return view; } } then real presenter public class realpresenter { protected realpresenterview view; // ... view.methodonlyexistinginrealpresenterview(); } i wanted able use view in realpresenter realpresenterview without needing add code in class. possible? i've read class templates haven't seen how implement in case without adding functions in every presenter. you can use generics : basepresenter abstract

excel - vba find file path using increment? -

i trying use following vba code find file path of file: lets have file called text.xlsx this stored in g:\folder\1. 2017 or g:\folder\2. 2017 or g:\folder\3. 2017 etc so trying use loop check numbers 1 10 to ensure path found. sub planneropen() dim integer = 1 10 path = "g:\folder\" & & ". " & year(date) & "\" msgbox path & "*.xlsx" = + 1 next end sub this seems produce numbers 1, 3, 5 , 9. am doing wrong? please can show me going wrong? the for = 1 10 line start of loop , setting i 1 , increment 1 on each iteration (unless otherwise specified step ) until reaches 10 . your loop starts on 1 , creates msgbox 1 manually increase i 2 line i = + 1 . returns start of loop , default increment i again 1 per design, setting 3 . remove manual i = + 1 incrementation , allow loop you.

angularjs - GitHub Deployment to Azure -

i've tried upload angular2 project github azure following error when open azure page: you not have permission view directory or page. the github deploy azure worked fine, no problem. know reason why still error message? here's my github project here's my azure website you using azure web app , azure uses iis host application. so, basically, no longer need handle angular2 project node.js script. please try delete server.js file /wwwroot folder, , remove following content in web.config file. <handlers> <!-- indicates app.js file node.js application handled iisnode module --> <add name="iisnode" path="server.js" verb="*" modules="iisnode" /> </handlers>

sdk - Android how to open app both outside and inside gear vr device -

i have developed android application playing 360 videos in gear vr device.i have used below code inside manifest preventing gear vr app auto-launching.(previously,when connected phone gear vr device,gear vr app launches instead of app.and can't in app) <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only"/> but when used code can't open app outside of gear vr device.that means when click app icon,the splash screen appears , popup comes.."to open application, insert device gear vr".so changed manifest as:- <meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_dual"/> now problem gear vr app again launches default when connected gear vr device.how handle this.? can me find solution....

html - I can't scroll, could few minutes ago -

i'm using laravel make pages, 1 of them has next , previous page button, work, , dark reasons, can't scroll using scroll wheel anymore. can click on side bar of browser , scroll way, scroll wheel won't (and it's not broken wheel, other sites work well). the thing changed right before happened moved view code in blade template. i tried this, no succes: html { overflow: scroll; } however, kinda works : * { overflow: scroll; } but scroll bar on container, makes page aweful. reason ? , if somehow keep happening, can hide side scroll bars ? (i cleared cache)

html - How can I execute a javascript function when an input changes? -

i trying execute javascript function when input changes value. input changes value when other inputs clicked (those inputs increase or decrease value). here html code: <input type='button' value='–' class='qtyminus' field='quantity{{$accessory- >id}}' style="font-weight: bold;" /> <input id='accessory{{$i}}' onchange="updatenoaccessories({{$i}})" type='text' name='quantity{{$accessory->id}}' value='1' class='qty' style="margin-bottom: 0px !important"/> <input type='button' value='+' class='qtyplus' field='quantity{{$accessory- >id}}' style="font-weight: bold;" /> js function: function updatenoaccessories(i) { var no = document.getelementbyid("accessory"+i).value; document.getelementbyid("acc"+i).innerhtml = no + ' x'; } what want update js function: <span

PDF is blank after Upload from ASP Classic -

i making uploader page have use asp classic , found jacob "beezle" gilley's uploader , working, long txt file. problem occurs when it's pdf file or image, , need upload them. the problem example pdf file gets uploaded place blank. have edited in of original code since need have utf-8 encoded. otherwise identical, , upload edited code. public sub savetodisk(spath) dim ofs, ofile dim ostream if spath = "" or filename = "" exit sub if mid(spath, len(spath)) <> "\" spath = spath & "\" set ofs = server.createobject("scripting.filesystemobject") if not ofs.folderexists(spath) exit sub set ostream = createobject("adodb.stream") ostream .type = 2 .charset = "utf-8" .mode = 3 .open .writetext rsbinarytostring(filedata) .savetofile spath & filename .close end set ostream = nothing end sub how fix it, or can fix