Posts

javascript - Unmatched route angularjs (ui-router) -

i wrote in app.js file line of code: $urlrouterprovider.otherwise('/view1'); this htaccess file: <ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} -s [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l] rewriterule ^(.*) /index.html [nc,l] </ifmodule> now, if try run myrul/invented_route response's server "not found" if otherwise route setted.

javascript - Sencha Touch infinite scroll paging issue -

i have followed tutorial making infinite scroll page in sencha touch (with page size of 25). though paging works perfectly, have been having trouble scroll position getting resetting top. workaround, have tried manually saving scroll position , setting again did not have desired effect. the code page follows: ext.define('rms.view.common.assetlistpanel', { extend: 'ext.panel', alias: 'widget.asset_list', requires: [ 'rms.model.assetmodel', 'ext.plugin.listpaging', 'ext.dataview.list', 'ext.field.search' ], config: { layout: 'fit', store: null, items: {} }, initialize: function () { ext.viewport.setmasked({ xtype: 'loadmask', message: 'fetching assets...' }); this.setitems( { xtype: 'list', id: 'lis', indexbar:false, grouped: false, store: this.config.store, ...

ios - Parse and FBv4 Swift share picture -

stuck on posting picture fb, using facebook sdk v4 , parsehelperv4 in swift. user created , logged in read persimmons , can user info mail name , on, fbsdkaccesstoken.currentaccesstoken() empty response fbsdksharingdelegate don`t have permission.... doing wrong? let permissions : nsarray = ["publish_actions"] pffacebookutils.linkuserinbackground(pfuser.currentuser(), withpublishpermissions: permissions, block: { (abool, error) -> void in if abool && error == nil { let atoken = fbsdkaccesstoken.currentaccesstoken() println(atoken.permissions) -- logging , returns empty not read permissions let fbphoto = fbsdksharephoto(image: self.topimageview.image, usergenerated: true) let atest : fbsdksharephotocontent = fbsdksharephotocontent() atest.photos = [fbphoto] fbsdkshareapi.sharewithcontent(atest, delegate...

unix - "mailx" -r command not working -

i using below command mail 1 user attachment placed content mailx -r "sendermail@abc.com" -s "testing" "recievermailid@xyz.com" < emailmessagemail.txt and getting below error message.. mailx: invalid option -- r usage: mail [-iinv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ... [-- sendmail-options ...] mail [-iinnv] -f [name] mail [-iinnv] [-u user] can please advise.. in advance just install sudo apt-get install heirloom-mailx bsd-mailx doesn't have option. in order check use command: dpkg -s $(readlink -e $(which mailx))

javascript - Bootstrap 3 Datetimepicker auto submit -

i can't find way submit form after selecting date via bootstrap 3 datetimepicker (eonasdan) without having click button. wonder if possible. please, have @ code. <div class="container"> <div class="row"> <div class='col-md-3'> <form action="date.php" method="post" class="form"> <div class="form-group"> <div class='input-group dp1'> <input type='text' class="form-control" name="startdate" id="start" > <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span> </div> <button class="btn btn-primary">submit</button> </div> </form> ...

sockets - Problems with Android Bluetooth Server and Client -

i have couple problems regarding creating bluetooth server , client multiplayer game i'm making. first problem have searching devices. google provides following code: // create broadcastreceiver action_found private final broadcastreceiver mreceiver = new broadcastreceiver() { public void onreceive(context context, intent intent) { string action = intent.getaction(); // when discovery finds device if (bluetoothdevice.action_found.equals(action)) { // bluetoothdevice object intent bluetoothdevice device = intent.getparcelableextra(bluetoothdevice.extra_device); // add name , address array adapter show in listview marrayadapter.add(device.getname() + "\n" + device.getaddress()); } } }; // register broadcastreceiver intentfilter filter = new intentfilter(bluetoothdevice.action_found); registerreceiver(mreceiver, filter); // don't forget unregister during ondestroy but can'...

tesseract - PHP TesseractOCR exec command issue -

i have installed tesseractocr terminal of mac. when run following command terminal working. tesseract "hello.png" /applications/mamp/tmp/php/987051047 but same command not working in exec("tesseract "hello.png" /applications/mamp/tmp/php/987051047") and full code $tesseract = new tesseractocr("hello.png"); $tmp_dir = ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir(); $tesseract->settempdir( $tmp_dir ); $test = $tesseract->recognize(); i feel have load tesseract in php.ini or other configuration file. don't know where. using mac, mamp, php 5.4.10 ok after installation need change path bin $path = getenv('path'); putenv("path=$path:/usr/local/bin"); add these lines , work thanks