rt

Attachments using REST WebService and VB.NET

倾然丶 夕夏残阳落幕 提交于 2019-12-11 09:51:46
问题 I am currently developing an application using VB.NET in which I am using the REST WebServices. I have been able to do the basics with REST, however, I have not been able to add an attachment (more specifically upload a file, using REST which gets attached). I have done extensive research online, but so far I have not been able to find any working examples in VB.NET. To actually upload the data I use System.Net.WebClient. The following VB.NET code does the important work: Dim Client As New

how to create a ticket in rt using python-rtkit

十年热恋 提交于 2019-12-11 01:06:30
问题 I'm having trouble with a simple script whose only purpose is to create a single ticket and every time I get 401 Credentials Required I took my code verbatim from https://github.com/z4r/python-rtkit. (URL, username and password are redacted for security reasons) from rtkit.resource import RTResource from rtkit.authenticators import BasicAuthenticator from rtkit.errors import RTResourceError from rtkit import set_logging import logging set_logging('debug') logger = logging.getLogger('rtkit')

Some questions related to SphinxSE and RT indexes

↘锁芯ラ 提交于 2019-12-08 08:32:31
问题 I consider using Sphinx search in one of my projects so I have a few questions related to it. When using SphinxSE and RT index, every UPDATE or INSERT in the SphinxSE table will update the index, right? No need to call indexer or anything? Can I search on both tags (user entered keywords for a document) and the content and give more relevance to the tag matches? And if it's possible how do I implement the tag search (now I have them in separate tables like an inverted index) For the fillter

Create ticket in RT with python-rtkit having RESOURCE_STATUS: 401 Credentials required

点点圈 提交于 2019-12-02 16:31:46
问题 I'm new here. It's the same question as this one, but I didn't get answer so I post it again: how to create a ticket in rt using python-rtkit I tried both CookieAuthenticator and BasicAuthenticator to create or read ticket but I still get the same error: `RT/3.8.13 401 Credentials required` When I load the url directly in the browser: http://ticket.corp.kk.net/REST/1.0/ticket/214560?user=user&pass=pass, I DO get the ticket content in the browser. I even tried the wget command to get one

Create ticket in RT with python-rtkit having RESOURCE_STATUS: 401 Credentials required

北慕城南 提交于 2019-12-02 08:17:04
I'm new here. It's the same question as this one, but I didn't get answer so I post it again: how to create a ticket in rt using python-rtkit I tried both CookieAuthenticator and BasicAuthenticator to create or read ticket but I still get the same error: `RT/3.8.13 401 Credentials required` When I load the url directly in the browser: http://ticket.corp.kk.net/REST/1.0/ticket/214560?user=user&pass=pass , I DO get the ticket content in the browser. I even tried the wget command to get one ticket content as below using cookie, and it works well: save manually the cookie value in the coookie.txt

Error in file(file, “rt”) : cannot open the connection

三世轮回 提交于 2019-11-27 20:24:57
I'm new to R, and after researching this error extensively, I'm still not able to find a solution for it. Here's the code. I've checked my working directory, and made sure the files are in the right directory. Appreciate it. Thanks pollutantmean <- function(directory, pollutant = "nitrate", id= 1:332) { if(grep("specdata",directory) ==1) { directory <- ("./specdata") } mean_polldata <- c() specdatafiles <- as.character(list.files(directory)) specdatapaths <- paste(directory, specdatafiles, sep="") for(i in id) { curr_file <- read.csv(specdatapaths[i], header=T, sep=",") head(curr_file)

Error in file(file, “rt”) : cannot open the connection

懵懂的女人 提交于 2019-11-26 20:07:15
问题 I'm new to R, and after researching this error extensively, I'm still not able to find a solution for it. Here's the code. I've checked my working directory, and made sure the files are in the right directory. Appreciate it. Thanks pollutantmean <- function(directory, pollutant = "nitrate", id= 1:332) { if(grep("specdata",directory) ==1) { directory <- ("./specdata") } mean_polldata <- c() specdatafiles <- as.character(list.files(directory)) specdatapaths <- paste(directory, specdatafiles,