Posts

Showing posts from January, 2013

Recover sql server table defiinitions only with .ldf file -

i deleted sql server 2008 database accident, found older .ldf file of database(full recover model), dont have .mdf file. tools sql log analyser , apex log require both files .mdf , .ldf files. possible recover table , columns names .ldf without .mdf file?

javascript - How to pass JSON Web Token w/Passport-Facebook from backend to Angular Controller -

thanks in advance reading - have spent hours trying figure out , has stumped programmers far more knowledgeable , experienced myself, here am. have 2 separate puzzling problems here depending on how make $http request, i'll describe both. have built app skeleton , decided tackle auth first, , i'm using passport-facebook log user in. i have view such: click <div ng-click="vm.login()">here</div> login with login function in angular controller as... (just trying data there now): vm.login = function() { authservice.login().success(function(data){ console.log(data) }).error(function(error){ console.log('error ', error) }) } which routes authservice: auth.savetoken = function(token) { $window.localstorage['pong-token'] = token; }; auth.login = function() { return $http.get('/login/facebook') .success(function(data){ auth.savetoken(data.token); console.log('token saved'); }).error(function(respon

c - How to send elements of the structure to switch -

currently parsing command line arguments in c program, , learn you, how in best way, below have attached source code, program processes input looking wae0500 /f1.txt /d; comment1 comment2 the result debug:1 help:0 file_used:1 read:0 write:1 when flags received, work 2 conditions: either write or read, switch between fields of structure, code below wrong know, hope understand goal: switch(flags){ case(flags.write): // smth break; case(flags.write): // smth break; } and here complete program #include <stdio.h> #include <string.h> #include <stdlib.h> typedef enum { false, true } bool; typedef struct { bool debug; bool help; bool file_used; bool read; bool write; }flags; void parse_input(flags *flag, int argc, char *argv[], char *file_name); int main(int argc, char *argv[]) { flags flag = { 0,0,0,0,0 }; flags *flag_ptr = &flag; char file_name[96]; parse_input(&flag, argc,

java - Camel exchange properties lost during split -

i have following setup of camel routes: <route id="firstroute"> <from uri="..." /> <!-- processor puts list of items out body --> <process ref="collectitemsprocessor" /> <!-- items should processed 1 one: --> <split> <simple>${body}</simple> <to uri="direct:secondroute" /> </split> </route> <route id="secondroute"> <from uri="direct:secondroute" /> <process ref="itemprocessor" /> </route> in itemprocessor want count number of items processed putting property exchange: exchange.setproperty("processed_items", exchange.getproperty("processed_items", integer.class) + 1); for reason, on each call processor property null again. documentation says: the exchange holds meta-data during entire lifetime stored properties accessible using various get

ember.js - Ember JsonApi with Jax-Rs content type on Posts -

i using ember-data clientside , tomee7 jax-rs on server. i use ember-data's jsonapiadapter , adhere jsonapi specifications if understand correctly, http communications must have content-type header set application/vnd.api+json the problem when try post server 415 unsupported media error i've decorated services this: @post @consumes("application/vnd.api+json") @path("somepostendpoint") public response postservice (@formparam "somedata" string somedata) { //.... } but returned: an application/x-www-form-urlencoded form request expected request media type application/vnd.api+json. consider removing @formparam annotations when make request outside of emberdata (with postman) works fine. i understand @formparam requires content-type: application/x-www-form-urlencoded . use else? it shame not use jsonapiadapter. :( does have ideas try? thanks! ok colleague of mine figured out: @path("somepos

ios - Swift: Best way to filter an array -

i have array student objects , array goodstrudentid . need fetch student objects students array following sequence of goodstrudentid . using multiple forloop can able solve this, want learn best way solve issue. problem following sequence of goodstrudentid . here sample code understand problem - class student { var s_id : string var s_name : string init(i: string, n: string) { self.s_id = i; self.s_name = n; } } var students = [student(i: "1",n: "a"), student(i: "2",n: "b"), student(i: "3",n: "c"), student(i: "4",n: "d"), student(i: "5",n: "e")] var goodstudentsid = ["5","2"] var goodstudentobject = getgoodstudentobjectusingid(students:students, gdstudentsid:goodstudentsid) /* expected answer: var goodstudentobject = [student(i: "5",n: "e"

java - Why hibernate delete relationship after parent refresh? -

@table(name = "parent") @entity public class parent implements serializable { @onetoone(cascade = cascadetype.all, mappedby = "parent") private child child; } @table(name = "child") @entity public class child implements serializable { private parent parent; } next use org.springframework.orm.hibernate3.hibernatetemplate find parent collection criteria works, when call: list<parent> parents = hibernatetemplate.findbycriteria(...) (parent p: parents) { //here p.getchild() return child object hibernatetempalte.refresh(parent); //here p.getchild() null } so question why getchild() became nul after parent refresh? note null persisted database andonetoone relationship became broken. hibernate version 3.6.9

angularjs - Angular services don't work when moved to separate files -

i have problem demo mean-app (working in cloud9): app fails work when move services separate files. works: angular.module('locatorapp', []) var locationlistctrl = function($scope, locatordata, geolocation) { $scope.getdata = function(position) { var lat = position.data.lat; var lng = position.data.lon; locatordata.locationbycoords(lat,lng) .then(function(data) { $scope.data = {locations: data.data}; }) .catch(function(error) { console.log(error); }); }; geolocation.getposition($scope.getdata); }; var locatordata = function($http) { var locationbycoords = function (lat, lng) { return $http.get('/api/locations?lng=' + lng + '&lat=' + lat); }; return { locationbycoords : locationbycoords }; }; var geolocation = function($http) { var geoapiurl = 'http://ip-api.com/json/?fields=lat,lon,status'; var getposition = function(cbsuccess, cberror) { $http.get(geoapiurl

Can't access global variable in python -

i'm using multi processing library in python in code below: from multiprocessing import process import os time import sleep delay test = "first" def f(): global test print('hello') print("before: "+test) test = "second" if __name__ == '__main__': p = process(target=f, args=()) p.start() p.join() delay(1) print("after: "+test) it's supposed change value of test @ last value of test must second , value doesn't change , remains first . here output: hello before: first after: first the behavior you're seeing because p new process , not new thread . when spawn new process, copies initial process's state , starts executing in parallel. when spawn thread, shares memory initial thread. since processes have memory isolation, won't create race-condition errors caused reading , writing shared memory. however, data child process parent, you'll need use f

Sonar - Python plugin rules, what tools it uses behind? -

i setting sonar analyze python module , came doubt metrics generates, maybe sonar team member me understand. tools , 3rd parties tools sonar uses calculate static analysis in python plugin? mean, example java know sonar rules pool of metrics such findbugs, checkstyle, pmd, etc, so, python, use? use pylint, flake8, radon, other? or use pool of own sonar rules? based on experience? thanks lot help. need know this, because proposing start using sonar static , test metrics in our team. ragards. some custom rules implemented in java, take @ github . as supposed, use pylint analyse files . by default python plugin execute pylint command (the path command can tuned using sonar.python.pylint property) you can prepare pylint report analyse on own . another interesting thing code coverage: the python plugin not generate own test coverage report, re-uses 1 generated coverage tool or nose. other things complexity handled , calculated java code.

How can I return a JavaScript string from a WebAssembly function -

how can return javascript string webassembly function? can following module written in c(++) ? export function foo() { return 'hello world!'; } also: can pass js engine garbage collected? webassembly doesn't natively support string type, rather supports i32 / i64 / f32 / f64 value types i8 / i16 storage. you can interact webassembly instance using: exports , javascript call webassembly, , webassembly returns single value type. imports webassembly calls javascript, many value types want (note: count must known @ module compilation time, isn't array , isn't variadic). memory.buffer , arraybuffer can indexed using (among others) uint8array . it depends on want do, seems accessing buffer directly easiest: const bin = ...; // webassembly binary, assume below imports memory module "imports", field "memory". const module = new webassembly.module(bin); const memory = new webassembly.memory({ initial: 2 }); // siz

python - installing matplotlib on virtualenv failing with `freetype cannot be built` -

i'm trying run flask app on ec2, using virtualenv. i've created virtualenv using virtualenv -p /usr/bin/python venv , activated using source venv/bin/activate . cloned github flask repo, , ran pip install -r requirements.txt . however, i'm getting error when installing matplotlib . file "/home/ec2-user/network-visualizer/venv/lib/python2.6/site- packages/pip/_vendor/cachecontrol/serialize.py", line 81, in dumps ).encode("utf8"), memoryerror i've googled around , tried pip --no-cache-dir install matplotlib suggested here time, i'm seeing ================================================================ ============ * following required packages can no t built: * freetype ---------------------------------------- command "python setup.py egg_info" failed error code 1 in / tmp/pip-build-3dmfat/matplotlib i ran sudo yum install freetype , got pack

SQL query optimization in SQL Server -

Image
in sql server, query execution plan, 2 operations (parallelism , hash match) getting 30 % , 45 % of total cost. what mean of parallelism , hash match? for parallelism, have checked on link number of parallelism can effect performance of query, how check number of degree of parallelism of server? how reduce cost? have no idea how can reduce cost. my query returning 42 million rows , joining 5 tables; no where conditions, no group by , order by clauses. i have non-clustered indexes on join columns. my query is: select [inv].sku [inv_sku], [inv].location_id [inv_location_id], [inv].date [inv_balance_date], [inv].cost inv_cost, [item].item_id, [item].item_name, [spitem].itemnumber sp_itemid, [spitem].name, [spitem_dept].[skey], [spitem_dept].[dept_name], [time].[date] [cal_date], [time].[cal_name] [cal_name], [time].[year_name] [year_name], [time].[year_num] [year_num], [time].[year_start_dt] [year_start_

cocoa - NSSavePanel accessoryView: Why doesn't my button appear? -

i creating save panel accessoryview contains single checkbox. can work when create button using: nsbutton(checkboxwithtitle: "check me", target: self, action: #selector(checkboxselected)) but gives me warning particular nsbutton initializer requires macos 10.12 , need support 10.10. here's savepanel setup: @ibaction func save(_ sender: nsbutton) { let savepanel = nssavepanel() savepanel.accessoryview = accessoryview() savepanel.runmodal() } and here's how create accessory view in sierra func accessoryview() -> nsview { let checkbox = nsbutton(checkboxwithtitle: "check me", target: self, action: #selector(checkboxselected)) let view = nsview(frame: nsrect(x: 0, y: 0, width: 400, height: 100)) view.addsubview(checkbox) return view } but doesn't work (the button doesn't appear) func accessoryview() -> nsview { let checkbox = nsbutton() checkbox.setbuttontype(nsswitchbutton) checkbox.title

php - Woocommerce Change Recent Products -

Image
i want change recent products overview author of product in single product page. i don't know find code recent products. looked in single-product.php didn't find it. if helps: use woocommerce version 2.6.9 , wordpress version 4.7. i hope find there: wp-admin > appearance > widgets > right sidebar

android - Can't compile okhttp with jack enabled -

my project working great decided enable jack, after got following error: the type com.squareup.okhttp.okhttpclient cannot found in source files, imported jack libs or classpath . i'm using build tools 25.0.1 , gradle dependencies are: compile 'com.squareup.retrofit2:retrofit:2.1.0' compile 'com.squareup.retrofit2:converter-gson:2.1.0' compile 'com.squareup.okhttp3:okhttp:3.5.0' compile 'com.squareup.okhttp3:logging-interceptor:3.5.0' please note if disable again jack project works.

angularjs - How do I make a conditional editableCellTemplate? -

i'm trying make rows in ui grid dropdown menus. accomplish this; set editablecelltemplate this; <div ng-if="!row.entity.dropdown"> <form name="inputform"> <input type="text" ng-class="'colt' + col.uid" ui-grid-editor ng-model="model_col_field" /> </form> </div> <div ng-if="row.entity.dropdown"> <form name="inputform"> <select ng-class="'colt' + col.uid" ui-grid-edit-dropdown ng-model="model_col_field" ng-options="field[editdropdownidlabel] field[editdropdownvaluelabel] custom_filters field in editdropdownoptionsarray"> </select> </form> </div> i attach 'true' each row.entity want dropdown. however, code endcelledit not appear fire when select different cell in grid mouse. if replace ng-if ng-show, selecting diffe

ruby - Rails fails to install on Sierra -

(thank maxple answer! worked) i'm attempting install rails on macos 10.12 (sierra). i'm using terminal install using command: $ sudo gem install rails this produces following output: building native extensions. take while... error: error installing rails: error: failed build gem native extension. current directory: /users/paullantow/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/nokogiri-1.7.0.1/ext/nokogiri /users/paullantow/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20170111-22393-xqzt1j.rb extconf.rb checking if c compiler accepts ... yes checking if c compiler accepts -wno-error=unused-command-line-argument-hard-error-in-future... no building nokogiri using packaged libraries. using mini_portile version 2.1.0 checking iconv.h... yes checking gzdopen() in -lz... yes checking iconv... yes ************************************************************************ important notice: building nokogiri packaged version of libxml2-2.9.4. team nokogiri keep o

HTTP GET request in JavaScript? -

i need http get request in javascript. what's best way that? i need in mac os x dashcode widget. you can use functions provided hosting environment through javascript: function httpget(theurl) { var xmlhttp = new xmlhttprequest(); xmlhttp.open( "get", theurl, false ); // false synchronous request xmlhttp.send( null ); return xmlhttp.responsetext; } however, synchronous requests discouraged, might want use instead: function httpgetasync(theurl, callback) { var xmlhttp = new xmlhttprequest(); xmlhttp.onreadystatechange = function() { if (xmlhttp.readystate == 4 && xmlhttp.status == 200) callback(xmlhttp.responsetext); } xmlhttp.open("get", theurl, true); // true asynchronous xmlhttp.send(null); } note: starting gecko 30.0 (firefox 30.0 / thunderbird 30.0 / seamonkey 2.27), synchronous requests on main thread have been deprecated due negative effects user experience.

cut a part from an mp4 video with no wreckage using ffmpeg and php -

i use cmd below cut part mp4 video: ffmpeg -ss 00:00:10.500 -i {$ffmpeg_mp4_vinput} -t 00:00:17.430 {$ffmpeg_mp4_voutput} 2>&1 and ffmpeg -ss 00:00:10.500 -i {$ffmpeg_mp4_vinput} -to 00:00:17.430 {$ffmpeg_mp4_voutput} 2>&1 and ffmpeg -ss 00:00:10.500 -i {$ffmpeg_mp4_vinput} -t 7 {$ffmpeg_mp4_voutput} 2>&1 all cmds called exec() php function, work fine same result. problem when cut video 1 of commands, video long video set in from-to in commands. example 1 second before , more 2+ seconds after. is there missed out commands?

php - How to properly utilize PDO? -

this question has answer here: fatal error: call member function prepare() on null 2 answers quick edit : although says mamp, store web projects there , not utilize mysql server provides (though when tried threw same error), use mysql came mysql workbench* in php code working on connect database follows: $dbh = new pdo('mysql:host=localhost:3306;dbname=mydb', $user, $pass); now, tested user , password database both via terminal (which connects successfully), along interface ide (phpstorm) provides connects. my issue follows: how past following error: fatal error: uncaught error: call member function query() on null in /applications/mamp/htdocs/gis/4musketeers/php/common.php:20 now know mentions line 20 refers start of foreach block: function printdirectors($sqlquery) { $index = 0; //counting index our table global $dbh; //this how refer

angularjs - Accessing ng-click when rendered via $sce.trustAsHtml -

how access ng-click function (updaterating) in below? https://jsfiddle.net/by2jax5v/171/ i'm using $sce.trustashtml render $scope.content $scope.bindhtml = $sce.trustashtml($scope.content); your above code compiled sanitized angular js considering anchor tag insecure, therefore ng-click not work. what want achieve can achieved using ng-html-compile francis bouvier instead of ng-bind-html . thinnest library have seen 1kb. https://github.com/francisbouvier/ng_html_compile also refer https://stackoverflow.com/a/41790235

Bad performance ListView in TabControl WPF -

i have tabcontrol 3 tabitems . each tabitem has own viewmodel. last tab contains listview +1500 records. every time open tab, takes +-10 seconds render. want optimize listview doesn't take long render every time. i'm binding observablecollection listview . the listview looks this <listview> <listview.view> <gridview> <gridviewcolumn> <gridviewcolumnheader> <textbox... custom templates filtering here </gridviewcolumnheader> </gridviewcolumn> </gridview> <listview.view> </listview> i've tried: <virtualizingpanel.virtualizationmode="recycling"> this speeds up, makes scrolling reeeeeeeally slow. i think can separate big collection on few small pages (20/50 items) , add new items little. can recommend use behavior refresh page. bind awaitable command add new items colle

c# - DigitalPersona SDK: Transfer EnrollmentForm image to another form -

trying do... i working on project incorporates digitalpersona sdk captureform , enrollmentform. project includes main form, sake of question call form1. form includes picturebox, called picturebox1, , button, called button1. when click on button1, following code executed. private void button1_click(object sender, eventargs e) { enrollmentform enroll = new enrollmentform(); enroll.showdialog(); } in enrollmentform, have controls setup provided in digitalpersona sdk. captures fingerprint fine in picturebox, called picture. do, make when close enrollmentform, captured image in picturebox transferred picturebox on form1. what have tried... i have tried many examples have found here on stackoverflow , google. first create formclosing event , try pass image enrollmentform form1. did making picturebox1 on form1 public in form1.designer.cs , putting following code enrollmentform. private void enrollmentform_formclosing(object sender, formclosingeventargs e) { form1

haskell - How to reduce lambda calculus -

i try understand lambda calculus , read wonderful article . on page 8, there expression: (λy.(x(λx.xy))) if going substitute left outer most (λy) t , (λy.(x(λx.xy))) t then result be? x(λx.xy) i took liberty of rewriting haskell syntax (\y -> x (\x-> x y)) (\y -> x (\x-> x y)) t x (\x -> x t) since y bound input \y y substituted t. edit: noted in comment below if t contain free x important rename bound x in scope "fresh" name. name has no meaning. if say let t = \t -> x t then proper substitution like x (\z -> z (\t -> x t)) where stated pigworker z chosen freshness fresh identifier replace our bound x prevent hiding free x in t.

oop - Creating an object differences java -

this question has answer here: what difference between declaration , definition in java? 7 answers i'm sure question have been answered not sure term search. i unsure of difference between : jpanel = new jpanel(); = new jpanel(); with second line need declared variable @ top of class? can please attach link can find out topic. know basic. there 3 cases : declaration , initialization , , ( declaration, , initialization ) : this declaration of object: jpanel a; this initialization of object : a = new jpanel(); and can make both of them in 1 step : jpanel = new jpanel();

angular - pipe inside child component not called when input changed -

i have custom pipe filter array. pipe used inside child component, data child component passed through input parameter. when input data changed, pipe not called. there have differently when using changedetectionstrategy.onpush inside child component. edit in example below, product-list-container gets products ngrx store. data passed product-list component through input parameter. in product-list component, have filter filtering out rows based on criteria. issue seeing that, when input value changes pipe function not called. pipe getting called once on component load. @component({ selector: 'product-list-container', template: ` <app-product-list [productlist]="productlist$ | async"></app-product-list> ` }) export default class productlistcontainer implements oninit { public productlist$: observable<product[]>; constructor(public store: store<appstate>) { } ngoninit() { this.productlist$ = this.store.select('

java - OnCretae() doesn't count -

Image
i have been working on these 2 methods in android studio problem comes when return activityone not add oncreate method, whereas if adds onstart, onresume , onrestart. activityone import android.app.activity; import android.content.intent; import android.os.bundle; import android.support.v7.app.appcompatactivity; import android.util.log; import android.view.view; import android.view.view.onclicklistener; import android.widget.button; import android.widget.textview; public class activityone extends appcompatactivity { private static final string restart_key = "restart"; private static final string resume_key = "resume"; private static final string start_key = "start"; private static final string create_key = "create"; // string logcat documentation private final static string tag = "lab-activityone"; // lifecycle counters // todo: // create counter variables oncreate(), onrestart(), onstar

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -

i'm using jupyter notebook. have tried anaconda console well. tried importing both ways shown below from moviepy.editor import videofileclip moviepy.video.io.videofileclip import videofileclip both of them gave me same error. full trace below attributeerror traceback (most recent call last) <ipython-input-10-9afa9d6e87c4> in <module>() 6 import glob 7 import math ----> 8 moviepy.editor import videofileclip 9 moviepy.video.io.videofileclip import videofileclip c:\program files\anaconda3\lib\site-packages\moviepy\editor.py in <module>() 20 # clips 21 ---> 22 .video.io.videofileclip import videofileclip 23 .video.io.imagesequenceclip import imagesequenceclip 24 .video.io.downloader import download_webfile c:\program files\anaconda3\lib\site-packages\moviepy\video\io\videofileclip.py in <module>() 1 import os 2 ----> 3 moviepy.video.videoclip import videoclip

javascript - In webpack can I only use commonchunks plugin in one entry bundle -

i have app 2 bundles, , common modules e.g. react extracted vendor bundle. adding 3rd bundle don't want extract common dependancies from. possible. this question related this one creating multiple vendor bundles each entry point, whereas want 1 of bundles not require vendor. in case because script simple site verification script being set in head, before vendor bundlde. still want able use modules in head bundle. const webpack = require('webpack'); const path = require('path'); const config = { entry: { vendor: [ 'jquery', 'react', 'react-dom' ], main: [ './bundles/main/app', ], cms: [ './bundles/cms/app' ], head: [ './bundles/head/app' ], }, output: { filename: '[name]-bundle.js', path: '../app/assets/webpack', }, plugins: [ new webpack.optimize.commonschunkplugin({ name: 'vendor',

c++ - 2d array in Arduino with different row size -

i'm going use arduino play melody, melody split 11 parts stored in array called notes here's code: string notes[0][]={"do", "re", "mi", "fa"}; string notes[1][]={"so", "rest", "mi", "do", "rest", "so", "rest", "fa", "re", "rest", "fa", "rest", "re", "ti", "rest", "fa", "rest", "mi", "do", "rest"}; string notes[2][]={"rest", "si,", "do", "fa", "mi", "so", "do", "rest", "mi" "fa", "mi", "fa", "mi", "fa", "mi", "do", "re"}; string notes[3][]={"la,", "la", "so", "fa", "mi", "fa&q

My Pygame script makes my character on screen pause when my mouse is moved -

i wanted make simple game in pygame moved character(a square) wasd keys. have achieved movement not smooth , when move mouse character refuses move. i assume loop event in pygame.event.get(): if event.type pygame.quit: pygame.quit() sys.exit() i know stuck in loop whilst there input i'm not sure how fix without not being able close program. here main game loop: while launchgame: event in pygame.event.get(): if event.type pygame.quit: pygame.quit() sys.exit() screen.fill(white) player.draw() player.move() pygame.display.flip() and here move script if helps: def move(self): if event.type == pygame.keydown: if pygame.key.get_pressed()[k_w]: self.y -= self.speed if pygame.key.get_pressed()[k_s]: self.y += self.speed if pygame.key.get_pressed()[k_a]: self.x -= self.speed if pygame.key.get_pressed()[k_d]:

python - django model admin add form gets stuck -

consider this @admin.register(personal, site=admin_site) class personaladmin(admin.modeladmin): form = changepersonalform add_form = addpersonalform def get_form(self, request, obj=none, **kwargs): if not obj: self.form = self.add_form return super(personaladmin, self).get_form(request, obj, **kwargs) the first time try creating or changing object, work fine. but, after create object, every time try change object, add_form instead of form i fixed adding else block @admin.register(personal, site=admin_site) class personaladmin(admin.modeladmin): change_form = changepersonalform add_form = addpersonalform def get_form(self, request, obj=none, **kwargs): if not obj: self.form = self.add_form else: self.form = self.change_form return super(personaladmin, self).get_form(request, obj, **kwargs) as if there sort of class caching. anyone knows why? all in djang

windows - Mysterious R6034 error on executable with external manifest -

i'm experiencing strange issue program. it's puzzling me. here's did: my program test.exe uses external manifest test.exe.manifest . running test.exe works fine. for testing purposes, renamed file test.exe.manifest1 see happens. after renaming manifest, program test.exe refused start , showed r6034 runtime error saying: "an application has made attempt load c runtime library incorrectly." so renamed test.exe.manifest1 test.exe.manifest again. surprisingly, test.exe still shows r6034 error , doesn't run @ all. when copy test.exe , test.exe.manifest new location, however, works fine! did in old location before renaming manifest , forth. even more surprisingly, when repeat steps 2 4 in new location , there no such problem! executable refuses start when using test.exe.manifest1 works fine again when renaming manifest file test.exe.manifest . however, in old location executable permanently broken , can't made run again. this complete m

angularjs - How to check if output binding is given? -

how check if output binding given? examplecode: angular.module('tester', []); angular.module('tester').component('test', { template: '<h3></h3>', bindings: { callback : '&' }, controller: function() { // how check if callback binding given? // typeof this.callback === 'function' returns true // angular.isfunction(this.callback) returns true } }); if want check if binding given do: if(this.callback) return true else return false the value of this.callback available in component if binding there otherwise wont be.

ruby on rails - Need help in understanding Heroku logs -

i have rails 5 app works in local machine postgresql locally installed. i pushed app heroku , login page of app appears correctly. when try login app error. checking logs give following output. 2016-10-26t04:21:48.515201+00:00 heroku[router]: at=info method=get path="/favicon.ico" host=teamwallet.herokuapp.com request_id=94268ad1-1f86-4caf-80ae-61799fdddc5b fwd="182.57.131.204" dyno=web.1 connect=0ms service=1ms status=304 bytes=48 2016-10-26t04:21:54.410775+00:00 heroku[router]: at=info method=post path="/" host=teamwallet.herokuapp.com request_id=52da63d5-afbd-4e8d-9d8a-51b04d077a21 fwd="182.57.131.204" dyno=web.1 connect=0ms service=7ms status=500 bytes=1669 2016-10-26t04:21:54.435325+00:00 app[web.1]: i, [2016-10-26t04:21:54.435257 #3] info -- : [52da63d5-afbd-4e8d-9d8a-51b04d077a21] started post "/" 182.57.131.204 @ 2016-10-26 04:21:54 +0000 2016-10-26t04:21:54.435994+00:00 app[web.1]: i, [2016-10-26t04:21:54.435933 #3] i

objective c - Call between two or more devices which are connected with WiFi - iOS -

i don't know question easy or not, didn't found thing related on web. does know wifi library or other having functionality of connecting 2 device ios , having functionality of creating call between these 2 connected device or can create group , group call also? setup own webrtc server , obtain absolute url protocol. make sure has work within network only. when devices in wifi / network. can connect each other through absolute url. refer - https://github.com/isbx/apprtc-ios/blob/master/readme.md