Posts

How do I pause/play/seek a silverlight video using javascript -

a little bit of context. want able programmatically control silverlight video player on amazon instant video javascript. using developer console. have found video player element in dom. <div id="player_container" style="display: block;"> <object type="application/x-silverlight" data="data:application/x-silverlight," id="player_object" width="50%" height="100%"> <param name="color" value="#ffffff"> <param name="background" value="#000000"> <param name="minruntimeversion" value="5.1"> <param name="autoupgrade" value="false"> ... elided several <param>'s here ... </object> </div> i enter following in js repl in developer console: > var silver = document.getelementbyid("player_object"); i at...

OpenGL GLKit : rendering different size vertices objects together. ios opengl draw call exceeded array buffer bounds -

i doubt can me on hey ho. i have 3d framework have been working on things in world cubes (36 vertices). i followed great tutorial bringing blender objects in opengl : http://www.raywenderlich.com/48293/how-to-export-blender-models-to-opengl-es-part-1 i brought cube in , good, tried bring sphere in, cube, cylinder etc , blows ios opengl draw call exceeded array buffer bounds i know objects fine work demo app renders 1 object , has no binding of arrays , vertex's etc anyway i sure code junk have tried everything - (void)setupsphere; { glgenvertexarraysoes(1, &_vertexarray); glbindvertexarrayoes(_vertexarray); ////// glgenbuffers(1, &_vertexbuffer); glbindbuffer(gl_array_buffer, _vertexbuffer); glbufferdata(gl_array_buffer, sizeof(&spherevertices), &spherevertices, gl_static_draw); //// glgenbuffers(1, &_position); glbindbuffer(gl_array_buffer, _position); glbufferdata(gl_array_buffer, sizeof(spherepositions),spher...

php - Contact form not uploading to database (MySQL) -

i have contact form trying input information website designated table in database. know need code run correctly? can input information in textfields on website , hit submit, reason, first name, last name, email, etc not show in database @ all. when click submit, "thank you" message show up. include contact form, php, , database like, perhaps help. contact form contactus.php <!doctype html> <html> <head> <meta charset = "utf-8"> <title>contact</title> <style type = "text/css"> em { font-weight: bold; color: black; } p { font-size: 12pt; font-family: times new roman, sans-serif; color: black; } </style> </head> <body> <?php include ('menu.html'); ?> <? include ("form_process.php"); ?> <br> please fill out form below contact info...

.net - How To Make My Form Respond to Ctrl-Alt, in C#? -

i have simple form in c#, has grid , several buttons. i want form change gui bit, when ctrl-alt pressed, , have gui reverted original when ctrl-alt released. i know how check if ctrl+alt pressed - 1 way via control.modifierkeys. what ask this: for button press, have event handler respond it. keyboard regular keys have event handler respond it. ctrl-alt not regular key - not raise event when pressed. so should do? one way thought about, enable timer run, , check every 200ms if ctrl-alt pressed. is there better way timer? thank you you can override form's method pick keystroke. protected override bool processcmdkey(ref message msg, keys keydata) { if (keydata == (keys.control | keys.alt ) { //do stuff here } return base.processcmdkey(ref msg,keydata); }

audio - getting an installable package from an Applicaton in linux -

i don't know possible or not, here's question: i have alsa installed on system , not have installation files , dependencies of it, want copy alsa system same hardware, how can installable package (or that) of alsa , of it's dependencies? hardware cubieboard1 , both have linaro, kernels versions diffrent (3.0.57 mine,and 3.4.67 other)

c++ - Boost.TTI not working with Clang -

boost 1.54 added new library, boost.tti type traits introspection . following code using has_template functionality, works on g++ not on clang #include <boost/tti/has_template.hpp> boost_tti_has_template(template1) boost_tti_has_template(template2) boost_tti_has_template(template3) struct top { template <class x> struct template1 { }; template <typename a,typename b,typename c> class template2 { }; template <typename a,typename b,typename c,int d> class template3 { }; }; int main() { static_assert( has_template_template1<top>::value, ""); // true static_assert( has_template_template2<top>::value, ""); // true static_assert(!has_template_template3<top>::value, ""); // false, not typename/class template parameters } live example . question : why doesn't code compile on clang? according boost.tti docs, support variadic macros required, clang has been supporting since 2.9. ...

php - automatic updating of timestamps in tables with no model -

doesn't laravel automatically update timestamps of tables have no model , 'pivot' table? have tried doing doesn't update timestamps . and if doesn't update it, there way can using laravel ? or way update them manually updating columns 'created_at' or 'updated_at' ? laravel updates fields when you're using modal. if want update them manually can so. db::table('table')->where('id', '=', '1')->update(array( 'created_at' => date('y-m-d h:i:s'), 'updated_at' => date('y-m-d h:i:s') ));