Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,062 members, 7,835,590 topics. Date: Tuesday, 21 May 2024 at 12:11 PM

Celebrimbor's Posts

Nairaland Forum / Celebrimbor's Profile / Celebrimbor's Posts

(1) (2) (3) (4) (of 4 pages)

Romance / Re: Man Saves A Lady's Number With "Afang Soup" by Celebrimbor(m): 7:36pm On Jan 14, 2017
Lolzz... Your Afang soup must be the bomb. You should be happy
Celebrities / Re: Kemi Olunloyo: "I Don't Believe In The Bible, It's Full Of Fake Stories" by Celebrimbor(m): 5:48pm On Dec 22, 2016
How can you call something you have not read fake?
Programming / Re: (revealed) So Mark Zuckerberg Is Not That Good At Coding/programming! by Celebrimbor(m): 3:12pm On Dec 12, 2016
You don't have to be a genius to make something productive. Zuckerberg understood that.
Programming / Re: Gov. Ambode Assures That Lagos State Will Invest In Codelagos by Celebrimbor(m): 10:19pm On Dec 09, 2016
Do you have to be a "coder" before you can innovate?... this is highly unnecessary.
Programming / Re: Who Knows About Pypyodbc Or Pyodbc? by Celebrimbor(m): 10:15pm On Dec 09, 2016
Google search will do. On a side note, If it is a major tool, All database vendors would support it just like the support JDBC.
Programming / Re: Why Always Web. by Celebrimbor(m): 10:08pm On Dec 09, 2016
Ask and ye shall see... seek and ye shall find.
Celebrities / Re: Fever: Bootylicious Lady Floods Social Media With Provocative Photos by Celebrimbor(m): 9:47pm On Dec 09, 2016
Blahhhhh... pass abeg
Romance / Re: Because Am A Man by Celebrimbor(m): 9:45pm On Dec 09, 2016
More like "Because i am a P*ssy"

1 Like

Culture / Re: Olori Badirat Adeyemi, Alaafin Of Oyo's Youngest Wife, Slays In New Photos by Celebrimbor(m): 9:33pm On Dec 09, 2016
She tite sha... i wonder how she go look without makeup.

1 Like

Programming / Re: What Can Be Done To Improve This Section? by Celebrimbor(m): 9:51pm On Sep 25, 2016
The moderators of this section need to wake up and be proactive. They are the major reason why this section is dormant.
Celebrities / Re: Should Glo Etc Cancel Wizkid's Contracts Because Of His Abuse On Linda Ikeji? by Celebrimbor(m): 2:03pm On Apr 03, 2016
And we are wondering why our younger ones are misbehaving. God knows that our ideals are misplaced.
Programming / Re: Programming Goddess by Celebrimbor(m): 11:51am On Mar 29, 2016
"Female programming Goddess".... the reasoning behind that statement is the reason why we are still backwards technologically. No offence meant.

1 Like

Programming / Re: I Want To Create An AI (artificial Intelligence) With Java by Celebrimbor(m): 2:32pm On Mar 27, 2016
Recently Google designed an artificial intelligence that played and won a game of Go against one of the highest ranking players. The artificial intelligence ran on computer cluster with more than 300 processor cores. For a game of Go only. yours is a secretary AI. try factoring that into your dream.
Programming / Re: I Want To Create An AI (artificial Intelligence) With Java by Celebrimbor(m): 2:29pm On Mar 27, 2016
willace:


import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;

import java.awt.Color;

import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;

import java.lang.Math;

public class ChatBot extends JFrame implements KeyListener{

JPanel p=new JPanel();
JTextArea dialog=new JTextArea(20,50);
JTextArea input=new JTextArea(1,50);
JScrollPane scroll=new JScrollPane(
dialog,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER
);

String[][] chatBot={
//standard greetings
{"hi","hello","hola","ola","howdy"},
{"hi","hello","hey"},
//question greetings
{"how are you","how r you","how r u","how are u"},
{"good","doing well"},
//yes
{"yes"},
{"no","NO","NO!!!!!!!"},
//default
{"shut up","you're bad","noob","stop talking",
"(michael is unavailable, due to LOL)"}
};

public static void main(String[] args){
new ChatBot();
}

public ChatBot(){
super("Chat Bot"wink;
setSize(600,400);
setResizable(false);
setDefaultCloseOperation(EXIT_ON_CLOSE);

dialog.setEditable(false);
input.addKeyListener(this);

p.add(scroll);
p.add(input);
p.setBackground(new Color(255,200,0));
add(p);

setVisible(true);
}

public void keyPressed(KeyEvent e){
if(e.getKeyCode()==KeyEvent.VK_ENTER){
input.setEditable(false);
//-----grab quote-----------
String quote=input.getText();
input.setText(""wink;
addText("-->You:\t"+quote);
quote.trim();
while(
quote.charAt(quote.length()-1)=='!' ||
quote.charAt(quote.length()-1)=='.' ||
quote.charAt(quote.length()-1)=='?'
){
quote=quote.substring(0,quote.length()-1);
}
quote.trim();
byte response=0;
/*
0:we're searching through chatBot[][] for matches
1:we didn't find anything
2:we did find something
*/
//-----check for matches----
int j=0;//which group we're checking
while(response==0){
if(inArray(quote.toLowerCase(),chatBot[j*2])){
response=2;
int r=(int)Math.floor(Math.random()*chatBot[(j*2)+1].length);
addText("\n-->Michael\t"+chatBot[(j*2)+1][r]);
}
j++;
if(j*2==chatBot.length-1 && response==0){
response=1;
}
}

//-----default--------------
if(response==1){
int r=(int)Math.floor(Math.random()*chatBot[chatBot.length-1].length);
addText("\n-->Michael\t"+chatBot[chatBot.length-1][r]);
}
addText("\n"wink;
}
}

public void keyReleased(KeyEvent e){
if(e.getKeyCode()==KeyEvent.VK_ENTER){
input.setEditable(true);
}
}

public void keyTyped(KeyEvent e){}

public void addText(String str){
dialog.setText(dialog.getText()+str);
}

public boolean inArray(String in,String[] str){
boolean match=false;
for(int i=0;i<str.length;i++){
if(str[i].equals(in)){
match=true;
}
}
return match;
}
}


Bros that is a source code for a chat bot i created . an AI follows the same process but a littlé bit advance. So it is possible my brother
Sorry to burst your bubble but I don't think you know what artificial intelligence is. Anyway Don't let me stop you. I am just being realistic and honest with you. Do your research and know what you are getting into before you do it. DONT ASSUME!!!
Programming / Re: I Want To Create An AI (artificial Intelligence) With Java by Celebrimbor(m): 2:14pm On Mar 27, 2016
Please note "A single programmer"
Programming / Re: I Want To Create An AI (artificial Intelligence) With Java by Celebrimbor(m): 2:13pm On Mar 27, 2016
willace:


Y do u say dat, someone already did it so y can't i.
It takes just belief and hardwork.
My friend dont limit ur mind 2 thinking small. Peace
hahahahahah..... bros firstly I would like to ask who did it. secondly I would like to say everything has a cost.... do you know what it would cost you to come up with an AI? are you ready to pay it? if you are ready and willing fine fire down and pray you make a breakthrough..... but you can channel that same energy to solve a problem that is more important, valuable and immediate than an AI..... my opinion tho
Programming / Re: I Want To Create An AI (artificial Intelligence) With Java by Celebrimbor(m): 2:05pm On Mar 27, 2016
techthought:


Be optimistic man. Don't be so negative. No offense.
balance optimism with realism bro. if he had said that he was gonna build an operating system from scratch, I would have said sure go for it. But an AI is a whole new level. No negativity but this is a white elephant project...... for a single programmer.
Programming / Re: I Want To Create An AI (artificial Intelligence) With Java by Celebrimbor(m): 12:15pm On Mar 27, 2016
Well well...... let me be realistic... you can't do it.

1 Like

Programming / Re: Programmers In Da House Pls I Nid Ur Help by Celebrimbor(m): 7:15pm On Mar 20, 2016
oboy go and put in effort to solve your assignment.

1 Like

Programming / Re: My Rant... by Celebrimbor(m): 11:24am On Mar 04, 2016
Excitement............... until you spend 3 days debugging a segfault.

1 Like

Programming / Re: 75 Media Player - Lets Make It Happen by Celebrimbor(m): 2:34pm On Feb 27, 2016
what languages and libraries are gonna be used to build it? also are you gonna implement the audio codecs from ground up??
Programming / Re: Message To Nairaland Programmers On Programming and Success by Celebrimbor(m): 7:36pm On Feb 26, 2016
A round of applause for the OP. alot of programmers here forget that great things are achieved only through teamwork. the Facebook we see today and attribute to Mark Zuckerberg is actually the work of thousands of intelligent engineers at Facebook who took Mark's initial ideas and product and developed it into something awesome. The same thing with Google, Microsoft, Intel, the Linux kernel and a host of other. Teamwork is a much more valuable skill than pure genius. A great team of 10 mediocre programmers is far better than a single genius programmer. So please Ninja coders, we salute your awesome brainpower but learn to be teamplayers.

2 Likes

NYSC / Re: Has Any One Registered For The NYSC2016.? by Celebrimbor(m): 9:40pm On Feb 21, 2016
this is crazy mehn. So na wetin we go pass through when e reach our turn AKP??
Celebrities / Re: Who Has The Hottest BabyMama, Wizkid, Olamide Or Davido? [photos] by Celebrimbor(m): 3:24pm On Dec 18, 2015
Do we really have to absorb all the Stupid trends from the western world? Baby mama............. it just sounds very stupid and creates a negative impression of women to the younger generation.

4 Likes

Programming / Re: How Hard Is Programming by Celebrimbor(m): 9:28am On Dec 14, 2015
you can check out MIT opencourseware on youtube for their lecture on Algorithms and data structures. Also you would need some books. i would suggest the algorithm design manual by skiena and introduction to algorithms also known as CLRS.

1 Like

Programming / Re: How Hard Is Programming by Celebrimbor(m): 11:17pm On Dec 13, 2015
clevadani:

It is a series of coding challenges where one is required to solve particular problems. Like ProjectEuler
oh that. well nothing good comes easy but better still others have experienced and solved these problems you may be facing. have you considered taking an algorithm course?
Programming / Re: How Hard Is Programming by Celebrimbor(m): 7:19pm On Dec 13, 2015
clevadani:

Kind of.
Started few months back. Learnt the basics which was pretty easy but now that I'm into Algorithm Scripting, it is now way harder than I thought.
Algorithm scripting? what is that??
Programming / Re: How Hard Is Programming by Celebrimbor(m): 12:23pm On Dec 13, 2015
Are you just starting?
Programming / Re: Lets Start A Thread For Solving Problems From Projecteuler.net by Celebrimbor(m): 12:22pm On Dec 13, 2015
Ogbeozioma:


yeah I'm oziomajnr, but do u guys know the number1 guy? themark626 and the number 2 guy ope. The number 3 guy is my classmate.
I saw ur post on discreet mathematics hw far have u gone?
nope. but i would like to know him too. As for my discrete mathematics growth, well i stopped for a long time but i picked it up recently and am currently studying the principles of counting. i never really thought it was important until recently. by the way i go by the name Celebrimbor on the ranking.
Programming / Re: Lets Start A Thread For Solving Problems From Projecteuler.net by Celebrimbor(m): 11:48pm On Dec 12, 2015
Ogbeozioma:

I have solved about 40 of the questions and these have taught me alone about mathematics and it has improved my problem solving skills... working on a couple more. Aiming for 50 nw.
what about u?
wow nice. i have solved 10. so you are the oziomajnr on the ranking??

(1) (2) (3) (4) (of 4 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 52
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.