I have a webservice and want to implement Exception handling block to that and want to log the exceptions in an xml flat file in application path.
Can anyone provide me the example for this
I've got an old project in Eclipse 2.1 and compiled with a JDK 1.4.2_12. I want to upgrade the version of Eclipse to Eclipse Galileo.
I've imported my project and set the compilation level to 1.4 and I've also updated my build path to use the correct JDK.
The problem is that when I compare the compiled files in the classes folder in the two versions of Eclipse, the MD5 checksum are different.
Should I be worried about that fact or this is normal?
I know, other RCS are better, but...
I have moved an SVN repository from file:///path/to/repo to http://host.name/svn/repo
but there is a working directory (checkout out from file://) with changes that want commiting to the http location.
How then, can I change the repo a working directory will commit to when issuing svn commit?
I'd rather do that than checkout a new copy and sync changes locally. Also, handy to know for the future.
I want to show a PREVIEW kind of thing for an post , so took details by JS
but problem comes when it comes to <input type="file" , it's not giving full path to the file
Ex:
if I do
$("#image").val();
it only give "Sunset.jpg" not C:\Documents and Settings\All Users....\Sunset.jpg
any idea how to get that detail value?
Hi All,
I have a JAR on the build path of a medium sized Java application and I would like to know where it's used. At the most basic level if someone could tell me how to 'Find References' for a Jar that would be great.
Whilst I'm looking at dependencies it would be great to find a tool that would map all of my package / external library usages and graph them. I used to have a free plug-in for eclipse that did just that but I haven't been able to rediscover it.
Thanks,
Gav
I recently read the source code of couch-db, I find this type definition which i don't understand:
-type branch() :: {Key::term(), Value::term(), Tree::term()}.
-type path() :: {Start::pos_integer(), branch()}.
-type tree() :: [branch()].
I did read Erlang doc, But what is the meaning of Start, Key, Value and Tree? From what i understand, they are Erlang variables! I didn't find any information about this in Erlang doc.
I have stored the videos in the documents folder. the path is
/Users/sridhar/Library/Application Support/iPhone Simulator/User/Applications/EC177E77-8665-485C-93DE-62350FA6D0E7/Documents/air.mp4
I want to delete the video . How can I do it programmatically.
I am developing a Eclipse RCP plugin which uses JPA.
I tried to specify the database path via a variable give to the JVM on runtime.
The property is set correctly but the database is created in a folder named after the variable name (here: ${DBHOME}).
<property name="javax.persistence.jdbc.url" value="jdbc:derby:${DBHOME};create=true"/>
Is there a possibility to fix this?
Thx
Hi there,
I need to write a script that takes the current path (%~dp0), transforms backslashes into forward slashes and passes it further to some command.
Due to the environment I'm working in the only option that I have is windows shell (not Powershell where the issue would not a problem).
Is it even possible to do that?
I am using a SWC that was published from Flash CS3 in an Actionscript project in FlexBuider. The problem is that every time I make a change and re-publish the SWC the changes I made are not immediately recognized back in FlexBuilder.
In order to have newly published SWC recognized I have to remove the reference to the SWC from the library path and then add it back again. This is tedious.
Is there a better way?
In VS 2010RC I have to specify configuration properties and specifically included path every time I'm creating new project. Is there a way to do it just once for all future projects?
I'm asking this for a reason that I'm starting to use Boost libraries and I have to specify all those paths every time I'm creating project which is bit tedious.
i have given the user the option to upload his own aspx and code behind
i will extract the path by the help of upload control and display the page onto the users home page, am thinking of using iframe
but the problem of iframe is its size if fixed,
are there any other ways of displaying page within a page without the use of iframes?
and is there any efficient way of achieving the above goal?
if there is no alternative please give a link explaining how privide resizing in iframes at the users end.
my web application has an xml file here:
/files/xml/test.xml
I need to load a XDocument from within a class library project, how will I reference the xml? I don't want to pass any path parameters to this method.
I want to assume the location is fixed at /files/xml/test.xml.
How can I load a XDocument know this?
I don't seem to have access to server.mappath either.
In my application I use some icons. Where should I store the path of the directory containing those icons ?
The icons are used in different classes so it doesn't really make sense to store them in one of those classes in particular.
I read that global variables are evil, but is it acceptable to use a class (eg Commons) containing only public static final fields to store this king of data ? What solution is used in professional applications ?
Hello every body.
My current career is software testing, but I feel that iam wasting my time, may be because I dont know the future path of this carrer, and to where will I arrive in the future if I continue in this carrer. And I dont know how can I develop my self in this career. And can I have my own job in this field? Please give me good suggestions and openion.
Many thanks
This is the default stuff in post-commit.tmpl, which I don't think do anything useful:
REPOS="$1"
REV="$2"
mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf
How to make use of this hook to automate the deployment?
So here is my code
if (!File.Exists(pathName))
{
File.Create(pathName);
}
StreamWriter outputFile = new StreamWriter(pathName,true);
But whenever I run the program the first time the path with file gets created. However once I get to the StreamWriter line my program crashes because it says my fie is in use by another process. Is there something I'm missing between the File.Create and the StreamWriter statements?
I cannot install capybara-webkit 0.8.0. I installed QT and added C:\Qt\4.7.4\bin\ to my PATH. And anyway I'm getting this error:
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-
webkit-0.8.0 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.8.0/./ge
m_make.out
Hi,
My CrystalReportViewer won't display the charts in my Crystal Report. I get a red X.
I am using C# and MVC. I've read somewehre that I might need a virtual path to the image folder but I am not really sure what that means as my chart is embedded in the report....Maybe I am missing something. Plz can anyone elaborate.
Thanks
Susan
I have a gridview and a column of that gridview is displaying images whose path is stored in a database & image is stored in locale folder inside my website. My problem is that I want to use the hyperlink control with the image, so that when the image is clicked it should jump to another page. How can I do that?
Hi,
i got the svn checkout path for the KDESVN. I wish to compile it in ubuntu.
http://www.alwins-world.de/repos/kdesvn/trunk/
Please tell me how to compile and run in ubuntu.
what are the requirements..
This snippet <!--Please don't delete this--> is part of my xml file. After running this method, the resulting xml file does not contain this snippet anymore <!--Please don't delete this-->. Why is this?
Here's my method:
XmlSerializer serializer = new XmlSerializer(typeof(Settings));
TextWriter writer = new StreamWriter(path);
serializer.Serialize(writer, settings);
writer.Close();
How obtain the running process with absolute path name from ps command
13598 ? Ssl 0:00 /opt/something --run-id 2 -n /home/laks/f1 -l l.log
I need the output as -
/opt/something --run-id 2 -n /home/laks/f1 -l l.log