Hi all, i have to choose a database for a big desktop application.
Which of this db is better: Firebird, JavaDB, hsqldb ?
I need perfomance and easy to use, and totally free license.
Thank.
Why and when should I use stack or queue data structures instead of arrays/lists? Can you please show an example for a state thats it'll be better if you'll use stack or queue?
Thanks.
I am attempting to manage my projects a little better so I am looking at attempting to apply some of (eventually all) the features of scrum.
Looking at user stories specifically the high level format seems to be:
As a User I can Feature Description
or
Artifact is Doing Something
How would I write "Upgrade the Database"?
Is it simply Upgrade the Database?
I think I am being thrown off as there is no specific actor/customer and that the customer is the IT department.
I'm using NHibernate with SQL Server 2005 in a WPF client application.
If I manually stop the SQL Server service and then restart it the session doesn't automatically reconnect.
So far I'm doing this witch seems to work :
try
{
using (ITransaction transaction = this.Session.BeginTransaction())
{
// some select here
}
}catch(Exception ex)
{
if(this.Session.Connection.State == ConnectionState.Closed)
{
try
{
this.Session.Connection.Open();
}
catch (Exception)
{
}
}
}
Is there a better way ?
I am not sure if this fits better on StackOverflow, but here goes:
I want to programmatically log on to:
http://wrds-web.wharton.upenn.edu/wrds/index.cfm?true
I tried capturing the log on url using fiddler2 and HttpFox, but to no avail.
Is this a server side script that I cannot capture? If so how can I do the log on?
Is it possible? even better, is it possible with jQuery?
I need to know whether use click back button or forward button so I can use page transition effect correctly, eg. slide from left - right if they hit forward and vice versa.
For the below code, if i want to convert the for loop to in-line assembly, how would it be done?
(Pardon the weird code, i just made it up.)
1) This is for the x86, using visual studio
2) This is a "how to use in line assembly" question, not a "how to optimize this code" question
3) Any other example will be fine. I will think of some better example code in abit.
i have to save some photos in photo library using UIImagePickerController and save that name in my database. at the same way i need to view that saved photos. i dont want 2 see all photos in photo library . which is the better way? please post some samples.
Which one isbetter way of using MySQL in Tomcat :
A) assign a DB connection for user as long as it's session is valid. [OR]
B) open connection to DB, on every request come to server and when it's done close that.
?
I'm writing a script that builds an SQL query by concatenating the string and adding conditions to the WHERE clause as needed.
Would it be better practice to use WHERE 1=1 so that the first condition is satisfied and the script can just concatenate an AND x = 'y' to the query, or should I write the extra code to check if a clause has been added and if not, add the AND ?
Confusing question, I know. Let me know if I need to be more clear.
Rob
What is the most efficient way to do this?
Right now I am doing it this way..
then
print $counttoday;
print $countyesterday;
I know there has to be a better way to do this.
Let me know, thanks!
Hi
I want to do a Mean-Variance-Optimization (Markowitz) but i never found anything written in php that does this. MVP needs differential calculus.
Can it be done in php and why arent there any classes/works from universities?
For a webapplication (regarding performance) would another language be the better choice to handle heavy calculations?
Thanks so much for any help/answer on this
What is the best practice of using return keyword? If i need to return something from method which pattern isbetter to use?
public boolean method(){
if (case1){
return true;
}
if (case 2){
return false;
}
return false;
}
or
public boolean method(){
boolean result = false;
if (case1){
result = true;
}
if (case 2){
result = false;
}
return result;
}
The title more or less says it all:
I have a function which takes symmetric input in two arguments, e.g. something like
def f(a1, a2):
return heavy_stuff(abs(a1 - a2))
Now, I want to introduce some caching method. Would it be correct / pythonic / reasonably efficient to do something like this:
cache = {}
def g(a1, a2):
return cache.setdefault(frozenset((tuple(a1), tuple(a2))), f(a1, a2))
Or would there be some better way?
I need an open source project with an API
capable of reading a live video stream (stream codec can be any API can read - I can provide with practically any live streamable one)
giving me last image data for some processing (like brightness\contrast or more exotic filtering)
being able to receive data I've changed and starting to stream that data on to some http://localhost:port/ in some format
I need it to be easily accessible from C# (even better, written in C#).
I have a medium sized team of developers who moved to Subversion last December from VSS and I wanted to hear from people who have used both Mecurial and Subversion and get their feedback. What do they really like about Mecurial? What sucks? Is there a better open source tool? I didn't really want to put my devs through the whole source control migration thing again unless it is really worth it. Thanks in advance!
I have a host application, that loads a dozen of libraries at start up. I want to switch from Delphi 7s default memory manager to the full version of FastMM4 for better mem leak reporting.
Should I include FastMM4 in the uses section of both the host application and the libraries?
What about shared runtime packages?
-Vegar
I am trying to auto-generate Unit Tests for my C code using API sanity autotest.
But, the problem is that it is somewhat complex to use, and some tutorials / howto / other resources on how to use it would be really helpful.
Have you had any luck with API sanity autotest?
Do you think there's a better tool that can be used to auto-generate unit tests for C code?
As i understoond, if we have local service of some application, as soon as the application goes down, the service goes down as well - is that true?
and if it is, how can we make an application to run all the time without go down? (without using Alarm manager). i though that the purpose of local service is to answer this situation: " to make the application everlasting"
please, if some1 could explain me this better,
thanks,
ray.
Hi,
Sometimes I need to compare interface elements to other objects. At the moment I'm doing it by comparing their titles against a localized string. Am I right that I better compare my objects against IBOutlets? Tags are out of the question because I'm using NSMenu.
I have Python classes, of which I need only one instance at runtime, so it would be sufficient to have the attributes only once per class and not per instance. If there would be more than one instance (what won't happen), all instance should have the same configuration. I wonder which of the following options would be better or more "idiomatic" Python.
Class variables:
MyController(Controller):
path = "something/"
childs = [AController, BController]
def action(request):
pass
Instance ariables:
MyController(Controller):
def __init__(self):
self.path = "something/"
self.childs = [AController, BController]
def action(self, request):
pass
I have created a progress bar custom control and would like to embed this into a list which can be sorted and placed on a windows form using .Net 2.0.
What is the best approach for this?
Is it possible to just add it to a ListView as a subitem? Is there a better way to achieve this? I want it to be as lightweight as possible.
For a while I have been struggling to integrate scala with java methods that might return null. I came up with the following utility which helps a lot:
// produce an Option, nulls become None
object Maybe {
def apply[T](t:T) = if (t==null) None else Some(t)
}
Maybe(javaClass.getResultCouldBeNull()).map( result => doSomeWork(result) )
I have a few questions about this solution:
Is there a better or more standard pattern to use?
Am I duplicating something that already exists?
Does this functionality have hidden gotchas?
I have a U9 Telit modem which, at first, appears as a disk drive on USB bus. Then, the native software after autorun and install, sends a couple of IOCTLs to tell the device to reappear as other things. I can see them in procexp.
I want to better spy on these, to know exactly what they send and how, in order to do the same in proper way.
I have read and read over MSDN, etc. Ok, so it signals the end of a batch.
What defines a batch? I don't see why I need go when I'm pasting in a bunch of scripts to be run all at the same time.
I've never understood GO. Can anyone explain this better and when I need to use it (after how many or what type of transactions)?