JPHiP Forum

General => Akihabara => Topic started by: Amplifier on December 09, 2009, 12:16:47 PM

Title: Programmer Central
Post by: Amplifier on December 09, 2009, 12:16:47 PM
Quote
A programming language is an artificial language designed to express computations that can be performed by a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine, to express algorithms precisely, or as a mode of human communication.

Java:
- Java Resources:

---

General Resources:
Programming Language (Wikipedia) (http://en.wikipedia.org/wiki/Programming_language)
 - Programming Language Comparison (Wikipedia) (http://en.wikipedia.org/wiki/Comparison_of_programming_languages)
 - Timeline of programming languages (Wikipedia) (http://en.wikipedia.org/wiki/Timeline_of_programming_languages)
TIOBE Language Usage Ranking (http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html)

--

I know a couple of my fellow H!Psters also program, either for fun, school, or work. I took a year of VB6, then three years of Java, in high school. I work up little programs here and there (usually never bothering to finish). Most recently, I worked up and IRC bot, that hangs out in #jph!p/#jph!p-trivia frequently. I've tried teaching myself C++ in the past year, but without proper motivation I'm finding it hard to switch from Java now (and I've completely forgotten any of the VB).

basic starter thread, will expand this post in the future fufufu~

ITT: Discussion about languages, concepts, and for ideas/projects/screencaps/releases - GO
Title: Re: Programmer Central
Post by: Amplifier on December 09, 2009, 12:24:52 PM
So, most recently I started working on an audio transcoder/tagger. Everything is in Java, save for the calls to various encoder/decoders. I'm shamelessly yanking ideas from foobar2000 for GUI ideas. Anyway, it supports 8 audio formats currently (APE, FLAC, VORBIS, MP3, TAK, TTA, WAVPACK, WAV, and OptimFROG). It has a fair number of options available for each encoder, and allows for manual adjustment of the options. There's a tagger/information displayer built in. Working on adding mass-tagging now. I added a fancy pants L&F this morning. Still have some bugs in the existing GUI, but nothing program-breaking. Hoping to smooth those out, add in some more features for each audio encoder, and expand the tagging capabilities.

(http://img687.imageshack.us/img687/3074/ampcodermainwinoder.th.png) (http://img687.imageshack.us/i/ampcodermainwinoder.png/)(http://img187.imageshack.us/img187/8263/ampcodertypes.th.png) (http://img187.imageshack.us/i/ampcodertypes.png/)(http://img16.imageshack.us/img16/6726/ampcoderafterconversion.th.png) (http://img16.imageshack.us/i/ampcoderafterconversion.png/)
(http://img16.imageshack.us/img16/9713/ampcodertaggingwindow.th.png) (http://img16.imageshack.us/i/ampcodertaggingwindow.png/)(http://img687.imageshack.us/img687/4981/ampcoderpropwindow.th.png) (http://img687.imageshack.us/i/ampcoderpropwindow.png/)
Title: Re: Programmer Central
Post by: sh15uya on December 09, 2009, 01:21:48 PM
^ nice project  :thumbsup

Delphi (pascal) programmer here since 5 years.
Will probably/want to migrate to Business Object.
Addicted to php too (ok ok it's a language script)
totally forgot what I've learnt about VB, Java ( I've reinstalled NetBeans tho \o/ ) and C ...
tried Android but I hate Eclipse ...

let's share a little software I've made 4 years ago : RainbowPost (http://www.mediafire.com/?gjj2myd2jnn) | 1.17MB | .exe | Delphi
XD

Title: Re: Programmer Central
Post by: Stryfe on December 09, 2009, 04:56:05 PM
GEEKS!  8)

I am a seventh degree pink belt in C/C++/Java and all that SQL shit.

Was a coder working on some accounting software (C++) and it was the most boring shit ever. I recommend it to my worst enemies.

Lately mostly been coding web shit on PHP. Bunch of the forum features here (some of which actually work) are stuff I've pulled out of my ass and glued into place.
Title: Re: Programmer Central
Post by: Tuffty on December 09, 2009, 07:12:40 PM
Currently working on a multiple choize quiz using PHP/MySQL. You may think it doesn't sound so technically demanding, but the system needs to automatically generate questions on the fly. So if a question template is used e.g. Which film stars ____? Then the system goes to the database and retrieves an actor name and then a series of random answers, obviously obtaining the correct one.

Right now the initial prototype works just like any other PHP quiz you find online, but I'm obviously looking to build upon it.

(http://img34.imagevenue.com/loc171/th_82772_prototype_122_171lo.jpg) (http://img34.imagevenue.com/img.php?image=82772_prototype_122_171lo.jpg)
     
Title: Re: Programmer Central
Post by: Amplifier on December 10, 2009, 02:03:35 PM
let's share a little software I've made 4 years ago : RainbowPost (http://www.mediafire.com/?gjj2myd2jnn) | 1.17MB | .exe | Delphi
XD
good stuff, shibuya!

--

On another note, think it's time to get some feedback/abuse on my project:
Ampcoder beta 1 (http://www.mediafire.com/?dwzzjmnij0o)
Contains a folder zipped, with some more folders and a million files. Size is large because of the encoders/decoders. Double click the Ampcoder.jar, and the program should start. If not, there's either a bug, or you need to update to the latest version of Java (http://www.java.com/en/download/index.jsp).
- First, you can select which encoder to use. You can hand tweak the options in the text field right below that. Make sure there is something there before you try to encode, or it won't work (you'll see). It's pretty straightforward I'd like to think. If you right-click on a file in your input/output column, you can then change the tags (if the file is supported -- also, you have to left-click on it first (haven't fixed that yet)).
- I've since added user options for changing the Java L&L (skin), setting a default encode-to path, fixed some problems with encoding options. Musepack support is now added. I'm working on adding AAC, too. Unfortunately, the library I'm using to tag files is limited in its support, so I'm trying to find more resources now. I also added a menu option that links users to the HydrogenAudio wiki, with information for the support codecs. The source is included, but a fucking mess. I haven't bothered to clean up shit no longer in use, or smooth out overly complicated shit yet.
Anyway, please test it, break it, report back! :sweatdrop:
lol, first time ever posting a project of mine anywhere
Title: Re: Programmer Central
Post by: maliciel on December 10, 2009, 07:04:01 PM
Gone over this in IRC, but might as well pad my postcount.

Progress bar doesn't work
Tagging is unintuitive initially (possibly a button would help?)
DIR tree for batch encoding
ABR switch for LAME
Warning for encoding lossy > lossless; lossy > lossy
Clean up the jars!
Better tooltips/Buttons (fucking X deleted all my Q'ed jobs!)

Summing it up: 7/10; will use again.
Title: Re: Programmer Central
Post by: RoyMoy on December 11, 2009, 03:27:58 AM

Was a coder working on some accounting software (C++) and it was the most boring shit ever. I recommend it to my worst enemies.


Were you working for intuit? (you don't have to tell us if you are not allowed to, NDA's and all that.  :P). If so, what tactics did you use to preserve your sanity? I'd buy shares of AAPL (Apple inc) just so I can try voting Bill Campbell off their board of directors.  :thumbdown:
Title: Re: Programmer Central
Post by: Stryfe on December 11, 2009, 04:01:26 PM
No I wasn't. And quitting the job helped with the sanity problem.
Title: Re: Programmer Central
Post by: sh15uya on December 11, 2009, 04:27:42 PM
On another note, think it's time to get some feedback/abuse on my project:
Ampcoder beta 1 (http://www.mediafire.com/?dwzzjmnij0o)
Contains a folder zipped, with some more folders and a million files. Size is large because of the encoders/decoders. Double click the Ampcoder.jar, and the program should start. If not, there's either a bug, or you need to update to the latest version of Java (http://www.java.com/en/download/index.jsp).
- First, you can select which encoder to use. You can hand tweak the options in the text field right below that. Make sure there is something there before you try to encode, or it won't work (you'll see). It's pretty straightforward I'd like to think. If you right-click on a file in your input/output column, you can then change the tags (if the file is supported -- also, you have to left-click on it first (haven't fixed that yet)).
- I've since added user options for changing the Java L&L (skin), setting a default encode-to path, fixed some problems with encoding options. Musepack support is now added. I'm working on adding AAC, too. Unfortunately, the library I'm using to tag files is limited in its support, so I'm trying to find more resources now. I also added a menu option that links users to the HydrogenAudio wiki, with information for the support codecs. The source is included, but a fucking mess. I haven't bothered to clean up shit no longer in use, or smooth out overly complicated shit yet.
Anyway, please test it, break it, report back! :sweatdrop:
lol, first time ever posting a project of mine anywhere

nice job,
a file drop would have been cool ^^
what maliciel said (I would add "correctly" to the 1st point lol)
and something I hate in java ; how the window are resized  x_x

but I use dBpoweramp because of the contextual menu integration :/ (got the same results tho).


Title: Re: Programmer Central
Post by: ChrNo on December 12, 2009, 12:06:49 AM
I'm a 1st year student of a Master degree in computer science, and i just finished working on a school project which is a multi-player tank action game implemented in Java and using RMI (http://java.sun.com/javase/technologies/core/basic/rmi/index.jsp) protocol.

(http://i84.photobucket.com/albums/k37/ChruNo/TankAttack.jpg)

Didn't really had the time to complete the design, but the objective was to make it work on our school computer network so i guess it's ok :p

TankAttack (http://www.mediafire.com/?myrzmzjdnri) contains the .jar of the server and the client, and a policy file

to launch the server :

on a terminal or cmd
java -jar -Djava.security.policy=java.policy -Djava.security.manager ServerTankAttack.jar

to launch the client just doucle click on it
enter the host name of the server (if you launch both server and client on the same computer just click connect it should work, or try localhost)

then you can create a game, and join it (select default if you want the same settings from the pic)
alone should work too, you can kill yourself haha but you could also launch another client and test the game...

How to play :

- left/right/up/down arrows to move
- space to fire
- close the window to disconnect


- the game can only be created one time, if you want other settings just close the server and launch another one
- when everybody is disconnected the game battlefield is reset, so there are other random obstacles and land mines
- some obstacles can be destroyed by the bullets, those ones also block the tank, the others where supposed to be some nice decorations. when one obstacle is destroyed, some random ones appears on the battlefield.
- when a player join a game, it appears on one of the corner, which is its headquarter. that's why only 4 players can join the game.
- when you lose or win, close the window and launch a new one if you want to join the game again (if you are the winner then the battlefield should be reset after)


Rules :
- the last player on the battlefield is the winner, if at least one player has been declared loser before he disconnects
- one player have 3 lives (which means 3 tanks), one tank has 5 health points and 20 bullets. a tank can protect itself by going in his headquarter. this one has 200 health points
- a bullet does 1 point of damage
- a land mine does 2 points of damage

i guess i didn't forget anything...mmm...well have fun !



Title: Re: Programmer Central
Post by: orac on December 12, 2009, 12:57:37 AM
^
Nice, I saw a tank game before in java, but, it was all automated after the tank was programmed, believe its called robocode (http://robocode.sourceforge.net/ (http://robocode.sourceforge.net/)).

Sad to say, the only programming language I'm any good at atm is Assembler, but, need to work on learning C at some point.
Title: Re: Programmer Central
Post by: Amplifier on December 12, 2009, 09:44:46 PM
^ Looks kinda cool ChrNo, I'll check it out then :yep:

Quote
Progress bar doesn't work
Tagging is unintuitive initially (possibly a button would help?)
DIR tree for batch encoding
ABR switch for LAME
Warning for encoding lossy > lossless; lossy > lossy
Clean up the jars!
Better tooltips/Buttons (fucking X deleted all my Q'ed jobs!)
a file drop would have been cool ^^
- Didnt fix the progress bar yet, that's near the bottom of my list (sorry :doh:)
- Not only did I make tagging easier, but it supports almost every audio type you can throw at it, custom tags, mass-tagging, etc!
- No dir tree yet
- ABR switch added
- Warning when encoding from lossy > anything, with a further option to turn those warnings off
- Messy, sorry mate
- Added a button that will only remove files that are transcoded successfully.
- Drag and drop sounds like a great idea, I'm going to add that soon

Ampcoder beta 2 (http://www.mediafire.com/?y1dft5mnmbz)
Again, 'Ampcoder.jar" will start you off. You now double click on a file to edit the tags. If you highlight files in a given column, then click masstagger through the menu bar at top, you can.. masstag those files. Support in masstagger is current: remove all tags, auto track number, and set value (and field, to any value). Display of tags is more robust, supporting more than just the standard tags. When viewing the tags for a single file, you can right-click, to add a single custom tag to that file. Enjoy! :thumbup
Title: Re: Programmer Central
Post by: Stryfe on December 14, 2009, 02:25:38 PM
(http://imgs.xkcd.com/comics/academia_vs_business.png)
Title: Re: Programmer Central
Post by: Amplifier on December 14, 2009, 04:42:25 PM
Ampcoder beta 4!! (http://www.mediafire.com/?d4uuygirldj)
(http://img96.imageshack.us/img96/3517/masstagger.th.png) (http://img96.imageshack.us/i/masstagger.png/)(http://img96.imageshack.us/img96/3940/laexampleplusmasstagger.th.png) (http://img96.imageshack.us/i/laexampleplusmasstagger.png/)


So:
- Progress bar is now working properly (I think :sweatdrop:)
- Added support for LA format
- Added some keyboard action to the masstagger 'Set Field': Up/Down to change the field without having to deselect the value-textfield. Also, pressing Enter will add+close that window now, and added a Add&Close button.
- Believe I fixed all encoder/decoder issues
- Added more links in the menubar

LEMME KNOW :jerk:
Title: Re: Programmer Central
Post by: sh15uya on January 20, 2010, 10:51:45 AM
^
just saw your post sorry xD will test it asap


----------

 :panic:
Quote
If Oracle buys MySQL as part of Sun, database customers will pay the bill.

In April 2009, Oracle announced that it had agreed to acquire Sun. Since Sun had acquired MySQL the previous year, this would mean that Oracle, the market leader for closed source databases, would get to own MySQL, the most popular open source database.
:panic: http://www.helpmysql.org/en/theissue/customerspaythebill (http://www.helpmysql.org/en/theissue/customerspaythebill)  :panic:
Title: Re: Programmer Central
Post by: sh15uya on January 20, 2010, 11:35:16 AM
@Amp.

nice evol. ^^

BUT!

(http://i176.photobucket.com/albums/w179/sh15uy4/th_ampc1.jpg) (http://i176.photobucket.com/albums/w179/sh15uy4/ampc1.jpg)

got a trouble with unicode :lol:
then a "lame.exe stopped blablabla" windows error msg popped up but, once validated, the encode continues (flac to mp3)

the progress bar is ok except the decimal part (see pic) xD a trunc/round/2 dec. format would be nice
And since 2 of my tracks has not been encoded, the progress bar stopped at 81%, maybe a "100% with errors" would be better ?

will play with tags later :3
Title: Re: Programmer Central
Post by: Amplifier on January 25, 2010, 03:10:49 AM
@Amp.

nice evol. ^^

BUT!

(http://i176.photobucket.com/albums/w179/sh15uy4/th_ampc1.jpg) (http://i176.photobucket.com/albums/w179/sh15uy4/ampc1.jpg)

got a trouble with unicode :lol:
then a "lame.exe stopped blablabla" windows error msg popped up but, once validated, the encode continues (flac to mp3)

the progress bar is ok except the decimal part (see pic) xD a trunc/round/2 dec. format would be nice
And since 2 of my tracks has not been encoded, the progress bar stopped at 81%, maybe a "100% with errors" would be better ?

will play with tags later :3


Been a few long weeks since I worked on it last. I think I had fixed the decimal thing at the very least. Could you tell me the file names for the songs that had troubles converting?

Also, I see "F:\\" - did you put in the extra \, or did my program? And did it cause any problems?

Have to get my business set back up, since upgrading from XP to 7.
Title: Re: Programmer Central
Post by: sh15uya on January 25, 2010, 08:24:45 PM
^
(http://i176.photobucket.com/albums/w179/sh15uy4/th_unicodu.jpg) (http://s176.photobucket.com/albums/w179/sh15uy4/unicodu.jpg)

- the extra slash comes when I validate the search dir window... oh wait I think I got it; it only happens when I select a root drive !
- the filename was in japanese but I can give you this one : "01.中國話 (http://www.mediafire.com/?mtymzgzyeoo)" (the one in the pic; same prob while encoding)

and welcome to 7 ^.^
Title: Re: Programmer Central
Post by: maliciel on February 28, 2010, 02:52:26 AM
I actually coded a simple frame -> time app, for making chapters manually. It's pretty simple, and I got Amp to make a GUI for it. But since most of the final thing is his code, I figure he'll have to post it instead of me.

:lol:
Title: Re: Programmer Central
Post by: Amplifier on February 28, 2010, 10:40:21 PM
I actually coded a simple frame -> time app, for making chapters manually. It's pretty simple, and I got Amp to make a GUI for it. But since most of the final thing is his code, I figure he'll have to post it instead of me.

:lol:

POST IT!
Title: Re: Programmer Central
Post by: maliciel on March 01, 2010, 02:39:18 PM
http://www.mediafire.com/download.php?ohnzgnntzdy (http://www.mediafire.com/download.php?ohnzgnntzdy)

:lol:

Apparently it doesn't work if it's an exact second value, like 3000frames and 30.0fps. But that doesn't really happen all that much, so, it still works?! Roffles.
Title: Re: Programmer Central
Post by: atskv9 on March 06, 2010, 04:34:30 AM
Just used this little calc in my latest chapter creation. Thanks mal and amp! Seems like everything was accurate. I thought you fixed the 3000 frames issue?

One of these days I'll code my own so it will spit it out to a file. Yeah, that's a challenge! :tama-mad:
Title: Re: Programmer Central
Post by: Tuffty on March 16, 2010, 10:01:11 PM
I found out what I have to do next for my Advanced Databases coursework.

Make another online social site like Facebook :o

Has to be done using Oracle Apex and adopting an Object Orientated Database approach. Sounds like an interesting project sure, but considering how much else I have to do at the moment, it's just not ideal. Plus, my lecturer is terrible at giving out information that I have no idea where to start. Anyone have an idea of what they would expect from an application like this? I initially can think of storing a friends list, holding account information, a 'wall' that a user and their friends can input information too. Would setting privacy settings be even possible?

Man, just thinking about the structure it's going to have plus all the processes and formulas attached to it. :dizzy:
Title: Re: Programmer Central
Post by: maliciel on March 17, 2010, 04:22:31 PM
Just used this little calc in my latest chapter creation. Thanks mal and amp! Seems like everything was accurate. I thought you fixed the 3000 frames issue?

One of these days I'll code my own so it will spit it out to a file. Yeah, that's a challenge! :tama-mad:

Different issue. I dunno what's the current bug, and I forgot so much about Java I don't remember how to capture an exception. I suppose having file output isn't too hard, but I think there are far better chap-creation softwares out there.

Anyone have an idea of what they would expect from an application like this? I initially can think of storing a friends list, holding account information, a 'wall' that a user and their friends can input information too. Would setting privacy settings be even possible?

Seeing how it's a DB course I suppose they'd want to see a nice DB laid out to support whatever features you want to put in. Privacy settings don't seem too hard to implement, at least from a DB standpoint. I'm pretty bad at making it all look nice though, so don't take that from me. Lol.
Title: Re: Programmer Central
Post by: atskv9 on March 18, 2010, 07:00:27 AM
Different issue. I dunno what's the current bug, and I forgot so much about Java I don't remember how to capture an exception. I suppose having file output isn't too hard, but I think there are far better chap-creation softwares out there.
Wouldn't it be like a try-catch block. God, it's been so damn long I don't remember either. However, I was recently forced to remember some of my Java knowledge when working with C++. Anyway, you're right... there are a lot of better chapter creation softwares out there but the aim of these were more for having a random clip and being frame accurate rather than guessing a random time. I imagine there are ways to grab the frame number without using ffdshow's OSD, just as long as you're on the current frame. However I'm far too lazy to figure out how to do that and your frame calc already saves me some time so woot.
Title: Re: Programmer Central
Post by: Amplifier on March 18, 2010, 01:43:16 PM
Code: [Select]
try
{
     makeCool(JPHIP.Maliciel);
}
catch(MalicielException mex)
{
     System.exit(1);
}
Title: Re: Programmer Central
Post by: Tuffty on April 10, 2010, 11:33:29 PM
Wondering if I could brainstorm you guys for something?

Working on my web movie quiz here and the idea is to grant a registered user some permissions to add new movies to the database, which in turn expands the number of questions that can be generated when the quiz starts. Now entering in new movies is done by entering the details on a HTML form where PHP code behind it sends it off to a MYSQL database. In the form, I've grouped certain fields into a DDL, say for example, which actors/directors are associated with this movie and the list of information populating these DDL's are actor/directors that already exist in the database.

Now here's the problem, what if the user's entering a movie that has an entirely new actor not seen in the database before? I had thought of hiding a textbox and if the user clicks a button then it's visible and the user then types it in. But the thing I can't figure out is how to set the conditioning at the top that can recognise that on this instance, and for this field, the php should read the value from the textbox and not from the DDL? I tried a condition where if the button is pressed then it reads an entirely new 'INSERT INTO' querey but, it doesn't appear to be working, and I don't know if that's right anyway. :banghead:

Any suggestions would be much appreciated
Title: Re: Programmer Central
Post by: nachdenki on April 17, 2010, 06:47:57 AM
^ you could either just check if the textbox (for a new actor etc.) has some input and if so disregard the DDL and only insert that textbox content into the actor table or let them open a popup, adding the actor etc. there and on successful addition add the new actor to the DDL via js parent window stuff and maybe auto-select it there on closure of the popup. Same solution could be done with ajax just without popup and just some extra form.
All probably not perfect either but some ideas nonetheless~


Anyway, I want to share a small webchat server I wrote in 2006~07 but discontinued to develop (pretty much like what happens to everything I code). It's a rather unstable piece of software but maybe it's useful for someone or parts of it.
It's written in C.
DL (executable and source): uhohChat (http://www.mediafire.com/?22znwjmizzo)

The Chat's language is German, however source comments are mostly in English if I made some. I didn't change much ever since, just removed some rather personal stuff for this upload (hopefully lol). Some functions were modified or written by an internet buddy.
What else? It should be possible to compile it on linux (less stable) and windows (executables for both are also included) using the build shell scripts, so for windows mingw or cygwin are recommended.
Starting is done via command line: "name.exe IP PORT" if no ip or port are provided it'll show ip/ifconfig and use 0.0.0.0 (listen to "all" ips) on port 9001.
Once it's started you can access it via web-browser on http://IP:PORT (http://IP:PORT) e.g. http://127.0.0.1:9001 (http://127.0.0.1:9001) .
One problem of the chat is probably that it has to handle open connections and still act like a webserver at the same time on one port, aside from the problem that some malfunction is also due to my dirty coding.
IMPORTANT: you'll usually have to adjust the ip and port manually in the "post.htm" file to be able to post messages if you don't use localhost and 9001....(for the <form action="...."> thing)
Oh, and available chat commands can be found in the "io.c", adding new ones is pretty easy as well I think.
Yup. If someone is actually interested and needs some help to get things running I can try to help further but won't continue to develop this.

edit: it appears that user registration is not working, I don't know if it ever did. Userfiles themselves work though, if you want to create them manually you can see the format in user.c in the saveUser function.
Title: Re: Programmer Central
Post by: Tuffty on April 18, 2010, 01:35:25 PM
Thanks nachedenki! :) Managed to crack it. Whenever a user wants to input a new record into the database, with a new actor/director not seen in the database before, the user can click on a button, a textbox will appear, and they can type in the name. Along with the INSERT INTO film table, another query is run to insert that actor into the actor table (same for director), giving him/her a new ID in the process. That actor can then be used by drop down lists when creating a new movie in the future. But then before it's all done, I have to do another SELECT query which brings me back that new ID so it can be inserted along with the new film ID that's been created to insert into the intermediate table linking film details and the actors associated with them. :dizzy:

It's a huge myriad of queries but it works. I'd like to test out AJAX and the like but deadlines are just so close and I don't have much experience with it, so trying to find the time is a huge pain in the ass.
Title: Re: Programmer Central
Post by: Slack on May 03, 2010, 03:50:10 AM
Talking with mal, Stryfe, and amp in irc, I have decided to announce this project I have wanted to do for a long while.

For those who don't want to read the whole project summary I wrote, here's the gist of it:

I want to make a media cataloging program that will organize your entire library for you, automatically.
This will be done in Java, but there are other aspects of this project (db, version control, web-interface stuff) that are open to suggestion.

I encourage you to read the doc I have prepared that details the objectives and high-level functionality of the program:

Untitled Media Catalog Project (http://www.sendspace.com/file/c6ssfi).txt


If you would like to help out or have suggestions, please post here.
Title: Re: Programmer Central
Post by: Tuffty on May 03, 2010, 04:46:06 PM
That sounds like a sweet idea! Sounds like you could really make some complex queries to get exactly what you want. The first potential concern I had in mind was how to tag all this media but as you mentioned sites like wikipedia or imdb use crowdsourcing, it seems like an inspired idea. Just curious though, what kind of database approach would you guys be taking? If you're going to be querying complex data like multimedia then I understand that using an object-orientated database approach is the way to go.

I wish you guys the best of luck because I'd really like to see this in action.
Title: Re: Programmer Central
Post by: Slack on May 03, 2010, 05:10:08 PM
That's a good point, and I will have to research more before making any decisions on that.  I'm not too familiar with the ins and outs of databases yet, especially ones other than relational ones.

That said, there is room for a DB specialist to help out on this thing...
Title: Re: Programmer Central
Post by: Scramasax on May 08, 2010, 12:50:30 AM
Sounds like a great idea.  I've been wondering how to organize all my crap, too.  lol.  There should also be an easy way to say what you want, and not want categorized.  As far as the web-stored component, I almost wonder if it would be possible to "hijack" a .torrent file so that you would connect to a tracker and use that to find other peopel using the program, and use that to get the info.  That way, you wouldn't need a centralized storage place.  I know a bit about DBs if you need a hand.
Title: Re: Programmer Central
Post by: Slack on May 08, 2010, 04:09:23 AM
Yeah, I was thinking about .torrent files as a means of getting some information too...

Not part of the core functionality, but certainly something to think about.
Maybe use the hash info contained in the torrent file to see if you have the same file(s) named something different or something.
Wouldn't that be kinda awesome to just point the thing to say, H!O tracker and get all of the filename info from all the torrents there to help with files you haven't labeled?

But really, I haven't even fleshed out anything in terms of class definitions or any architecture design yet.
Maybe I'll get a start on that this weekend.  I'll see if I can post what I come up with later...
You know, in case any more experienced programmers want to help review it.

The problem with projects like this is that they are prone to debilitating feature creep.
I want to start out with a very clearly-defined core and only when that is proven to work, add the interesting features.


Anyone have any suggestions about what project/version management site to use? Sourceforge? Kenai? Something else?
Title: Re: Programmer Central
Post by: Maruku84 on May 29, 2010, 06:46:12 PM
Just got done coding a very simple Text editor, and as suggested in irc by mal, I've added in Multiple languages for the menus. I'm going to still be working on it and like i said its VERY Simple. It only has two functions Open, and Save, both functions are listed under File. And i put in 7 languages including English, Japanese, Korean, Finnish, Norwegian, Icelandic, Filipino, and Lolspeak each under the Options menu. Each language is listed in its native spelling, if translation is wrong blame google :sweatdrop: lol. all Non english text is unicode. tell me what you think.

edit
added the function in to take command line arguments Yay!
and put a changelog text file in the jar file

further edit
got the edit menu done and the right click Context menu

http://www.mediafire.com/?mdnjhmiyiym (http://www.mediafire.com/?mdnjhmiyiym)

p.s. the source code is in the jar file also, Easily opened with a zipping program
Title: Re: Programmer Central
Post by: Amplifier on June 03, 2010, 09:47:42 PM
^Norwegian, Finnish, Icelandic, but not Swedish or Danish? Why, I never!

I've been trying to make a basic IRC client, with the IRC bot API that I used to construct bartender_bot.

Looked through the Android SDK, might try to work something up if I can be bothered to learn the new GUI work, etc.
Title: Re: Programmer Central
Post by: Maruku84 on June 05, 2010, 01:45:29 AM
Cools, I'll Get Swedish and Danish Next along with German, and Russian and maybe Chinese.
any other language requests?

edit
got those languages in along with a small bug fix on the "Exit" button.
http://www.mediafire.com/?mdnjhmiyiym (http://www.mediafire.com/?mdnjhmiyiym)
Title: Re: Programmer Central
Post by: Amplifier on June 06, 2010, 01:26:56 AM
^Norwegian, Finnish, Icelandic, but not Swedish or Danish? Why, I never!

I've been trying to make a basic IRC client, with the IRC bot API that I used to construct bartender_bot.

Looked through the Android SDK, might try to work something up if I can be bothered to learn the new GUI work, etc.

Finally got something going that might be useable for an awesome Android application! :jphip:

Also: bartender_bot in IRC has a chatterbot enabled now, check it!
Title: Re: Programmer Central
Post by: ChrNo on June 21, 2010, 09:25:36 PM
This semester i had another game project : the famous Tetris !

but the focus of the project was to make a design by contract program without any ziggurat bug, which makes it secured.

that's what it looks like :
(http://i911.photobucket.com/albums/ac316/Chr_No_/Tetris.jpg)

if you wanna try :
http://chrno.tempeststrike.com/TabidachiNoUta.jar (http://chrno.tempeststrike.com/TabidachiNoUta.jar)

UP=rotateLeft
DOWN=step
LEFT=moveLeft
RIGHT=moveRight
Q=rotateRight

SPACE = drop (gives you +20 pts)

F5=RESTART WHEN GAME OVER

ESC = QUIT

the principle of the design by contract is being able to make different code implementations of a component, and the contract makes it work even if there is bugs in the implementations. Using Java, the Interface and the Design pattern Decorator is really important here. also there is the concept of binding different components of one application.

Was really fun to do  :D
the source code is a mess like always but if anyone wants to see it i can show it but i don't think it's readable  XD
for the moment at least :ph43r:
Title: Re: Programmer Central
Post by: Slack on June 27, 2010, 11:05:03 AM
After hearing one of my coworkers talking about election methods a couple weeks ago, I got interested in them.
I remembered that Shirenu was running the H!P polls again, so I figured I could help out by making them into a full program.
I looked up some examples on wiki (http://en.wikipedia.org/wiki/Voting_system (http://en.wikipedia.org/wiki/Voting_system)) and decided I'd implement the Schulze method, the Borda count, Instant Runoff, and Contingent vote methods.
Shirenu also requested an "average rank" system, which may come in handy if the pentagon poll is done again in the future.

(http://img197.imageshack.us/img197/1728/11687160.gif)

Since the polls are just about closed now, I figured I should at least release the beta version
The "Ballot Setup" and "Vote Entry" tabs don't work, but it's good enough to run all of the above voting systems, as well as a "meta rank" which averages the ranks for all the other methods.

Anyway, if anyone wants to take a look at some of the code or try it out, I've provided the jar with source and a couple sample input files to use.
http://www.sendspace.com/file/g2rvld (http://www.sendspace.com/file/g2rvld)

Instructions:
1. open vote file
2. select one or more voting methods
3. run tally
4. copy results to clipboard or save results as txt file


I may make the other two tabs work in the future if I feel like working on it some more.
Some caveats are that it requires Java 6 and all the names need to be spelled with matching spelling and capitalization.

Edit: Shi tells me there's a bug where it will carry over votes between files.  Easy fix, but kind of dumb oversight.
Title: Re: Programmer Central
Post by: Amplifier on June 28, 2010, 04:19:50 PM
Quote
The UBM TechWeb Game Network, organizer of the industry-leading Game Developers Conference events, is pleased to announce that submissions are now open for the 2011 Independent Games Festival -- to be held at GDC 2011 in San Francisco next March.

The longest-running and highest-profile independent video game festival, summit and showcase is now accepting entries to the 13th annual Festival, with deadlines in the Main and Student Showcase categories by October 18th and November 1st respectively, and finalists to be announced on January 2011.

Source: http://www.gamasutra.com/view/news/28893/2011_IGF_Opens_Submissions_Adds_Mobile_Category_Expands_Experimental_Focus.php (http://www.gamasutra.com/view/news/28893/2011_IGF_Opens_Submissions_Adds_Mobile_Category_Expands_Experimental_Focus.php)
IGF website: http://www.igf.com/ (http://www.igf.com/)



Let's do it guys! :hump:
Title: Re: Programmer Central
Post by: Amplifier on July 18, 2010, 08:46:13 PM
I decided to start working on Ampcoder again, though, restarting the project entirely.

(http://i868.photobucket.com/albums/ab249/ampliferr/newampcoder.png)

Fleshing the GUI out at the moment. Working on adding a tree-browser right now. Planning to add many more features, and customization options regarding the encoders.
Title: Re: Programmer Central
Post by: Amplifier on July 19, 2010, 04:06:39 PM
Game Developer Debuts Free 2010 Game Career Guide Issue

Quote
For the third year running, Game Developer’s annual Game Career Guide, a special edition magazine devoted to helping aspiring video game creators and guided by the editors of the industry-leading Game Developer magazine, is being given away for free.

The special magazine -- like Gamasutra, a division of UBM TechWeb -- is now available as a digital version in web-readable and PDF downloadable forms.

The 2010 issue, with a special focus on providing its readers with clear methods to affordably start making games, builds on the success of last year’s edition, which accrued more than 300,000 online page views from more than 32,000 people and was distributed to tens of thousands of people worldwide at major video game consumer and trade shows.

Continued + Source: http://www.gamasutra.com/view/news/29315/Game_Developer_Debuts_Free_2010_Game_Career_Guide_Issue.php (http://www.gamasutra.com/view/news/29315/Game_Developer_Debuts_Free_2010_Game_Career_Guide_Issue.php)
View the Issue online: http://gamedeveloper.texterity.com/gamedeveloper/2010cg/m2/Document.action?lm=1279134908000 (http://gamedeveloper.texterity.com/gamedeveloper/2010cg/m2/Document.action?lm=1279134908000)
Title: Re: Programmer Central
Post by: Amplifier on July 20, 2010, 01:40:12 AM
Put some more work into the new Ampcoder today. Finished work on the filesystem tree for now, with the idea of being able to queue folders for batch processing. Repeatedly slapped my forehead when I realized I should add a Job Queue. Have some nice ideas for that now, though. Also plan on changing the codec options section, especially compared to older versions of the program.

(http://i868.photobucket.com/albums/ab249/ampliferr/th_one.png) (http://s868.photobucket.com/albums/ab249/ampliferr/?action=view&current=one.png)(http://i868.photobucket.com/albums/ab249/ampliferr/th_two.png) (http://s868.photobucket.com/albums/ab249/ampliferr/?action=view&current=two.png)

and shit, i need to organize my music some more.. :doh: :doh:
Title: Re: Programmer Central
Post by: Amplifier on August 05, 2010, 06:17:45 PM
(http://a.imageshack.us/img213/6102/mayuyugame.th.png) (http://img213.imageshack.us/i/mayuyugame.png/)

mouse-look / WASD to move camera / HK+Space to rotate mayuyu over the fire

http://www.mediafire.com/?c19aiews0drzkm2 (http://www.mediafire.com/?c19aiews0drzkm2)



Playing with jMonkeyEngine (http://www.jmonkeyengine.com/home/) currently. It's a scene graph engine, that allows some potentially pretty graphics.
Title: Re: Programmer Central
Post by: Amplifier on August 06, 2010, 02:03:57 AM
(http://i868.photobucket.com/albums/ab249/ampliferr/yeahboi.png)

http://www.mediafire.com/?d4bxd9u9vr9csxl (http://www.mediafire.com/?d4bxd9u9vr9csxl)

Decided to try and make something instead of trying to light my idols ablaze.

The ball bouncing is still basic, and doesn't take in to account where it hits a brick, or the position of the paddle. The ball also likes to become stuck in the paddle at times.. and bounce wildly through the bricks :rofl: I'm basically just cannibalizing tutorials at the moment, to learn the basics of this.

PROTIP: USE VSNYC
Title: Re: Programmer Central
Post by: daigong on August 06, 2010, 08:02:16 AM
Awesome Amp!! I tried it.

Do you have to install the latest Java? It kinda crashed on me and the controls were really fast. When I got the ball to bounce off the thing, it kinda dribbled on my paddle thing then crash lol
(http://img51.imageshack.us/img51/9104/monkeyi.jpg)

BEAT MY SCORE :D


Fucking great games guys! I played ChrNo's Tetris and the Berryz (Buono?) song is stuck in my head now XD
(http://img833.imageshack.us/img833/3043/tetris.jpg)
Title: Re: Programmer Central
Post by: Amplifier on August 07, 2010, 04:35:48 PM
(http://i868.photobucket.com/albums/ab249/ampliferr/th_lolmygod.jpg) (http://s868.photobucket.com/albums/ab249/ampliferr/?action=view&current=lolmygod.jpg)

http://www.mediafire.com/?trrhx4qo455urmb (http://www.mediafire.com/?trrhx4qo455urmb)

Abusing some tutorials still. Gave up on Breakout for now. I want to make the bricks blow up if you hit them, but couldn't get that to work.

Put VSYNC on, or you will be annihilated.
Title: Re: Programmer Central
Post by: Amplifier on August 11, 2010, 04:45:41 PM
(http://a.imageshack.us/img230/3691/83470195.th.png) (http://img230.imageshack.us/i/83470195.png/)

Working on Ampcoder again.  Reached a point on the AAC options that I can work on other parts of the project again. Only going to worry about AAC for now, won't be much to implement support for other codecs hereafter.

I decided that instead of selected a codec from the ComboBox like in the previous version, and then changing the options manually every single time you ran the program, you would instead create presets (see bottom right). I didn't borrow this idea from any other program in any way whatsoever :grin: Also: the presets names default to something like "VBR - 256 - LC", I just named mine poorly. All the presets are stored in XML files, that you can then hand-edit.

Also have the idea that the user can now specify any encoder/decoder they want, rather than me just foisting whatever shit I find on the user.

Just need to bother to make the JTable display my custom class information properly now.. :bleed eyes:
Title: Re: Programmer Central
Post by: nachdenki on August 17, 2010, 09:54:34 PM
wUPnPd
windows universal plug and play daemon
(http://a.imageshack.us/img202/7204/wupnpd.jpg)
Download: http://www.mediafire.com/?rmz5binnsgtnaas (http://www.mediafire.com/?rmz5binnsgtnaas) (3,2mb compressed DL )
What do I need wUPnPd for?
Port forwarding. If you are behind a router that you can't access or that you don't get to forward a port via it's menu -> UPnP forwarding (aka. UPnP NAT) might be the way of your choice.
Unlike most tools out there wUPnPd is supposed to continuously update the forwarding, not just once.
Still why wUPnPd and not some other tool?
If you have a stable DSL connection that does not have disconnects (e.g. the external IP changes) you don't need wUPnPd at all.
However if you suffer from 24h disconnects or for some other reason from an unstable connection that disconnects often wUPnPd can be really helpful.
You will not need to worry again about your file sharing or other server applications to be out of reach for a long time again (like when you're at school or working).

Modern file sharing software (almost all torrent ones at least) do UPnP NAT internally, you won't need any tool like that for those.
But Japanese file sharing software like share, winny and perfect dark don't do that, nor do any webserver.
Known issues
 It says "Error: can't find UPnP device"
There is a small chance your router does not support UPnP, most modern router do however. Very likely the program is just unable to communicate with your router, this is a temporary issue and will fix itself and appear once in a while. You may also need to run it as Administrator (just assuming).
 "It's memory usage increases infinitely!"
Yep. There seems to be a small memory leak somewhere with every update it seems to increase by 200~500kb, c++ fuck yeah! Overall the file size and memory usage is relatively high for such a small program because 1. I build all libs into the executable 2. I'm using wxWidgets which includes a lot of code I don't use at all but I want the app to be easily portable.

short facts / info:

tl;dr some prog for automatic upnp port forwarding. I needed one so badly the past years now finally I got around to code a prog for it.
If someone can test it, I would appreciate the feedback because I'm not sure for 100% that it doesn't need any additionally DLLs and also it might not work for other router than mine (even though it should...). Another problem might be that it doesn't detect your lan ip correctly which would be a major problem (unless I make the box write-able so people can fix it manually)
Title: Re: Programmer Central
Post by: Amplifier on August 21, 2010, 08:36:44 PM
Because I've been spending uncounted hours on Twitter lately, closely following my beloved AKB idols and game designers, I started poking around a Java API to access Twitter. Thankfully Twitter4J (http://twitter4j.org/en/index.html) is reasonably easy to work with. I then had the bright idea to go about working with JavaFX for the GUI portion. JFX is pretty sweet, and I love myself some pretty GUI, but using the GUI designer in Netbeans is a greater chore than handcoding Swing at this point :doh:

Maybe I'll just keep kickin it Swing style, baby :sweatdrop: Anyone have protips regarding JavaFX?
Title: Re: Programmer Central
Post by: nachdenki on September 09, 2010, 05:49:07 PM
Major boredom caused me to update the wUPnPd prog.
(http://a.imageshack.us/img801/9784/wupnpd11.th.jpg) (http://img801.imageshack.us/i/wupnpd11.jpg/)
DL of version 1.1:
http://www.mediafire.com/?rsnmekrpew0o8v6 (http://www.mediafire.com/?rsnmekrpew0o8v6) (it seems like DLLs will be missing for most ppl, I'll repackage it someday with those)

Not much to say this time except for that:
1. memory leaks might be fixed (usually stays at 12.600K max usage for me)
2. it can sync with the router which means it'll read all ip forwarding entries for your lan ip into the prog (replacing the table content/ it doesn't change anything on the router side)
3. right clicking on a row in the table will delete that port forwarding (also from the router!) however...
4. ... adding a new one to the table will not be automatically added to the router (you need to update it first)
5. there might be a glitch when adding port forwarding (as in that it doesn't add the row to the router until your external ip changes), when that happens restart the tool.
6. automatic update always updates/checks all rows (in a 1 min interval)
7. I didn't look into the error message "Error: can't find UPnP device" but it's really no big deal.
If you sync it and find some entries in the list you didn't add yourself it'll most likely be your torrent client or some other modern p2p based application, so don't worry.

As for everything else it's so simple that no other explanations are needed.
Also you can't damage your router by using the prog, just don't forward more ports than needed since every open port is like an open door to your house bad people can use to enter more easily~
Since deleting entries is now possible you can take care of all that though.
Title: Re: Programmer Central
Post by: nachdenki on October 14, 2010, 08:20:47 PM
I've been working on a new project for some time, an IRC client.
It's almost entirely written in C++ except for some socket related methods and I do use clibs for random and time stuff since including a huge c++ library (like boost) or writing my own didn't seem worth it.
Actually it's two projects - an IRC library and a wxWidgets GUI that uses the library. Hence the library is actually focus of the development.
I don't have a compiled executable yet (well I have but none that is worth sharing right now) nor a recent screenshot but I've created a project on launchpad (like sourceforge)
https://launchpad.net/momoirchi
Currently there is the source of the IRC library "upped" (in the "trunk" branch). The code for the GUI that gets one an executable will follow today or tomorrow (want to make it compatible with the new irc lib version first).
On the project page I've scheduled a release (binary) for end of the month which is more time than I need, I'm just testing stuffs and being lazy as well.

So yeah I don't actually expect anyone to use the client since there are much better ones out there but maybe either someone wants to use the IRC library someday or someone is just curious about how an approach to write an IRC client can be and feels like checking some of the code (it's all there and under zlib license which pretty much means do whatever). Making a bot out of it isn't difficult either.


On a side note - probably like everyone? - I want to code an idol game someday, or rather H!P in my case.
A common idol game idea seem to be a fighting game (beat 'em up), there even exist some already.
Somehow I also think it's kind of natural due to rivalry etc.
But personally I find the idea of coding a beat 'em up rather boring, you have to come up with some decent character control (to make it look smooth) and a good collision detection since that's how you detect the hits. But you also have to get some good sprites (or 3D models when it's in 3D) since they're what the player looks at throughout the whole game, if they don't look like that idol xyz it's meh.
So since forever I favor coding some kind of RPG but I didn't get further than some kind of experimental programs so far. And to make it idol related I totally lack a concept, what you do in the game. Killing monster doesn't fit much unless it's some kind of magical girl stuff (super cute idol kills the monsters with her super cute power). I also can't decide whether it should be retro or like a newer game. With retro I mean look and feel like some SNES game (which might be easier).
If someone is already coding on or wants to code on an idol game or has some interesting thoughts/ideas I would be interested to hear.
Title: Re: Programmer Central
Post by: mske on December 01, 2010, 05:25:54 PM
I'm working on media player (C++) because other media players don't provide such features which I need.
Title: Re: Programmer Central
Post by: Amplifier on March 27, 2011, 11:03:29 PM
Been kicking a little game around, that I've wanted to work on for a while. Cooking it up in Java, planning to use jMonkeyEngine for the client. Actually using NetBeans for the work, because I was lazy and wanted a quickndirty GUI for other parts :sweatdrop: I gotta try to work more on my JPH!P Android app too :jphip:
Title: Re: Programmer Central
Post by: Tuffty on March 27, 2011, 11:46:51 PM
Dunno if you guys have something like this, but a neat little tool I have for coding or even posting image links here is ClipX (http://bluemars.org/clipx/). It's a free clipboard history manager and it's really handy to cut and paste snippets of code around rather than have to swap back and forth between pages.
Title: Re: Programmer Central
Post by: Amplifier on April 12, 2011, 11:06:21 PM
Finally got around to re-making bartender_bot's trivia module. Completely rewrote it, because the old code looked like Mongolian to me now (no comments; almost two years old, haha oh wow). While wagering isn't quite working yet, you can play through a game in a jiffy, with zero bugs it looks. It took me a day to code out entirely, and it's probably 1/4 the size of the original bot, and it's ridiculously simple in comparison. Come play in IRC @ #jph!p-trivia :cathappy:
Title: Re: Programmer Central
Post by: nachdenki on May 08, 2011, 02:08:32 PM
Just finished a batch uploader for the picroda \o/ it's written in php though and quite unhandy for everyday use so I'll port it to c++ or c# in the next days (few weeks) and add a GUI.

Other than that I'm too busy with work to be able to code much nowadays ;_; maybe I'll publish some android app (drawing app) someday next month when I bought some RAM so that I can run a web-browser and eclipse at the same time without one or both crashing every other minute :lol: (still need to add a few features)
Title: Re: Programmer Central
Post by: nachdenki on May 15, 2011, 11:24:58 PM
jphip picroda upload tool - kinda finished
(http://img64.imageshack.us/img64/5904/picrodatool.png)
Download v1.1.1 (http://www.mediafire.com/?oulspmeyjzbbw1n)
Download v1.1 (http://www.mediafire.com/?f6n3ls48slo3hik)
Download v1.0 (http://www.mediafire.com/?8759ravvwphipwa)

Usage:
- enter your username and password,
- select a tag / make a comment,
- choose the category (writing in your own text here will either crash or upload to wrong category)
- drag and drop the files you want to upload into the white box (from explorer for example)
- once you have files in the box you can press "upload"
note: only *.jpg files supported at the moment.

new in version 1.1:
- experimental: dragging images directly from firefox/browser adds the url to the list (for upload it dls it into the RAM then uploads it) - if imgs are links to html files etc. it might not work (for IE: drag the fav icon of the image's page)
  |_however it's kinda detecting whether it's a jpg or not and only ups the file when it's a jpg so no need to worry about upping garbage (though the server won't accept that anyway I assume)
- added akb48 and snsd names to the list
- some visual feedback~
- idle time between each upload is 1 sec (maybe I already set this in the previous release), to give the server more time to breath

new in v. 1.1.1:
- dragging from browser filters stuff so only files with .jpg will be added to the list (before even any plain text was possible)

might require some new .net framework to run
Title: Re: Programmer Central
Post by: Amplifier on January 02, 2017, 04:54:26 PM
Ain't nobody bump a thread like Amplifier bump a thread.

Been hard at work learning Javascript and client-side frameworks. Just published my second project, a markdown editor (https://github.com/rasserudenisu/aobamarker). Star me baby :shakeit:

Javascript really isn't that bad, but it feels so lacking in structure. Makes me really appreciate the rigidity of Java and Swift now. But I also can't see myself using anything besides Javascript for smartphone development now.

That said, Swift is absolutely amazing, and I hope it becomes huge(r).
Title: Re: Programmer Central
Post by: frblckstr1 on January 03, 2017, 06:21:43 PM
^ Try Typescript it emits javascript.
I have programmed mobile apps with javascript but you really need to be careful with your variables as mixing up strings and ints and dates is to easy.
To bad JSON is not strictly typed either...