Posts

amazon web services - AWS sdk file renaming android -

can rename file or folder in aws(amazon web services) sdk android?? i have implemented many features upload,edit,delete,share file/folder,but not getting docs renaming file or folder. any link or doc helpful. amazon s3 cloud-based object storage system. highly scalable , resilient, , processes on 1.5 million transactions per second worldwide. in exchange operating @ such scale, there attributes of amazon s3 make different standard file system , such as: it flat storage space , does not support directories it provides directory-like structures known common prefixes , act directories (for example, possible list objects common prefix, same listing files in directory) the key of object (analogous filename) contains full path of object for example, object foo.jpg stored in directory cheese has key of: cheese/foo.jpg this means that: objects cannot renamed. instead, objects can copied new key , original deleted. directories cannot renamed because don...

jquery - Where in this example is masonry.js being initialized? -

in example (which working perfectly), http://codepen.io/anon/pen/cotjv masonry.js included, after reading other tuturials, understanding have not import script initialize masonry. i have codepen example working locally on machine, reason ask how initialize masonry i'm trying change gutter size, , don't see anywhere that. for example line off masonry.js website shows can set columnwidth. var container = document.queryselector('#container'); var msnry = new masonry( container, { columnwidth: 200, itemselector: '.item' }); in codepen i've pasted above, not see similar line, i'm wondering need go in code set columnwidth , guttersize. codepen direct clone of tympanus masonry.js demo. http://tympanus.net/codrops/2013/07/02/loading-effects-for-grid-items-with-css-animations/ have imported entire demo tympanus onto local machine , don't see masonry.js being initialized anywhere. there i'm not understanding here. can take snippet poste...

ruby - Rails hStore postgresql activerecord database query? -

i want able query hstore column on pg database , return values corresponding specific key. the data looks this: (keep in mind :data postgresql hstore ) [ id: 2, data: {"tags"=>"ruby, objects", "type"=>"video", "title"=>"rubytapas: blocks, procs, , lambdas"}, id: 3, data: {"tags"=>"javascript, objects", "type"=>"video", "title"=>"rubytapas: blocks, procs, , lambdas"} ] i want effect of this: model.uniq.pluck(:tags) and output expect is: ruby, objects, javascript *i strictly trying implement activerecord , postgresql. i able desired result doing: model.pluck(:data).map{|j| j['tags'].split(',') }.flatten.uniq i still interested in solution doesn't require map on activerecord relation. please advise.

ios - How to make search results appear in a field under the search bar? -

i'm making ios app search bar in middle of page (google style, it's simple). search bar in case text field. i'm trying make search results appear right under search bar (google instant style) , give suggestions while user typing. tried using searchresultsdisplaycontroller expects tableview not planning on using. any ideas? figured out pretty way! just make uitableview (set hidden) , put under search bar. then, put logic searching in: - (void) searchbar:(uisearchbar *)searchbar textdidchange:(nsstring *)searchtext and make appear! (set hidden property false) make sure you've implemented protocols uitableviewdelegate , uitableviewdatasource , uisearchbardelegate . only trouble i'm having can't make stay hidden if type , delete text in search bar. disappears second , comes random values.

Unable to access WCF service from Mobile Service in Azure -

wanted access wcf service mobile service in windows azure . this, using service bus relay connection configured credentials call wcf service . when published mobile service on local machine, call wcf service without issue. but when published mobile service on azure, giving following error when trying access it. iservice1 contract wcf service. defined endpoint in web.config file in mobile service contract. can me resolve this? exception=system.invalidoperationexception: not find default endpoint element references contract 'servicereference1.iservice1' in servicemodel client configuration section. might because no configuration file found application, or because no endpoint element matching contract found in client element. edit: upon further investigating issue, found out that, proxy class, generated adding service reference, not picking endpoint definition defined in web.config when host in cloud. when service run on machine's azure emulator, pi...

html - Background Image not showing up in jumbotron -

i not know problem is. made style.css , used code .jumbotron { background-image:url(images/bikebg.jpg); margin-top:-20px } before putting background in images folder, worked fine. since changed it, no longer work. site live here http://bikesite.web44.net/bikes.html try this .jumbotron { background-image:url(../images/bikebg.jpg); margin-top:-20px }

Selenium - Update to WebDriver -

i using "selenium-server-server-standalone-2.44.0.jar" jar file run test suite in selenium test runner. runs in firefox & chrome, gives info text in test run report "info: selenium 1.0 (core, rc, etc) no longer under active development. please update webdriver asap" how update webdriver manually? or how can rid of info text? the info message seeing warning if continue use selenium rc api, tests can stop working more recent releases of browsers. in upcoming selenium 3, rc api dropped outright. there no way rid of text, warning message, , valuable warning message. in order move on webdriver need rewrite tests. suggestion start failing ones first. start reading through official documentation . there link there pointing towards more specifics. while @ it, might want consider refactoring code use pageobjects , not available in selenium 1. note while migrating tests, quite possible run mix of webdriver , rc tests in same project.