Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,171,119 members, 7,880,483 topics. Date: Thursday, 04 July 2024 at 07:13 PM

Adewaleafolabi's Posts

Nairaland Forum / Adewaleafolabi's Profile / Adewaleafolabi's Posts

(1) (2) (3) (4) (5) (6) (7) (8) ... (11) (12) (13) (14) (15) (16) (17) (18) (19) (of 55 pages)

Programming / Re: Java: Help! by adewaleafolabi(m): 11:15am On Jun 27, 2010
Thanks. That wud solve it. Also how do i encrypt a string using md5 .
My app connects to a remote database. But i think everything is sent as plain text is there a way to encrypt this data using ssl or any other.
Programming / Re: Java: Help! by adewaleafolabi(m): 5:47pm On Jun 25, 2010
Hi,
This is what i intend to achieve

Programming / Re: Java: Help! by adewaleafolabi(m): 6:22pm On Jun 24, 2010
thanks,
printing my jtable would have been a wonderful option if only swing could some how print it just like the way excel would render the same table to the printer.
Programming / Re: Java: Help! by adewaleafolabi(m): 1:26pm On Jun 24, 2010
Thanks i'd get in touch with clickatell.
But it seems you didn't quite understand my other problem.
I can read write export to excel using jexcel api. What i need is how to send this excel file to the printer
Programming / Java: Help! by adewaleafolabi(m): 8:40pm On Jun 22, 2010
Hi,
I wrote an application in java and i neet to send sms from within this application using any bulk sms company. Most offer API's for phpmand aspx. Could some one point me in the right direction.
Also I am able to export my Jtable as an excel worksheet but i'd like to know how to send this file to the printer from inside java.

Thanks,
Afolabi
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 6:15pm On Mar 30, 2010
@bigbrovar
really i must admit it, kde has gone way ahead of gnome, gnome better come up with something good for gnome 3 or else i'd also have to move. tongue
Technology Market / Re: Laptop Needed! Budget:max 65k by adewaleafolabi(m): 10:15am On Mar 24, 2010
@netsurf
i am not in lagos now, i school in ibadan but can make it down once we agree on sumtin. Thanks
Technology Market / Re: Laptop Needed! Budget:max 65k by adewaleafolabi(m): 9:55am On Mar 23, 2010
@netsurf
i know that thats why i wrote it clearly there. Okay maximum 70k. What do u offer for that price.
Technology Market / Re: Laptop Needed! Budget:max 65k by adewaleafolabi(m): 9:40am On Mar 23, 2010
@netsurf
i called him and he said it wasn't BRAND NEW. I need something new within that budget thanks.
Technology Market / Laptop Needed! Budget:max 65k by adewaleafolabi(m): 2:35pm On Mar 22, 2010
I need a new laptop, with intel core 2 processor. 2gb ram
thanks
Art, Graphics & Video / Re: Using Liquid Latex to Create Realistic Wounds and Skin Effects by adewaleafolabi(m): 7:34am On Oct 02, 2009
Really nice, could be used for april 1st pranks.Thanks
Programming / Re: Regreting Programming Career by adewaleafolabi(m): 10:08pm On Sep 28, 2009
@webdezzi
i feel u jare. Just like i told a friend yesterday, computing is a way of life for me.
Programming / Re: A Little Help With Java by adewaleafolabi(m): 9:36pm On Sep 25, 2009
Thanks aquastar its just more study for me.
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 12:24am On Sep 23, 2009
Guy u get talent for comedy o. Its good to see that you were able to solve ur problem. You're on your way to becoming a wiz
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 1:43pm On Sep 18, 2009
@there's a cafe here in ilupeju named ozone, speed goes as high as 800kbp/s, while average is about 120-150kbp/s. The first time i used it i went into panic lol i was getting constant download speed of about 300kbp/s. They use swift wireless hotspot service.
Programming / Re: Post Your Csharp, Cplusplus, Java And Assembly Questions Here. by adewaleafolabi(m): 11:01pm On Sep 17, 2009
@kobojunkie
thanks problem solved. Please could recommend me a book on java thats newbie friendly. I tried deintel but too much stories. Didn't like it.
Programming / Re: Post Your Csharp, Cplusplus, Java And Assembly Questions Here. by adewaleafolabi(m): 11:01pm On Sep 17, 2009
@kobojunkie
thanks problem solved. Please could recommend me a book on java thats newbie friendly. I tried deintel but too much stories. Didn't like it.
Programming / Re: A Little Help With Java by adewaleafolabi(m): 6:31pm On Sep 17, 2009
Thanks for the reply. That solved the problem but still am not quite clear on this issue.
I guess its more studying for me as am ne to java.
Okay for question 1, the problem is that the ouput starts from zero instead of 1
for(i=0;i<10;i++)
{
System.out.println(i);
}
since i=0 already the first value of i that should be printed is 1 and not 0; Thanks
Programming / Re: Post Your Csharp, Cplusplus, Java And Assembly Questions Here. by adewaleafolabi(m): 1:24pm On Sep 17, 2009
i have a little problem with java.

for(i=0;i<=10;i++)
{
System.out.println(i);
}
the output is 0 1 2 3 4 5 6 7 8 9 10
my problem with this is that it begins with 0. Now since i=0 and its less than 10, its supposed to increment it by one so the output should have started with 1.
I could just change the value of i such that i=1; but that would create another issue

ArrayList<Integer> points;
points = new ArrayList<Integer>();
System.out.println(points.size());

for(i=0;i<=points.size();i++)
{
points.add(i);
System.out.println(i+" The size is "+points.size());
System.out.println(points.get(i));
if(i==9)
{
System.out.println("Out ok"wink;
break;
}


}
Now my array would start from 0 which of course i don't want.

if i>1; then would generate an exception


Problem 2: I wrote a program to roll a pair of die and count the number of rolls. The program would end if it gets a 1,1.

public class NewEmptyJavaApp2 {


public static void main(String args[])
{
int x=0;
int y=0;
int count = 0;
int count1 = 0;
int count2 = 0;

while(true)
{
x=(int)(6*Math.random()+1);
y=(int)(6*Math.random()+1);
count++;
if(x!=1 && y!=1) //Here lies the problem.if changed to || works well
{ count1++;
System.out.println("'"+x+"','"+y+"'"wink;
}
else
{
count2++;
System.out.println("'"+x+"','"+y+"'"wink;
break;
}

}
System.out.println("Total:"+count);
System.out.println("Non snake:"+count1);
System.out.println("snake:"+count2);
}
}

The problem here is the && operator. From my understanding && is supposed to evaluate both conditions but in this case if x=1 and y>2 the program would end which is totally incorrect.

Please could someone help me clarify these issues. Thanks.
Programming / A Little Help With Java by adewaleafolabi(m): 9:37pm On Sep 16, 2009
i have a little problem with java.

for(i=0;i<=10;i++)
{
System.out.println(i);
}
the output is 0 1 2 3 4 5 6 7 8 9 10
my problem with this is that it begins with 0. Now since i=0 and its less than 10, its supposed to increment it by one so the output should have started with 1.
I could just change the value of i such that i=1; but that would create another issue

ArrayList<Integer> points;
points = new ArrayList<Integer>();
System.out.println(points.size());

for(i=0;i<=points.size();i++)
{
points.add(i);
System.out.println(i+" The size is "+points.size());
System.out.println(points.get(i));
if(i==9)
{
System.out.println("Out ok"wink;
break;
}


}
Now my array would start from 0 which of course i don't want.

if i>1; then would generate an exception


Problem 2: I wrote a program to roll a pair of die and count the number of rolls. The program would end if it gets a 1,1.

public class NewEmptyJavaApp2 {


public static void main(String args[])
{
int x=0;
int y=0;
int count = 0;
int count1 = 0;
int count2 = 0;

while(true)
{
x=(int)(6*Math.random()+1);
y=(int)(6*Math.random()+1);
count++;
if(x!=1 && y!=1) //Here lies the problem.if changed to || works well
{ count1++;
System.out.println("'"+x+"','"+y+"'"wink;
}
else
{
count2++;
System.out.println("'"+x+"','"+y+"'"wink;
break;
}

}
System.out.println("Total:"+count);
System.out.println("Non snake:"+count1);
System.out.println("snake:"+count2);
}
}

The problem here is the && operator. From my understanding && is supposed to evaluate both conditions but in this case if x=1 and y>2 the program would end which is totally incorrect.

Please could someone help me clarify these issues. Thanks.
Programming / Re: Game Programming Know How: by adewaleafolabi(m): 6:04pm On Sep 16, 2009
@lakeside
have u tried sourceforge.net ? You'd find anything there nowadays you know. And the beauty of open source is that its open. Also you might like to look into javaFX.

PS are u leke from tedder hall. If yes this is wale. How u dey
Programming / Re: Python Programming by adewaleafolabi(m): 2:07pm On Sep 13, 2009
@seun
i think u meant java instead.
Programming / Re: Python Programming by adewaleafolabi(m): 11:25pm On Sep 08, 2009
Seun i don't quite understand what you mean
Programming / Re: Google's G-africa Initiative For Nigerian Developers by adewaleafolabi(m): 1:13am On Sep 08, 2009
Thanks to ASUU i've picked up java, am learning but not a mobile dev yet.
Programming / Re: Python Programming by adewaleafolabi(m): 12:55am On Sep 08, 2009
Tried python again but i've moved to java now. And java's been fun. I encounter python frequently since i use ubuntu. Most likely i'd still come back to it. But am actually loving java's style
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 9:51pm On Sep 01, 2009
To install bin files simply open terminal and drag the bin file into it and press enter.

To change or install new themes, right click on your desktop and choose change background. A window would appear, Choose theme and happy customization.
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 6:04pm On Aug 26, 2009
@hansibone
no mind me. I was busy last weekend and moreover my injury is still telling much on me

@prof thanks jare
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 6:03pm On Aug 26, 2009
@hansibone
no mind me. I was busy last weekend and moreover my injury is still telling much on me
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 9:00am On Aug 21, 2009
@4llerbe
hansibone already have u a guide on how to install from source files. Also source files contain install instructions. If you extract the archive, inside it you should see a file named install, open it and read the instructions. Its the same as what hansibone wrote.
If you now want to make a deb you can install checkinstall.
Really installing from source could be a real pain at time cuz of some real strange dependencies
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 4:55pm On Aug 20, 2009
@hansibone
when u said at home where were u referring to ? The island or where
About the deb issue, i'd go get it online myself. I've been doing that now for some time now. The easy way is to mark the package u need in the synaptic package and generate a package download script from the file menu. Now you can view this script and copy the links to the deb files you want even in windows
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 9:11am On Aug 20, 2009
@hansibone
just some basic stuff like vlc cuz totem really messes up in some areas. Also how do i get to ur place cuz am ready 2come. Tomorrow is gonna be real busy for me. I'd appreciate if you'd reply ASAP. Thanks
Computers / Re: Ubuntu Linux by adewaleafolabi(m): 8:22pm On Aug 19, 2009
you'd probably have the deb's i need self so no need 4 downloads.Ok plz how do i get to ur place ?

(1) (2) (3) (4) (5) (6) (7) (8) ... (11) (12) (13) (14) (15) (16) (17) (18) (19) (of 55 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. 35
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.