Posts

silverlight 4.0 - WCF RIA Getting Large Data Faster -

silverlight 4.0 - WCF RIA Getting Large Data Faster - i have silverlight client(4.0) calling wcf ria service method returns big set of data.the method returns list customobject has around 20 fields. what noticed it's extremely slow when number of items in list 20,000. if set break point on homecoming statement in server , set 1 break point on client side, can see taking @ to the lowest degree 40 seconds, nail break point on client side 1 time returns list server.i wondering why taking much time bring info server client. is normal wcf ria services ? there way increment efficiency, thanks ! well, 20.000 records are... 20.000 records. lengthy download not uncommon issue in scenario this. might 2 things: page records. ask wcf compress data. not sure if possible silverlight not uses total wcf functionality. silverlight-4.0 wcf-ria-services

c++ - switch win32 console application to graphics mode -

c++ - switch win32 console application to graphics mode - i want switch win32 console application graphics mode utilize setpixel function draw lines: #include "stdafx.h" int _tmain(int argc, _tchar* argv[]) { //code switch graphics mode homecoming 0; } please advice :) here's fine setpixel() example. create win32 application project , paste code , compile it //header files include #include<windows.h> #include<stdlib.h> #include<time.h> //application title #define apptitle "hello world" //function prototypes (forward declarations) bool initinstance(hinstance, int); atom myregisterclass(hinstance); lresult callback winproc(hwnd, uint, wparam, lparam); //the window event callback function lresult callback winproc(hwnd hwnd, uint message, wparam wparam, lparam lparam) { paintstruct ps; hdc hdc; char *szhello = "setpixel"; rect rt; int x=0, y=0, n=0; colorref c; int ...

sha256 - Problems encoding Amazon Flexible Payments secret string in PHP -

sha256 - Problems encoding Amazon Flexible Payments secret string in PHP - i trying utilize amazon payment services, , require me this: here finish signature can see added signature method: $string_to_sign = "get\n authorize.payments-sandbox.amazon.com\n cobranded-ui/actions/start? signaturemethod=hmacsha256&signatureversion=2&callerkey=my_key&callerreference=yourcallerreference&paymentreason=donation&pipelinename=singleuse&returnurl=http%3a%2f%2fyourwebsite.com%2freturn.html&transactionamount=4.0"; and encrypt below. $encoded_string_to_sign = urlencode(base64_encode(hash_hmac("sha256", $string_to_sign, 'my_secret_key'))); i that, error them saying: caller input exception: next input(s) either invalid or absent:[signaturemethod] any thought might going wrong here? here entire code this: (the variables assigned values above) <?php $string_to_sign = 'get authorize.payments-sandbox.amazon.com/...

Passing values from ASP.NET to PHP -

Passing values from ASP.NET to PHP - is there anyway pass values asp.net php using session or other? tried in below way didn't work me. either right below code or suggest me way pass values asp.net php without using url query string. asp.net code. protected void button1_click(object sender, eventargs e) { httpcookie cookie = new httpcookie("myvalue1"); cookie.value = "joe@example.com"; response.redirect("default.php"); } php code. <?php session_start(); $_cookie['myvalue1']; $cookies = getcookies(); $sessionid = $cookies['myvalue1']; ?> there few ways this, none particularly sexy. post info asp.net using httpwebrequest php page, done server side. a cookie encrypted value. if php , .net both run on same server, save file system. a database server. asp.net supports multiple forms of persisting session state. state server , sql beingness 2 of them. i'm sure php co...

rest - Restlet client different responses using android -

rest - Restlet client different responses using android - i have code restful resource public string loadresourcestring() { reference ref = new reference("http://192.0.0.1:8080/op/op2"); clientresource resource = new clientresource(ref); form paramspost = new form(); paramspost.add("id", "abcd"); paramspost.add("code", "2"); representation representation = paramspost.getwebrepresentation(); representation.setcharacterset(characterset.utf_8); representation result = resource.post(representation); string sresult = ""; seek { sresult = result.gettext(); } grab (ioexception e) { homecoming ("ioexception "); } homecoming ("return \n" + sresult + "\n"); } i have code attached button , works ok lot of times result null. don't understand reason. anybody knowledge related restlet framework can help me? ...

Google Apps Calendar API Push Event Query -

Google Apps Calendar API Push Event Query - had hunt around reply google apps query can't find direct reply going flick 1 out community. the plan: have google apps domain business relationship , want create utilize of calendar api , create php web app pushes events calendars of users of google apps domain when triggered. question: possible force users? or read impossible accomplish without users beingness logged in etc , authorizing itself? i dont believe possible, wanted seek , set 'push all' feature while back, no luck. the best consolation maybe creating 1 shared user/calendar , sharing out across of accounts. new user, calendar title 'exampleeventsforgroup' shared tom, dick & mary, , add/modify events onto calendar, pushing out members. its workaround, us, works! rick google-calendar google-apps server-push web-api

php - Imagick missing but extension and module exists -

php - Imagick missing but extension and module exists - i'm getting next error: fatal error: class 'imagick' not found in pdfthumbnail.php on line 2 when running $im = new imagick($_get['pdf'].'[0]'); however if run $test = system('rpm - qa | grep imagemagick'); echo $test; i following: imagemagick-6.2.8.0-4.el5_5.3 imagemagick-devel-6.2.8.0-4.el5_5.3 imagemagick-devel-6.2.8.0-4.el5_5.3 imagemagick-6.2.8.0-4.el5_5.3 imagemagick-6.2.8.0-4.el5_5.3 inside phpinfo can't find section imagemagick module, within php.ini (the 1 listed within phpinfo(); , find: extension=imagick.so my extension path set extension_dir = "/usr/lib64/php/modules" , within folder get: dbase.so libmagickcore.so mysqli.so soap.so xsl.so dom.so libmagick++.so mysql.so sw-engine gd.so libmagickwand.so pdo_mysql.so _unused_imagick.so imagick.so libpdf_php.so pdo.so xmlr...