Has anybody some information about accessing Lotus Domino server to fetch entire mail contents by http(s) requests from php linux server?
The article by Andrei Kouvchinnikov describes well how to fetch message list in notes mail folders; after obtaining session id during login one can for example select top 100 messages by calling:
https://your.server.domain/mail_db/mailbox.nsf/($Inbox)?ReadViewEntries&Start=1&Count=100
And this works perfectly. The arises when I am trying to get message contents (0A1DA5EEB7B65277C12576F50055D811 is an example message unique Id):
https://your.server.domain/mail_db/mailbox.nsf/($Inbox)/0A1DA5EEB7B65277C12576F50055D811/?OpenDocument
Such request in IE shows frameset with data hard to parse, in less common browsers like Opera it informs about unsupported browser. Ideally if it is possible to fetch notes message contents and all attachments by requesting it in the url, has anybody some information what request would it be? Link to Lotus web calls reference would be even more beneficial.
Converting from usind Micorsofts Syste.Data.OracleClient to what I believe is called Oracles ODT (Oracle.DataAccess 10.2.0.100). When I try and send a date I get this error "ORA-1858: a non-numeric character was found where a numeric was expected". This code worked great using System.Data.OracleClient.
cmd.Parameters.Add(New OracleParameter("I_FIRST_LOSS_EVENT_DATE", OracleDbType.Date)).Value = .LossEventsMessages(0).LossEventTime
Thanks,
Dave
My attempted solution was:
$date = "Nov 30 2009 03:00:00:000PM";
echo date("F Y", strtotime($date));
Expected result should be: "November 2009"
Any other simple solutions?
hi all
i am playing the video and in the background i have to play the audio file and if i do this audio is not playing its sound as it just play video is it a extension problem i am using the .mp3 for the audio and .mp4 for the video .
how can we do this we have to play simultanisouly .both the file
balraj verma
I can't beleive I've never come across this one before.
Basically, I'm parsing the text in human-created text documents and one of the fields I need to parse is a date and time. Because I'm in Australia, dates are formatted like dd/mm/yyyy but strtotime only wants to parse it as a US formatted date. Also, exploding by / isn't going to work because, as I mentioned, these documents are hand-typed and some of them take the form of d M yy.
I've tried multiple combinations of setlocale but no matter what I try, the language is always set to US English.
I'm fairly sure setlocale is the key here, but I don't seem to be able to strike upon the right code. Tried these:
au
au-en
en_AU
australia
aus
Anything else I can try?
Thanks so much :)
Iain
Example:
$mydatetime = strtotime("9/02/10 2.00PM");
echo date('j F Y H:i', $mydatetime);
Produces
2 September 2010 14:00
I want it to produce:
9 February 2010 14:00
I'm having a bizarre problem with Tesseract. I have a name, "Janice" that is in a 200x40 pixel tiff, that Tesseract interprets as a blank. I'm running hundreds of names through Tesseract and they are processed fine.
What I'm actually doing, though, is breaking up a larger TIFF into smaller tiffs of one word each. In the larger TIFF, tesseract recognizes "Janice".
What could cause it to hiccup in a TIFF that solely contains that word (and there's enough space around the word to not truncate any of the pixels)? I'm using ImageMagick to split the big TIFF, are there options I should set when reconstituting the new TIFF files?
I am reading some parameters (from user input) from a .txt file and want to make sure that my script could read it even a space or tab is left before that particular parameter by user.
Also if I want to add a comment for each parameter followed by # , after the parameter (e.g 7870 # this is default port number) to let the user know about the parameter
How can I achieve it in same file?
Right now, I am using split /\|\s/.
Code:
$data_file="config.txt";
open(RAK, $data_file)|| die("Could not open file!");
@raw_data=<RAK>;
@Ftp_Server =split(/\|\s/,$raw_data[32]);
config.txt (user input file)
PING_TTL | 1
CLIENT_PORT | 7870
FTP_SERVER | 192.162.522.222
Could any body suggest me a robust way to do it?
/rocky
I am coding in php, attempting to get the start\end dates and times for events. I am utilizing the following RegEx for parsing out the information:
$pattern='/(?P<StartDate>[0-9]{8})T(?P<StartTime>[0-9]{6})
.+(?P<EndDate>[0-9]{8})T(?P<EndTime>[0-9]{6})/';
The sample event entry is here:
BEGIN:VEVENT
UID:34b09fd7-8e6e-4d56-86b0-445745b89d93
ORGANIZER;CN=*********:mailto:*********
DTSTART;TZID="(GMT-06.00) Central Time (US & Canada)":20100413T130000
DTEND;TZID="(GMT-06.00) Central Time (US & Canada)":20100413T160000
STATUS:CONFIRMED
CLASS:PRIVATE
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
TRANSP:OPAQUE
X-MICROSOFT-DISALLOW-COUNTER:TRUE
DTSTAMP:20100414T140711Z
SEQUENCE:0
END:VEVENT
20100413T130000 and 20100413T160000 are the start and end points.
The dates are straight forward, however how do I interpret the time part?
This event starts at one and ends at four.
Has anybody some information about accessing Lotus Domino server to fetch entire mail contents by http(s) requests from php linux server?
The article by Andrei Kouvchinnikov describes well how to fetch message list in notes mail folders; after obtaining session id during login one can for example select top 100 messages by calling:
https://your.server.domain/mail_db/mailbox.nsf/($Inbox)?ReadViewEntries&Start=1&Count=100
And this works perfectly. The problem arises when I am trying to get message contents (0A1DA5EEB7B65277C12576F50055D811 is an example message unique Id):
https://your.server.domain/mail_db/mailbox.nsf/($Inbox)/0A1DA5EEB7B65277C12576F50055D811/?OpenDocument
Such request in IE shows frameset with data hard to parse, in less common browsers like Opera it informs about unsupported browser. Ideally if it is possible to fetch notes message contents and all attachments by requesting it in the url, has anybody some information what request would it be? Link to Lotus web calls reference would be even more beneficial.
I'm using a pre-commit hook to lint-check PHP source submitted by our staff, and everyone's really happy with the results. The staff have agreed it would be useful to have the code re-formatted to follow (customizable) style rules on commit. Are there any FOSS scripts which can do this from the command-line?
Hello, all :)
I'm looking for a tool that works on Windows to reformat some C++ code in my codebase. Essentially, I've got some code I wrote a while ago that I'd like to use, but it doesn't match the style I'm using in a more recent project.
What's the best way to reformat C++ code in a standard manner?
Billy3
Is there any way that I can embed a .exe file in a .pdf, .doc, .xls, .ppt file,
and on opening the containing file, the document processor will run the .exe automatically?
I feel like this should be simple, however everywhere I look online someone does something different. I am doing a small charting application to track download statistics, and want to put the data into a pie chart. I am new to Flex, so if my code is horrible I apologize.
<s:HTTPService id="service"
url="admin/stats/totalstats.php"
fault="service_faultHandler(event)"
result="service_resultHandler(event)" />
What is the best resultFormat for this purpose, and if I am assigning the returned value to an ActionScript variable, should it be an ArrayList? ArrayCollection?
Heres a sample of the XML being returned from the HTTPService
<DownloadStats>
<year count="24522" year="2008">
<month count="20" month="5" year="2008" full="May 2008">
<day count="2" month="5" day="20" year="2008"/>
<day count="1" month="5" day="21" year="2008"/>
<day count="9" month="5" day="22" year="2008"/>
<day count="1" month="5" day="23" year="2008"/>
<day count="1" month="5" day="29" year="2008"/>
<day count="1" month="5" day="30" year="2008"/>
<day count="5" month="5" day="31" year="2008"/>
</month>
...
</year>
<DownloadStats>
Any help is appreciated,
Thanks,
Eric R.
EDIT: I decided that it would be helpful to see how I am transferring the data to the chart to make sure I am not doing something wrong there either.
<mx:PieChart id="pieChart">
<mx:PieSeries nameField="year"
field="count"
labelPosition="callout"
displayName="Total"
dataProvider="{graphData}"/>
</mx:PieChart>
As mentioned in the docs the optparse.OptionParser uses an IndentedHelpFormatter to output the formatted option help, for which which I found some API documentation.
I want to display a similarly formatted help text for the required, positional arguments in the usage text. Is there an adapter or a simple usage pattern that can be used for similar positional argument formatting?
Clarification
Preferably only using the stdlib. Optparse does great except for this one formatting nuance, which I feel like we should be able to fix without importing whole other packages. :-)
I want to represent the following nested array structure in YML:
container
1: N [contained_item]s
where [contained_item] has the following structure
contained_item:
name:
type:
category:
id:
value:
I hope the structure I am trying to describe is clear - I have used a mixture of Pseudo UML and YML.
An aside: YML is a superset of JSON, and is used in the Symfony framework.
final Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setType("image/jpeg");
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { "[email protected]" });
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "this is the test");
emailIntent.putExtra(Intent.EXTRA_TEXT, "testing time");
emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));
I have about 12-15 images that I want to align together in a grid, with text under each image. I thought about using a table, but I hear that tables aren't the best way to go these days.
I tried a few other things, but nothing seemed to work the way I wanted it to.
An example of what I want it to look like would be something like this:
[-----Image-----] [-----Image-----] [-----Image-----] [-----Image-----] --- Row 1
(--Description-) (-Description-) (-Description-) (-Description-)
[-----Image-----] [-----Image-----] [-----Image-----] [-----Image-----] --- Row 2
(--Description-) (-Description-) (-Description-) (-Description-)
and so on...
What are some other methods, besides tables, that I should look into using?
Any suggestions or references would be helpful.
How can I convert the nullable DateTime dt2 to a formatted string?
DateTime dt = DateTime.Now;
Console.WriteLine(dt.ToString("yyyy-MM-dd hh:mm:ss")); //works
DateTime? dt2 = DateTime.Now;
Console.WriteLine(dt2.ToString("yyyy-MM-dd hh:mm:ss")); //gives following error:
no overload to method ToString takes
one argument
I am preparing a presentation using Google Docs Presentation though I can also work on the presenation within Open Office that will include code snippets.
Is there any easy way to perform basic syntax highlighting on the code snippets with either Google Docs or Open Office Presenter?
Edit: Since I believe that I can find a way to embed HTML any tools that can perform syntax highlighting on HTML would also be welcome suggestions.
I am using scilab to do some simple simulation. The outcome will a number of plot and graph. What is the easiest way to capture these outputs and publish them into a pdf or ps file?
Hopefully it is simple to do that I can include the boilerplate code into my scilab script itself?
I am wanting to use the Google Weather API - by passing lat and long values. However it seems Google is needing these formatted differently to the values I have stored.
i.e. For the town of McTavish I have values of 45.5 and -73.583
This works here: http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=45.5,-73.583
But when I use Google it does not: See: www.google.com/ig/api?weather=,,,45.5,-73.583
Any help appreciated. I would prefer to use the Google Data.
Using clojure, I've been able to successfully setup log4j very simply by using this log4j.properties file, and including log4j in my classpath.
# BEGIN log4j.properties
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%d{MMdd HHmmss SSS} %5p %c [%t] %m\n
log4j.rootLogger=DEBUG, STDOUT
Then after :use'ing clojure.contrib.logging, I'm able to print a statement with the desired formatting as expected like so:
(info "About to print this")
(debug "This is debug-level")
My question is how to achieve a consistent formatting for logging statements made from loggers configured in other libraries. I thought I could find existing loggers using org.apache.log4j.LogManager.getCurrentLoggers() and change the PatternLayouts there, but I'm not able to iterate over that enumeration in clojure, as I get the following error:
Dont know how to create ISeq from: java.util.Vector$1
I assume this is possible somehow, and probably very simply. How?
Thanks much.