Posts
 
Reputation
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
~7K People Reached
Favorite Tags
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
733
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
90
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
270
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
177
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

Like in dream you needed some information and you searched in google and found it out ?

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
105
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
131
Member Avatar for deepu.bhanu

java program to read csv file and store it in rbnb server please try to help me

Member Avatar for javaAddict
0
147
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
143
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
76
Member Avatar for mahela007

Would it be of interest to learn C or C++ if one already know python? I'm a linux and programming enthusiast (i.e hobbyist ;-) ) and C is pretty common on linux and many other applications. But is it worthwhile learning C if I already know python? What are the …

Member Avatar for Narue
0
121
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
77
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
122
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
90
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
145
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
68
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
164
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
593
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
583
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
161
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
251
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
753
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
122
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
140
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
337
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 mvmalderen
0
371
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
151
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
97
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
61