lst1 = ['one', 2, 3]
// What is the best way of the following -- or is there another way?
lst2 = list(lst1)
lst2 = lst1[:]
import copy
lst2 = copy.copy(lst1)
What is the best procedure for storing and retrieving, using native Java serialization, generic objects like ArrayList<String>?
Edit: To clarify. When I serialize an object of type ArrayList<String> I'd like to de-serialize to the same type of object. However, I know of no way to cast back to this generic object without causing warnings.
I've been doing a research about the best algorithm to use in creating a binary tree implementation. THe top entry in my list is nested sets. Are there any other alternative or better algorithm??
I have a web application written in Java (Spring, Hibernate/JPA, Struts2) where users can upload images and store them in the file system. I would like to scale those images so that they are of a consistent size for display on the site. What libraries or built in functions will offer the best results? I will consider the following criteria in making my decision (in this order):
Free/Open Source (essential)
Easy to implement
Quality of results
Performance
Size of executable
I haven't looked at Nutch for a year or so and it looks like it has changed significantly. The documentation on re-crawling isn't clear. What is the best way to update an existing Nutch index?
I am graguating in dis may in electrical engg...but i would like to learn any one of the data ware housing tools....can any one please suggest me which is the best data ware housing tool for non-computer science graduates...so that it is easy to learn...and can get job...
like (business objects,informatica,hyperion, datastage and cognos)?
I ordered a server for the home office and I would like to partition it with Xen. I think this will keep things clean and easier to maintain. I will be running things like MySQL, PostgreSQL, Tomcat and my own code on this machine.
My question is: what freely available Linux distribution has the best Xen hosting facilities?
I generally need to do a fair amount of text processing for my research, such as removing the last token from all lines, extracting the first 2 tokens from each line, splitting each line into tokens, etc.
What is the best way to perform this ? Should I learn Perl for this? Or should I learn some kind of shell commands? The main concern is speed. If I need to write long code for such stuff, it defeats the purpose.
Hi all,
I am working on i-Phone app targeting 3.1.3 and later SDK. I want to know the best way to store user's long term data on i-phone without losing performance, consistency and security.
I know, that i can use Core Data, PList and SQL-Lite for storing user specific data in custom formats.But, want to know which one is good to use without compromising app performance and scalability in near future.
Thanks
What is the best way to solve programming questions when you are givien a question to write a program, in an exam for example where you have no computer to test it. Is there a certain technique that people use to help them solve these type of written problems? Or is it all down to knowlegde of the language?
I'm new to Git. Let's say Alice and Bob had been developing their project by using two Git repositories for each. And, Alice at certain times want to set up a new repository to manage their common progress. Do you think what is the best way to replace remote.origin.url in the configuration of Git?
to replace by git config --replace
to create new repos by git clone MAIN_REPOS
or any?
I have this (simplification):
$(li).click(function{alert("test");});
<li>
<input>
</li>
What's the best way to bind an event to li but not fire when the user clicks on the input element?
I am trying to design the standards and patterns for implementing portlets/web gadgets with the main goal of maximizing interoperability if those components were hosted in a Java app server framework or within an existing ASP.NET technology (SharePoint webparts), or a client side-only framework.
Is there any guidance anywhere of the parts of different portlet standards that are shared between most portal frameworks?
Is the best I can hope for is to adhere to the JSR 168 and 286 standards and hitch my wagon to Java?
Hi there
My company has got iPhone app development expertise but I'm not sure what's the best way to find customers who need to develop iPhone apps. Any suggestions?
Alex
Hi ,
i want to create a wizard the include a few steps ,that in the final steps
we need to include all the steps and save on the data base.
what is the best design to do this ?
there is implemante for a jquery ?
i need to save the steps in sessions till the final save ?
thanks !!!!
We have a big portal that needs user registration to allow them use its services. It's already done in .NET and SOL Server 2005. we are in the phase now of discovering all the problems of the current registration system to build a new robust flexible one that can be extended easily and can be more usable for all services.
Could any help me find best practices and design patterns to help me rebuild this using good architectural practices?
I am writing a selenium test and I need to assert that the page is redirected. How should I verify this? What would be the best way?
I am using PHPUnit and the PHPUnit_Extensions_SeleniumTestCase.
Hi,
FOund the following on: http://mike.murraynet.net/2009/08/23/parsing-the-verisign-zone-file-with-os-x/
Can unix-masters have a look at it and see if its the best possible way to gather the unique domainsnames in a zone file?
For .NET domains:
grep “^[a-zA-Z0-9-]+ NS .” net.zone|sed “s/NS .//”|uniq netdomains.txt
For .COM domains:
grep “^[a-zA-Z0-9-]+ NS .” com.zone|sed “s/NS .//”|uniq comdomains.txt
For .EDU domains:
grep “^[a-zA-Z0-9-]+ NS .” edu.zone|sed “s/NS .//”|uniq edudomains.txt
I have planned to develop a game in which the users will build buildings on a plain surface. I want to divide those lands into pieces and allow the user to build the buildings. What is the best way to divide the plain surface as small squares in flex.
If I control both applications, what is the best way to communicate between 2 exe's written in VB.Net. For example, I want to drop an XML file from one app, and pick it up with the other, but I do not want poll for the file. I've heard of named pipes, but I found it was complicated. What's the most effecient way to do this?
I have been doing Java, and C# for many years.
Starting on my first big Python program now.
I have written a few, very small, text processing scripts in Python years ago.
I would like to know what is the best, free, online Python tutorial for experienced programmers.
Python in general, but then also web programming with Python. Will be using Django.
Thanx much.
What's best method within cakephp site for-
two dropdowns
one listing cds, one listing artists
on select of either cd or artist I need my additional text to appear below dropdowns
I have been searching through tutorials and manual - with no success. I am looking to learn by basic example - from form/view and controller.
latest try was something along this example to get dropdown [http://stackoverflow.com/questions/1450457/cakephp-make-select-dropdown]
We have a main mysql database which all of the applications within our organization need the data within this database. How can I config my java web application to use this database with it's specific database when I use Spring and Hibernate within my application? How can I config JPA annotations for example between CONTRACT table within my database and COUNTRY table within our main database? what's the best practice to do this?
Hi Friends,
I would like to test iPhone applications to test on device. I am in confusion on the version of iPhone which suits best for iPhone application development.
Can anyOne of you suggest me, is 2G OR 3G better? Its Urgent..
Thank You.