Zeta's Posts
Nairaland Forum › Zeta's Profile › Zeta's Posts
Hi, everybody, I created JSSE application that uses a serializable class named StoryNode. This ‘StoryNode’ class needs only the java.io.* import statement. The class that uses this ‘StoryNode’ class has a Vector object that holds the the ‘StoryNode’ objects. This Vector object is serialized to a file(with a .str file extension) which another Android application I wrote can read. So I copy this file to the assets directory of my android project. I can get an Inputstream to the file from within an Activity class with the following code: InputStream in = getAssets().open("astorytree.str" ; But there’s a problem. In the android application when I try to deserialized the inputstream to a Vector object an exception is thrown saying: java.lang.ClassNotFoundException: StoryNode Within my android project I have already defined the StoryNode class, so I don’t understand why the StoryNode class can’t be found. Even though android uses the Dalvik virtual machine, its still the JVM that’s there(I think) so I don’t know if there is some incompatibility with a class defined using pure J2SE and the very same class defined in an android project. Thanks in advance. |
Thanks for sharing. Too bad I don't have any mobile app at the moment for the competition. I try thinking of something. |
Cool. This would be really beneficial to those with good enough ideas and are ready to code it. Until I become good at web app programming, I think I'll wait a while to find out more about this. Pitch Monday is also a good one for getting startup funding, from what I've seen on www.codenigeria.com |
I've tried downloading the 'Java Desktop Integration Components' library with no success. How do I get it and any complete tutorials on it? Thanks. |
My mobile is 07037122181. My email address is efeariaroo@gmail.com |
I'll check it out. I'm interested in animation, but I don't draw very well. What I mean is I can't draw from my mind. I can draw simple drawings if I can see it. Do you think I'm doomed, for wanting to learn animation, cos I lack some artistic/creative talent? I tried learning how to use Blender, but I guess I was in a hurry because I never created anything cool with it. It so destroyed my morale I haven't quite recovered. |
The kind of reader I had in mind should be something like Adobe reader, but without all those unnecessary stuff that nobody uses. The reader I had in mind will simply provide a convenient means to view the story tree, click on a node, and see the page displayed(possibly hide the story tree when a user is reading the text at a node). There should also be previous page, next page, and page jump functionality. The text on a page should be big enough for anyone to read, so there'll be no need for all that zoom in, zoom out crap. I think that's enough. What I had in mind should look something like the image I attached suggests. Any way I can help let me know.
|
http://www.4shared.com/file/2Be2b8d2/StoryTreeWriterRealInstaller.html I hope this installer has no problems. |
Sorry. I don't have a .dmg image. I got some complaints about the .exe I created. I've been working on the program on my computer alone and in the run down village where I'm at I can't test the program on another system. I think I should have just stuck with the program being a .jar. I'll upload another version of the installer program and post the link here, but this time the program will be with a java archive. This would be a great way to test Java's so called 'platform independence' if someone ran my program on a mac or linux machine. Sorry for giving anyone any inconvenience. |
I don't know what a dmg image is? |
Hi, fellas. I just created a free program which makes it possible to create what I call 'Story trees'. Story Trees are stories that don't have to have just one ending. Short-story writers, novelists and such will find this program invaluable. This program would make it possible for writers to push their imaginations, to provide several plausible possibilities to the same situation of a character. In the end, story trees give human readers a more enjoyable reading experience cos they get to follow a character all over again through some other path in the story tree. StoryTree documents are saved with a .str file extension, but inside them is just plain xml. The xml simply holds info about the coordinates of parts of the story and the coordinates of the branches, and also the text assigned to each part of the story. I need someone(s) to program a standard reader(not too complex, though) for this writer program(I found it a bit difficult to do myself, okay I'll confess, the reader I wrote is just too lame to make public.) and post the link to download the reader here for checking out. I used IzPack to make the Java installer for the Writer program, then used Launch4j to make the installer a .exe. I know a lot of people don't have the java runtime environment already installed in their computers so I went the extra mile to make it easy for non-programmers to use. The link to the StoryTreeWriter installer is http://www.4shared.com/file/7tOLL0a_/StoryTreeExeInstaller.html , it also includes the source code(I wasn't kidding when I said this program is free). Try out the program and any comments or problems you encounter(my code wasn't too commented so I expect some bewilderment) can be posted here. Lets make story-trees a reality. Let something good come out of Nigeria. My emails are efeariaroo4real@yahoo.com and efeariaroo@gmail.com. My phone number is +2347037122181.
|
thanks, to everyone who used the program. I really appreciate it and the replies. thanks again. Maybe someone could create a thread where people can post links to the mischievous programs they've written. Just a thought. |
So I'm I. |
Hi. I'm trying to write an applet which would have a JTextArea where text can be pasted from the clipboard. I've done this in a Java application using a popup menu, but what I did doesn't seem to work for applets. I did some research through google and it seems the applet has to be signed with the added pemissions for cut, copy and past capability to work. So, here is my question(s). Can anyone please provide an easy way for me to sign the applet and also an easy way for a potential user to use the signed applet if it is served to a browser by a server? Or possibly provide another means for me to get cut, copy and paste capability. Many thanks. |
Try downloading Java I/O by Elliote Rusty Harold. Go to chapter 25, titled 'Bluetooth' in part 7, titled, 'Devices.' I didn't get the book by downloading it, so if you have a hard time downloading the book, I'll just have to copy that chapter for you. Just one other thing, I used other books for Java bluetooth programming, because my mind was set on bluetooth between phones, but the book I just recommended targets Java bluetooth programming between Laptops and other bluetooth enabled devices, and from what I remember there wasn't much difference in what you have to code. The major difference I think is that mobile phones already come with the bluetooth implementation, while for laptops you have to download the right jar files to include in your classpath and in some implementations, in your code you have to do some sort of one-time initialization that is absent for mobile phone bluetooth programming. Remember this even though you may not understand it: Bluetooth programming can be done in several ways. Choose the Serial Port Profile/RFCOMM way, instead of the Generic Object Exchange Profile (GOEP)/Obex way. |
http://www.4shared.com/file/x1EfPtPW/Word_Fight.html The link above will point you to a program for mobile phones. Get two phones and put the program in them. Run the program on both phones(the program won't work properly on blackberries, though it will run ). One of the phones has to wait for a connection, while the other has to connect to the other(you'll see this when you run the program). I wrote this program when I was learning how to do bluetooth programming in Java about three months ago. I am putting this program here so that you can see bluetooth at work for doing more than just file transfers. The program may not seem interesting, but it was for me back then. I wanted to use the experience gained from writing this program to develop a cool bluetooth game, but what I had in mind at the time was a bit too difficult for me. Maybe I'll give it a second try. |
Think of it this way: There are three pieces to your puzzle. First piece: You have to write a program that makes your laptop able to send encoded data via bluetooth that essentially means the directions move left, move right, stop, slow down. For example, if there are four possible motions of car, the string "1|0|0|0", could mean 'move left,' while the string "0|1|0|0", could then mean 'move right'. You get the point. Second piece : You have to have a functional bluetooth device in your car that can be turned on or off. You must know the bluetooth address of the bluetooth device or its friendly name for bluetooth data sending can occur between your laptop and the bluetooth device of the car. Third piece: There has to be a program in some processor-chip in the car. This chip must be connected to the bluetooth device and also the mechanical parts of the car. This program running on this chip would have to decode the encoded data that the bluetooth device received, process the data(in our case the string) and then pass the right instruction to the mechanical parts of the toy car. I think for this last piece some embedded programming may be needed, as pointed out by the last guy. I hope I was clear enough. |
You guys know what I meant. I meant the word, 'nakeaaed'. |
Why should the word, 'unclothed' be banned? |
Hi. I know Java bluetooth programming, but only for mobile phones. I wrote a program, called 'Whisper' that allows two students in a class to chat free of charge using just bluetooth. It's not difficult to know. You just have to get the knowledge into your head. Bluetooth has a maximum range of just 10m. How beneficial would making a toy car move ten metres? Ok. I would like that when I'm feeling down and just want to amuse myself. If you are thinking of doing what you intend with Java it would be possible 1. if the toy has bluetooth, 2. if the toy has a kind of JVM installed in its chips, kind of like when a Nokia phone automatically comes with a JVM(to be more precise, its called a KVM for mobile devices), 3. and if you understand how the toy connects input instructions to its mechanical parts. Checking the manufacturer's technical manual or website should be your first attempt at this step. If all these are satisfied, then all you need are good and easy to understand Java bluetooth books(they are free online, maybe not as easy to find) to study up how bluetooth communication works in the Java world. You would also have to download the JSR82 implementation for desktop pcs, though and fix the jar file into your classpath. Hope this helps. |
Its not like I had all that free time. If I were to count the actual number of hours I spent coding the program I don't think it'll be more than a day(the program is about 450 lines of code), though coding it did spread over several days. The idea for the program came months ago, just after I finished school, when a question popped into my head . . . if several men and women were faced back, could I tell who was male and who female? Initially, when I wanted to write the program I didn't have the images to use. I tried searching for unclothed images of butts on google, but google thought I was looking for indecency, so I let the idea rest. About a month ago I got a picture from my sister which had 7 models facing backwards, butt unclothed. My mind immediately told me that was what i was looking for. And that's how GODS became a reality. fyi: Nairaland edited my reply(indecency isn't what I wrote and unclothed isn't what I wrote either) . . . I don't like this feature. |
I coined the name GODS from the phrase 'Gay Or Damn Straight' You must have seen it when the program started . . . I'm glad to know its appreciated. Thanks guys for your honest replies. |
You can download the program at http://www.4shared.com/file/Lav2vxyS/GODS.html Simply extract the file(its just about 500kb) and double click the html file you get from the extraction. I would like to know what you guys think about the program. Enjoy. |
Java. There are free books on the web. I recommend the Java book by Professor David J. Eck. For beginning Java programming please don't read 'How to program, by Deitel, Deitel" |
It appears you are a bit confused about these technologies. Cisco is out of it, but then again cisco is not a programming language. Cisco offers certifications like CCNA, CCIE, CCNP etc, that make you proficient in network configuration and administration and stuff like that. Oracle has to do with Databases . . . software engines that make it possible to store large amounts of data for applications(whether web or desktop applications) to access. Oracle offers certifications too. Software development can be in any form whether for the web(things like facebook), the desktop(things like windows media player), mobile(things like games on phones). All these are softwares and in other to make any of them you need to know a programming language and write code in that language into something like notepad. My best bet for making money from your room(i.e being independent) is using Java to write mobile applications which you can upload to the App stores of the device's manufacturer you were writing the application for. For example, Android, iPhone and BlackBerry have App stores where developers can upload applications in a 70/30 percent kinda fashion. You get to specify how much a potential person would have to pay for your app. But beware, you've got to do a lot of study and write lots of code to become good enough to write an application that is really useful and really good for someone to pay you for. Goodluck. |
If you are just a php programmer then I think you've got a long way to go. Like one of the others said you need to know Java, but the thing is Java comes in three forms, Java SE, Java EE(Web applications programming), and Java ME. Java ME(Micro Edition for mobile devices) is what you want to know, but you can't know that without knowing the foundation which is in Java SE(Standard Edition for desktops). After you are done studying and writing little desktop programs you need to download the Java ME 3.0 Platform SDK(its got an emulator, text editor and all you need for mobile applications development for CLDC, CDC and MIDP devices). Its free on the Sun, excuse me oracle website, java.sun.com. After you done playing around with this SDK you should now have enough confidence to get the SDK from Nokia(this has more specific APIs for just Noka phones). Goodluck. |
he met a girl, named Yemi, at his school, who told him they could make a lot of money together if they |
Thanks so much. Just like you said, that last link was exactly what I needed. What I'll do now is to understand the code, then create a simple GUI for it, and to add an alarm sound. My work is about fifty percent complete. Thanks again. |
@kanirip Hey there. I was able to create an image from the webcam(and even saved it to a jpg file), but I did it using the Java Media Framework. I've already written a program that those some pixel comparison, but the motion detector still fails. Could you suggest an algorithm to use to get this motion detector program done? Thanks for all your help. |
I didn't know that there were still a few people who dream. I thought everyone was so obsessed with reality. You hear parents and friends say things like 'Stop building castles in the air' . I say, why not? How else could two brothers decide to build an airplane? What do they think Einstein was doing when he was doing thought experiments? He was dreaming. A habit I highly recommend to everyone. Einstein once said 'Imagination is everything. It is a preview of life's coming attractions.' |
;