₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,277 members, 8,421,132 topics. Date: Friday, 05 June 2026 at 08:11 PM

Toggle theme

Javanian's Posts

Nairaland ForumJavanian's ProfileJavanian's Posts

1 2 3 4 5 6 7 8 ... 40 41 42 43 44 45 46 47 48 (of 57 pages)

ProgrammingRe: Help With Mysql On Webserver by Javanian: 7:09pm On Oct 20, 2012
Music/RadioRe: Tonto's Reply To Critics Of HI & ITZOVA - I have Achieved My Aim by Javanian: 2:38am On Oct 19, 2012
She doesn't know its pride that is killing her...
Nairaland GeneralRe: A Section On Nairaland That You've Never Visited by Javanian: 8:18pm On Oct 13, 2012
Billyonaire: Is there any other section thats worth visiting apart from Politics, Religion and Romance ?
If i tell you i have never visited any of those sections apart from the front page threads you wont believe me... undecided...They are a waste of time to me....
One mans thrash is another mans treasure...
ProgrammingRe: Funny Source Code Comments by Javanian(op): 4:21pm On Oct 13, 2012
mkwayisi: No, I'm afraid it won't. Take a look again.
Import world.smart.charming.females
Supercoolchick hottie = new Supercoolchick()
It wont compile if it were
import world.smart.charming.females.*
OR
import world.smart.charming.females.Supercoolchick

it would compile...Nice observation...Stop derailing the thread grin
ProgrammingRe: Funny Source Code Comments by Javanian(op): 8:56am On Oct 13, 2012
^ lol i also got this one today...from an islam programmer...

//if you can debug this i will give you 2 of my 72 virgins
ProgrammingRe: Did You Compete In The Fed Min Of Communication Technology/intel Corp Contest? by Javanian: 10:22pm On Oct 12, 2012
Nice site @webdezzi
ProgrammingTop Coder Programming Contest For Java Developers by Javanian(op): 11:53am On Oct 09, 2012
Business User Console - Front End
Contest Overview

Detailed Requirements


The client for this project, Hercules Corp, develops search, browse, and recommendation technologies for TV shows and movies. These technologies are designed to help customers (who use Hercules Corp's consumer products) find TV shows and movies they are interested in.

Hercules Corp needs a way to test and evaluate different ranking algorithms they create. The goal of this project is to build an application to assist in this process.

The idea is to build two applications, a TV and Movies Rating game and a Business User Console application. The new TV and Movie Rating game will be a single web-based application that allows users to rate TV shows and movies based on three different game variations: Recommendations, Metadata, and Browse. The Business User Console will allow business users to view the results of experiments, and to create and manage experiments.

This application defines Business User Console. The Business User Console will allow business users to view the results of experiments, and to create and manage experiments.

This component implements the front end.

Technologies
J2EE
Java
MySQL

Final Submission: 10/15/2012 10:07 PM EDT

http://community.topcoder.com/tc?module=ProjectDetail&pj=30030570
European Football (EPL, UEFA, La Liga)Re: El-clasico: Barcelona Vs Real Madrid (2 - 2) On 7th October 2012 by Javanian: 12:05pm On Oct 07, 2012
Emmy9ite: ¤ English league is more competitive, Spanish league only has two clubs.
¤ English league is more organised.
¤ English league is the most watched league in the world. Spanish league matches are always night matches.
each time i hear this statement...i just laugh...lets not forget what Athletic bilbao did to the Almighty Man Utd last season and the thrashing Athletico Madrid gave chelsea early this season...The truth is that Barcelona and Madrid are the best teams in the world...Take it or leave it...
ProgrammingFunny Source Code Comments by Javanian(op):
I recently stumbled upon an awesome Stack Overflow thread, entitled "What is the best comment in source code you have ever encountered?".

As you might have guessed, it is a collection of funny source code comments, provided by developers all over the world. Take a look at it, it could definitely make your day.

I am reposting here my personal favorites from that long long collection:

1, Exception up = new Exception("Something is really wrong."wink;
throw up; //ha ha

2, //When I wrote this, only God and I understood what I was doing
//Now, God only knows

3, // I dedicate all this code, all my work, to my wife, Darlene, who will
// have to support me and our three children and the dog once it gets
// released into the public.

4, // I am not sure if we need this, but too scared to delete.

5, // I am not responsible of this code.
// They made me write it, against my will.

6, // hack for ie browser (assuming that ie is a browser)

7,
try {

}
catch (SQLException ex) {
// Basically, without saying too much, you're screwed. Royally and totally.
}
catch(Exception ex)
{
//If you thought you were screwed before, boy I have news for you!!!
}


8, // If you're reading this, that means you have been put in charge of my previous project.
// I am so, so sorry for you. God speed.

9, /**
* If you don't understand this code, you should be flipping burgers instead.
*/

10, // For the sins I am about to commit, may James Gosling forgive me

11,
 // 
// Dear maintainer:
//
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
//
// total_hours_wasted_here = 42
//


You can add yours... grin
http://www.javacodegeeks.com/2011/07/funny-source-code-comments.html
European Football (EPL, UEFA, La Liga)Re: El-clasico: Barcelona Vs Real Madrid (2 - 2) On 7th October 2012 by Javanian: 1:54pm On Oct 06, 2012
Tayerulz: Who watched that 5-0 trashing of real madrid,especially Mourinho's childish reaction after the match ...i have a feeling something close to that would happen tomorrow again..defense or no defense,FCB wins...FC BARCELONA ALL THE WAY
I can never forget that match grin
European Football (EPL, UEFA, La Liga)Re: El-clasico: Barcelona Vs Real Madrid (2 - 2) On 7th October 2012 by Javanian: 9:52am On Oct 06, 2012
Madrid fans una know how far na ?
Na Normal Normal grin

Defence or no Defence!
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 8:33am On Oct 05, 2012
lordZOUGA: cos if you knew C++, you wouldn't bother with learning any other language to develope for those named OS
Do you use C++ for web applications and IOS?
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 8:31am On Oct 05, 2012
2buff: And thats actually v1, which has been deprecated. V2 doesnt even do any mobile yet.
This is why i always come to nairaland before learning anything new...i would have wasted my time learning something i would later regret...Thanks for the info...i have already started Actionscript and flex, i guess i will stick to it...
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 8:17am On Oct 05, 2012
2buff: It doesn't even support android or blackberry yet talk of ios.
i never said it does...read my post again...
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 7:17am On Oct 05, 2012
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 10:07pm On Oct 04, 2012
lordZOUGA: exactly why programmers should start with C++
why??
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 6:52pm On Oct 04, 2012
I've finally made up my mind on which way to go...And am not learning actionscript or FLEX anymore...

I'll be using JavaFX
why?

1, it can be used to create browser based games (just like flex)

2, Applications created with javafx can run on desktop (just like flex)

3, it also runs on java phones, symbian OS and windows phones

4, i dont need to learn another technology (am very lazy)

with java i can also create Android and blackberry games...IOS can wait...

This is why i like java...you can use one stone to kill many birds grin
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 10:27pm On Oct 03, 2012
Thanks @all
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 5:50pm On Oct 02, 2012
^ Thanks..
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 1:58pm On Oct 02, 2012
undecided undecided
TV/MoviesRe: Waaaaaay Over Hyped Movies by Javanian: 10:02am On Oct 02, 2012
The most hyped film ever is:

The Avengers...
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 10:35pm On Oct 01, 2012
^ Thanks once again, Does anybody know if it can be used to create games for those platforms?
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op): 12:12pm On Oct 01, 2012
Thanks, but are you saying it cant be used to develop Ios apps because that was my main target...i already know Android and Blackberry should be easy to pick up...
ProgrammingRe: Anyone With Experience In Adobe FLEX? by Javanian(op):
I heard it can be used to create native android, iphone and blackberry apps All-in-one is it true?

2, can it be used to create games on those platforms?

3, is there any language i need to know before starting?

4, do you think it has a future? Because i heard flash will soon be stopped on mobile...

Letme stop here for now grin...
ProgrammingAnyone With Experience In Adobe FLEX? by Javanian(op): 10:19am On Oct 01, 2012
Please is there anyone here with experience in Adobe FLEX please indicate i have one or two questions for you
ProgrammingRe: Another Programming Challenge by Javanian: 9:41pm On Sep 28, 2012
ekt_bear: goto end; // The more they hate you, the more I love you!

lmao! grin
dont mind him angry
ProgrammingRe: Another Programming Challenge by Javanian: 9:41pm On Sep 28, 2012
while (!sr.EndOfStream) {
sr.ReadLine();
totalLines++;
}


You are doing the samething i did grin
ProgrammingRe: Another Programming Challenge by Javanian: 9:29pm On Sep 28, 2012
ok, then i will seat back and wait for a solution grin
ProgrammingRe: Another Programming Challenge by Javanian: 9:23pm On Sep 28, 2012

//This adds each line to the list
while(s!=null)
{

list.add(s);
s = in.readLine();
}
//This gets the no of lines in the list
list.size()



i dont think i need an extra function to compute N
ProgrammingRe: Another Programming Challenge by Javanian: 8:56pm On Sep 28, 2012
@ekt_bear did i get it right??
ProgrammingRe: Another Programming Challenge by Javanian:

import java.util.*;
import java.io.*;
public class ReadFile
{
static List list;

public static void main(String[] args) throws Exception
{
//receive input for number of lines to print
Scanner read = new Scanner(System.in);
System.out.println("Enter the number of lines (k) you want to print"wink;
int k = read.nextInt();

list = new ArrayList();
File file = new File(args[0]);
//get the file size
int filesize=(int)file.length();
FileInputStream fis= new FileInputStream(file);

//size of required to read to at a time (1kb)
int size = 1024;


try
{
byte b[]=new byte[size];


int ch,c=0;

while(filesize>0)
{

ch=fis.read(b,0,size);
//read file of 1kb


filesize = filesize-ch;
//update the file size

//create temporary file name
String fname=c+"."+file.getName()+"";
c++;
//create temporary file
File tempFile = new File(fname);
FileOutputStream fos= new FileOutputStream(tempFile);
fos.write(b,0,ch);
fos.flush();
fos.close();

//read temporary file
FileReader fr = new FileReader(fname);
BufferedReader in = new BufferedReader(fr);
String s;

//read each line from the file
s = in.readLine();

while(s!=null)
{
//add each line of file to a list object
list.add(s);
s = in.readLine();
}
//delete temporary file to save memory
tempFile.delete();

in.close();
}
}
catch(Exception ex)
{
ex.printStackTrace();
}
printRandom(k);
}
public static void printRandom(int k)
{
//Generate random number
long i = Math.round(Math.random()*list.size());

//ensure k (required no of lines) is not more than number of lines in the list
if(k<=list.size())
{
//generate reqired number of lines(k)
for(int m =0; m<k; m++)
{
//print an random selected line
System.out.println("Read:" + list.get((int)(i)));
i = Math.round(Math.random()*list.size());
}
}
else
{
System.out.println("No of Lines too much..."wink;
System.exit(0);
}

}

}

1 2 3 4 5 6 7 8 ... 40 41 42 43 44 45 46 47 48 (of 57 pages)