JPHiP Radio (20/200 @ 128 kbs)     Now playing: Chow Yun Fat - Shanghai Grand

Author Topic: Programmer Central  (Read 29031 times)

Offline Amplifier

  • Global Moderator
  • Member+
  • *
  • Posts: 10119
Re: Programmer Central
« Reply #20 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!

Offline maliciel

  • Subcru
  • Member+
  • Posts: 5336
Re: Programmer Central
« Reply #21 on: March 01, 2010, 02:39:18 PM »
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.

Offline atskv9

  • ecchi
  • Member+
  • Posts: 1335
Re: Programmer Central
« Reply #22 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:

Offline Tuffty

  • Shadowstar's Boy Toy
  • ecchi
  • Member+
  • Posts: 19991
Re: Programmer Central
« Reply #23 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:

Offline maliciel

  • Subcru
  • Member+
  • Posts: 5336
Re: Programmer Central
« Reply #24 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.

Offline atskv9

  • ecchi
  • Member+
  • Posts: 1335
Re: Programmer Central
« Reply #25 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.

Offline Amplifier

  • Global Moderator
  • Member+
  • *
  • Posts: 10119
Re: Programmer Central
« Reply #26 on: March 18, 2010, 01:43:16 PM »
Code: [Select]
try
{
     makeCool(JPHIP.Maliciel);
}
catch(MalicielException mex)
{
     System.exit(1);
}

Offline Tuffty

  • Shadowstar's Boy Toy
  • ecchi
  • Member+
  • Posts: 19991
Re: Programmer Central
« Reply #27 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

Offline nachdenki

  • Member+
  • Posts: 1965
  • 桃子はひっぱりだこ
Re: Programmer Central
« Reply #28 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

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 e.g. 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.
« Last Edit: April 17, 2010, 07:06:11 AM by nachdenki »
ChrNo, I hope you are happy
Support your favorite group, buy CDs, DVDs and merch.
Then make your favorite happy and show off your support in the h!p collection thread
momochi tumblr | berikyuu tumblr

Offline Tuffty

  • Shadowstar's Boy Toy
  • ecchi
  • Member+
  • Posts: 19991
Re: Programmer Central
« Reply #29 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.

Offline Slack

  • Professor of Konkonology
  • ecchi
  • Member+
  • Posts: 3735
    • Slackius
Re: Programmer Central
« Reply #30 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.txt


If you would like to help out or have suggestions, please post here.
« Last Edit: May 03, 2010, 03:55:22 AM by Slack »
( ・e・) :heart: marimari  ● 川o・-・) :heart: Jabronisaur :heart: (・o_・`川 ● ノノl∂_∂'ル :heart: ChrNo ● Never Forget.

Offline Tuffty

  • Shadowstar's Boy Toy
  • ecchi
  • Member+
  • Posts: 19991
Re: Programmer Central
« Reply #31 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.

Offline Slack

  • Professor of Konkonology
  • ecchi
  • Member+
  • Posts: 3735
    • Slackius
Re: Programmer Central
« Reply #32 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...
( ・e・) :heart: marimari  ● 川o・-・) :heart: Jabronisaur :heart: (・o_・`川 ● ノノl∂_∂'ル :heart: ChrNo ● Never Forget.

Offline Scramasax

  • ecchi
  • Member+
  • Posts: 508
Re: Programmer Central
« Reply #33 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.

Offline Slack

  • Professor of Konkonology
  • ecchi
  • Member+
  • Posts: 3735
    • Slackius
Re: Programmer Central
« Reply #34 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?
( ・e・) :heart: marimari  ● 川o・-・) :heart: Jabronisaur :heart: (・o_・`川 ● ノノl∂_∂'ル :heart: ChrNo ● Never Forget.

Offline Maruku84

  • 初しぐれ 猿も小蓑を ほしげ也
  • ecchi
  • Member+
  • Posts: 126
  • hatsu shigure saru mo komino wo hoshige nari
Re: Programmer Central
« Reply #35 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

p.s. the source code is in the jar file also, Easily opened with a zipping program
« Last Edit: June 05, 2010, 10:05:38 AM by Maruku84 »

Avatar and Sig by Me , Every Day i'm Hustlin XD
Quote
(04:29:25 AM) bartender_bot: I love diarrhea
(04:29:51 AM) J-Triumf: bartender_bot loves diarrhea...remember that

Offline Amplifier

  • Global Moderator
  • Member+
  • *
  • Posts: 10119
Re: Programmer Central
« Reply #36 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.

Offline Maruku84

  • 初しぐれ 猿も小蓑を ほしげ也
  • ecchi
  • Member+
  • Posts: 126
  • hatsu shigure saru mo komino wo hoshige nari
Re: Programmer Central
« Reply #37 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
« Last Edit: June 05, 2010, 10:05:00 AM by Maruku84 »

Avatar and Sig by Me , Every Day i'm Hustlin XD
Quote
(04:29:25 AM) bartender_bot: I love diarrhea
(04:29:51 AM) J-Triumf: bartender_bot loves diarrhea...remember that

Offline Amplifier

  • Global Moderator
  • Member+
  • *
  • Posts: 10119
Re: Programmer Central
« Reply #38 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!

Offline ChrNo

  • 「72::29::66」
  • Member+
  • Posts: 1727
  • ノノl∂_∂'ル <gao~
Re: Programmer Central
« Reply #39 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 :


if you wanna try :
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:

JPHiP Radio (20/200 @ 128 kbs)     Now playing: Chow Yun Fat - Shanghai Grand