Posts
 
Reputation
Loading chart. Please wait.
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
60% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
0 Endorsements
~8K People Reached
Favorite Tags
c++ x 27
java x 18
gui x 11
ios x 6

35 Posted Topics

Member Avatar for OffbeatPatriot

I made a wxPython gui to interact with a camera, however the lab is very matlab centric and the professor wants everything to be controllable from matlab. I think this is more of a matlab problem, but it's python related and I thought it might be a little odd to …

Member Avatar for uve
0
796
Member Avatar for OffbeatPatriot

I'm trying to use generics in some methods and Netbeans is telling me I'm doing it wrong. It tells me that the lines ***Data = input is wrong and return ***Data[index] with errors to the effect of, required: byte[] found: T[] or required: T found: byte Is there a way …

Member Avatar for OffbeatPatriot
0
94
Member Avatar for OffbeatPatriot

As I understand it equal hash codes in general imply a high probability of equality between objects, but they aren't perfect. But I've been told that in Java the base hash code of an Object is simply the memory address of the object, so I've assumed that Object hash codes …

Member Avatar for jwenting
0
298
Member Avatar for OffbeatPatriot

I'm making a game engine and an integral part of the game is that it populates worlds based on maps loaded from a XML file, a method "Actor load(Map<String, String> code)" in a class ActorLoader takes a map and returns an actor based on this map. When you make a …

Member Avatar for ~s.o.s~
0
180
Member Avatar for OffbeatPatriot

Yeah, they're kind of funny, but I find it suspect that they have an entire advertising campaign designed around dodging the question.

Member Avatar for jwenting
1
212
Member Avatar for ithelp

I only have 56k in my dreams so I avoid the internet, but I'm working with broadband companies to start laying down fiber optics in dreamscapes.

Member Avatar for jephthah
1
162
Member Avatar for OffbeatPatriot

I don't have ambitions of making a Turing complete language but I thought it might be cool to look into, at this moment my goal is pretty much to just do integer math, maybe functions. I've got the Antlr IDE plugin for Eclipse and I wondered if it would be …

Member Avatar for OffbeatPatriot
0
110
Member Avatar for OffbeatPatriot

I have a class, Cast(as in cast of a play), that implements the Collection<Actor> interface(Actor is a class representing an entity in a game) and I have the following code. [code=java] Set<Actor> toRemove = new HashSet(locations.keySet()); //method 1 toRemove.removeAll(actors); //method 2 for(Actor actor : actors){ toRemove.remove(actor); } [/code] if I …

Member Avatar for OffbeatPatriot
0
137
Member Avatar for deepu.bhanu

This is only a rough outline of how I would do what you're trying to accomplish. The specific implementation will vary from problem to problem. [code=java] public static void solveProblem(Problem problem){ Effort attempt = new Effort(); try{ problem.applyEffort(attempt) catch(UnsolvedProblemException e){ Daniweb.post(); } } [/code]

Member Avatar for javaAddict
0
152
Member Avatar for OffbeatPatriot

I've been trying to read this binary file I wrote with a python script. The format of the file is this, first there is an integer that tells how many floating point numbers follow that integer(there will be 5 times this number), then the floats follow, another integer, etc. I've …

Member Avatar for Ancient Dragon
0
146
Member Avatar for OffbeatPatriot

I started making a game in XNA and I've also been making a parallel version in Java so that it can run on computers(I know XNA makes PC games but I hear it's primarily a Xbox API...hopefully I haven't gone off topic in the linux forums). Overall I prefer C# …

Member Avatar for iamthwee
0
93
Member Avatar for mahela007

Well, here is a bit of my experience. I worked in a genetics lab where I basically wrote scripts to parse genomes and the output of programs that analyzed these genomes to automate many tasks, basically a lot of string manipulation, very complicated string manipulation. Using nothing but Python I …

Member Avatar for Narue
0
138
Member Avatar for OffbeatPatriot

I'm making a game and when it starts up I want the game to load a file in it's jar and set the display according to the contents of that file, I can do that just fine. But if the file doesn't exist(the first time the program runs) or something …

Member Avatar for OffbeatPatriot
0
81
Member Avatar for OffbeatPatriot

To keep things simple I have a spreadsheet that lists x and y values. I'm not sure how many of these data points there are but 13.5 million is a safe lower bound. Anyway, I wrote a program to parse this file and plot the points in jfreechart and the …

Member Avatar for kvprajapati
0
125
Member Avatar for OffbeatPatriot

I just made a program using JOGL and one problem I'm having is that if I don't include the arguments -Dsun.java2d.noddraw=true and -Dsun.awt.noerasebackground=true then the screen flashes and sometimes just stops refreshing until I jiggle it a little If I include these arguments everything is perfect but my intention is …

Member Avatar for OffbeatPatriot
0
91
Member Avatar for OffbeatPatriot

Say I have a single floating point number called result equal to 0 and two threads, one thread adds 4 and the other subtracts 2. Is there any possibility that result will be equal something other then 2 afterwards? If you want a more concrete example I ask this question …

Member Avatar for BestJewSinceJC
-1
148
Member Avatar for OffbeatPatriot

When you're done reading this feel free to tell me if I've completely misunderstood .NET As I understand it on Windows code can be compiled to IL which then allows it to be used from any .NET language like c\c++\c#, and basic. So could I, and if I can how …

0
70
Member Avatar for OffbeatPatriot

I programmed a a neural network class in python using numpy. I had some trouble getting it to work properly, in my case I wanted to train it with back propagation to approximate XOR, but then it started working, then it didn't, and overall it only seems to work sometimes. …

Member Avatar for OffbeatPatriot
0
169
Member Avatar for OffbeatPatriot

Basically I'm trying to run a simulation of neurons and this is the code that gets run in the main loop of it. [code=c++] class Neuron { private: double v, u, a, b, c, d, current, du, dv; public: double x; vector<double> pre; int id; vector<int> fired; vector<int*> post; vector<double …

Member Avatar for OffbeatPatriot
0
612
Member Avatar for OffbeatPatriot

[code=c] #include <stdio.h> int main() { printf("hello\n"); return 0; } [/code] It's all the more frustrating because I've designed stuff MUCH more complicated on this computer. My errors seem to be all linking errors. I've done all I can think of, which was really just to make sure my subsystem …

Member Avatar for OffbeatPatriot
0
592
Member Avatar for OffbeatPatriot

I've made a program in Visual Studio, it's a gui meant to control a camera and the functions of it that my problem rotate about are the functions to open and close the link to the camera. The program seems to run but when I run the program outside visual …

Member Avatar for Salem
0
163
Member Avatar for OffbeatPatriot

I'm making a module to simulate a neural network, speed is an issue so I've written it in c, basically you build the network in python, and then run call a simulate method that is pure c. One thing I want to add is the ability to inject current into …

Member Avatar for OffbeatPatriot
0
264
Member Avatar for OffbeatPatriot

Are there any C\C++ libraries what will allow me to plot in real time? If any explanation is needed the perfect example I saw of this was for a API, Swarm, that is used for simulating large numbers of agents. In my program with it a bunch of workers basically …

Member Avatar for OffbeatPatriot
0
780
Member Avatar for OffbeatPatriot

I'm writing code to control a camera and I'm using boost threads to repeatly get the camera image and write it to a gui among a few other things while everything else runs. It's written with wxWidgets and it has a menu with an option to open/close the link to …

Member Avatar for Stinomus
0
125
Member Avatar for OffbeatPatriot

I've tried several times now to write my own neural network class and I think this is the closest I've gotten, the network seems to run properly but it doesn't seem to learn correctly. I'm trying to make it approximate exclusive or but it seems to be only capable of …

Member Avatar for OffbeatPatriot
0
152
Member Avatar for OffbeatPatriot

I'm making a program in Ubuntu with wxwidgets, the goal is to recognize faces but for now I just want to load an image into a frame. I load images by clicking on a load menu item which is linked to this function. [code=c++] void Face_Catcher_Frame::on_load(wxCommandEvent &event) { wxFileDialog * …

Member Avatar for Salem
0
351
Member Avatar for OffbeatPatriot

I configure it like this ./configure --with-msw --enable-debug --enable-debug_gdb --disable-shared --enable-unicode --with-opengl and when I build it I get this error. /cygdrive/c/wxwidgets-2.8.10/bk-deps g++ -c -o baselib_appbase.o -D__WXMSW__ -I./src/regex -DwxUSE_GUI=0 -DwxUSE_BASE=1 -D_FILE_OFFSET_BITS=64 -D_LAR GE_FILES -D__WXDEBUG__ -I/cygdrive/c/wxwidgets-2.8.10/lib/wx/include/msw-unicode -debug-static-2.8 -I./include -Wall -Wundef -Wno-ctor-dtor-privacy -ggdb -O0 ./s rc/common/appbase.cpp In file included from ./include/wx/memory.h:16, from …

Member Avatar for tux4life
0
380
Member Avatar for OffbeatPatriot

The problem seems pretty simple but I haven't figured it out yet. I'm using wxWidgets to make a gui and this function gets called when I press enter while in a text field. [code=c++] void Camera_Settings::on_exposure(wxCommandEvent &event) { wxString temp = exposure->GetValue(); char *value = (char *)temp.mb_str(); char *hex_string = …

Member Avatar for OffbeatPatriot
0
155
Member Avatar for OffbeatPatriot

I'm making a game and the game works around a class I call Cyber_State. Every state of the game is a subclass of Cyber_State, for example the title screen you see when you start the game and the actual game. Every state has a member that is a pointer to …

Member Avatar for MrSpigot
0
99
Member Avatar for OffbeatPatriot

I'm trying to make a program to view 3d volumes. Basically you start with a bunch of data from an ultra sound or mri and then you load it into a 3d texture. Then you have a cursor made of three components between 0 and 1, and when you draw …

0
64
Member Avatar for OffbeatPatriot

I've been trying to install numpy([url]http://numpy.scipy.org/[/url]) on my vista computer with no success. Every time I try I get a dialog box saying numpy-1.2.1-sse3.exe has stopped working. My instincts lead me to run spybot and a scan with AVG, I found that I had actually forgotten a couple things when …

0
105
Member Avatar for OffbeatPatriot

At my lab the professor bought a camera that came with a c library to control it from a computer. Right now he wants me to create a gui in matlab to control it but I'm such a python zealot I'd rather do it in that, and then call it …

Member Avatar for OffbeatPatriot
0
259
Member Avatar for OffbeatPatriot

I've had a DVD drive in my computer that wasn't connected to the Motherboard because I didn't have a SATA cable. Just today I got one from the IT guy at work and plugged it in, now I have the problem I just described in the title. Furthermore it only …

Member Avatar for OffbeatPatriot
0
204
Member Avatar for OffbeatPatriot

I'm making my first python program that uses multiple threads. Basically you have the main program, in this program by use of various widgets you can define how many threads you want to run and the details of how these threads will run, then you can click on a menu …

Member Avatar for Gribouillis
0
96
Member Avatar for OffbeatPatriot

My project has gotten kind of big now but so I'm trying to post as little code as I can. It seems like the center of my problem is that I have a map for a game, at the start of this game the map is created and is constantly …

Member Avatar for ArkM
0
189