In my Java application I use a DateFormat instance to parse date inputs.
DateFormat fmt;
fmt = DateFormat.getDateInstance(DateFormat.DEFAULT) // dd.MM.yyyy for de_DE
The problem is that the user insists to enter dates in the form 31.12.11.
Unfortunately this is parsed to 31.12.11. (0011-12-31 in ISO format) Instead I want the parsed date to…
I have a list which has 5 columns in it. Some of these fields help the user fill in the data but I don't want the user to modify these fields.
I have tried changing the field to readonly but that ends up hiding the field completely from the form. Is there a way to get the field to render out to the form as just text?
Maybe I need to use…
I open excel file by JExcel, modify some cells and save it.
As result Array formulas({ ... } CTRL+SHIFT+ENTER) was broken.
Does anybody know what to do? (FormulaException is rasing during copy)
For example, I have some project Common.Utils.csproj and use it in all other projects. I can store its (Utils) sourses in one repository and modify it only there, register dll in gac and use it as dll in other projects, or I can clone sourse anywhere I need, include project in solution, use it as source and push modifications. So, what is…
Hi,
I'm using GWT with GAE. When the user enters any of the following urls, I want to just serve my app as usual to them:
http://www.mysite.com/
http://www.mysite.com/dog
http://www.mysite.com/cat
the first case works by default. I'm not sure how to get the /dog and /cat cases to work. I think I have to modify something with the url…
Why doesn't this print 5?
void writeValue(int* value) {
value = malloc(sizeof(int));
*value = 5;
}
int main(int argc, char * argv) {
int* value = NULL;
writeValue(value);
printf("value = %d\n", *value); // error trying to access 0x00000000
}
and how can I modify this so it would work while still using a pointer…
How can i modify the Url mappings in Grails dynamically? Let's say I have this in my UrlMappings.groovy:
"/"(controller:'home')
At some point or event in the app, I want to change it to:
"/"(controller:'url')
Is this possible? Thanks!
I would like to automate my test and release process of my Monodroid app via Jenkins.
I found some infos for using Jenkins with "normal" Android projects:
https://jenkins-ci.org/content/getting-started-building-android-apps-hudson
http://androiddevresources.com/blog/2012/04/01/building-an-android-app-with-jenkins/
Has anyone…
What's the best way to set HTTP headers (based on filename patterns) in Jetty 6.1? Is it possible via jetty.xml (or jetty-web.xml)? Or do I have to modify web.xml?
Hi All,
I want to modify File/List MetaData of Sharepoint.
For that i am using List.UpdateList method.
But it is Throwing exception:
"Microsoft.Sharepoint.SoapServerException"
I am using Admin account.And using List web Service.
Can i get some good examples of Modifying Metadata of Sharepoint Document using c#(Web Services).
I cannot seem to get this right, I am trying to modify a field to be a foreign key, with cascading delete... what am i doing wrong?
ALTER TABLE my_table ADD CONSTRAINT $4 FOREIGN KEY my_field REFERENCES my_foreign_table ON DELETE CASCADE;
I have a website that i did some time ago now they request some new features and i did some changes in some javascript files, but when i publish the clients that use the IE have problems with cache so in they browser they have old version of javascript. How can i clear the client cache so when they visit website they use latest…
Should I create my own End-User Software License (with a lawyer), or are there some good examples of one on the Internet?
I'm getting close to rolling out my first Windows-based program for my side-business. I would like to have the end-users to agree not to: resell the software, change/modify it, use it in another…
Warning (2): Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/iframeworking/iframe/app/models/frame.php:7) [COREcake/libs/controller/controller.php, line 647]
here is the code from frame.php:
<?php
class Frame extends AppModel
{
var $name = 'Frame';…
Hi,
I know at least two PHP source prettifiers and one for JavaScript, but all of them are written in those languages - PHP prettifiers in PHP, JavaScript in JS ;]
Now what I'm looking for is a prettifier for those languages which is a native application - can be C/C++ or Pascal, so that I can run it from…
Hi all
I have a main silverlight control named MainPage.xaml in an asp.net web site.
I want to dynamically add and remove control at run time.
So,
I have created another control Top10.xaml and added to selected canvas area on MainPage.xaml as described on this page(Click Me):
Now i need to modify…
I need to test if my 304 responses are working, but my development environment is pretty hard set on force no-cache.
Is there an easy way to modify the max-age value of the cache-control header before it goes out?
I'm perhaps a bit optimistic in hoping chrome (or an extension, or FF) has a console…
Since IE6 does not support the child selector (see http://kimblim.dk/csstest/#ex1), what is the alternative when dealing with this browser?
I do not want to modify the markup, and I'd much much prefer a CSS-only solution...
And yes, it is the direct child that I wish to target.
Thanks!
Hi,
while debugging a C++ program with GDB, is it possible somehow to add comments to the original souce code whitout affecting to the debugging process?
I started to debug with GDB, but if I modify (just adding comments at the end of each C++ code line wiht //) the code, when I display the code in…
When I compile and run a web application ASP.NET appears to be renaming the id of the form on the page, from id="login" to id="aspnetForm". It's messing up my stylesheet which expects the form with login for the id. Changing the css is not an option as it was provided by a designer and I don't want…
Because wikipedia is open source, I can modify anything I want. But what happens if someone deletes, adds bad content, modifies useful content ? What does wikipedia do to prevent that ?
The last question is available for any other open source software: linux, php etc. How do they know which…
I have a normal tree defined in Scala.
sealed abstract class Tree
case class Node (...) extends Tree
case class Leaf (...) extends Tree
Now I want to add a member variable to all nodes and leaves in the tree.
Is it possible with extend keyword or do I have to modify the tree classes by…
I try to edit ODT-documents programmaticly in PHP. In fact I just want to do some text replacement and adding new rows in a table.
I know that a normal ODF document is an archive containing XML-files. But before I reinvent the wheel: is there any library which does most of the tasks? Or…
I am trying to pass a variable from one page, load another and enter that information.
something Like this:
When 127.0.0.1/test.html&ID=1234
location.href = "127.0.0.1/newpage.html"
if (location.href == newpage.html){
var e = document.GetElementById("Loginbx");
e.Value =…