I have two types of document: CHM and PDF, but I'd rather like it if they all were in PDF format.
I am looking for some good way to change it. Has anyone good ideas? I'll appreciate it.
Update:
Thanks for eveyone who helped me. :)
var config = Db4oEmbedded.NewConfiguration ();
using (var container = Db4oEmbedded.OpenFile (config, FILE))
{
var foo = new Foo ("Test");
container.Store (foo);
foo.Name = "NewName";
container.Store (foo);
}
Any way to resolve the history of container for foo in the format below?
Foo created with values "Test" Foo
Foo's property "Test" changed to "NewName"
Hi All,
I am implementing bluepay payment gateway in my PHP project, I couldn't find any integration document for bluepay, Plaese any one tell me the basic steps for posting data to bluepay, ie in which format i have to post data to "https://bluepay.onlinedatacorp.com/test/bluepaylitetest.asp" Please help me!!!
Been Googling around without finding much at all, so does anyone know of a class or library that helps you parse any sort of language, like a Domain Specific Language (I'm creating one, so I'm flexible in what the syntax and format can be) into either PHP code or some helpful struct or a class hiearchy or ... ? Anything goes at this point. :)
I want to experiment with parsing text files into tokens, building up a small grammar and syntax library to express things like Business Natural Languages.
so i create in my view:
<%=date=Date.today%>
How do i get the name of the month out of the date? I was trying to do sth like
<%= DATE::ABBR_MONTHNAMES(date.month)%>
But without success. I keep getting an error: uninitialized constant ActionView::Base::CompiledTemplates::MONTHNAMES
How do i initialise the constant or is there any other way to get the name out of the Date format?
would greatly appreciate any answers!
I am binding some data to control, but want to limit the number of character of a specific field to a 30 first characters.
I want to do it, if it's possible, on aspx page.
I tried this:
Text='<%# String.Format("{0}", Eval("Title")).Substring(0,30) %> '
But got this error:
Index and length must refer to a
location within the string. Parameter
name: length
Hi,
I have an address control which display the contact info of the person.
so it displays something like
1234, street
City, CA 12345
Now i want to give user flexibility to create format out of it.
For ex someone might want to display address as,
street, City, Country
OR
Just display their emails:
[email protected][email protected]
Any good ideas on how to it or similar examples?
thanks
There are some functions to decompress in zlib library(zlib version 1.2.3)
I want to decompress my source zip(.gz) file using 'uncompress' function.
It is now working(error code -3) but gzopen is.
It is still not working when I input payload pointer(passing gzip header) to 'uncompress' .
So the question is
"What's the valid arguments for uncompress function?"
and If it needs different format, how can I make it?
Google doesn't helpful this time :(
I know that in Javascript document.location.href = "#my_id" tells the browser to display the same page starting from element with id="my_id".
In this case, the address that appears in the address bar is in the following format: my_page_address#my_id
Is this the only method to refer to a specific place on a page ?
I'm looking for a method that will not show my_id in the address bar.
There is an example for today here
http://stackoverflow.com/questions/2583228/get-row-where-datetime-column-today-sql-server-noob
I am primarily interested in 2008 only. For today it looked like
SELECT (list of fields)
FROM dbo.YourTable
WHERE dateValue BETWEEN
CAST(GETDATE() AS DATE) AND DATEADD(DAY, 1, CAST(GETDATE() AS DATE))
What literal value of date(s) or functions ( I need a format ) should I place there to make it work independent of local settings.
First I show some code.
library: axis.jar, dom4j.jar
jdk1.5, windowsXP
T.java
import java.io.StringWriter;
import org.apache.axis.utils.StringUtils;
import org.dom4j.DocumentHelper;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.XMLWriter;
public class T {
public T() {
System.out.println("constructor");
}
public void test() {
System.out.println(StringUtils.unescapeNumericChar("1"));
}
public String getPrettyXML(String xml) throws Exception {
System.out.println("getPrettyXML");
StringWriter sw = new StringWriter();
XMLWriter writer = null;
try {
OutputFormat format = OutputFormat.createPrettyPrint();
org.dom4j.Document document = DocumentHelper.parseText(xml);
writer = new XMLWriter(sw, format);
writer.write(document);
} catch (Exception e) {
throw e;
} finally {
if (writer != null) {
try {
writer.close();
} catch (Exception e) {
}
}
}
return sw.toString();
}
public void a() {
System.out.println("a");
}
public static void main(String[] args) {
new T().test();
}
}
T2.java
public class T2 {
public static void main(String[] args) throws Exception {
System.out.println("T2");
T t = (T) Class.forName("T").newInstance();
}
}
Ok, here we go... run as (Of course, I'm run at the directory where T.class, T1.class is)
java T2
as you can see, not exist class path.
==console==
T2
constructor
OK...
Now delete
throw e
line at the catch block on the "getPrettyXML" method of T.
Ok, here we go.. run one more time without classpath
java T2
You can see below...
==console==
T2
Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/io/OutputFormat
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at T2.main(T2.java:5)
I know that it's not very important for my life or your life.
But it's so mysterisou to me, and my all curiosity.
thanks.. ^^
Sphinx is a new documentation tool for Python. It looks very nice. What I'm wondering is:
How suitable this is for documenting a C++ project?
Are there any tools for converting existing documentation (e.g. doxygen) to Sphinx format?
Are there online/downloadable examples of C++ projects that use Sphinx?
Any tips from anyone who has used Sphinx?
During a make, I'm seeing an error along the lines of:
cc1: warnings being treated as errors
somefile.c:200: error: the frame size of 1032 bytes is larger than 1024 bytes
The line number points to the closing brace of a c function that has a signature like this:
void trace(SomeEnum1 p1, SomeEnum2 p2, char* format, ...) {
Anyone know what this type of error means in general?
When I set style color it changes both the text color for the selected item/component label and the text in the dropdown menu.
color
Type: uint Format: Color CSS Inheritance: yes
Color of text in the component, including the component label. The default value is 0x0B333C.
I would really like the label to be white and the text to be black. Is it possible?
<javancss srcdir="C:\Projekti\KIS\Model\src"
generateReport="true"
includes="**/*.java"
outputfile="docs/javancss_metrics.xml"
format="xml" />
if i use includes="*/.java" then no metrics are calculated. If i delete includes then works. Any idea why?
I can't figure out why I get a Object reference not set to an instance of an object. error if I use a ternary operator in my LINQ query.
var courses = from d in somesource
orderby d.SourceName, d.SourceType
select new
{
ID = d.InternalCode,
Name = string.Format("{0} - {1}{2}", d.InternalCode, d.SourceName, (d.SourceType.Length > 0 ? ", " + d.SourceType : string.Empty))
};
Any thoughts?
I am in need of date picker javascript which allows date in mm/dd/yy format.
And also it should have good resolution and should be non-popup based.
I searched in google but not getting my exact requirements.
Plz suggest me the proper source.
Thank You.
I'm working on an application in C# with .Net 3.5. I have time zone value of the User is stored in DB with this format (-05:00,1), where -5.00 represents EST time zone value and the 1 indicates that this time zone follows daylight saving (if 0 not a daylight saving zone).
Now I want to convert any date time value into this timezone value considering the daylight saving value.
Any help is appreciated. Thanks
I would like something similar to the string formatting from the standard library.
'%' Percentage. Multiplies the number
by 100 and displays in fixed ('f')
format, followed by a percent sign.
From this tuto:
#include <gtk/gtk.h>
int main( int argc, char *argv[])
{
GtkWidget *window;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show(window);
gtk_main();
return 0;
}
I run the executable and right click on the icon,then infinite warnings(the same) reported:
GLib-WARNING **: g_main_context_check() called recursively from within a source's check() or prepare() member.
Anyone knows how to fix this warning?
Trying to format a date string using a technique I've used countless times, suddenly returning false (PHP5). Anyone run into this?
//$new_date = June 14,2010
echo $new_date;
$new_date = date("F j, Y", strtotime($new_date));
//returns the infamous December 31, 1969 because strototime() is returning false?
I have an Excel 95 workbook, and I need to convert it into a format that is at least Excel 97, although preferably Excel 2003. I don't want to use office automation as this has all kinds of issues. Is there any way to do this in a .Net managed way?
look at this web page
http://u3schools.com/tutorial/php/php_operators.jsp
I need to print a arithmetic operators table in same table format alignment. not full Page Is it possible?
Thank u
Hi,
I have a text file from which I want to create a Hash for faster access. My text file is of format (space delimited)
author title date popularity
I want to create a hash in which author is the key and the remaining is the value as an array.
created_hash["briggs"] = ["Manup", "Jun,2007", 10]
Thanks in advance.