Posts

ios - perform segue from didReceiveRemoteNotification in appDelegate -

edit: before o further should have found solutions im trying if im using navagiation controller based app, thats not case here. ive create push notifications have job , have logged , recieved push, clicked push notification , recieved correct logs. my goal, want perform segue specific view controllers depending on job there going to. - (void)application:(uiapplication *)application didreceiveremotenotification:(nsdictionary *)userinfo { nsstring *job = [[userinfo valueforkey:@"aps"] valueforkey:@"job"]; if([job isequaltostring: @"msg"]) { nslog(@"going message"); } if ([job isequaltostring: @"friend"]) { nslog(@"going friend request"); } if ([job isequaltostring: @"inv"]) { nslog(@"going invite notifications"); } if ([job isequaltostring: @"find"]) { nslog(@"going find notifications"); } } if([job i...

php - Class inheritance - Calling properties and/or methods not in the parent class -

i'm trying understand class inheritance. suppose have following code (php): class { public function fire() { echo "fire!"; } } class b extends { public function water() { echo "water!"; } } class c extends b { public function lightning() { echo "lightning!"; } } $cobject = new c(); $cobject->fire(); my questions are even though fire() method not defined in class c nor class b, $cobject->fire() works. class c inherit not class b's methods, class a's methods? i'm trying find out how many levels deep inheritance go. is there term calling property or method not exist in current object instance, property or method exists in parent or ancestor class? edit: in other words, fire() not defined in class c, $cobject can still call fire(). there particular term/jargon concept? (or part of definition of "class inheritance") 1) class 'b' ...

javascript - Incorporating google maps api into chrome extension/alternative to document.write -

i trying incorporate google maps api chrome extension. however, found out manifest version 2 not allow document.write . there way around this? use callback url parameter when load maps api, , won't use document.write() . in normal web page might this: function initmap() { // create map object here usual } function loadmapsapi() { var script = document.createelement( 'script' ); script.src = 'http://maps.googleapis.com/maps/api/js' + '?sensor=false&callback=initmap'; document.body.appendchild( script ); } documentation example i don't know how interact chrome extension, that's how it's done in regular web page.

java - Libgdx: how to implement a dialog? -

good day sirs. i've been struggling dialog because keeps on saying should have table skin table i'm not using table. have skin ".atlas" file contains packed images graphical user interface such windows buttons. is there way resolve problem?aside ".json" there anyway? my modal dialog worked using stage. when wanted show it, changed inputprocessor dialogs internal stage other gui objects couldn't respond user input outside dialog. i found libgdx's dialogs overkill purposes. perhaps need skin dialog? if not i'd go approach. use texture atlas instead. can function skin strings used reference regions of image.

How can i add a Tooltip in chosen jquery plugin? -

Image
hi iam working on chosen jquery plugin , need add tooltip elements in chosen plugin. tried tweaking around in chosen didn't positive result. have idea? code: <div id="synonyms_div" style="height:auto;width:170px;"> <select id="tagger-tags" class="tagger-tags" multiple style="width:150px; font:7px;" tabindex="4"> @foreach(var tag in viewbag.tags) { <option id="sel-tags" value="@tag.id" parent="@tag.parent_id" style="font:6px;"> @tag.name [@tag.el_count] </option> } </select> </div> <script> $(document).ready(function () { jquery(".tagger-tags").chosen({ search_contains: true }); }); </script> here's possible solution without having use other libraries, or els...

machine learning - launch.asp error when launching a course from LMS -

just wondering if has seen these type of issues? one: when learner launches scorm package our lms preseted blank screen "launch.asp error". unable take course though meet technical requirements. real problem , have exhaused troubleshooting options. please. two: when learners complete course , launch exam never shows in achievment page. think course window looses connection parent window (lms) when complete exam can't write lms stays on learning plan page. thanks in advance help. nancy you need provide more information. lms using - 1 you've built, or 1 provided company? scorm package come - again, 1 you've built yourself, or bought somewhere? however, there can try narrow down problem is. scorm cloud lms can used test things relating scorm, can create free account. go http://cloud.scorm.com/ , open free account. load package lms, , see if runs. if works perfectly, package fine , lms has problem - contact lms provider, details of package...

jquery - What to use instead of Object.keys()? -

i need find in jquery can work in ie8 real browsers. i'm brand new jquery, following code works in modern browsers: $('#field_'+office_id).on('change',function(){ offices = $(this).val(); for(var i=0; i<=object.keys(southland.address).length;i++){ if(offices == object.keys(southland.address)[i]){ address = southland.address[offices]object.keys(southland.address[offices])[0]]; } } where southland.address comes external array. works perfect in chrome, ie10 , ff, can ie8? to support object.keys in older browsers, can use snippet: https://developer.mozilla.org/en-us/docs/web/javascript/reference/global_objects/object/keys#compatibility if (!object.keys) { object.keys = (function () { var hasownproperty = object.prototype.hasownproperty, hasdontenumbug = !({tostring: null}).propertyisenumerable('tostring'), dontenums = [ 'tostring', 'tolocalestring...