Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #3K
~12.2K People Reached
About Me

Third-year student at the department of information processing science of Oulu University, Finland. I'm specializing in software engineering.

Interests
Playing guitar and drums, composing music, reading fantasy novels, PC gaming, movies, all forms of escapism!
Favorite Tags

36 Posted Topics

Member Avatar for bleedi

Hi, I've been searching all the internet for an answer for my problem, but none of the sites I've stumbled upon haven't given any results. So, I have a JList, held inside JSCrollPane, held inside JPanel inside JFrame. I have a MySQL database, and another block of code retrieves stuff …

Member Avatar for markzenz
0
2K
Member Avatar for bleedi

Hey there, I've got a small problem. I'm writing an UDP client-server system, and I wanted to use streams with UDP. I found [UDPOutputStream](http://www.java2s.com/Code/Java/Network-Protocol/UDPOutputStream.htm) source and pasted it into my project. Now, when I try to initialize it, it freezes. This is how I try to initialize it: outStream = …

Member Avatar for bleedi
0
274
Member Avatar for bleedi

Hi guys and gals, I'm writing a file parser, which reads "source code -ish" text from files. The text is usually in this kind of format: Module: { Submodule: { Property: Value ... } Submodule: { } } Module: { Property: Value } I've written a simple but hazardous reader …

Member Avatar for Ketsuekiame
0
636
Member Avatar for Cronicle8

Hmm, before the line '8', try to add something like this: Console.WriteLine("Bitmap format: " + bitmap.PixelFormat); ... and see what it tells you. Then, you should probably use the same pixel format on the error line. Also, on the side note, I don't think it's necessary to swap the RGBA …

Member Avatar for Cronicle8
0
293
Member Avatar for bleedi

Hiya! I have a function that creates 3D meshes procedurally from the given parameters. It creates a four-sided box, which is (for example) 1.0 wide, 1.0 high and 100.0 long. The box is then subdivided into multiple parts, so if the aforementioned box is subdivided to three parts, it will …

Member Avatar for Momerath
0
252
Member Avatar for Freedom*

The getters and setters are only for the variables. If you want to create an object, you always need a constructor. As with the arrays, what is it you want to achieve? If you are having trouble with understanding the principles of arrays, I suggest you to read through your …

Member Avatar for Mike Askew
0
125
Member Avatar for jrosh

Hmm, shouldn't it work if you copy the project folder, rename the folder (but not the project files) and then add it as an existing project? You should be able to do this and rename the newly-added project afterwards.

Member Avatar for bleedi
0
98
Member Avatar for bleedi

Hey guys! I've got a small problem that I can't figure out. I have 2D arrays of arbitrary sizes, and they contain different characters representing different stuff (like 'a', 'b', 'c' etc.). Now, the problem is, I need to find horizontal and vertical lines of same characters and make new …

Member Avatar for bleedi
0
376
Member Avatar for Cenchrus

It may take a while before your app gets on "the shelves", so wait for it for a moment. Also, you should directly contact Google if you're having problems with Android Market, they've developed the system so they can probably help you better. :)

Member Avatar for bleedi
0
129
Member Avatar for bleedi

Hey, I'm developing a processor-intensive app for Android, which includes nested loops. The development process is still going on, but I'm already trying to find ways to optimize the performance. And I need tips and tricks for it. :) Mainly I've been changing all the for-loops from (int i = …

Member Avatar for bleedi
0
228
Member Avatar for bleedi

Hiya, I wasn't really sure if this goes under Java or Game Development forums, so I decided to post it here. I'm making a simple "Scrabble" game, which checks letters placed on the table and tries to find if they form proper nouns. I have a list of words, and …

Member Avatar for bleedi
0
206
Member Avatar for bleedi

Hey, I'm working on a project where we have to stream files from a server app to clients. I have it all working nicely, but we have a special client type that cannot save files to HDD, not even temporarily. I can get the byte stream from server to this …

Member Avatar for CsharpChico
0
737
Member Avatar for bleedi

Hiya, I've got a small problem. I have an interface called "event", which represents a networking event. I have classes implementing this interface. Now, when my server app receives a new event, it checks the class of the event and acts accordingly. This works nicely when the implementing classes are …

Member Avatar for bleedi
0
161
Member Avatar for bleedi

Hi, I was programming with POSIX threads and I was using semaphores. All of a sudden the program didn't work anymore, and I started searching for the problem. It turns out that my first semaphore command "sem_open()" causes the problem. It returns value "0", or "SEM_FAILED", and sets errno to …

Member Avatar for bleedi
0
145
Member Avatar for bleedi

Hey, I have a bit of a problem. I have a class that uses C libraries to make a TCP connection, which is accomplished with the connect() function. Now, I'd like to use this class in a Qt program and make it inherit QObject. The problem is, since I need …

Member Avatar for jonsca
0
236
Member Avatar for bleedi

Hi, I have a little bit of a problem with my client / server apps. I'm trying to build a simple program that resembles a small instant messaging app. So far I've been working on the "user login" and "status change" parts, along with a query to get the status …

Member Avatar for nezachem
0
209
Member Avatar for bleedi

Hey, I'm trying to get a random number for a small game which lights up random lights. I can't figure out a way to get the number random. I've tried seeding the Random() function with current time, but it's not working. It always lights up the third light. Here's my …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for bleedi

Hey, I'm trying to compile a simple producer-consumer program with Qt, using QThreads. I get this error message when trying to compile: [CODE] In file included from /usr/include/qt4/QtCore/QThread:1, from producer.h:4, from mainwindow.cpp:3: /usr/include/qt4/QtCore/qobject.h: In copy constructor ‘QThread::QThread(const QThread&)’: /usr/include/qt4/QtCore/qobject.h:309: error: ‘QObject::QObject(const QObject&)’ is private /usr/include/qt4/QtCore/qthread.h:60: error: within this context In …

Member Avatar for bleedi
0
235
Member Avatar for bleedi

Hi, I'm having a problem with my C code. I have a program that fork()'s a child process. The child process waits a time period defined by command line parameter, then alarms the parent process. Now, the program has to handle SIGUSR1 and SIGUSR2 signals too. The first one should …

0
146
Member Avatar for bleedi

Hey, I've been trying to search for a nice, easy-to-read material about signals in C. So far I haven't found anything that could get through my gray brain mass. My university's material gives only a small surface scratch to the topic, and internetz hasn't been able to tell me much …

Member Avatar for Narue
0
106
Member Avatar for bleedi

EDIT: I found the solution already. I had to malloc() memory for rec_msg. :) Hi, I've got a little problem with my (unix) C program. I'm trying to make a HTTP request to fetch a page from a site. I can resolve the IP, make a socket, connect and send …

0
504
Member Avatar for bleedi

Hey, I have a problem in my database. I have these two tables: [CODE] Table "File": +----------+--------------+-----+----------------+ | Field | Type | Key | Extra | +----------+--------------+-----+----------------+ | idFile | int(11) | PRI | auto_increment | | path | varchar(255) | | | +----------+--------------+-----+----------------+ Table "Media": +----------+--------------+-----+----------------+ | Field | …

Member Avatar for bleedi
0
119
Member Avatar for Xeros606

[QUOTE=jon.kiparsky;1396787]You could put the initialization in the constructor for an abstract class, and hope they call super(). What about declaring a static final in the parent class? Would that do it?[/QUOTE] That indeed does the job, but it's final, so it can't be altered afterwards. Therefore it's not that useful …

Member Avatar for apines
0
110
Member Avatar for bleedi

Hi! I'm building a program which connects to a MySQL server. The program saves the server passwords in SHA format. There's one class responsible for converting and checking the passwords, and another one for DB connection. Now, when the user starts the program, (s)he types in the username and password. …

Member Avatar for bleedi
0
1K
Member Avatar for bleedi

Hey! I've got a SELECT query which fetches rows based on a search string using LIKE command. I was wondering, how could I make it to skip "The " from the beginning of the value? For example, I have TV series listed in the database, like "Futurama", "The Office", "The …

Member Avatar for d5e5
0
182
Member Avatar for bleedi

Hey, I was just wondering about searching a binary tree for the smallest / the largest value. Normally, the smallest is found by following the left branch until the last leaf is found. But what if we have a non-optimizing tree like this (8 being the root): 8 - 10 …

Member Avatar for Momerath
0
173
Member Avatar for effizy

You should google around some basic programming topics, or go to your local library or university's library to get some general programming books. [url]www.cplusplus.com[/url] has lots of reference material to check when you're in doubt with a specific part of your code, for example, loops. After starting to get the …

Member Avatar for Jackk123
0
138
Member Avatar for bleedi

Hey, I've got a bit of a problem: [CODE] vector<BaseClass*> stuffvector; BaseClass* temp = new DerivedClass(par_a, par_b); stuffvector.push_back(temp); delete temp; [/CODE] This causes the program to crash. I have virtual destructor, so the DerivedClass's destructor should be called just fine. Does it have something to do with the vector? 'Cause …

Member Avatar for mrnutty
0
132
Member Avatar for effizy

There's quite a few problems there. [CODE] int count, score; float average=0.0; count=0 int numTimesNeeded = []; int total=0; while ( count < numTimesNeeded ) [/CODE] These shouldn't be outside main(). Every line of code should end with ';', and - as you might notice - the line with "count=0" …

Member Avatar for bleedi
0
113
Member Avatar for bleedi

So, here's my problem: I have a superclass: [CODE] Class SuperClass { virtual someMethod() = 0; } [/CODE] ... and then I have multiple classes that inherit SuperClass. Now, if I want to put objects made from the subclasses to a single vector<SuperClass>, how could I get the abstract function …

Member Avatar for bleedi
0
438
Member Avatar for bleedi

Hey! I was writing my code, and just became wondering if I get a memory leak here. The program has a function which checks and creates a "Time" object, which simply includes integer values for hours and minutes. It returns the Time-object created to the main code. The thing is, …

Member Avatar for bleedi
0
186
Member Avatar for bleedi

Hey! Again, small but devious problem for me: I have a string that gets time as an input, in a format like "9.45" or "15.37". How do I extract the hours and minutes to integer variables, when the hour part may consist of either one or two digits? If it …

Member Avatar for bleedi
0
140
Member Avatar for bleedi

Hey! I've got a little problem I have no idea where to begin with. I've got a string and I need to check the insides of it. The string should be formatted like <letter><number>, for example "A1" or "F4". The letters can only be from A to F and numbers …

Member Avatar for Ancient Dragon
0
135
Member Avatar for bleedi

Hey! I'm starting my introductory C++ course exercise work, and I'm in a bit of a trouble trying to figure out the class structure. The idea of the program is to find out the quickest way possible from a bus stop to the destination bus stop. There's six bus lines …

Member Avatar for bleedi
0
91
Member Avatar for bleedi

Hey again! I ran into a new problem in my university course exercises. Basically, I'm trying to read things from a .txt file. Every line is supposed to get converted into an object called "Client", and lines are formatted like this: <account:int> <firstName:string> <lastName:string> <balance:double> I have written my own …

Member Avatar for mrnutty
0
256
Member Avatar for bleedi

Hi, I'm studying C++ at the university and came across a problem in my exercises. Basically I'm trying to retrieve an integer from an object via its getter method. The object is stored in a vector. Here's the main.cpp part: [CODE] vector<Client> vektori; ... vektori.push_back(Client(account, firstName, lastName, balance)); ... vector<Client>::const_iterator …

Member Avatar for bleedi
1
183

The End.