Posts

php - How to create a Logout function in Processmaker 3.0 using the Rest API? -

i developing 1 rest api in process-maker 3.0. in user can login using password oauth2.0 authorization. we access token , oauthcredential.json automatically updated. when user logged in credentials (client_id, client_secret, username , password) cookie sets. , directs rest endpoints suggesting in link: http://wiki.processmaker.com/3.0/calling_rest_endpoints when cookies not set or cleared should redirect login page or when user click on logout button redirect login page. code login page '<html><head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <form action="check_login.php" method="post"> client id<br> <input type="text" name="client_id" value="" width=32 /><br> client secret<br...

node.js - How to set ttl for aerospike record ttl through NodeJS Client -

i using nodejs client aerospike, , trying set ttl record, below code same. insert(key, value) { return new promise(function (resolve, reject) { aerospike.put(key, value, function (err) { if (err.code !== aerospikestatus.aerospike_ok) { reject("failed insert in secondary storage"); } else { resolve(true); } }); }); } i following official documentation, unable find way set ttl through nodejs client. happen know how same? ( http://www.aerospike.com/docs/client/nodejs/usage/kvs/write.html ) actually, there 4 parameters of put function, (key, record, metadata, policy). can see example here . following simple code show how set ttl: var key = new aerospike.key(ns, set, "ask") var rec = { as_bin: 'bin-content' } var meta = { ttl: 1000 } var policy = { key: aerospike.policy.key.send } client.put(key, rec, meta...

linux - could not insert module after kernel upgrade in VM -

i running win7 host , ubuntu14.04 vm, on virtualbox upgraded vm kernel. thereafter, after compiling kernel module again against new kernel, not able insmoding it. it gives following error : vm@vm:~/documents/kerneldev/customsockets$ sudo insmod customsocket.ko insmod: error: not insert module customsocket.ko: invalid module format i dont see eror message in dmesg logs. i make sure compiling module against correct kernel running. vm@vm:/lib/modules/3.12.59uml$ pwd /lib/modules/3.12.59uml makefile compile module: obj-m += customsocket.o all: make -c /lib/modules/3.12.59uml/build m=$(pwd) modules clean: make -c /lib/modules/3.12.59uml/build m=$(pwd) clean can pls me out here ? my bad, compiling against wrong kernel version headers. issue has been resolved.

ios - Creating Thumbnail from Video - Improving Speed Performance via MPMoviePlayerController -

this code using. want generate thumbnail after create video via these thumbnail drawing done on "drawimage" uiimageview. while([self.thunbnailarray count]) { id times = [self.thunbnailarray objectatindex:0];////self.thumbnailarray contains duratin of player @ thumbnail generate////// [self.thunbnailarray removeobjectatindex:0]; uiimage* thumbnail = [player1 thumbnailimageattime:[times floatvalue] timeoption:mpmovietimeoptionexact]; uigraphicsbeginimagecontext(drawimage.frame.size);////drawimage uiimageview make drawing [drawimage.layer renderincontext:uigraphicsgetcurrentcontext()]; uiimage *viewimage = uigraphicsgetimagefromcurrentimagecontext(); uigraphicsendimagecontext(); cgimageref firstimageref = thumbnail.cgimage;/////merge thumbnail , drawing both cgfloat firstwidth = cgimagegetwidth(firstimageref); cgfloat firstheight = cgimagegetheight(firstimageref); c...

html - Bootstrap navbar with element on right and left side beside menu icon -

i'm trying build navbar bootstrap. navbar should have 2 elements: close-icon on left side of bar label element on right side of bar, should placed left menu-icon (which shown on small devices). if there no menu-icon, label element should on right side of bar this tried far: jsfiddle : http://jsfiddle.net/0jejx693/1/ <nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <span class="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> ...

How to create a global variable in javascript (using webpack) -

i'm using react js webpack, webpack-dev-server , ecmascript 6. have undeclared variable in file named data.js. however, cannot modify data.js file since standard. there way can make variable global js file? tried declaring window.myvarname in file data.js referenced using import statement still giving error uncaught referenceerror: myvarname not defined define object in file below var data={ myvarname:"" }; and call want data.myvarname;

How to get values from GridView in jQuery Dialog in C# -

there jquery dialog gridview inside in aspx page. have button save on jquery dialog . need values in gridview after click on button in c# . have tried below. not worked. changed value in textbox , click save button. not gave me edited value. nothing returned. aspx page <asp:content id="content1" contentplaceholderid="headcontent" runat="server"> /* java scripts , style sheets here */ <script type="text/javascript"> function showdialog() { $('#dialogdiv').dialog('open'); } $(document).ready(function () { $('#dialogdiv').dialog({ autoopen: false, resizable: true, width: 300, height: 'auto', buttons: { "save": function () { $('#' + '<%= btnsavetype.clientid %>').trigger("click...