Posts

uinavigationcontroller - iOS Programatically Drill Down Navigation Stack -

uinavigationcontroller - iOS Programatically Drill Down Navigation Stack - i posted question before today regarding reacting receipt of force notification, whereby needed drill downwards 1 view another. question answered, have moved on requirement reacting force notifications, whereby need drill downwards 3rd level in navigation stack. below mockup of view hierarchy, on receipt of force notification want drill downwards view titles "third view". from reply previous question, able drill downwards "second view", when seek perform segue force "third view" on stack, same type of error per previous question: terminating app due uncaught exception 'nsgenericexception', reason: 'could not find navigation controller segue 'admin'. force segues can used when source controller managed instance of uinavigationcontroller.' in appdelegate, when receive notification select required tab then: uinavigationcontrol...

Wordpress: Separate meta fields vs single array field -

Wordpress: Separate meta fields vs single array field - i have 200 fields in single post. wondering if set them 1 single field array or multiple fields. single array has lot of work done getting value unlike separate fields. advisable big site? it depend on management requirements too. if person editing custom field huge array in they'd need technical knowledge. if management isn't of import you're improve off storing info in 1 field cut down number of times you'll firing get_post_meta() function. code much faster if parse value array , work it. alternatively, if you'll need little number of these values improve run get_post_meta() couple times retrieve , work entire array. you can test both scenarios using this method. arrays wordpress multidimensional-array field metadata

python - Trying to find follower count in Instagram API -

python - Trying to find follower count in Instagram API - i looking find follower count particular user much if using instagram api console: from instagram.client import instagramapi access_token = "access token" api = instagramapi(access_token=access_token) user_info = api.user(user_id) print user_info what getting api console when search user_id { "meta": { "code": 200 }, "data": { "username": "igname", "bio": "comments, "website": "http://instagram, "profile_picture": "picture", "full_name": "igrealname", "counts": { "media": number1, "followed_by": number2, "follows": number3 }, "id": "iguserid" } i looking username, follows, , followed fields output python. all getting username , it. ...

f# - WPF window will not open after adding namespace -

f# - WPF window will not open after adding namespace - so have simple f# wpf application. working fine without declaring namespace , using multiple modules. now, still compiles, nothing. nil in debug show either. this current code not work. namespace flow module mainapp = open scheme open system.windows allow app1 = new application() [<stathread>] app1.run(new main.mainwindow()) |>ignore before worked when this module mainapp open scheme open system.windows allow app1 = new application() [<stathread>] app1.run(new main.mainwindow()) |>ignore i can show definition of mainwindow, long, class inherits window. allow me know if help. or if there other info give help issue. your original code relies on implicit entry point: "when programme has no entrypoint attribute explicitly indicates entry point, top level bindings in lastly file compiled used entry point." you can either define function...

php - preparing ZF2 query for a particular mysql query -

php - preparing ZF2 query for a particular mysql query - how can prepare zf2 query bellow mysql query select (select category_name categories category_id = c.parent_id) category_name ebook e bring together ebook_categories ec on ec.ebook_id = e.ebook_id bring together categories c on c.category_id = ec.category_id e.is_active = 1 grouping category_name you can using tablegateway in zf2. example: public function fetchallwithlikes( $user_id ) { $adapter = $this->getadapter(); $resultset = $this->select( function( select $select ) utilize ( $user_id, $adapter ) { $sub1 = new select( 'likes' ); $sub1->columns( array( 'total' => new expression('count(*)') ) ) ->where( array( 'id' => new expression( 'song_id' ) ) ); $sub2 = new select( 'likes' ); $sub2->columns( array( 'total' => new expression('count(*)') ) ) ->where( array( 'id' => n...

java - How to print text messages on jtextarea from a different class -

java - How to print text messages on jtextarea from a different class - i created console based programme allowed users take math quiz. programme generated random numbers , determined if reply right or wrong. now, i'm trying create gui version of programme , i'm stuck. i want print text messages in jtextarea different class. i've used , set methods, reason doesn't output text messages. i've done research on swing workers have no thought how work i'm trying avoid using if possible. this not homework assignment. started learning java 4 months ago may not understand advance concepts. i guess want know... have utilize swing workers? want generate random numbers , output result in jtextarea... shouldn't freeze gui, right? anyway, in advance. class="snippet-code-js lang-js prettyprint-override"> package algorithmsprogramgui.view; import java.awt.eventqueue; import javax.swing.jframe; import javax.swing.jpanel; impo...

java - generic array with wildcard cause error -

java - generic array with wildcard cause error - i wanted create jcombobox´s type string, having in array, used wildcard array , string single elements: jcombobox<?>[] combos=new jcombobox<?>[10]; ... combos[i]=new jcombobox<string>(); same defaultcomboboxmodels: defaultcomboboxmodel<?>[] combomodels=new defaultcomboboxmodel<?>[10]; ... combomodels[i]=new defaultcomboboxmodel<string>(); assigning them each other: ... combos[i].setmodel(combomodels[i]); now gives compiler error (capture#13-of ? not applicable capture#14-of ?). have expected single elements set string , everything´s fine. what´s about, how deal it? (except of doing raw) java needs ensure, model , combo of same type. on given example, 1 time types gone after erasure, there no way this. set model<integer> combo<string> such way. java arrays generics