Hi,
I am using a third party API which performs what I would assume are expensive operations in terms of time/resources used (image recognition, etc). What tell-tale signs are there that the code under test should be made to use threads to increase performance?
I have a profiler and will be profiling the code I write which will rely on this API.
Thanks
hi , my project this year is to develop a text mining tool (with new features)
so we need a mini script language in this tool to add annotation to texts
this language should be simple and like lisp grammars (left and right side) .
what i need is how to design this language ,i know how to constract the compiler ,
but how to write language grammars ? , and i want to use some mini open source language or any language bnf
please advice me and if there is a language i can use and customize to meet my needs ?
thanks
Hi so I am trying to create a deb package for a web application written in Java (it uses Apache Tomcat). My eventual goal is to start a repository that people can add to apt-get the software, but
How do I make it so that the package knows to look for dependencies like tomcat, sun-java6-bin, and ant?
How do I write an installer script to place the files and folders in the right place?
is the main method is must needed to write a java code.
this my code :
package example;
public class HelloWorld {
public HelloWorld() {
}
public String getHelloWorld() {
return "Hello From Java!";
}
}
it shows error at compilation :
java.lang.NoSuchMethodError: main
Exception in thread "main"
In ksh, I'd use
cd /usr/src/sys
How should I write it in Perl? A conversion such as
cd /usr/src/sys ---> chdir '/usr/src/sys'
Maybe the following would be better:
execute "chdir '/usr/src/sys' "
Hello.
I have a question. I need to kwon what is the relationship between a Random Variable with Normal distribuation (N(0,1)) and others continuous random variables.
Can you write to me an example?
Thank You
Hola a todos.
Necesito saber qué relación existe entre una variable aleatoria Normal (0,1) y cualquier variable aleatoria continua. Además, me vendría bien un ejemplo.
Gracias por vuestra ayuda
I just wondering, how can write web applications or web pages using LaTeX-styled math? please don't refer to LaTeX2png. i want a text formation tool or script, like mathoverflow.
Thanks.
I have a secured (https) XML-RPC server written in python, and I have tested it with a python based client. but I need a C# based client for it, I have given a try to xml-rpc.net
but it is not working with https? can any one please help me out? or I will have to write a client from scratch?
Thanks
Hi I am trying to write some iPhone app with a theme switcher, where users can select a theme to change the background color, alpha, images, and some push buttons' look and feel as well (size, image, or even locations).
What would be the best way to apply the theme?
Thanks,
Tim
Since input and raw_input() stop the program from running anymore, I want to use a subprocess to run this program...
while True: print raw_input()
and get its output.
This is what I have as my reading program:
import subprocess
process = subprocess.Popen('python subinput.py', stdout=subprocess.PIPE, stderr=subprocess.PIPE)
while True:
output=process.stdout.read(12)
if output=='' and process.poll()!=None:
break
if output!='':
sys.stdout.write(output)
sys.stdout.flush()
When I run this, the subprocess exits almost as fast as it started. How can I fix this?
is there a built in function in php that would combine 2 strings into 1?
example: $string1 = abcde, $tring2 = cdefg
combine to get: abcdefg
if the exact overlapping sequence and the position are known, then it is possible to write a code to merge them.
TIA
Every LINQ blog I found there seemed around 2 years old, I understand the syntax but need more direction on creating the SQL mapping and context classes.
I just need to use LINQ for 2 SQL tables I have, nothing complicated. Do folks write the SQL mapping classes by hand for such cases or is there a decent tool for this?
Can someone point me in the right direction?
for example i have array
int a[]=new int[]{3,4,6,2,1};
I need list of all permutation such that if one is like this, {3,2,1,4,6}, others must not be the same i know that if length of array=n then there is n! possible combination please help me to write this algortihm what to do?
Hello everyone,I now have an array of vectors:
static Vector3[] axes = new Vector3[] { Vector3.UnitX, Vector3.UnitY, Vector3.UnitZ };
and I want to loop through it,the code I write is:
for(int i=0;i<axes.Length;i++)
{
do sth. about axes[i];
}
However,it doesnt work and gets into infinite loop,could anyone help?
thx.
When I have a string like "0xd8 0xff 0xe0" I do
Text.Split(' ').Select(part => byte.Parse(part, System.Globalization.NumberStyles.HexNumber)).ToArray();
But if I got string like "0xd8ffe0" I don't know what to do ?
also I'm able for recommendations how to write byte array as one string.
In our oroject we already have a lots of tables (100+). Some of them contains a lot of columns (50-100) and we are facing the need of adding more columns from time to time.
What do you think is best - from maintenance and performance point of view - to split these huge tables in smaller entities or to keep the tables the way they are ?
We are using an ORM tools, so we don't need to write custom request.
I've run the following command in the Ubuntu terminal -
sudo apt-get install mono-develop
Now how can I run *.vb and *.cs programs using the terminal - What is the command that need to be given?
Does the syntax vary when we write code in Windows & Linux environment?
I have searched for PDF reader library that is licenced under LGPL or the like but could not find. I found only GPLs. Now I need a help to write my own library to read the PDF file and display it in my app. I have downloaded PDF Specs 1.7 from Adobe and I'm trying to search out a beginner tutorial but I'm yet to find one.
Is there a beginner tutorial for writing my own reader library (only reader)?
Thanks
In the setup of my test cases, I have this code:
ApplicationContext context = new ClassPathXmlApplicationContext(
"spring/common.xml"
);
StaticListableBeanFactory testBeanFactory = new StaticListableBeanFactory();
How do I connect the two in such a way that tests can register beans in the testBeanFactory during setup and the rest of the application uses them instead of the ones defined in common.xml?
Note: I need to mix a static (common.xml) and a dynamic configuration. I can't use XML for the latter because that would mean to write 1000 XML files.
I'm kind of falling in love with Node.js not because you write app code in javascript but because of its performance.
I really don't care a lot about how beautiful a server side language might be but how much requests per second it can handle.
So anyway I'm looking forward to experiment building an entire webapp using Node.js (and going back to the actual question) is there a template engine similar to let's say the django template engine or something similar (that at least allows you to extend base templates) available for Node.js?
I would like to take out a parameter from url by it's name without knowing if it is the first, middle or last parameter and reassemble url again. I guess it is not that hard to write something on my own using CGI or URI, but I imagine such functionality exists already. Any suggestions?
in:
http://example.com/path?param1=one¶m2=2¶m3=something3
out:
http://example.com/path?param2=2¶m3=something3
I guess this should be straightforward but my host got me to switch server from zeus to apache following which the .htaccess file with existing individual 301 redirects failed to work causing an internal server error, so have commented them out for the time being. Could someone explain how to set these up to work in their new apache context? Have no apache experience
Example redirect:
Redirect 301 /pages/exhibitions/thegreatindoors.html http://www.klassnik.com/pages/thegreatindoors.html
Read a lot about mod rewrites etc but not sure what to write. Thanks
After a user submitted data to my app, I'd like to write to the
database asynchronously, possibly through a message queue.
How do I set up such a system? Are there any pluggable Django apps
that do such message queue-based database writes?
Also how do i handle errors that happens during the async processing?
Would really appreciate any pointers you can give me. Thank you.