How can I add the domain root path to the Oracle WebLogic 11g (10.3.2) AdminServer classpath? (Note that I am not running the Node Manager.) Which WebLogic startup script sets environment variable WEBLOGIC_CLASSPATH? Is this the variable to which I should add the domain root?
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 best practice?
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?
Is there a way to include all the jar files within a directory in the classpath?
I'm trying java -classpath lib/*.jar:. my.package.Program and it is not able to find class files that are certainly in those jars. Do I need to add each jar file to the classpath separately?
One can use matchedset.find(selector) / matchedset.parents(selector) to get the descendants/ancestors of the current matched set filtered by a sealector, but that doesn't include the matched set itself (if it happens to match the selector too). Is there a better (more consise and/or faster) way to get it than
matchedset.find(selector).add(matchedset.filter(selector))
and the respective for parents() ?
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
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..
I have an ancient code snippet I use for copying tables in MySQL.
CREATE TABLE new_table (select * from old_table);
This works great, with one exception. It doesn't copy the primary key or other table indexes.
Is there any way to copy a table in MySQL AND include the indexes/primary key??
I would like to include a rich text editor in a pygtk drawing area for an application i am developing. The editor ( a small resizable widget ) should be able to move around the drawing area like a rectangle. I am not sure how to start as I am pretty new to PyGTK. thank you !
example: Person has_many Comments. Comments has named_scope :approved. And I need to serialize Person with all approved comments to JSON. So it should look like this:
person.to_json(:include => :comments)
but how can I add there that named scope? To serialize just that approved ones?
Suppose I have this program, I want to compare 2 input lists. Assume array A and array B. How do I determine the best case and worst case of the function?
Here is my code in [php]:
foreach($array_1 as $k){
if(!in_array($k, $array_2)){
array_push($array_2, $k);
}
}
What is the best case and worst case of the for loop? Please include some explaination, thank you :)
Sorry to ask something so basic, but I just can't find it.
I found some example code which seems to do exactly what I want, but it doesn't include a uses clause.
Hey everyone,
I have an ASP.NET MVC 2 project that I'm working on and I'm wondering where I should place some of my code.
I currently have a UsersModel which consists of a bunch of static methods that operate against my data context.
These methods include such things as: UserExistsInDatabase, UserIsRegisteredForActivity, GetUserIdFromFacebookId etc etc.
Should these methods be inside a UsersModel class or would they be more suited to a user helper class outside of the models context?
Cheers for any pointers.
I have a label bound to the value of a slider.
Content="{Binding Path=Value, ElementName=Slider}"
How do I append a percentage symbol? The value of the slider is already formatted correctly, so when the value is '50', all I need is '50%'.
I'm working with a visual studio 2008 - You get access to a number of special folders to use if you want to include files within. One I don't see on the list is the user's local application data folder. Is there anyway to put files in that folder from within a VS2008 setup project?
In interview someone ask me @ Abstract class. I told him @ abstract class and i also told that we can not create object of this class. his next question is why? because it may or may not include abstract methods.
I have deployed my project to tomcat root, and it works fine without any problem. To acheive this I created a ROOT file TOMCAT_HOME/conf/Catalina/localhost/ROOT.xml with content below:
<Context
docBase="/home/user/project.war"
path=""
reloadable="true" />
So right now I can see my project under localhost:8080/ without any problem.. but I don't know where my project has been extracted, there is even no ROOT directory under TOMCAT_HOME/webapps, any idea?
HI ALL,
I got an error java.lang.UnsatisfiedLinkError, I am not getting wat the problem is.
public static void main(String[] args) {
try {
System.loadLibrary("pfcasyncmt");
}catch(){
}
}
ERROR-
xception in thread "main" java.lang.UnsatisfiedLinkError: no pfcasyncmt in java.library.path
in a double-submitted cookie csrf prevention scheme, is it necessary for the server to provide the cookie?
it seems i could have javascript on the clients page generate and set a cookie "anti_csrf", then double submit that (once as a cookie, done by the browser, and once in the body of the request).
a foreign domain would not be able to read or write the "anti_csrf" cookie to include it in the body of a request.
is this secure, or am i overlooking something?
Under WindowsCE, C++ project, I'd like to get CPU utilization and memory allocation data real time - for logging and troubleshooting. Is there a library or activeX available that i could include in my code and use [without bringing my process to a halt, preferably], anyone knows?
thanks much for any insight!
O.
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
hello,
i want to write a simple batch script, that calls a certain exe, but if this one is not found, it should call another exe.
so in pseudocode
set file=c:\path\tool.exe
if(fileexists(file))
{
call file
}
else
{
call c:\somethingelse.exe
}
thanks!
My website http://sbmcrushers.net can't pass XHTML strict validation. What should I do?
Maybe I can use:
<object data="include/index.html" type="text/html"
style="border:none; width:960px; height:244px; margin-top:-10px;"></object>"
But it scrolls when I use that.