Posts

Showing posts from September, 2014

php - MySQL: Unknown column 'XYZ' in 'field list' -

i have big problem. dont know why, on 2 days when make this: $date_current = date('y-m-d h:i:s'); $mysql = @mysql_query("update aso_repairs set repairs_date_end = '$date_current', repairs_sendnoticer_email_end = 'sending', repairs_sendnoticer_sms_end = 'sending' repairs_id = '$repairs_id' "); if (!$mysql) { die(mysql_error()); } i error: unknown column 'repairs_sendnoticer_email_end' in 'field list'. this column exist in table (structure pastebin.com/cw42nc3n). problem? try this: $date_current = date('y-m-d h:i:s'); $mysql = @mysql_query("update aso_repairs set repairs_date_end = \"'$date_current'\", repiars_sendnoticer_email_end = 'sending', repiars_sendnoticer_sms_end = 'sending' repairs_id = '$repairs_id' "); if (!$mysql) { die(mysql_error()); }

javascript - Set height of 3 elements, taking largest value, across multiple rows -

i have layout of divs floating left, column count of 3. inside these layers text varying length, such layers @ different heights , not aligning correctly , not looking borders not match in height. i set fixed height divs leave huge white space on rows have wrote jquery take largest value of divs , set heights height line correctly. script is: var sectionheight = new array(); //set empty array $(".section-title").each(function () { //get div elements var value = $(this).height(); //get div height sectionheight.push(value); //write height array }); var newsectionheight = math.max.apply(math, sectionheight); //get largest value in array $('.section-title').height(newsectionheight); //set height of elements largest this works fine in design rows have 1 line of text , adjusting row big top row 5 lines of text. what trying achieve have take first 3 divs, largest value set 3 div heights value. repeat 4th 6th div , on (as divs in columns of 3) i can long...

javascript - Referencing HTML elements -

i looking if element referenced so, if make change 1 makes change in other. example, <div id="trigger" data-referencedid="meter voltmeter ammeter vmeter">trigger</div> ... ... <div id="meter"> <!-- children goes here --> </div> ... ... <div id="voltmeter"> <!-- children goes here --> </div> ... ... <div id="ammeter"> <!-- children goes here --> </div> ... ... <div id="vmeter"> <!-- children goes here --> </div> now in jquery or js: $("#trigger").click( function() { $(this).addclass("animated"); // same class added elements defined in attribute. }); i this: $("#trigger").click( function() { var = $(this).data("referenced").split(" "); for(var = 0; < a.length; i++) { $("#"+a).addclass("animated"); } $(this).addclass("an...

Magento REST API Error 500 -

i trying product information through magento rest api; results error starting “ [message:protected] => invalid auth/bad request (got 500, expected http/1.1 20x or redirect) …....................” no idea why occurs; can please me on ? code follows: $callbackurl = "http://myhostcom/current_script.php"; $temporarycredentialsrequesturl = "http://myhostcom/oauth/initiate?oauth_callback=" . urlencode($callbackurl); $adminauthorizationurl = 'http://myhostcom/oauth/authorize'; $accesstokenrequesturl = 'http://myhostcom/oauth/token'; $apiurl = 'http://myhostcom/api/rest'; $consumerkey = 'xxxxxx'; $consumersecret = 'xxxxxxxxxxx'; echo '<pre/>'; session_start(); if (!isset($_get['oauth_token']) && isset($_session['state']) && $_session['state'] == 1) { $_session['state'] = 0; } try { $authtype = ($_session['state'] == 2) ? oauth_auth_ty...

sql - Select random rows and stop when a specific sum/total is reached -

it asked compcobalt (for sql server 2012 ) via thread : select random rows , stop when specific sum/total reached detail: i'm using sql server 2012 , i'm trying this: select sum(miles) tblname mdate > = '03/01/2012' , mdate <= '03/31/2012' -- and... /* want add here until sum of miles equal or greater '3250' , results rows randomly */ so in other words, want select random rows table have specified , date , stop when sum of miles @ or on number: 3250 but question how sql server 2000 ? thanks this tricky question , can done. idea 1.give row number table. 2.then generate random numbers. 3.select rows of row_number , randomly generated number. 4. keep doing till sum with. but issue sql server 2000 doesn't have row_number function take http://forums.asp.net/t/1630106.aspx/1 for generating random number plz see " generate x digit random number in sql server 2008 r2 " good luck please up...

javascript - Send data to php using JSON (Crossdomain) -

my code server1 , php code server2 . both servers separate. problem code ? var hr = new xmlhttprequest(); hr.open("post", "http://www.3675design.com/clients/hl/developers/cyber/itgetbetter/email/index.php", true); hr.setrequestheader("content-type", "application/x-www-form-urlencoded"); hr.onreadystatechange = function () { if (hr.readystate == 4 && hr.status == 200) { var data = json.parse(hr.responsetext); (var obj in data) { document.getelementbyid("conformation_and_error_header").innerhtml = "video"; document.getelementbyid("conformation_and_error_body").innerhtml = "share yor video"; $(document).ready(function () { $(".inline_popup_display_2").colorbox({ inline: true, width: "50%" }); }); } } } hr.send("name=...

android - maven: apk packed wrong -

i tried compile project maven. here's project structure: root |---- app |---- test test - robotium test project. here's root pom.xml: <project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.tecomgroup</groupid> <artifactid>agregator</artifactid> <version>6.8.0.1</version> <packaging>pom</packaging> <name>handifox agregator</name> <profiles> <profile> <id>release</id> <activation> <property> <name>performrelease</name> <value>true</value> ...

amazon web services - Using server side includes or ssi ,AWS S3 -

is there way use ssi on cloudfront or or categorized dynamic content? have sections header, nav or sidebar able use 1 file. example:i have html files,they use same "header" section,i want change "header.shtml" , files change. html files sotrge s3. enter code here<!--#include virtual="/includes/header.shtml" --> amazon s3 not support ssi. content hosted on s3 static content. you process files locally before upload them s3 , handle code includes. then, once have final version, upload s3.

Java command to show the processus -

hi want show jboss 7 process information , database sessions information in java code... try code: process p = runtime.getruntime().exec (system.getenv("windir") +"\\system32\\"+"tasklist.exe"); and code: process p = runtime.getruntime().exec ("c:\\users\\user\\downloads\\pstools\\pslist.exe -s 2"); and works works on windows operating system . want java code work on each operating system, , not on windows or linux ... can u me please? everybody. finding java processes on same host straight forward (some caveats listed later). connecting jmx interfaces achievable. far tracking database sessions, can conceptually acquire data want, long published through accessible mbean. the process requires using java attach api . here's simple example list jvm's running on host, attempt attach them , list heap usage. first off, here's imports: import java.io.file; import java.lang.ma...

android - To display PDF in webview using google doc service in offline mode -

i need display pdf in webview. use google doc service achieve same (in online mode). mwebview.getsettings().setjavascriptenabled(true); string strpdf="https://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf"; mwebview.loadurl("https://docs.google.com/gview?embedded=true&url=" + strpdf); however requirement achieve same in offline mode. since google provides offline support google docs how can set url of google docs offline mode. me out achieve this try code,it may solves problem, webview webview = (webview) findviewbyid(r.id.webview); webview.getsettings().setjavascriptenabled(true); string pdf = "http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf"; webview.loadurl("http://docs.google.com/gview?embedded=true&url=" + pdf);

java - Py4J has bigger overhead than Jython and JPype -

after searching option run java code django application(python), found out py4j best option me. tried jython, jpype , python subprocess , each of them have limitations: jython. app runs in python. jpype buggy. can start jvm once after fails start again. python subprocess. cannot pass java object between python , java, because of regular console call. on py4j web site written: in terms of performance, py4j has bigger overhead both of previous solutions (jython , jpype) because relies on sockets, if performance critical application, accessing java objects python programs might not best idea. in application performance critical, because i'm working machine learning framework mahout. question is: mahout run slower because of py4j gateway server or overhead mean invoking java methods python functions slower (in latter case performance of mahout not problem , can use py4j). i don't know mahout. think that: @ least jpype , py4j have performance impact when...

python - Enthought Canopy connect to server -

i have canopy installed on local osx computer , on headless linux server elsewhere. run canopy locally, use venv on server, connected via ssh. purpose of use local canopy software rendering/etc., server computation , storing of files. if possible, preferable x11 forwarding, slooow. typically use nx, canopy , nx not playing nicely together, a known issue . is possible?

php - Ajax fill in city automatically -

i have html form, , when fill in zipcode, want city field automatically updated city belongs zipcode. here's form: <form method="post" action=""> <input type="text" name="zipcode" id="zipcode"> <input type="text" name="city" id="city"> </form> here ajax: $('#zipcode').keyup(function () { var el = $(this); if (el.val().length == 4) { $.ajax({ url: 'get_city.php', cache: false, type: "get", data: "zipcode=" + el.val(), success: function (data) { $('#city').val(data); } }) } }); and here php $db = mysql_connect('localhost', 'root', ''); mysql_select_db('testbox_new', $db); $sql = 'select * cities zipcode = "'.$_get['zipcode'].'"'; $resu...

asp.net - C# Compare a string to a SqlExtension -

i working sql on c# asp.net page. insert value database, if id duplicate exception: {"violation of primary key constraint 'pk_section'. cannot insert duplicate key in object 'dbo.section'.\r\nthe statement has been terminated."} what want treat exception doing like: if(exception=={"violation of primary key constraint 'pk_section'. cannot insert duplicate key in object 'dbo.section'.\r\nthe statement has been terminated."}) //update values instead of insert my problem cant compare exception(wich string) long "string" trying duplicate ids. is there anyway can compare can work on solution error? you should catch sqlexception (which innerexception of exception) , check number property identify exception. see http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlexception.number.aspx

c# - How to ignore a list mapping when the list is empty but not null? -

how ignore list mapping when list empty not null. if source.divisions (which ienumerable) null or empty des.divisions shouldn't mapped: mapper.createmap<model.event, datacontracts.event>() .formember(des => des.divisions, e => e.mapfrom(source => source.divisions)) i've found below solution: mapper.createmap<model.event, datacontracts.event>() .formember(des => des.divisions, e => { e.condition(source => !source.divisions.isnullorempty())); e.mapfrom(source => source.divisions)); }); is there anyway simplify above further? e.g creating extension method. mapper.createmap<model.event, datacontracts.event>() .formember(des => des.divisions, e => e.maplistifnotempty(source => source.divisions)); i wrote extension, hope helps! public static void maplistifnotempty<tsource, tmapfrom>(this imemberconfigurationexpression<tsource> map, func<tsource, ienumerable...

c# - GTK# TreeView and StoreList won''t show data -

my goal query table , add listview. empty listview column names , errors. used tutorial, doesn't help. realized empty rows added because can click on them. using (mysqlconnection connect = new mysqlconnection(connectionstring)) { connect.open(); // query generation mysqlcommand = new mysqlcommand(query, connect); // query parameters added liststore store = new gtk.liststore(typeof(string[])); (int = 0; < tempselect.length; i++) { _treeview.appendcolumn(tempselect[i], new gtk.cellrenderertext(), "text"); } mysqldatareader reader = mysqlcommand.executereader(); while (reader.read()) { store.appendvalues(reader); } reader.close(); _treeview.model = store; connect.close(); } there no errors. application doesn't show data. there data...

c# - Client sends a UDP Packet to a server over the internet, but it could not recieve any UDP packages from the server -

client sends udp packet server on internet, not recieve udp packages server. server has valid ip , i'm connected internet via adsl in both server , client these codes used: send packet: socket sock1 = new socket(addressfamily.internetwork, sockettype.dgram, protocoltype.udp); ipendpoint iep1 = new ipendpoint(ipaddress.parse(txt_ip.text), convert.toint32(txt_sendport.text)); byte[] data = encoding.ascii.getbytes("udp"); sock1.setsocketoption(socketoptionlevel.socket, socketoptionname.broadcast, true); sock1.sendto(data, iep1); receive packet: console.writeline("listening port {0}", portnumber); sock1 = new socket(addressfamily.internetwork, sockettype.dgram, protocoltype.udp); ipendpoint iep = new ipendpoint(ipaddress.any, portnumber); sock1.bind(iep); endpoint ep = (endpoint)iep; byte[] data1 = new byte[100]; int recv = sock1.receivefrom(data1, ref ep); sock1.close(); string str_data = encoding.ascii.getstring(data1, 0, rec...

java - modifying xml document using xml parsers? -

i have xml stored in database table. need xml , modify few elements , put xml in database. i thinking use jdom or jaxb modify xml elements. please suggest 1 better regarding performance? thanks! jaxb , jdom , different things. jaxb serialize java objects xml format , vice versa. jdom reads in xml file , stores in dom tree can used modify xml itself. better if go jdom.

How to invoke webservice from SQL Server stored procedure -

i know how use web service sql server stored procedure. have table in columns specify city , state of user. want pass address parameter google geocoding api web service , latitude , longitude. i have made use of geocoding api in c#. now, want use in stored procedure. can 1 please suggest how done? or please provide me links? any appreciated!! thanks. for this, don't need full web service implementation. can use sqlclr (sql server's .net integration) submit request url, response in xml (unless can find json library work without being set unsafe), , parse response. look @ following msdn pages: httpwebrequest httpwebresponse xmldocument to escape address: if using sql server 2005, 2008, or 2008 r2, use uri.escapedatastring available prior .net framework v4.5 if using sql server 2012, 2014, or newer, can use either uri.escapedatastring or, if server has been updated @ least .net framework v4.5, can alternatively use webutility.urlencode accordi...

javascript - Removing/Showing Elements -

i'm trying create site 3 images, clicked on, toggle 3 different divs/elements. want each click-able image show element, whilst removing elements shown. so image1 show div1, image2 show div2, image3 show div3. elements before have literally removed, not hidden sight. if possible, there way save option when lasts visits site cookies? here's quick solution using jquery: http://jsfiddle.net/jonigiuro/45hkg/ $('.image').on('click', function(e) { $('.box').addclass('hidden'); var imagenumber = $(this).attr('id').replace('image',''); $('#div'+ imagenumber).removeclass('hidden'); });

assembly - How i can convert flp to iso file in correct way -

when converting virtual floppy disk iso file not should be. has following problems: it has lesser memory size. it not working when tried boot it. is there method please tell me. sorry poor language. if linux: http://www.troubleshooters.com/linux/floppy_image_on_cd.htm what using create boot disk? if using windows , burning .iso, try using free software: http://infrarecorder.org/ burn bootable disk.

regex - Java split "a"."b"."c" using regular expression -

i have string: "a.aa"."bb.b"."ccc." , need split values: a.aa bb.b ccc. how can that? i have tried with: string str = "\"a.aa\".\"bb.b\".\"ccc.\""; system.out.println(java.util.arrays.tostring(st‌​r.split("[\"\"]"))); but gives response: [, a.aa, ., bb.b, ., ccc.] and expect response this [a.aa, bb.b, ccc.] do need like: string str = "\"a.aa\".\"bb.b\".\"ccc.\""; string[] strsplited = str.substring(1,str.length() - 1).split("\".\"");

javascript - Getting the children of a childnode -

so cloning div , getting of children within it. inside of list , in list inputs. children of divs come li's. there way dig deeper , children of li's while still cloning div whole. rest of form in ul need clone whole keep formatting. div im cloning template ive made. the div: <div id="add_contact" style="display:none" > <li> <label class="description" for="element_3"><h2>contact</h2> </label> <span> <input id="element_3_1" name= "acct_first" onchange="javascript:contacts();" value=" " class="element text" maxlength="255" size="20" value=""/> <label>first</label> </span> <span> <input id="element_3_2" name= "acct_last" onchange="javascript:contacts();" class="element text...

version control - How to find list of all users in CVS -

i struggling find list of active users in cvs. have idea command so. thanks in advance. you try this: > cvs log -n 2>&1 | grep author | awk '{ print $6 }' | sort | uniq

css - Trying to chage UL LI backgroud color jquery -

i trying change clicked ul li link jquery; works hover event, not click event. please see code below: $("nav ul li").hover(function() { $(this).find('a').css('color', '#ff0'); }, function() { $(this).find('a').css('color', '#fff'); }); $("nav ul li").click(function() { $(this).find('a').css('color', '#ff0'); $(this).find('a').siblings().css('color', '#fff'); }); $(function() { //run when dom ready $(".clickable").click(function() { //use class, since id gets mangled $(this).addclass("active"); //add class clicked element }); }); using method can replace class new set of attributes on click.

linux - Android and UNIX similarity -

how similar android traditional unix , unix systems such gnu/linux architectural standpoint? is android unix gnu/linux? possible install x window manager on android? in other words; how can reuse linux knowledge developer on android? i've ventured "java side" of android development. android uses linux kernel. should posix1.2008/xsh (c api) compatible. it has basic posix utilities, beyond userland different. , many things implemented in java. you can develop native applications android in c/c++, gui need use either: some portability layer qt or sdl . do calls java handle user interaction. or possible install complete gnu system on android device. kernel same , gnu system otherwise separate. ubuntu has support such installation. can't access telephony, data stored in native application , such.

vb.net - Using Application.Intersect why do I get Type Mismatch -

here code. thought should work; i'm saving wb , trying excel application object using wb.application. works xlapp.intersect fails "type mismatch" error. dim wb object sub first() dim xlapp object xlapp = createobject("excel.application") wb = myxl.xlapp.workbooks.add() end sub sub second() dim xlapp object = wb.application dim rg object = xlapp.intersect(ws.usedrange, ws.columns("b")) end sub is possible excel application workbook , still use intersect method? i tried saving xlapp global variable , re-using it, didn't work either; same error. i trying avoid using excel interop reference maintain backward compatibility old versions of excel. msdn library _application.intersect method i noticed application object of type: microsoft.office.interop.excel.applicationclass the varocarbas answer got me thinking various types using. experimented various combinations of objects dim objrange1 object , declared...

javascript - Page break on print issue -

i have problem on print, data scrolling horizontally, (which results in cutting content on print). i.e 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 i want break page, after 5 elements, overflowing horizontally.. like 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 5 6 7 8 9 5 6 7 8 9 5 6 7 8 9 but idea result difinitely be, 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 any idea...? because content dynamic , vary situation, can't start untill have clear idea, men have soluttion... <html> <head> <title></title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <script> //method var table="<datalist><p>"; var lines=3;//number of lines want var = 0,aux=lines; lines=lines*2; { if(lines>aux){table=table+"<span...

spring security - CAS credentials bad -

a please i have problem when want use cas authentication, error invalid credentials, shows me log browser estado http 401 - authentication failed: bad credential`s log cas servicevalidatecontroller [error] ticketexception generating ticket for: [callbackurl: https://localhost:8443/receptor] thanks time dispatcherservlet [debug] rendering view [org.springframework.web.servlet.view.redirectview: unnamed; url [https://geo.org.bo:443/geonetwork/j_spring_cas_security_check?ticket=st-2-dlgdarnzdtphwza9krt9-cas]] in dispatcherservlet name 'cas' dispatcherservlet [debug] completed request dispatcherservlet [debug] dispatcherservlet name 'cas' determining last-modified value [/cas/servicevalidate] simpleurlhandlermapping [debug] mapping [/servicevalidate] handler 'org.jasig.cas.web.servicevalidatecontroller@26a75b82' dispatcherservlet [debug] last-modified value [/cas/servicevalidate] is: -1 dispatcherservlet [debug] dispatcherservlet name 'ca...

iphone - Autolayout confusion: Constraints for ScrollView with WebView and Header/Footer Views -

Image
to illustrate problem, created following graphic: the black border around red square supposed iphone screen. inside, have in red uiscrollview , taller screen. is, in fact, tall uiwebview , displayed above in yellow. uiwebview subview of uiscrollview , scrolling disabled. further more, have 2 blue views, call header , footer views. subviews of uiscrollview , outside of scrollable bounds. my problem is : how configure auto layout constraints this? i have managed retrieved uiwebview height using code answer , update uiscrollview 's contentsize accordingly. however, not solution, because uiwebview 's width not react width changes of uiscrollview . i managed setup header view's layout constraints (using masonary ): [headerview makeconstraints:^(masconstraintmaker *make) { make.top.equalto(@-100); make.left.equalto(@0); make.width.equalto(scrollview.width); make.height.equalto(@100); }]; however, setting footer view's layout didn't wo...

ios - Change transparency of dots in a UIPageViewController -

i have uipageviewcontroller transparent background , i'm wondering if can make non-selected page dots opaque. they're current translucent , can see background through them. is possible? i haven't tried it, there's pageindicatortintcolor , currentpageindicatortintcolor , both of take uicolor can set alpha. although docs warn: no alpha applied property you. recommended (but not required) color specify parameter contains transparency–i.e. alpha value should less 1.0.

Java loop runs infinite -

i doing factorial question java loop, asks 1+1/2!+1/3!+...+1/n!, n positive, using "while" make it, code run nothing : public static void main(string[] args) { double sum=0,a=1; int n=integer.parseint(args[0]); while(n>0){ a=a*n; sum=sum+1.0/a; } system.out.print(sum); } please help:) as others have pointed out, original while loop never ends, because value of n never changes, meaning while condition true (assuming original value greater zero). is possibly trying achieve? public static void main(string[] args) { double sum = 0, = 1; int n = integer.parseint(args[0]); ( int = 1; <= n; i++ ) { *= i; sum = sum + (1.0 / a); } system.out.print(sum); }

c++ - Why do "printf scanf" is slower than "cout cin" in this case? -

i have tried finish uva question: 11559 - event planning. however, have found confused me. have written code using printf , scanf io, got "time limit exceed" in judge. , changed code using cin , cout, got "accepted". isn't cin or cout slower scanf , printf ? here code. "stdio.h" version #define inf 500000000 using namespace std; int n, b, h, w; int main () { while(scanf("%d %d %d %d", &n, &b, &h, &w)){ int cost = inf; for(int = 0; < h; i++){ int p, k ; scanf("%d",&p); for(int j = 0; j < w; j++){ scanf("%d",&k); if(k >= n && n*p < cost) cost = n*p; } } if(cost <= b) printf("%d\n",cost); else{ printf("stay home\n"); } } return 0; } "iostream" version #define inf 500000000 using namesp...

Disable spring bean validation -

we using spring core + struts (without spring mvc) also, using spring bean validator hibernate validator feature realize design contract pattern. as know, these validations must turned of when deploy application. how possible turn off spring validation applicationcontext.xml? method validation in spring enabled via configuring methodvalidationpostprocessor . in case want turn off method validation in scenarios need make sure no such processor configured, e.g. configuring via bean profile not active in scenario. method validation not intended used during development though, i'd recommend have enabled in production well.

ruby on rails - Show created users for every day -

i need count how many users created every day last week. created this: users = user.where(created_at: (time.now - 7.day)..time.now) users.group_by{|p| p.created_at.at_beginning_of_day}.each |day, array| puts "on #{day} #{array.size}" end i want output be: on sun 29 on mon 34 etc. but instead of this: {sun, 25 aug 2013 00:00:00 cest +02:00=>[#<user id: 10, email: "jssdc@ssds.cz", encrypted_password: "$2a$10$qwz7p86jaurxvwjj8gzfm.o2a589y7t4htcojyuqe4ak...", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 0, current_sign_in_at: nil, last_sign_in_at: nil, current_sign_in_ip: nil, last_sign_in_ip: nil, created_at: "2013-08-25 12:30:05", updated_at: "2013-08-25 12:30:40", authentication_token: "ytmoqbwrhvzsen7bbsvu", confirmation_token: "fuwen7dghc6xprqtspwr", confirmed_at: nil, confirmation_sent_at: "2013-08-25 12:30:05", unconfirmed_email: ...

Parsing Json rest api response in C# -

this question has answer here: how can parse json c#? 10 answers i trying pull value rest api json response using c# i have follow code client.baseurl = "https://api.cloud.appcelerator.com"; request.resource = "/v1/chats/create.json?key=" + cac.appcode.tostring(); request.method = method.post; request.addurlsegment("appkey", "key"); var response = client.execute(request); in "response" json content follow: { "meta": { "code": 200, "status": "ok", "method_name": "createchatmessage" }, "response": { "chats": [ { "id": "521cfcd840926a0b3500449e", "created_at": "2013-08-27t19:24:08+0000", "updated_at": "2013-08-27t19:24:08+0000...