Posts

Showing posts from June, 2010

javascript - clear a file input that is in an ng-repeat -

i have set of file inputs being generated array ng-repeat. able clear input after upload has been completed. example uploaded file @ index 1 of array. not upload complete file input associated index (1) cleared. tried binding ng-model @ first didn't work. should use $broadcast?? there way find the value of input? /// <reference path="../typings/tsd.d.ts" /> var app = angular.module("app", []); app.controller("appctrl", function($scope, $q, filefactory){ var ctrl = this; ctrl.ff = filefactory; $scope.upload = function(){ var defer = $q.defer(); defer.promise(function(data){ }) var http = new xmlhttprequest(); var formdata = new formdata(); formdata.append("file", filefactory.uploads[$scope.index].file); formdata.append("file", filefactory.uploads[$scope.index].filename);

reactjs - url replaced but component not loading in react redux -

i redirecting application notfound url action if ajax return 401 dispatch(routeractions.push(constant.prefix+'notfound/')); url updated /notfound component not loading have refresh load notfound component. here routes.js file code <provider store={store}> <router history={history}> <route path="/admin" component={appbase} onenter={requireauth} > <indexroute component={userslist} /> <route path="users" component={userslist}/> <route path="product" component={productslist}/> </route> <route path="/admin" component={basepage}> <route path="login" component={login}/> <route path="notfound" component={notfound}/> </route> <route path="*" component={notfound}/> </router> </provider>, all routes working fine expect re

c# - Can my two linq lines of code be combined? -

i'm not sure how since i'm familiar basic form or linq. here 2 sets of code: var qry = x in customerschecks.customerscheckslist x.routingnumber == routingnumber && x.bankaccountnumber == bankaccountnumber && x.branch > 0 && x.accountnumber > 0 orderby x.name select x; var qry2 = qry.groupby(x => new { x.branch, x.accountnumber}).select(x => x.first()).tolist(); ultimately, want first query in order of branch + account number distinctly. can combined or have way this? thanks in advanced! the quick , dirty solution add groupby chain end of first query. var qry = (from x in customerschecks.customerscheckslist x.routingnumber == routingnumber && x.bankaccountnumber == bankaccountnumber && x.branch > 0 && x.accountnumber > 0 orderby x.name select x).groupby(x =>

Arial Narrow font not supported in PDF - SAP ABAP - Adobe forms -

a custom program creates bom report(an adobe form) using selection screen parameters , download report on presentation server. the report made in adobe forms font set arial narrow fields in palettes. however, when form downloaded font changes myriad pro. acrobat reader used default program generate pdfs. how can arial narrow printed in output. i check sap note 2367603 - arial font missing in pdf output . released on september 20th, starting point you.

html - adding border to flex items in a row aligned to baseline -

Image
question: how can border stretch height of parent , surround child cell. given using flexbox , aligning baseline. can done css? more details: using flex box align items in each row baseline. centered on each cell under "center here" in following picture: when hover on each item hovers solid line 10px margin around each cell: i want on hover border stretch top , bottom of row on hover this: that way when hover on each item, hover border boxes line this: ^ if turn hover on, on each cell. codepen /* on hover want box around item, , have top , bottom of border touching top/bottom of row on */ .flex-item:hover { border: 1px solid darkred; } /* item doesn't move when not hovering */ .flex-item { border: 1px solid lightblue; } .flex-container { overflow: hidden; position: relative; display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline; width: 400px; height: 350px; ba

php - How can I create and use custom plugin in Sugar CRM? -

i pretty new sugar crm. can 1 suggest me way create custom plugin , use 1 in sugar crm. task make changes list view in contacts module in sugar crm. in order make changes list view of core module (contacts) should create own files customizations required in /custom/modules/contacts/clients/base/views likely. you can use new .hbs template html or add custom logic .js controller. can find additional details here: https://developer.sugarcrm.com/2014/05/28/extending-view-javascript-in-sugarcrm-7/

visual c++ - Recursion C++

i new c++ thought working on project euler problems familiarize me language. when attempting project euler problem 14: longest collatz sequence i not manage c++ solution work, had no problem python solution... import time start = time.time() memo = {1:1,2:2} longest_chain, longest_starting_key = 2, 2 def rec(a): global longest_chain, longest_starting_key if in memo.keys(): return memo[a] if % 2 == 0: memo[a] = rec(a // 2) + 1 else: memo[a] = rec(3 * + 1) + 1 if memo[a] > longest_chain: longest_chain = memo[a] longest_starting_key = return memo[a] in range(1000000,3,-1): rec(i) print("starting key", longest_starting_key , ": has length", longest_chain) print((time.time() - start), "seconds") and got starting key 837799 has length 525 1.399820327758789 seconds my c++ attempt... (that thought equivalent...) #include <iostream> #include <unordered_map>

ruby on rails - One Heroku worker process for both delayed_job and sidekiq? -

currently our heroku app has 2 dynos: web , worker. worker dyno set run bundle exec rake jobs:work , starts delayed_job. have new sidekiq jobs need run. (i plan convert our delayed_job jobs sidekiq soon, haven't yet.) question is: need add , pay third heroku dyno ("sidekiqworker"?), or there way me specify existing worker dyno run both delayed_job , sidekiq? you need pay third heroku dyno unfortunately. i've experimented naming both processes "workers" 1 registered while other 1 wouldn't be. when adding new process name, heroku updates , set new process name 0 dynos. refer more details multiple worker/web processes on single heroku app

swift - How do I change a UIImage color when tapping tableview cell? -

so have been stuck on day or so. how change color of uiimage color when tapping on tableview cell? example have black image , when tap tableview cell changes image white? thank you! i tried using code not know how implement right! let theimageview = uiimageview(image: uiimage(named:"foo")!.imagewithrenderingmode(uiimagerenderingmode.alwaystemplate)) theimageview.tintcolor = uicolor.redcolor() it looks have right pieces don't know call them. assign image image view in cellforrowat: method. func tableview(_ tableview: uitableview, cellforrowat indexpath: nsindexpath) -> uitableviewcell { let cell = tableview.dequeuereusablecell(withidentifier: reuseidentifier, for: indexpath) cell.imageview.image = uiimage(named:"foo")!.withrenderingmode(.alwaystemplate) return cell } then change tint color of image view in didselect delegate method. func tableview(_ tableview: uitableview, didselectrowat indexpath: indexpath) { if l

php - Mysql failure to Table connection -

i want connection mysql database table. whole time failure. the code table looks this: $sql_befehl = "create table if not exists beitrag ( id int auto_increment primary key, name varchar(30), email varchar(70), hp varchar(70), ip varchar(16), zeit int(11), beitrag text, kommentar text )"; if (mysql_query($sql_befehl)) { echo "success<br>" ; } else { echo "failure: <br>" ; } hope can me. if creating connection using pdo object, can use: echo $dbc->getattribute(pdo::attr_connection_status) . "\n"; example: define('db_host', '127.0.0.1'); define('db_name', 'db_name'); define('db_user', 'db_user'); define('db_pass', 'db_pass); $dbc = new pdo('mysql:host='. db_host .';dbname='. db_name, db_user, db_pass); echo $dbc->geta

Lower keyboard height on the menu, as in chat rooms, WeChat or viber ANDROID -

who can faced or tell me way look, lower menu appears pressing button, height equal height traveled keyboard. as seen here: http://i.stack.imgur.com/zatqh.jpg or http://i.stack.imgur.com/6gfdn.jpg so want make view same height keyboard. getting keyboard height not trivial, see this question . work after keyboard opened @ least once, otherwise app cannot know it's height. notice apps used examples show menus in different height (some default) if never opened keyboard in them.

python - Using List/Tuple/etc. from typing vs directly referring type as list/tuple/etc -

what's difference of using list , tuple , etc. typing module: from typing import tuple def f(points: tuple): return map(do_stuff, points) as opposed referring python's types directly: def f(points: tuple): return map(do_stuff, points) and when should use 1 on other? typing.tuple , typing.list generic types ; means can specify type contents must be: def f(points: tuple[float, float]): return map(do_stuff, points) this specifies tuple passed in must contain 2 float values. can't built-in tuple type. typing.tuple special here in lets specify specific number of elements expected , type of each position. use ellipsis if length not set , type should repeated: tuple[float, ...] describes variable-length tuple float s. for typing.list , other sequence types specify type elements; list[str] list of strings, of size. note functions should preferentially take type.sequence arguments , typing.list typically used return types; speak

c - ifreq's ifr_names are incorrect? -

the following function determines if given string valid network device name. int isvalidndevice(char *name) { char data[4096]; struct ifconf ifc; struct ifreq *ifr; int sk; int nintfcs; sk = socket(af_inet, sock_dgram, 0); if(sk < 0) { perror("socket"); return 0; } ifc.ifc_len = sizeof(data); ifc.ifc_buf = (caddr_t)data; if(ioctl(sk, siocgifconf, &ifc) < 0) { perror("ioctl(siocgifconf)"); return 0; } ifr = (struct ifreq*)data; nintfcs = ifc.ifc_len / sizeof(struct ifreq); for(int i=0; < nintfcs; i++) { safe_printf("%s\n", (&ifr[i])->ifr_name); if (!strcmp((&ifr[i])->ifr_name, name)) { return 1; } } return 0; } when run function, receive following output. lo0 stf0 �2�>s en1j 0 this code worked fine few months ago. has changed? doi

javascript - Refreshing data through constructor in Angular 2 / Ionic 2 -

i have ionic 2 app 1 view 3 different data sets. data loaded in constructor , based on variable in page params, it's decided data set show. at every successful data call observable, event handler logs success when data loaded. this works when click/load view first time . if click 2nd or other time, data not re-loaded (no log). also, when console log anything, won't show @ 2nd+ click. so wonder what should change load data everytime , how constructor works in manner. this how code looks like. jsons called nameslistprovider. @component({ templateurl: '...', }) export class listofnames { ... private datalistall: array<any> = []; private datalistfavourites: array<any> = []; private datalistdisliked: array<any> = []; constructor(private nav: navcontroller, ...) { ... this.loadjsons(); console.log('whatever'); } loadjsons(){ this.nameslistprovider.getjsons() .subscribe( (data:any) =>

.net - Deserialize into same object using JsonConvert (c#) -

i have method in class uses api data. next use jsonconvert.deserializeobject create instance of same class, copy values object i'm in, wanted values in first place. although works fine, seems there must better way this. (i know further refactored srp. i'm trying find more efficient way values members.) can show me better way? public class mymodel { public string description { get; set; } public string last_name { get; set; } public string nickname { get; set; } public void load() { var results = {code gets stuff} mymodel item = jsonconvert.deserializeobject<mymodel>(results.tostring()); this.description = item.description; this.last_name = item.last_name; this.nickname = item.nickname; } . . . } do want this class { pu

angular2 routing - Different layouts for Login Page (one for login and other layout for others) in Angular 2 -

i creating angular 2 application. in app.component i've got this <header-component><header-component> <router-outlet></router-‌​outlet> with router: const approutes: routes = [ { path: 'profesionals', component: creareditarprofesionalscomponent }, { path: 'home', component: homecomponent }, { path: 'login', component: logincomponent }, { path: '', component: homecomponent } ]; when navigate login want rid of the <header-component> but other pages when user logged in want display layout is. have use ng-if service archieve this? what's best way? you can remove page. desired result achieved can make components should display header-component child route of it. you can achieve this: { path: 'dashboard', component: headercomponent, children: [ { path: '', component: headercomponent }, { path: 'mypath', component: mycomponent } ] }, { path: 'login'

sql - MS Access duplicate values using SUM -

i'm having trouble writing query in microsoft access 2016 show sum of expense particular event, sum of signs event produced, along year, event description , company name. i think missing simple, , going feel ridiculous once points out. managed format question enough easy spot! here tables involved, along dummy data testing with. all_company company_event ------------------ --------------------------- | id | company | | id | eventdescription | |------|---------| |----|--------------------| | 1 | crapple | | 1 | concert | | 2 | rito | | 2 | party | ------------------ --------------------------- company_target_actual ---------------------------------------------------------------- | all_companyid | company_eventid | year | quarter | signed | |----------------|-------------------|------|---------|--------| | 1 | 2 | 2015 | 1 | 1 | | 1 |

angularjs - $rootScope.$broadcast from controller and $scope.$on in directive is not working 1.2x version -

i'm trying call $rootscope.broadcast controller , want listen in directive controller: function startfunction(){ $rootscope.$broadcast('sharingfn'); } startfunction(); directive: $scope.$on('sharingfn',function(){ console.log('function called"); } but directive never called here, doing wrong? do have live example of code? it's difficult tell problem above example. one potential reason can think of directive doesn't start listening event until after 'sharingfn' event has been broadcast.

python code not working after copied from windows to linux -

i wrote small program in python, is: #!/usr/bin/env python print "hello" it works in windows. , when type code in linux, works, too. but when copy python file windows linux in vbox, code doesn't work, , error appears is: : no such file or directory why happen? , should fix it? perhaps error because of different line endings on windows , linux? windows uses "\r\n" , linux "\n". you write script rid of "\r" on linux, example: edit: have realized carriage returns seen in binary mode. script should this with open('myscript.py', 'rb') file: data = file.read() data = data.replace(b'\r\n', b'\n') open('myscript.py', 'wb') file: file.write(data)

Fullcalendar Google: Filter by location -

within fullcalendar i'm trying filter out specific events using location strings coming google calendar. e.g. show events location string of "room 1" $('#calendar') .fullcalendar( { googlecalendarapikey: 'myapikey', defaultview: 'listday', events: { googlecalendarid: 'calendarid', } }); i have looked through docs , have tried removeevents and clientevents not sure how specify library pick on google api's location strings. edit: adapted post stack. give type error messed code "indexof($('room 2').val()) >= 0}" , i've tried combinations of no luck. think right code though, not implementing correctly. $('#calendar') .fullcalendar( { googlecalendarapikey: 'myapikey', defaultview: 'listday', events: { googlecalendarid: 'calendarid', } eventrender: function eventrender( e

bash - How do I execute a remote script as a build phase in xcode? -

i have remote script can execute command line without issue: bash <(curl -ssl 'goo.gl/p1gpqw') 29165be4-ea61-8228-9f33-a9b9dad481a0 ./info.plist problem comes when try use in build phase of ios app (to update build number). the error log: /users/pr.......: line 2: syntax error near unexpected token `(' /users/pr.......: line 2: `bash <(curl -ssl 'goo.gl/p1gpqw') 7cd17fc7-e724-7240-34ed-927122733119 ./info.plist' so question is, there limitations in can through xcode execute or error in syntax? update: if change /bin/sh /bin/bash, works ... updated question is, /bin/sh equivalent of bash <(curl -ssl 'goo.gl/p1gpqw') 29165be4-ea61-8228-9f33-a9b9dad481a0 ./info.plist making users change complication can make entire thing go sideways. i tried simplify problem, purpose of reproducibility: this 1.sh script: #!/usr/bin/bash echo echo hello world echo echo today : $(date) when run in /bin/bash, works fine: bash $ bash

sql - Left Outer join not returning expected resultSet -

i have these 2 tables #table1# ##companyname## ##primarykey## dell 1 dell california 2 dell san francisco 3 dell los angeles 4 ibm 5 google 6 #table2# ##parentcomp## ##parentprimarykey## ##childcomp## ##childprimarykey## dell 1 dell california 2 dell california 2 dell san francisco 3 dell california 2 dell los angeles 4 now expected table shown below; relationship(hierarchy) column has 3 possible values(parent/child/independent) shown: #table3# ##companyname## ##relationship## ##parentcompany## dell parent --- dell california child dell dell san fran

sublimetext2 - WebStorm HTML and CSS Formatting like Sublime -

in sublime can format blocks of code ctrl + { which goes right , takes highlighted code left ctrl + } i've not been able webstorm , it's keep trying shortcut. webstorm has different shortcut indenting (tab) , un-indenting (shift-tab). can modify shortcuts in preferences | keymap.

python 3.x - 'NoneType' object is not iterable in loop -

i assuming making mistake in assigning links equal driver.get statement. need loop within page until grabs links messing somewhere. keep getting error of "typeerror: 'nonetype' object not iterable" in line "for link in links:" import requests bs4 import beautifulsoup selenium import webdriver import csv b = open('csv/homedepotfridges.csv', 'w', newline='') = csv.writer(b,delimiter=',') driver = webdriver.phantomjs() links = driver.get('https://www.homedepot.ca/en/home/categories/appliances/refrigerators-and-freezers/refrigerators.html') link in links: name = driver.find_element_by_class_name('product-name') model = driver.find_element_by_class_name('product-model') price = driver.find_element_by_class_name('product-display-price') detail = driver.find_element_by_class_name('js-detail-link') x, y, z, q in zip(name, model, price, detail): c= (x.text

javascript - Synchronous require in Webpack -

i'm using webpack , i'm using require pull in packages. have 2 packages: package1.js , package2.js. package1.js creates object properties called pkg1 . package2 javascript file contains self executing function extends package1. e.g. package2.js: !function () { pkg1.prototype.newfunction = function {return "foo"}; }() i'm trying require both of these new script in following manner: require('package1') require('package2') when this, error: uncaught typeerror: pkg1.newfunction not function i think because of javascripts asynchronous loading: require(package2) executes before require('package1') . evidence when following don't error: require('package1') !function () { pkg1.prototype.newfunction = function {return "foo"}; }() however, messy, , use require. how go making work? edit: specific examples the leaflet-d3 plugin begins with: (function() { l.hexbinlayer = l.class.extend({

javascript - User scheduled jobs -

i allow users set schedule when particular action occur. use node server on azure. looking @ node-schedule , making use of it. contemplating running master schedule every hour checks database user specified schedules , schedule sets new schedule based on schedules users. don't know if practice, plus i'm concerned server load. you can use node's cron that, , accommodate in different ways. pseudocode below gives general idea. var cronjob = require('cron').cronjob; new cronjob('0 0 * * * *', function () { // every hour // check schedules planned future, stored isodate db.getuserschedule({jobdate:{$gte:date.now()}, function(userschedules) { userschedules.foreach(sched) { // convert date string parsed cron var d=extractdayhourmin(sched) var jobtime = d[4] +' '+d[3]+' '+d[2]+' '+d[1]+' '+d[0] // setup new job var job=new cronj

javascript - Analysis of a large json log file in node.js -

i have following json file: sensorlogs.json {"arr":[{"utctime":10000001,"s1":22,"s2":32,"s3":42,"s4":12}, {"utctime":10000002,"s1":23,"s2":33,"s4":13}, {"utctime":10000003,"s1":24,"s2":34,"s3":43,"s4":14}, {"utctime":10000005,"s1":26,"s2":36,"s3":44,"s4":16}, {"utctime":10000006,"s1":27,"s2":37,"s4":17}, {"utctime":10000004,"s1":25,"s2":35,"s4":15}, ... {"utctime":12345678,"s1":57,"s2":35,"s3":77,"s4":99} ]} sensors s1, s2, s3, etc transmitting @ different frequencies (note s3 transmitting every 2 seconds, , timestanps can out of order). how can achieve - analyzing s1: s = [[10000001, 22], [10000002, 23],.. [12345678,57]] s1 had 2 missing entries ana

ubercart - Submit Order on Drupal 7 Custom Theme Redirects Back to Checkout Page -

when submit order on custom theme using ubercart on drupal 7, redirected cart/checkout page again. order shows being abandoned. redirected checkout page again , has previous order full credit card information(last 4 digits , cvv). not getting error messages aware of after checking log files. i tried adding mytheme_uc_checkout_pane_cart_review function theme's template.php file described on documentation here see if helped, didn't seem work. how fix issue order goes through , gets completed order page. in addition, found person having same issue, mind not caused non-valid product. link issue here based on looking checkout works fine on default theme bartik 7.50. thank help! i have similar problem simple solution. in reports > recent log messages, if page can find js files: jquery-ui, jquery-x.x.x.min.js. if not, need fix it. in case, forget put in [customtheme]/templates/html.tpl.php, have modified previously: <script type="text/javascript"

google app engine - GAE appcfg.py deploy always upload all files (instead changed only) -

i've started have problem today. everytime run appcfg.py update . updates 441 project files. if modified 1 upload 442. running appcfg.py update . twice upload 441 files every time. this obviusly problem because instead uploading couple of files uploading lot of them , taking lot of time. this have tried: updated app engine launcher latest version rebooted removed files folder, download them again git nothing seems work. i left app.yaml , index.php , uploaded both files every time, if not change anything. ideas? thanks this expected behavior. uploading files fast me.

Spring cloud stream rabbitMQ consumer with topic wildcards -

i'm trying use spring cloud stream rabbitmq , send messages same exchange different topics. , there consumers consume messages of 1 or more topics using wildcard in bindings. there example scenario? i'm guessing can use topics partitionkey. in way messages go same exchange. i'm not clear on how setup consumer you can specify multiple destination names spring cloud stream consumer property spring.cloud.stream.bindings.<channelname>.destination accepts comma separated list of destination names.

html - PHP Display None? -

i'm trying hide "topbar" if user logged in. example: http://prntscr.com/chcwhl my code @ moment is: add_filter( 'wp_nav_menu_items', 'woohoo_add_auth_links', 10 , 2 ); function woohoo_add_auth_links( $items, $args ) { if( $args->theme_location == 'topmenu' ) { if ( is_user_logged_in() ) { echo '<style>#topbar { display:none;}</style>'; } elseif ( !is_user_logged_in() ) { $items .= '<li><a href="'. site_url('wp-login.php') .'">log in</a></li>'; $items .= '<li><a href="'. site_url('wp-login.php?action=register') .'">register</a></li>'; } } return $items; } i'm sure topbar <div class="topbar"> i'm little confused why it's not hiding... the # means id. can fix either using: <div i

javascript - Disable line that appears on a legend click for Google Line Chart -

Image
whenever series gets clicked on legend in google line chart, seems line appears above data trendline. possible stop behavior? not find in docs. an example of this: when legend clicked, entire series selected, means row value null chart.getselection() return like... {row: null, column 1} vs. when data point clicked / selected, row have number reference row: 1 , etc... as such, use 'select' event listener , cancel selection when row null chart.setselection([]); see following working snippet... google.charts.load('current', { callback: function () { var container = document.getelementbyid('chart_div'); var chart = new google.visualization.linechart(container); var datatable = new google.visualization.datatable(); datatable.addcolumn({type: 'string', label: 'year'}); // series 0 datatable.addcolumn({type: 'number', label: 'category a'}); datatable.addco

In MySQL trigger, is it possible to set a user variable with NEW.col and use that in update query? -

thanks in advance help. looked on , couldn't find example quite i'm needing with. i'm creating trigger update table after insert don't know table name update until after insert happens. code i'm trying use, error. begin set @ven = new.`ven_code`; set @ventable = concat('pp_ven_',@ven); update @ventable set `stock_qty`=new.`endingstock` `iin`=new.`iin`; end this not possible described dynamical sql / prepared statement. generate error code: 1336. dynamic sql not allowed in stored function or trigger upon attempt create trigger . about closest automation use create event . events scheduled stored programs run on schedule / interval of choosing. intervals are: interval: quantity {year | quarter | month | day | hour | minute | week | second | year_month | day_hour | day_minute | day_second | hour_minute | hour_second | minute_second} your set "flag" speak on row, such table depicting above has after

asp.net mvc - MapRoute behaving differently depending on URI -

i have mvc pattern where, backwards compatibility of website migration, need support 2 specific .php files. 1 (mywebsite.com/afolder/select.php) behaves perfectly: controller called right action. other not (mywebsite.com/index.php). in latter case browser redirects (or gets redirected) mywebsite.com (default home controller, index method). my routeconfig.cs: public static void registerroutes(routecollection routes) { routes.maproute( name: "php2", url: "afolder/select.php", defaults: new { controller = "testtt", action = "foo" } ); routes.maproute( name: "php1", url: "index.php", defaults: new { controller = "testtt", action = "foo" } ); routes.ignoreroute("{resource}.axd/{*pathinfo}"); routes.maproute( name: "default", url: "{controller}/{action}/{id}", defaults: n

android - Image not loading with Picasso using Rx Observable and Retrofit2 -

i learning rxjava (observable) , retrofit2. landed in situation picasso not loading images url. details below: public class intentkeys { public static final long interceptor_timeout = 15; public static final string popular_movies_service_endpoint = "http://api.themoviedb.org/3/"; public static final string popular_movies_poster_endpoint = "http://image.tmdb.org/t/p/w300/"; public static final string popular_movies_api_key = "key"; } the recyclerview adapter: public class gridviewadapter extends recyclerview.adapter<gridviewadapter.gridvieholder> { private static final string tag = gridviewadapter.class.getsimplename(); private static final int span_count = 2; private static final float thumbnail_ratio = 1.5f; private list<result> movies = new arraylist<>(); private context context; public gridviewadapter(list<result> movies, context context) { this.movies = movies;