Saturday, 15 January 2011

php imagick error (ImageMagick 6.5.4 library for php version 5.3.1.3 and wamp server ,system 32 bit) -



php imagick error (ImageMagick 6.5.4 library for php version 5.3.1.3 and wamp server ,system 32 bit) -

i have installed imagemagick 6.5.4 library php version 5.3.1.3 , wamp server, scheme 32 bit.

i tried blur on images , draw circles , primitives , go in right way. when tried code have imagick statement have result

fatal error: class 'imagick' not found in c:\wamp\www\t\code.php on line 2

how solve problem ?

imagick needs activated in php.ini file , in case need right imagick.dll file go it. can frustrating business need right .dll go php version , has compiled right version of - can not remember now.

it not supported , find frustrating use. recomend stick exec( ) , command line.

php imagemagick imagick

asp.net - error when using textbox ,ajax calender extender and compare validator -



asp.net - error when using textbox ,ajax calender extender and compare validator -

i used textbox textchanged event,autopostback true ,ajax calender extender , kepted compare validator checking date greaterthan today, if come in wrong date validation error appears , disappears immediatly , textbox event firing ? how stop event firing & showing error

asp.net

mongodb - How to populate fields after mapReduce with Mongoose.js? -



mongodb - How to populate fields after mapReduce with Mongoose.js? -

i want populate fields after mapreduce.

mongoose.connection.db.collection('createdcollectionnameforresults', function(err, collection) { collection.find({}).populate('ref_field').toarray(function(err, items) { res.send(200, items) }); });

but here, gives error:

typeerror: object # has no method 'populate'

because collection.find({}) returns mongodb cursor. how can populate ref_field?

considering have schema registered in mongoose named 'createdcollectionnameforresults'

var model = mongoose.model('createdcollectionnameforresults'); model.find({}).populate('ref_field').exec(function(err, results){ console.log(err, results); });

mongodb mapreduce mongoose

c# - Calling asmx web service using JQuery with parameters causes 500 error -



c# - Calling asmx web service using JQuery with parameters causes 500 error -

i have simple plenty web service:

[scriptmethod(usehttpget = true, responseformat = responseformat.json)] [webmethod] public string gettoken(string a) { }

and i'm calling client side using jquery:

$.ajax({ post: 'get', contenttype: "application/json; charset=utf-8", datatype: 'json', url: '../url/gettoken', data: "{'a':'test'}", success: function (data) { }, error: function (a, b, c) { } });

the phone call fails , error returned 500 internal server error. have placed breakpoint within web service, , code isn't beingness reached @ all. when modify web service take no arguments @ (and remove data element jquery call) phone call succeeds. have played around different ways pass data element; i've passed json object (no quotes), , i've removed quotes around a argument. none of works.

edit:

using fiddler have determined actual error causing 500 "invalid web service call, missing value parameter".

edit 2:

passing info way works:

data: "a='test'"

i have no thought why. ideas?

haven't tested this, in code snippet have post: 'get' rather type: 'get'. may causing server reject contenttype json (which why info isn't beingness serialized properly).

c# web-services jquery asmx

java - Capture images and store them only inside apk in android? -



java - Capture images and store them only inside apk in android? -

i want utilize device photographic camera , capture image , convert lower quality image , store image within "assets" instead within cellphone .

i not expecting total code , thought in general great .

the main issue how image taking image assets can utilize .

thanks !

no can't that... after apk build, can't insert within @ run time. can save info on either internal memory or external memory not within apk(through mechanism)

java android android-intent camera assets

Not able to open a portlet in liferay dialog -



Not able to open a portlet in liferay dialog -

i have dialog in portal opens portlet. when click on link , dialog opens, dialog shows

you not have roles required access portlet.

however, if add together same portlet on page, portlet opens without hitch, both on page , dialog. missing here? got thought ?

my codes :

#set ($profile_url = $portleturlfactory.create($request, "profile_war_profileportlet", $getterutil.getlong($plid), "render_phase")) $profile_url.setparameter("p_p_state", "exclusive") <a href="#" id="profile" onclick="opendialog('$profile_url','preferences-dialog',500,500)"> profile </a> window, 'opendialog', //function name function(url, popupid, wd, ht) { // parameters function var = aui(); popupdialog = new a.dialog({ id: popupid, // popupid passed easy close through events other close button centered: false, // different parameters function can check in alloy api draggable: true, resizable: false, width: wd, stack: true, modal: true, height: ht, scrollbars: true, xy: [getwidth()/2-wd/2,10] } ).plug( a.plugin.io, { uri: url } ); popupdialog.render(); }, ['aui-dialog','aui-dialog-iframe'] );

thanks in advance help can provide.

i think missing next configuration in liferay-portlet.xml of profile_war_profileportlet portlet:

<add-default-resource>true</add-default-resource>

this should set true portlet accessed within dialog pop-up, here documentation element.

for more info can @ answer points 4 & 5 of reply of help you.

dialog liferay portlet portal

java - Obliterate the URL -



java - Obliterate the URL -

i have ajax application phone call servlet run study , homecoming pdf. works pretty well, except user presented web page have study name , client id. changing client id allow them run same study person. yikes!

i recall things url re-writing, used dubiously session management. wondering if modify url within servlet user gets can't hacked @ other reports. how go this?

also, have improve idea?

thanks.

simply utilize (anonymous) session id file part. , allow servlet stream file in file scheme adding session id.

this assumes command flow can't done easier because of ajax , doing 2 things @ once.

java java-ee