Is there any open source collection framework, written in ActionScript that would emulate HashMap, HashSet, LinkedHashMap and LinkedHashSet Java class implementations.
Is there any possibility to achieve different redirections for standard output like printf(3) for different POSIX thread? What about standard input?
I have lot of code based on standard input/output and I only can separate this code into different POSIX thread, not process. Linux operation system, C standard library.
I know I can refactor code to…
What are available resources I should look to in order to write an emulator for iPhoneOS? I'd like to write an emulator to run applications written for MacOS. I understand that I won't be able to use file system and other OS resources. I do have an SDK, XCode and all documentation for those resources, but I wonder if I can find some examples…
I provide some input set which contains known separated number of text blocks.
I want to make a program that automatically generate 1 or more regular expressions each of which matches every text block in the input set.
I see some relatively easy ways to implement a brute-force search. But I'm not an expert in compilers theory. That's why…
We are currently working on a Wordpress page that reuses data from another Application. To keep things clean, but still use most wordpress features, we decided to use custom post_type settings (register_post_type) for this data.
Now the Problem is, that while accessing these Posts is no problem, the Permalink's to them fail with 404's.
…
I have a working PHP server. Now I want to use databases (MySQL or something similar). Is it possible to create a database from PHP?
I would like to emphasize that in my case I do not have any user-name and password to which I can use to connect to MySQL server. I also do not have a control-panel where I could create a database or a…
I heard plenty times different claims about float type in java.
The most popular issues typicaly regard to converting float value to double and vice versa. I read (rather long time ago and not sure that it's actual now with new JVM) that float gives much worse performance then double. And it's also not recommended to use float in…
Recently I asked here how to add a new JPanel to JFrame. The answer helped me to get a working code. But not I have a related question: "How can I remove an old JPanel". I need that because of the following problem.
A new JPanel appears appears when I want (either time limit is exceeded or user press the "Submit" button). But in…
Here's a window for configuring artifacts:
The problem is that "Web facet" is fully exploded to WEB-INF (actually this facet creates its own WEB-INF, but 2 folders are being merged after all).
So, I have all my jsp-files inside WEB-INF while I want them to be outside WEB-INF.
What do I do wrong?
I have got some old sources written in Visual Basic. There are *.bas, *.cls, *.frm and *.vbp files. As I understand, vbp is a project file. But I cannot open it with my Visual Studio 2008.
What version of VS should I install to open *.vbp file? Google says it is Visual Studio 6, but I am not sure and I cannot find Visual Studio…
At the moment I have this code (and I don't like it): private RenderedImage
private RenderedImage getChartImage (GanttChartModel model, String title,
Integer width, Integer height,
String xAxisLabel, String yAxisLabel,
…
I have the following problem. My client program monitor for availability of server in the local network (using Bonjour, but it does not rally mater). As soon as a server is "noticed" by the client application, the client tries to create a socket: Socket(serverIP,serverPort);.
At some point the client can loose the server…
I close my application by pressing a "Close" button. But in the Eclipse I see a red square indicating that something is still running. When I press this red square, I kill my application completely.
Is it possible to find out what is still running (which method, which loop) using Eclipse?
P.S. I am a newbie. So, it…
I need to append some data to existing file. I started to browse Internet to find out how to do it. And I found this mini (as they say) application to do that:
http://www.devdaily.com/java/edu/qanda/pjqa00009.shtml
Well I was already annoyed by the fact how complicated are things in Java (in comparison with Python,…
Let's assume I have a table with field of type VARCHAR. And I need to get data from that table sorted alphabetically by that field.
What is the best way (for performance): add sort by field to the SQL-query or sort the data when it's already fetched?
I'm using Java (with Hibernate), but I can't tell anything…
On my system I have two versions of Python (to call them I type python and python2 in the command line). When I use the first version of Python, I cannot import sklearn module but I can do it in the second version of Python.
I would like to use the first version of python (because other modules are available…
I have a large number of objects which are identified by names (strings). So, I would like to have a kind of mapping from object name to the class instances.
I was told that in this situation I can use a "repository" class which works like that:
Server myServer = ServerRepository.getServer("NameOfServer");
…
Hi all,
I'm trying to setup a parallel CMake-based build for my source tree, but when I issue
$ cmake .
$ make -j2
I get a jobserver unavailable: using -j1. Add '+' to parent make rule warning. Does anyone have an idea if it is possible to fix it somehow?
OpenCL 1.0 came with nVidia driver for Mac OS X 10.6. I wonder if/how it is possible to update header files to utilize OpenCL 1.1 API. Greatly appreciate in advance.
I jsut learned that
A class may be declared with the
modifier public, in which case that
class is visible to all classes
everywhere. If a class has no modifier
(the default, also known as
package-private), it is visible only
within its own package.
This is a clear statement. But this…
I want to have a web page where user can activate his/her web-camera and send video to another user. Additionally to that I want to have a possibility to process video on the client side. In more details, I want to have a program which analyze video on the client side. Is it possible to do it with…
I haven't ever before created custom components in JSF so I've noticed only now that methods like encodeBegin(), encodeEnd() etc accept FacesContext parameter.
FacesContext instance can usually be received with FacesContext.getCurrentInstance().
So, I wonder whether these methods have…
I have a java project in which I have "Referenced Libraries". In the "Referenced Libraries" I have a .jar file of a library that I use (I use only one external library).
When I try to "Run - Run" the code I have a NullPointerException. From my previous experience I know that it it (very…
I try to play with sockets a bit. For that I wrote very simple "client" and "server" applications.
Client:
import java.net.*;
public class client {
public static void main(String[] args) throws Exception {
InetAddress localhost = InetAddress.getLocalHost();
…