Posts

build - Android studio building signed APK error on "Type of anim" -

i trying build singed apk android studio. when press button create signed apk error : error: expected resource of type anim [resourcetype] and line of java code show's up layoutanimationcontroller lac = new layoutanimationcontroller(animationutils.loadanimation(employment.this, r.animator.grow_from_bottom), 0.8f); lview.setlayoutanimation(lac); i do'nt have problem create unsigned apk. in singed apk. please me. thank you. there 2 different types of animations in android: animation , animator . likewise, there 2 resource folders each: res/anim , res/animator . animationutils works animation , you're passing animator , why it's getting upset. need give animation resource (i.e. r.anim ). since it'll important learn difference between 2 types of animation, here resources: more on property animation (aka animator ) more on view animation (aka animation ) animation resources definition

Django+django-filebrowser+TinyMCE -

i added tinymce (directly, not django-tinymce) , django-filebrowser django admin. works, except 1 thing: click file browse button on tiny "add picture" menu, page not found (404), because don't understand means string in tiny options: var managerurl = window.location.tostring() + 'media/upload/?type=' + type; full code: <script type="text/javascript"> function tinydjangobrowser(field_name, url, type, win) { var managerurl = window.location.tostring() + 'media/upload/?type=' + type; tinymce.activeeditor.windowmanager.open({ file: managerurl, title: 'pic', width: 800, height: 450, resizable: 'yes', inline: 'yes', close_previous: 'no', popup_css : false }, { window: win, input: field_name }); return false; } tinymce.init({ mode : "specific_textareas", theme : "advanced", skin : "bootstrap"...

Is there a way to optionally not have filepicker.io store your uploads in their servers/database? -

maybe haven't read documentation thoroughly enough, seems if want use s3 option, it's typically because want serve uploads s3 location. once stuff in s3, doesn't need saved @ filepicker url anymore. there way specify want upload stored in s3, , not filepicker, making filepicker middle man? one expect if possible, entail type of reduced cost due fact filepicker isn't storing data us. if possible, uploads stored in s3 , not filepicker still count towards our file limit account type have? if specify s3 location, filepicker.io not store contents of file on our servers, why pricing plans done on # of files rather size, etc. on both filepicker.store() , filepicker.pickandstore() calls, fpfile returned have key parameter indicates in s3 bucket file stored. from this, can construct s3 url necessary, default provide filepicker.io url serves both unique identifier file, providing options /convert , /stat , etc.

angularjs - Angular Service - Passing 'this' -

i attempting use external function reduce repeating standard $http call code within angular service , having think scope/this issues. question is, how amend service can make use of 'this' myservice in calls apiget function example service code: angular .module('myapp') .factory('myservice', ['$http', function($http) { function myservice() { this.uid; this.stuff; this.things; } myservice.build = function() { return new myservice(); }; myservice.prototype.setuid = function(uid) { this.uid = uid; }; // key part of problem code - have tried this: myservice.prototype.getstuff = apiget.apply(this,[$http,'stuff',this.uid]); // , this: myservice.prototype.getthings = apiget($http,'things',this.uid); }]); example external function code: function apiget($http,collection,uid) { return function() { return $http({ method: 'get', ...

memory - dashDB service not repsonding? -

last night, receiving memory issues of queries (inner joins on multiple tables) against dashdb service on bluemix. today, cannot access dashdb service. when access project instance on bluemix, using web browser, , choose dashdb service, presented grey page , white spinning wheel. never past that. is there issue dashdb in general? instance of it? way fix it? thanks in advance! dan it doesn't appear general problem shown @ https://developer.ibm.com/bluemix/support/#status i advice open ticket bluemix support. you can using 1 of following methods: use support widget. available user avatar in upper right corner of main bluemix ui. after opening support widget panel, select > in touch, select type of assistance need, , fill out support form. use support site 'get help' form. form available on separate site made available ticket submission when cannot log bluemix , access support widget. go http://ibm.biz/bluemixsupport , fill in support reque...

iphone - same View different size at cell,how to reuse the cell -

- (nsinteger)tableview:(uitableview *)tableview numberofrowsinsection:(nsinteger)section { // return number of rows in section. nslog(@"[listarr count]=%d",[listarr count]); return [listarr count]; } // customize appearance of table view cells. - (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath { postcount *post=[listarr objectatindex:indexpath.row]; // nsstring *cellidentifier = [nsstring stringwithformat: @"cell_%d_%@",indexpath.row,post.foreignid]; // // uitableviewcell *cell = [tableview dequeuereusablecellwithidentifier:cellidentifier]; // if (cell == nil) { // cell = [[uitableviewcell alloc] initwithstyle:uitableviewcellstyledefault reuseidentifier:cellidentifier]; // // nslog(@"indexpath.row++++++++=%d",indexpath.row); // // // // }else{ //// [[cell.contentview viewwithtag:indexpath.row+1000] removefromsu...

javascript - jQuery combine 2 scripts to achieve smooth scrolling to anchor -

i have following jquery function shows / hides content depending on div selected... jquery(document).ready(function() { jquery('.showsingle').on('click', function () { jquery(this).addclass('selected').siblings().removeclass('selected'); jquery('.targetdiv').hide(); var selector = '#div' + jquery(this).data('target'); jquery(selector).show(); location.hash = selector; }); }); http://jsfiddle.net/w4km8/7944/ i have following script taken http://1stwebmagazine.com/jquery-scroll-to-anchor-point $(document).ready(function(){ $('a[href^="#"]').bind('click.smoothscroll',function (e) { e.preventdefault(); var target = this.hash, $target = $(target); $('html, body').stop().animate({ 'scrolltop': $target.offset().top-40 }, 900, 'swing', function () { window.location.hash = target; ...