Posts

Showing posts from February, 2010

windows - How to change default value of AllUsersProfile environment variable. -

i want map default location of alluserprofile other folder. i following below link no luck far https://www.pcreview.co.uk/threads/changing-userprofile-and-allusersprofile.4047094/ i believe want registry key hklm\software\microsoft\windows nt\currentversion\profilelist . the easiest way is: when installing windows, create temporary user account admin rights. log in temporary account, change default user profile directory, , restart (i believe registry change doesn't take effect until restart); log in temporary account , create "real" / permanent user accounts. make sure @ least 1 of these has admin rights. log in "real" admin account , delete temporary / dummy account created during install. if have existing profiles want move, becomes more difficult, because the registry change not affect existing user profiles. iirc cannot move existing profiles while windows running. have boot recovery mode console , use robocopy move user pr...

awk command (cygwin) is giving me empty file -

i'm trying compare data 2 files using awk command (cygwin). 1 file has names of transcription factors , other file (database) has genes(rows) different cells (columns). i'm using: awk -f, 'fnr==nr {a[$1]; next}; $1 in a' tf.csv db.csv > output.csv but it's gives empty file , when keep names of genes form database file works. if same command run on terminal of linux runs perfectly.

php - UTF-8 all the way through -

i'm setting new server, , want support utf-8 in web application. have tried in past on existing servers , seem end having fall iso-8859-1. where need set encoding/charsets? i'm aware need configure apache, mysql , php - there standard checklist can follow, or perhaps troubleshoot mismatches occur? this new linux server, running mysql 5, php 5 , apache 2. data storage : specify utf8mb4 character set on tables , text columns in database. makes mysql physically store , retrieve values encoded natively in utf-8. note mysql implicitly use utf8mb4 encoding if utf8mb4_* collation specified (without explicit character set). in older versions of mysql (< 5.5.3), you'll unfortunately forced use utf8 , supports subset of unicode characters. wish kidding. data access : in application code (e.g. php), in whatever db access method use, you'll need set connection charset utf8mb4 . way, mysql no conversion native utf-8 when hands data off applicati...

Not able to Install python package libportaudio-dev via pip on Windows 10 -

Image
python version : 2.7.13 pip version: 9.0.1 error: not find version satisfies requirement libportaudio-dev(from version:) no matching distribution found libportaudio-dev pip installs packages pypi , there no libportaudio-dev @ pypi. it's not python package. a package in ubuntu. to install on w32 have download source code , compile it. see the instructions . there old precompiled binaries @ https://github.com/adfernandes/precompiled-portaudio-windows https://github.com/spatialaudio/portaudio-binaries — these ones more fresh.

java - Data model mapping from Json with Gson returns null -

i have json { "meta data": { "1: symbol": "stock", "2: indicator": "sma", "3: last refreshed": "2017-07-25 09:50:00", "4: interval": "daily", "5: time period": 3, "6: series type": "open", "7: time zone": "us/eastern" }, "technical analysis: sma": { "2017-07-25 09:50:00": { "sma": "266.6264" }, "2017-07-24": { "sma": "265.9137" }, "2017-07-21": { "sma": "265.3237" } }} and i've mapped these classes in order model filled directly gson library (stock, metadata, techanalysis, dayvalue): public class stock { private metadata metadata; private techanalysis tech; public metadata getmetadata() { return metadata; } public void setmetadata(metadata metadata) { ...

c++ - Gdiplus::Bitmap::FromHBITMAP memory leakage -

i call repeatedly code getting memory leakage: ulong_ptr gdiplustoken; int screen_height; int screen_width; cvcamstream::cvcamstream(hresult *phr, cvcam *pparent, lpcwstr ppinname) : csourcestream(lpcstr(filter_name),phr, pparent, ppinname), m_pparent(pparent) { hdc = getdc(null); gdiplus::gdiplusstartupinput gdiplusstartupinput; ulong_ptr gdiplustoken; gdiplusstartup(&gdiplustoken, &gdiplusstartupinput, null); screen_height = getsystemmetrics(sm_cyvirtualscreen); screen_width = getsystemmetrics(sm_cxvirtualscreen); } cvcamstream::~cvcamstream() { gdiplus::gdiplusshutdown(gdiplustoken); deletedc(hdc); } hresult cvcamstream::fillbuffer(imediasample *pms) { reference_time rtnow; reference_time avgframetime = ((videoinfoheader*)m_mt.pbformat)->avgtimeperframe; static clock_t refclock = clock(); double elapsed = (clock() - refclock) / (double)clocks_per_sec; rtnow = m_rtlasttime; m_rtlasttime += avgframetime; ...

php - Symfony2 custom access denied handler -

i'm trying restrict calls inside symfony 2.8 app localhost, far i've managed via security.yml problem cannot change access denied page. i followed symfony2 documentation link but no success, on debug toolbar not find firewall path. this security.yml providers: in_memory: memory: ~ firewalls: secured_area: pattern: ^/register access_denied_handler: app.security.access_denied_handler anonymous: ~ dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false access_denied_handler: app.security.access_denied_handler main: anonymous: ~ access_denied_handler: app.security.access_denied_handler access_control: - { path: ^/register, roles: role_admin, allow_if: "'127.0.0.1' == request.getclientip()" } i not understand how configure /register path go through secured_area firewall rule , use access_denied_handler: app.security.access_denied_handler ser...

issue while installing the python in windows server 2016 in google cloud platform -

i want install python in windows server 2016 have created new instance of windows server 16 in google cloud platform . in installation sequence python window throwing error of (installation forbidden system policy) can 1 me on come barrier install python in terminal server , use . thank you

mysql - Update Whole Table adding value from previous row -

Image
table acc if edit "a" amount 100 total amount change whole table need update... mysql query updating whole table adding (credit) or subtracting (debit) previous total amount... as commented @gordon linoff, can archive goal using after update trigger , loop. wrote idea below example. delimiter // create trigger acc_after_update after update on acc each row begin declare done int default false; declare type varchar(10); declare total_amount default 0; declare name varchar(10) declare amount int; declare cur1 cursor select name, type, amount acc; declare continue handler not found set done = true; open cur1; repeat fetch cur1 name, type, amount; if not done case type when 'credit' = total_amount + amount; when 'debit' total_amount = total_amount - amount end case update acc set amount = total_amount name = @name --not sure syntax end if; until do...

Python Tkinter GUI User Login Accepting any Username with Correct Password -

alright must missing silly or obvious here have created method check username , password inside of gui , weird things. can type in username long password correct, accept it. have looked @ other similar questions haven't seen answer accounts issue. see i'm doing wrong here? thanks def correct_login(text): stored_user = user_entry.get() if stored_user == "admin" or "admin": stored_pass = pass_entry.get() if stored_pass == "password": user_entry.delete(0, 'end') pass_entry.delete(0, 'end') pass_win.destroy() else: user_entry.delete(0, 'end') pass_entry.delete(0, 'end') mb.showwarning("incorrect credentials", "the username or password have entered incorrect.") else: user_entry.delete(0, 'end') pass_entry.de...

javascript - Executing infinite scroll on dynamically created content -

i have page load content using mysql database. , users can filter content using few buttons , content replaced dynamically pulled data using jquery. link use in infinite scroll change. infinite scroll plugin seems take same old link , not newly loaded link trigger scroll. jquery infinity scroll plugin use https://cdnjs.cloudflare.com/ajax/libs/jquery-infinitescroll/2.1.0/jquery.infinitescroll.js this code <div class="container" id="myposts"> <div class=”post”> <p>my content</p> </div> </div> <nav id="page-nav"><a href="myposts.php?page=2"></a></nav> //jquery code $('#myposts').infinitescroll({ navselector : '#page-nav', // selector paged navigation nextselector : '#page-nav a', // selector next link (to page 2) itemselector : '. post ', // loading: { finishedmsg: 'end of page...

IOS/Objective-C: Deallocate web view in Detail View Controller -

i have master table , detail view controller. detail vc shows urls through web view. if using built in navigation of master/detail setup, if go , press different table cell, detail view update web view. true whether use uiwebview or wkwebview . however, within detail view, without having go table, want give user option view more 1 url through same web view. trying in viewwillappear changing url request. however, uiwebview (or alternatively wkwebview ) continue show same url. can't seem rid of first url. i've tried kinds of ways close or stop existing web view, clear cache, delete cookies etc. before reloading new 1 still see same url. appreciate suggestions. here code , of things i've tried don't work: -(void) changeurl: (nsnumber*)param { nsurl *testurl1=[nsurl urlwithstring:@"http://www.apple.com"]; nsurl *testurl2 =[nsurl urlwithstring:@"http://www.google.com"]; //if param 1 { _urltoload = testurl...

Java XML signature -

hello try use java digital signature api. create keypair instance , other xml signature elements , print output xml. problem keyinfo xml element. in output xml looks like: <dsig:keyinfo id="keyinfo001"> <dsig:keyvalue> <dsig:rsakeyvalue> <dsig:modulus>gfwmviozvknzvifbuack3pcwzpyfdosmu2bkfuzjwd4xlwm1lcewe8bgpvafmsjhaob/5edrs+gu uqngkj106petnizmbqvyjiold3s1xhh0086dbpnbbh3/3b/ddebxz6kaurwvajeqopsseuzfbj1q gdzi4q7qoemroqaypdc=</dsig:modulus> <dsig:exponent>aqab</dsig:exponent> </dsig:rsakeyvalue> </dsig:keyvalue> but if want print modulus (public key) publickey instance , create string bytes, java doesn´t give me same result in xml. i can access publickey this: keypair.getpublickey.getencoded() please, ideas? i try use: base64.getencoder.encodetostring(keypair.getpublickey().getencoded()) outout still not same in generated xml domsigning instance.

vue.js - Pass data to a store? -

how can pass data vue component store? here's component: methods: { ...mapactions('navbar', [ 'fix', ]), onclick: function() { this.fix('my-data'); }, .... and on store: actions: { fix: ({ commit }) => { //get data here? }, }, actions mutations in vuejs 2.x can take 1 additional argument (often referred payload ) additional data. from vuejs documentation on mutations : you can pass additional argument store.commit, called payload mutation: mutations: { increment (state, n) { state.count += n } } store.commit('increment', 10) in cases, payload should object can contain multiple fields, , recorded mutation more descriptive: mutations: { increment (state, payload) { state.count += payload.amount } } store.commit('increment', { amount: 10 }) and actions : actions support same payload format , object-style dispatch: ...

python - django multiple submit buttons -

i have many buttons in django template. each button has different name {{transaction.id}}. how can refer (submit) single button in view? base.html <h3>open transactions</h3> {% transaction in transactions_open %} {{ transaction.id }} {{transaction.timestamp}} {{ transaction.currency }} {{ transaction.sell_or_buy }} {{ transaction.bid }} {{ transaction.date_add }} <form action="" method="post"> {% csrf_token %} <button type="submit" name={{ transaction.id }} value="close">close</button> </form> </p> {% endfor %} views.py class mainview(view): def get(self, request): transactions_open = dealmodel.objects.filter(open_or_closed='open') transactions_closed = dealmodel.objects.filter(open_or_closed='closed') content_dict = {'transactions_open': transactions_open, 'transactions_closed': transactions_clos...

xaml - Detect mouse left button down (Click) outside a border WPF MVVM -

i have border in mvvm. trying achieve detect mouse left button down outside border , hide it. can within mouseleftbuttondown event main window, not know if best solution. how this? want avoid click interfere other events, example, border placed in stackpanel , stackpanel being hidden on mouse left button double click. <border grid.row="2" x:name="custompopup" cornerradius="10,10,0,0" height="25" margin="0" horizontalalignment="center" verticalalignment="center" width="auto" borderbrush="darkblue" borderthickness="1" background="antiquewhite"> <stackpanel orientation="horizontal" horizontalalignment="center"> <image source="/common.images;component/images/info.png" height="20" width="20" stretch=...

node.js - Customize kue processing logic -

i pushing jobs in kue send data external server processing. server can take maximum 50 requests @ time. also, multiple services calling external server processing data. that external server rejects requests coming beyond it's capacity. server respond proper error code when can't take more requests. how can use kue gracefully re-push failed job again kue without changing order of jobs in kue.

javascript - React/Jest error: services.map is not a function -

Image
i have servicescontainer looks servicesreducer render list of servicecards. servicescontainer import react, { component } 'react' import { connect } 'react-redux' import { servicecard } '../../components' export class servicescontainer extends component { constructor(props) { super(props); this.state = { services: props.state.servicesreducer.services } } onformsubmit(e, user) { e.preventdefault(); this.props.searchuser(user) } render() { const services = this.state.services; return ( <div classname='services-container'> <ul> { services.map(service => <servicecard key={ service.name } name={ service.name } description={ service.description } admins={ servic...

java - TestNG is not reading application properties file -

when running testclass reading value properties file. while application reading properly. here's how test class looks like public class testclass { @mock abc abc; @test public void testhealth() { assert.assertequals("ok",abc.health()); } } here's how class abc looks like public class abc { @autowired properties props; public string health() { return props.getmessage(); // returning null } } i seeing following error. java.lang.assertionerror: expected [null] found [ok] expected :null actual :ok while properties file has message value.

python - Where does machine learning algorithme store the result? -

i think kind of "blasphemy" comes ai world, since come world program , result, , there concept of storing un memory, here question : machine learning works iterations, more there iterations, best our algorithm becomes, after iterations, there result stored somewhere ? because if think programmer, if re-run program, must store previous results somewhere, or overwritten ? or need use array example store results. for example, if train image recognition algorithme bunch of cats pictures data sets, variables need add algorithme, if use image library, success everytime find cat, use what? since there nothing saved next step ? all videos , tutorials have seen, draw graph decision making visualy, , not applying use in future program ? for example, example, knn used teach how detect written digit, explicit value use ? https://github.com/aymericdamien/tensorflow-examples/blob/master/examples/2_basicmodels/nearest_neighbor.py nb: people clicking on close request or down...

java - How to create a spring bean with specific number of maximum instances -

i need create spring prototype bean in server limited ram. 1 option use spring bean mix of singleton , prototype scopes, can specify maximum number of instances , threads. is there way in spring create multi instance beans? if not how avoid out of memory errors when using spring prototype beans. if want use spring purposes suggest using factory bean . your context: <beans ...> <bean id="tool" class="com.example.toolfactory"/> </beans> an example of factory bean: public class toolfactory implements factorybean<tool> { private atomicinteger currentid = new atomicinteger(); @override public tool getobject() throws exception { return new tool(currentid.incrementandget()); } @override public class<?> getobjecttype() { return tool.class; } @override public boolean issingleton() { return false; } } public class tool { private final int id; public tool(int id) {...

android - RecyclerView content not using full width of fragment parent -

Image
so have recyclerview within fragment , when content loaded recyclerview not occupy full width of screen. weird thing using code project practically same , there no issues. the fragment layout this <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/windowbackground" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="com.dishesteam.dishes.activities.homeactivity"> <android.support.design.widget.coordinatorlayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/coordinator"> <android.support.v4.widget.swiperefreshlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id=...

c++ - How to maintain a reference to a std::priority_queue's container? -

i'm creating std::priority_queue using std::vector container. it seems priority queue creates copy of container passed in constructor, since changes made container after constructing queue aren't reflected in queue's container. for example, if call clear() on container, priority queue remains full. is there way maintain reference priority queue's internal container after construction? std::priority_queue 1 of few standard containers designed derived from. it has protected member c container. you can derived queue , use c in derived class. if mutate container, remember it's heap , needs have appropriate heap functions applied before leave method. #include <queue> #include <algorithm> struct my_special_queue : std::priority_queue<int> { using underlying_queue = std::priority_queue<int>; // re-use constructors using underlying_queue::underlying_queue; // add clear method void clear() ...

java - Highlighted Large Item In RecyclerView -

Image
i have been working since long time recyclerview. see concept: main highlighted item should in centre (1st item can exception). user scroll, highlighted item's size should decrease , next item size starts increasing animation. hope it's understandable. any tutorials or hints regarding approach? how this ? and this full of tutorial can follow

amazon web services - How can I use gulp on CodeDeploy buildspec file? -

Image
here's build spec file: # 0.1 : shell each command # 0.2 : shell keeps settings # https://stackoverflow.com/a/45115791/28004 version: 0.2 phases: install: commands: - echo install started on `date` - cd wp-content/themes/sitecampaign-sage - echo `pwd` - npm install bower -g - npm install grunt -g - npm install gulp -g - echo install completed on `date` pre_build: commands: - echo pre_build started on `date` - echo `pwd` - bower -v - node -v - npm -v - gulp -v - gulp default - echo pre_build completed on `date` build: commands: - echo build started on `date` - echo `pwd` # - gulp - echo build completed on `date` post_build: commands: - echo post_build started on `date` - echo `pwd` - rm -rf node_modules - rm -rf bower_components - echo post_build completed on `date` artifacts: files: - /**/* discard-pa...

python - Name is not defined in a list comprehension with multiple loops -

i'm trying unpack complex dictionary , i'm getting nameerror in list comprehension expression using multiple loops: a={ 1: [{'n': 1}, {'n': 2}], 2: [{'n': 3}, {'n': 4}], 3: [{'n': 5}], } = [1,2] print [r['n'] r in a[g] g in good] # nameerror: name 'g' not defined you have order of loops mixed up; considered nested left right, for r in a[g] outer loop , executed first. swap out loops: print [r['n'] g in r in a[g]] now g defined next loop, for r in a[g] , , expression no longer raises exception: >>> a={ ... 1: [{'n': 1}, {'n': 2}], ... 2: [{'n': 3}, {'n': 4}], ... 3: [{'n': 5}], ... } >>> = [1,2] >>> [r['n'] g in r in a[g]] [1, 2, 3, 4]

linode - webmin/virtualmin: How to install phpmyadmin that can manage all databases? -

Image
i have 2 linode accounts, both webmin/virtualmin installed , hosting many different websites. on 1 of 2 accounts managed have 1 of domains host phpmyadmin. when go domain, shows phpmyadmin login page , can login different mysql users , hence able manage different databases. totally forget how did it. now trying setup same thing other linode account. tried is, after creating virtual server host phpmyadmin, go "install script" install phpmyadmin, problem is, on "install option" page , "database manage" option, can choose 1 database, shown in picture: after install it, login "root", can see database "a", not other virtual servers' databases. tried going webmin's "mysql database servers" , "database permission"/"user permission" settings, seems not related. examined first linode account phpmyadmin works databases couldn't figure out how configured in first place.

Register user fingerprint in android application -

this question exact duplicate of: register user fingerprint in android application 1 answer is possible register user's fingerprint in android application (not in settings)and store in database , later use database authentication? no. android-native fingerprint authentication authenticating user device. while apps can ask re-affirm authentication, apps cannot collect fingerprint data themselves, let alone use data later.

java - Methods behaving like Class Fields -

sometimes need values made of more 1 value underlying values can change. example in role playing game written in java there class represents player. have fields "life" , "endurance". last field increase life of player. have "life" , life increasing attribute "endurance" results in total or full life. i write that: public class player { private int life; private int endurance; private int life_total() { return life + endurance; } public player() { life = 10; endurance = 2; } public int get_life_total() { return life_total() } } i write method looks field brackets , behaves field. acceptable solution or there better solutions such situations? in languages have function references javascript, acceptable use such function references returning composed values? your getter method should more this. there no reason have getter method call method fetch v...

menu - Ionic 2 shared component -

i building ionic 2 project , want share header , sidemenu between pages! 1 can please ? have add side menu app.html file : <ion-menu [content]="content"> <ion-header> <ion-toolbar> <ion-title>menu</ion-title> </ion-toolbar> </ion-header> <ion-content> <ion-list> <button ion-item (click)="openpage(homepage)"> home </button> <button ion-item (click)="openpage(friendspage)"> friends </button> <button ion-item (click)="openpage(eventspage)"> events </button> <button ion-item (click)="closemenu()"> close menu </button> </ion-list> </ion-content> </ion-menu> <ion-nav [root]="rootpage" #content swipebackenabled="false"></ion-nav...

r - Unable to install rtools and configure the path correctly -

Image
i followed this instructions install r , rstudio, specifically, in installation of r, set c:\r\r-3.4.1 folder store r instead of c:\program files\r\r-3.4.1 avoid possible issues space in path. followed this instruction step step download , install latest version of rtools . specifically, during installation of rtools, there message box , followed instruction , click both of them. then open rstudio (at moment, fresh, didn't install r packages except basic ones comes rstudio) , install.packages("devtools") looks smooth package ‘withr’ unpacked , md5 sums checked package ‘devtools’ unpacked , md5 sums checked downloaded binary packages in c:\users\ftxx\appdata\local\temp\rtmpk2ee70\downloaded_packages then library(devtools) find_rtools(t) error: running command '"c:/r/r-34~1.1/bin/x64/r" --no-site-file --no- environ --no-save --no-restore --quiet cmd config cc' had status 65535 my system path is sys.getenv()['path'] path ...

Access Report #Error Text Message -

i'm attempting build summary report in access custom statistics based on daily query. however, i'm running difficulties. when use report built off said query, same exact number regardless of formula. i'm building formula count text values in field or count responses in field formula return 18 value (the total number of records) when know false formula. alternatively, create blank report , no matter either receive #error or #name? value in textbox. have checked , name control not name in formula or anywhere else - rename text0 or demo. the formula i've been attempting use =count(iif([daily_numbers_query].[signed_card] not null,1,0)); where daily_numbers_query refers query , signed_card refers field want examine query. want tell number of records signed_card has value , not null. any extremely appreciated. you said query in report's recordsource, need use correct false return. also, don't need query name prefix. =count(iif([signed_card] n...

sorting - Sort the items in a bucket -

we have banner on our site uses items in bucket. wish banner display items in particular order. tried change sort field values items in way want them display. sort order doesn't seem working. can not sort bucket items using sort field in sitecore? or there other way can without using code? thanks in advance.

web scraping - Using requests with a simple form on Python -

Image
i'm trying scrape example sentences specific french word using python, page python doesn't seem have results. i've inspected element of search box , search button , included them parameters. perhaps i'm missing something? http://www.online-languages.info/french/examples.php import requests bs4 import beautifulsoup word = 'manger' url='http://www.online-languages.info/french/examples.php' params ={'word':word,'go':''} response=requests.post(url, data=params) soup = beautifulsoup(response.text, 'html5lib') print(soup.prettify()) edit: here output of result. appears may using javascript. if that's case, have different library use? <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html dir="ltr" lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <h...

postgresql - Creating list with spring ResultSet -

i need create list of contacts using resultset , java 8. i need filter list name, if name suitable add list. , set fetchsize work million rows postgres. for example: public list <contact> getall (string namefilter) {         pattern pattern = pattern.compile (namefilter);         list <contact> contacts = new arraylist <> ();         jdbctemplate.query ("select * contacts", rs -> { // here necessary maybe !pattern.matcher(name).matches() // , maybe jdbctemplate.setfetchsize (*how many rows better read // postgres? (5,5000,50000 ???) *)             contacts.add (new contact (rs.getint ("id"), rs.getstring ("name")));         });         return contacts;     } how can this? you need set fetch size before running query. bear in mind if use singleton jdbctemplate object going affect queries, , should set configuration when jdbctemplate object created. about creating list, using functional interface resultsete...

Grails 2.5.5 in Eclipse with Groovy Compiler 2.4.12 throws Refresh Dependencies error -

i have installed grails 2.5.5 in eclipse ggts (3.6.4.release) , have added groovy compiler feature 2.4.12. importing existing projects workspace. before updating compiler, refresh dependencies (on new project) worked without problems. now, when run refresh dependencies (alt+g,r), throws error. looking guidance resolve issue. log shows following !entry org.grails.ide.eclipse.core 4 0 2017-07-25 18:43:19.426 !message refresh dependecies failed !stack 0 java.lang.noclassdeffounderror: org/codehaus/groovy/frameworkadapter/util/specifiedversion @ org.grails.ide.eclipse.commands.groovycompilerversioncheck.getrequiredgroovyversion(groovycompilerversioncheck.java:63) @ org.grails.ide.eclipse.commands.groovycompilerversioncheck.getrequiredgroovyversion(groovycompilerversioncheck.java:57) @ org.grails.ide.eclipse.commands.groovycompilerversioncheck.check(groovycompilerversioncheck.java:50) @ org.grails.ide.eclipse.commands.grailscommandutils.refreshdependencies(grailscommandutils.ja...

Xcode error when building app: line 7: /resources-to-copy-Project.txt: Permission denied -

when try build cordova application in xcode following error: /users/user/phpstormprojects/project/project-app/platforms/ios/pods/target support files/pods-project/pods-project-resources.sh: line 7: /resources-to-copy-project.txt: permission denied also noticed following file resources-to-copy-project.txt cannot found anywhere on laptop , because of tried running pod install different versions of cocoapods. i tried adding permissions folders chmod a+x.

angular - Delay for router in Angular2 -

i have code, have 2 functions: say() play music (is implemented , works) , router leads next page (it works also) go_next() { this.say(); // audio this.router.navigate( ['app'], { queryparams: { 'part': this.part+1 } } ); //go next page } but play music (it takes 5 sec) , go next page...how implement this?..i guess, have implement kind of delay , can't find such parameter router.navigate . settimeout(function, milliseconds) executes function, after waiting specified number of milliseconds. go_next(){ settimeout(() => { this.router.navigate(['app'], {queryparams: {'part': this.part + 1}}) } , 5000); }

swift - How to pass data backwards to a view controller after passing forward? -

im developing quiz app , there second view controller appears after initial view controller asked answer question. on second view controller user must press button return initial view controller asked question. when segue second view controller believe new instance of initial view controller being created , user asked questions have answered. code in swift file initial view controller constructed when once user asked question once question removed array it's index. how make new instance of initial view controller isn't created segueing second view controller? or there way second view controller can access same methods initial view controller? here code initial view controller: import uikit class viewcontroller: uiviewcontroller { var questionlist = [string]() func updatecounter() { counter -= 1 questiontimer.text = string(counter) if counter == 0 { timer.invalidate() wrongseg() counter = 15 } } func randomquestion(...