Hi,
I'm using Django to serve up some XML. Part of the requirements is that my dates are formatted as follows: 1969-12-31T18:33:28-06:00
How can I output a DateField in Django in that format?
I am using Activity-alias in AndroidManifest.xml to specify another entry point to my application using shortcut. I am seeing the shortcut in the shortcut list. How can I get my 2nd icon (shortcut) to show in the Home?
What is the best way to fill a template file with variables, which are collected from a Windows Form or Web Page. I want to create a wizard program that collects some data from user, for instance, reportname, reporttype, etc. and I need to create then some xml files (templates) with these variables inserted.
I am using these rules:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\..+$
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*+)$ /$1/ [L,R]
RewriteRule !\.(js|ico|gif|jpg|png|css|html|swf|flv|xml)$ index.php
But when I check resources loaded in chrome, I can see that my .css files are loaded twice.
Hello All,
I want to connect to MS SQl server 2005 using hibernate in java. i am unable to find the jars and the hibernate.cfg.xml file for the same. can someone help me with the same
Thanks in Advance
Regards,
Rima
I need to load an xML file from the bin folder in ASP.NET (MVC, not that it would count). I can't get the bin folder path nor load the file otherwise.. I need to feed the following method :
using(var file = System.IO.File.OpenRead(/* something */))
{
}
Could you please suggest a simple SMTP server with the very basic APIs(by very basic I mean, to read,write,delete email) that could be run on a linux box?
I just need to convert the crux of the email into XML format and FTP it to another machine.
Hello,
I have a test class that has a @Resource annotation for a setter and I need to make it Java 1.4 compliant, so obviously the annotation has to go. I'm using Spring.
So, how would I replace something like @Resource("my.resource") so that the setter gets the correct dependency injection? Would I need to make a bean in an xml file?
I'm pretty new to this so if I'm not providing enough information, let me know.
Hi,
I've used JAXB Marshaller as well as my own marshaller for marshalling pure java bean objects into XML. It has been observed that both of them require almost same time to marshal. The performance is not acceptable and needs to be improved. What are possible ways where we can improve performance of marshaller? Like threading?
Hello, I want to follow ZK javascript code to obtain XML results. In the website when a country selected, another selectbox for states is populated by using ZK and i tried to find the actual address such as http://cc.com/getState?countryID=46 but I've lost within the ZK. Is there a way to reach the actual URL? Thanks.
I have two jar files with hibernate classes mapped. One jar file is perfectly working and for the next jar file it is not mapped. I get Unknown Entity exception. Persistence.xml is good but i dont know why this is happening. Any guess what mite be the issue???
I am using ROME library for parsing feeds. I want to know how can I identify a link as an XML link or a normal link. Is there a support for this in ROME.
I have this method for button click (download). The problem is that it is terminating due to an exception:
[Session started at 2011-03-14 13:06:45 +0530.]
2011-03-14 13:06:45.710 XML[7079:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '*** -[NSCFString isFileURL]: unrecognized selector sent to instance 0x62b8'
-(IBAction) download
{
UIImage *image = [UIImage imageWithData: [NSData dataWithContentsOfURL:@"http://ws.cdyne.com/WeatherWS/Images/thunderstorms.gif"]];
[image release];
}
What is the problem?
I'd like to implement the group by features for the default grid as it's available for the commercial grid like devexpress/infragistics et al, if you want a sample, see the 2nd image on http://www.devexpress.com/Products/NET/Controls/WinForms/Grid/dataoperations.xml
I'd think there's some pattern or better yet some opensource/free grid which does this already, if not, i would probably implement it if i can find the time (doubtful ! and esp since it's available so easily in most packages, if only i can convince the client to pay for a license ) & want to get some ideas/patterns on the same
HTTPService has a property resultFormat which can be set to any of the following: array e4x flashvars object text xml
I looked at the documentation to understand the difference, but still couldn't understand when to use each. I'm looking for the lightest weight of all of them.
P.S. I'm consuming output from my own server, so can change the output format as needed to make it compatible with each.
What products support 3-digit region subtags, e.g., es-419 for Latin-American Spanish?
Are web browsers, translation tools and translators familiar with these numeric codes in addition to the more common "es" or "es-ES"?
I've already visited the following pages:
W3C Choosing a Language Tag
W3C Language tags in HTML and XML
RFC 5646 Tags for Identifying Languages
Microsoft National Language Support (NLS) API Reference
I have a few repository classes that are meant to talk to different kinds of data, deriving from an IRepository interface laid out like so:
In implementations, the code talks to a data source, be this a directory of XML files or a database or even just a cache. Is it possible to reliably unit test any of these implementations? I don't see a mock implementation working, because then I'm only testing the mock code and not the actual code.
I know that I can use DOMDocument and DOMXPath to manipulate XML files. But, I really love JQuery, and it would be great if there was something more like JQuery in the PHP world that I could use for sever side DOM manipulation.
NOTE: I'm only interested here in how
JQuery Selects and Manipulates the DOM, not all
the other parts of JQuerry (I guess
you can say just the Pop and the Sizzle
parts).
In a jboss service I need to mock some inner class (not EJB) with JMockit. Just for tests I've created inner class ToBeMocked and another one Mock. While deploying to jboss I get error NoClassDefFoundError in line:
Mockit.setUpMock(ToBeMocked.class, new Mock());
with message:
java.lang.NoClassDefFoundError: mockit/Mockit
jmockit.jar is added to the classpath in jboss_service.xml.
Any ideas?
I have a MySQL file that represents my database in a specific state that would allow me to test a class I am working on. What I want to do is have PHPUnit clean and rebuild the database from this file for each test or set of tests.
How can I go about that without having to resort to rewriting the data in the XML format that PHPUnit uses?
Is it possible to update the launcher icon dynamically?
Currently it seems that it can only be set statically at build time using the android:icon attribute in the AndroidManifest.xml file. For example, to display a unique icon based on the device's location?
Is this something that can be achieved using aliases? If so, can an alias's launcher icon be enabled/disabled dynamically?
I'm trying to get a completely custom Dialog or PopupWindow, without any of the default Android UI controls (title, background, buttons, whatever).
Is this possible at all? I've spent hours searching for this, but no luck... It seems like this should be easily possible, but I can't find it.
Preferably this would be by inflating a View from XML, but at this point anything that would just work would be nice.
Thanks.
I have a class, which describe an object for parsing XML. This class contains NSStrings and NSMutableArrays of NSStrings.I want to store parsed data using CoreData. How should I write CoreData model to store such objects if there is no such data type like NSMutableArray? Is there any way?
I'm using an XML config file to populate my navigation using Zend_Navigation.
I have Login and Logout in the navigation, but obviously I should only display the 1 action that makes sense.
I believe I can do something like $navigation-removePage() but... How do I get the $navigation variable in a Controller after it was previously created in Bootstrap.php?
Hi, I am new to Maven2 and have been having an issue with the compiling of the source for a RAR. Maven currently copies all the information located at my sourceDirectory instead of compiling it even though the console states that the source is being compiled. If I navigate to the sourceDirectory I find all my source files with no compiled class files. I have tried changing my outputDirectory to a different location and when I inspect this directory I find that it only copied my source files instead of compiling them. I have added an example of my POM. Any advice would be appreciated and please keep in mind I have only started learning/implementing Maven2 yesterday :)
<?xml version="1.0" encoding="UTF-8"?>
<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>
<artifactId>MyApp</artifactId>
<groupId>.</groupId>
<version>4</version>
<packaging>rar</packaging>
<name>MyApp rar</name>
<build>
<directory>target\${artifactId}-${version}</directory>
<resources>
<resource>
<directory>..\gen-src</directory>
<excludes>
<exclude>util.jar</exclude>
</excludes>
</resource>
<resource>
<directory>..\domain</directory>
</resource>
</resources>
<sourceDirectory>target\${artifactId}-${version}</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-rar-plugin</artifactId>
<configuration>
<workDirectory>target\${artifactId}-${version}\classes</workDirectory>
<outputDirectory>target</outputDirectory>
<finalName>MyApp${version}</finalName>
<raXmlFile>${workDirectory}\META-INF\ra.xml</raXmlFile>
</configuration>
</plugin>
</plugins>
</build>
</project>