Posts

Featured post

html - Difficulties with background-image property -

i working bootstrap , change .jumbotron background image instead of default color. tried using "background-image: url("img/ponder.jpg");" , it's not working reason. have tried using , without quotation marks, , i've tried placing image in root folder.. still no luck. here picture of file structure (root folder): https://i.gyazo.com/1cf9dcfd20224c4fce8fe4a775863ab1.png and here code: html: <div class="jumbotron"> <div class="container text-center"> <h1>hello world</h1> <p>lorem ipsum dolor sit amet, consectetur adipiscing elit. integer @ pharetra eros, vel condimentum nunc. vivamus eget bibendum mauris. integer quis volutpat enim. duis id lorem feugiat, mattis sapien eget, luctus eros. pellentesque vestibulum tempus elit, sit amet luctus purus dictum vitae. suspendisse non aliquam augue. morbi sagittis mi @ turpis luctus pretium. vestibulum sit amet orci orci.</p>

ios - Segue not passing data between ViewControllers -

Image
i making ios app uses payment methods. at moment trying work on checkout flow, contains oderformviewcontroller , checkouttableviewcontroller can see below: i connected both dragging segue, highlighted in blue. added segue identifier segue. i called first view controller e_orderformviewcontroller (its title shipping address), , in created ibaction for continue button , used -(void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender pass in information. i have order model, properties in it. on checkouttableviewcontroller, have got labels , orderinfo public properties, first view controller 1 can access it. #import <foundation/foundation.h> @interface order : nsobject @property(strong, nonatomic) nsstring *shippingname; @property (strong, nonatomic) nsstring *shippingaddress; @property (strong, nonatomic) nsstring *shippingcity; @property(strong, nonatomic) nsstring *shippingstate; @property(strong, nonatomic) nsstring *shippingzip; @end //e_orderform

bitbucket - How to automate building and deploying Jekyll site to webserver via FTP -

my jekyll files stored in bitbucket, , able automatically generate _site folder on every new change gets pushed. (note, don't want push _site folder git, out of question). once _site generated, automatically deploy webserver via ftp. is @ possible? options? thank you! since didn't mention _site folder go, here' generic answer. in short, need webserver or service listens bitbucket post commit hook , here relevant documentation that. that way, on every push, bitbucket trigger action , notify server/app/service build new _site , deploy want to. here's tutorial on setting use of cron jobs , webserver. link a simple vps work, or tiny amazon ec instance/azure virtual machine. of course, these not 100% free. if hate using servers, a continuous integration (ci) service can used instead, on commit hooks trigger build, travis-ci , drone.io free public repos, if repo private you'll have go paid service. there many others well. (note tr

visual studio code - What does the isShellCommand property actually do and how should you use it? -

what isshellcommand property , how should use it? the description when hovering says: "specifies whether command shell command or external programm. defaults false if omitted" and in https://code.visualstudio.com/docs/editor/tasks mention in example with: "we want run gulp command in shell (vs code directly executing it) used isshellcommand" so difference between shell command vs external program? does running isshellcommand = false mean vscode not "directly executing it" meaning run "command" , don´t listen output (because ran external command?) in turn means cannot use problem matchers. or if setting isshellcommand = true mean vscode "directly executing it" , keep track of , listen output generated can use problem matchers etc integrate vscode? considering example below using tsc compile typescript project: c:\users\j\code\vscode-project>where tsc c:\program files (x86)\microsoft sdks\typescript\1.4\tsc.exe

amazon web services - JEE Container (Glassfish) and HikariCP - JNDI vs managing my own instance -

is considered bad/acceptable/good/best practice manage own instance of hikaricp connection pool, goal don't have configure jndi resources within glassfish? some background: my deployment environment aws's elastic beanstalk, running glassfish within docker container. have working solution generating jndi resources whe deploying in environment, makes deployment quite fragile. see following question details: how configure glassfish instance running on aws/elasticbeanstalk/docker? . i'm quite keen rid of deployment hassles, don't know connection pooling, , hikaricp in particular. cruising bruising in direction? super simple implementation might create static variable contains connection pool.

ios - Change UITableView custom header view's button image not working -

i created uiview using nib file. , set table view header view. in view have button. tried change button's image, nothing changes. - (uiview *)tableview:(uitableview *)tableview viewforheaderinsection:(nsinteger)section { if (section == 0) { healthplanheaderview *view = (healthplanheaderview *)[[[nsbundle mainbundle] loadnibnamed:nsstringfromclass([healthplanheaderview class]) owner:self options:nil] firstobject]; [view.addbutton addtarget:self action:@selector(editfood) forcontrolevents:uicontroleventtouchupinside]; self.healthplanheaderview = view; return view; }else { return nil; } } - (void)editfood { self.healthediting = !self.healthediting; uiimage *image = self.healthediting ? [uiimage imagenamed:@"finish"] : [uiimage imagenamed:@"edit-button"]; [self.healthplanheaderview.addbutton setimage:image forstate:uicontrolstatenormal]; } i noticed button image did set, button won't show n

javascript - Calling layout on a subset of nodes in a loop does not properly layout the nodes -

i have several groups of nodes, , need each group own circle around different location. i have loop adds nodes chart, , @ end gets nodes, , attempts circularize them. however when run program, nodes end in grid format. how expected behavior? for( group in groups ){ cy.add([ { group:'nodes', data: { id: 1, customgroup: group}, position:{x: 0,y: 0} }, { group:'nodes', data: { id: 2, customgroup: group}, position:{x: 0,y: 0} }, { group:'nodes', data: { id: 3, customgroup: group}, position:{x: 0,y: 0} }, { group:'nodes', data: { id: 4, customgroup: group}, position:{x: 0,y: 0} }, { group:'nodes', data: { id: 5, customgroup: group}, position:{x: 0,y: 0} }, { group:'edges', data: { source: '1',target: '2', weight:1} }, { group:'edges', data: { source: '2',target: '3', weigh