search for: writefunction

Displaying 12 results from an estimated 12 matches for "writefunction".

2012 Oct 30
2
RCurl - curlPerform - Time out?!?
...D="',s_session,'"',sep=""),"Content-Length"=paste(nchar(s_body)),"Host"="search.webofknowledge.com","Connection"="Keep-Alive","User-Agent"="Apache-HttpClient/4.1.1 (java 1.5)"), postfields=s_body, writefunction = h$update ,verbose = TRUE) ,TRUE) print(i) } [[alternative HTML version deleted]]
2012 May 14
3
Scraping a web page.
...hould suffice once I figure out the following: What is the best package/command to use to get the source of a web page. I tried using something like: if(url.exists("http://www.omegahat.org/RCurl")) { h = basicTextGatherer() curlPerform(url = "http://www.omegahat.org/RCurl", writefunction = h$update) # Now read the text that was cumulated during the query response. h$value() } which works except that I get one long streamed html doc without the line breaks. Thanks in advance for your help, KW [[alternative HTML version deleted]]
2007 Nov 12
1
Microsoft SOAP - Help!!
...' curlPerform(url="http://soap.search.msn.com/webservices.asmx?wsdl", httpheader=c(Accept="text/xml", Accept="multipart/*", 'Content-Type' = "text/xml; charset=utf-8"), postfields=body, writefunction = h$update, verbose = FALSE ) ##Put the responce in body. body = h$value() h$reset() An now the crazy stuff. This code works well for some keywords but not for all. So for the Query:"Cancer" the code works fine, but for the Query: "Tiger" I get the following...
2012 Dec 05
1
request
...ble, nomatch = 0L) : object 'proxy.noc.titech.ac.jp' not found > #to check the neos server is active"NeosServer is alive" is returned > Nping(convert=T, nc=NC) Error in .postForm(curl, .opts, .params, style) : Stale CURL handle being passed to libcurl Error in curlSetOpt(writefunction = NULL, curl = curl) : Stale CURL handle being passed to libcurl Since this procedure is not working, would you suggest me how can i fix the problem? i appreciate your help. -- With best Regards Rubel Das Hanaoka Research Group/Transport Planning Dept. of International Development Engineeri...
2013 Dec 09
0
[LLVMdev] Custom bitcode format and executing it in the interpreter.
...odes.h)) The bitcode format will depend on the instructions in the ir. For example when coming across an "add" instruction when converting to bitcode I want to use another bitcode representation then the one the previous instruction used. Could I perhaps do this by adjusting the function WriteFunction in /lib/BitCode/Writer/BitcodeWriter.cpp by analysing every basic block that passes by? Or are there less invasive methods I could use to accomplish my goal? Perpaps passes can be a solution? The next thing I want to do is interpret my custom bitcode file comprising of different bitcode represent...
2010 Jan 31
1
RCurl : limit of downloaded Urls ?
Dear Rexperts, I am using R to query google. I am getting different results (in size) for manual queries and queries sent through "getForm" of RCurl. It seems that RCurl limits the size of the text retrieved (the maximum I could get is around 32 k bits). Any idea how to get around this ? Thanks in advance [[alternative HTML version deleted]]
2013 Apr 24
0
string size limits in RCurl
...httpheader = "Content-Type: application/json") request <- paste(.base.url, q, sep = "") txt <- getURL(url = request, curl = session, .opts = curl.opts, write = basicTextGatherer()) or r = dynCurlReader() curlPerform(url = request, writefunction = r$update, curl = session, .opts = curl.opts) My guess is that the `update` or `value` functions in the `basicTextGather` or `dynCurlReader` text handler objects are having trouble with the large strings. In this example, `r$value()` will return a truncated string that is approxi...
2010 Apr 16
0
RCurl slow when sending data over 1kb
...an XML string to an HTTP server running on the localhost. The command is something like this: reader <- basicTextGatherer() curlPerform(url="http://127.0.0.1/", httpheader=c('Content-Type' = "text/xml; charset=utf-8"), postfields=toString.XMLNode(xmlRoot(xdoc)), writefunction=reader$update, .opts=curlOptions(noproxy="*")) When sending a short string, the web server responds instantly. However, when the content-length gets above 1024 bytes, the server takes about 2 seconds to receive all the content that is being sent to it. I've written the server myself...
2011 Apr 29
1
RCurl and postForm()
Hi everybody, I think that I am missing something fundamental in how strings are passed from a postForm() call in R to the curl or libcurl functions underneath. For example, I can do the following using curl from the command line: $ curl -d "Archbishop Huxley" "http://www.datasciencetoolkit.org/text2people"
2016 Jun 28
0
mutateType on AllocaInst problem
...0020454cc (anonymous namespace)::ModuleBitcodeWriter::writeInstruction(llvm::Instruction const&, unsigned int, llvm::SmallVectorImpl<unsigned int>&) /home/pierre/Desktop/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:2509:0 #11 0x00000000020474eb (anonymous namespace)::ModuleBitcodeWriter::writeFunction(llvm::Function const&, llvm::DenseMap<llvm::Function const*, unsigned long, llvm::DenseMapInfo<llvm::Function const*>, llvm::detail::DenseMapPair<llvm::Function const*, unsigned long> >&) /home/pierre/Desktop/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:2866:0 #12 0x000000000...
2012 Sep 26
0
[LLVMdev] [PATCH / PROPOSAL] bitcode encoding that is ~15% smaller for large bitcode files...
...etValueID(CI.getArgOperand(i))); > + } else { > + PushValue(CI.getArgOperand(i), InstID, Vals, VE); // fixed param. > + } > + } > > // Emit type/value pairs for varargs params. > if (FTy->isVarArg()) { ... > @@ -1514,8 +1553,8 @@ static void WriteFunction(const Function &F, ValueEnumerator &VE, > // Emit blockinfo, which defines the standard abbreviations etc. > static void WriteBlockInfo(const ValueEnumerator &VE, BitstreamWriter &Stream) { > // We only want to emit block info records for blocks that have multiple >...
2012 Sep 26
9
[LLVMdev] [PATCH / PROPOSAL] bitcode encoding that is ~15% smaller for large bitcode files...
Hi all, I've been looking into how to make llvm bitcode files smaller. There is one simple change that appears to shrink linked bitcode files by about 15%. See this spreadsheet for some rough data: https://docs.google.com/spreadsheet/ccc?key=0AjRrJHQc4_bddEtJdjdIek5fMDdIdFFIZldZXzdWa0E The change is in how operand ids are encoded in bitcode files. Rather than use an "absolute