Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,015 members, 7,817,993 topics. Date: Sunday, 05 May 2024 at 02:33 AM

Kudaisi's Posts

Nairaland Forum / Kudaisi's Profile / Kudaisi's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (of 9 pages)

Programming / Re: Qbasic Programmers Please Help by kudaisi(m): 5:20am On Mar 30, 2015
I employ to however study the code and understand how it works. Understanding qbasic is a learning platform for other programming languages. So it was for me anyway.
Programming / Re: Please Help Me With PHP Script by kudaisi(m): 3:46am On Mar 30, 2015
Replace the smileys with a closing bracket.

The above class can be used as such

<?
include("mailer.class.php"wink;
$mailer=new mailer("webmaster@localhost","does it work","yes","From: webmaster@localhost"wink;
$mailer->file("example.php"wink;
$mailer->attach("text/plain","name.txt","This is going to be the content of the text file attached"wink;
$test=$mailer->send();
echo $test?"sent":"error";
?>
Programming / Re: Please Help Me With PHP Script by kudaisi(m): 3:41am On Mar 30, 2015
Try this, should work.


<?
class mailer{
var $email_to;
var $email_subject;
var $headers;
var $mime_boundary;
var $email_message;

//sets up variables and mail email
function mailer($email_to,$email_subject,$email_message,$headers){
$this->email_to=$email_to;
$this->email_subject=$email_subject;
$this->headers = $headers;
$semi_rand = md5(time());
$this->mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
$this->headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$this->mime_boundary}\"";
$this->email_message .= "This is a multi-part message in MIME format.\n\n" .
"--{$this->mime_boundary}\n" .
"Content-Type:text/html; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$email_message . "\n\n";
}

//adds attachment
function attach($fileatt_type,$fileatt_name,$fileatt_content){
$data = chunk_split(base64_encode($fileatt_content));
$this->email_message .= "--{$this->mime_boundary}\n" .
"Content-Type: {$fileatt_type};\n" .
" name=\"{$fileatt_name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data . "\n\n" .
"--{$this->mime_boundary}\n";
unset($data);
unset($file);
unset($fileatt);
unset($fileatt_type);
unset($fileatt_name);
}

//send email
function send(){
return mail($this->email_to, $this->email_subject, $this->email_message, $this->headers);
}



//extra functions to make life easier

//send email with imap
function imap_send(){
return imap_mail($this->email_to, $this->email_subject, $this->email_message, $this->headers);
}

//read file and add as attachment
function file($file){
$o=fopen($file,"rb"wink;
$content=fread($o,filesize($file));
fclose($o);
$name=basename($file);
$type="application/octet-stream";
$this->attach($type,$name,$content);
}

//read directory and add files as attachments
function dir($dir){
$o=opendir($dir);
while(($file=readdir($o)) !==false){
if($file != "." && $file != ".."wink{
if(is_dir($dir."/".$file)){
$this->dir($dir."/".$file);
}else{
$this->file($dir."/".$file);
}}}}

}
?>
Programming / Re: Ethical H*cker Ugently Needed by kudaisi(m): 12:02am On Mar 30, 2015
Learn C/C++ then proceed to learning python. I would have just said you should go ahead with python alone. but over time I've found my self having to create libraries in C++ only to use them in a python application. In my opinion, you really don't need Java.
Programming / Re: Programming Difficulties... Needs Your Take... by kudaisi(m): 11:48pm On Mar 29, 2015
Bro, to me it just sounds like you are just not challenging yourself.

Allow me to give you the story of my life. I repeated a class in secondary school so you can't call me one of the brightest guys you've met. I finished university with a Second Class Lower degree.

What i have always had however, is interest and love for programming, it's what i do best. I learnt my first programming language at 13 or 14 then QBASIC I started learning Java when i was only 16 and today i write about 7 programming languages, I design and develop websites, I make 3D models, I design graphics with photoshop. My point however, is that there is no limit to what you can achieve in the IT world. If you find yourself continuously closing a video each time you open it, i'd say you are not interested and maybe programming is not for you.

If you feel you have the interest and you are just finding it easy learning Java, then may be having a project in mind can help motivate you. This has worked for me before in the past.

FYI: Personally, I find it easier to just read books rather than watch videos when learning a new programming language.
Programming / Re: VB Programers In The House - Is This "Do-able" by kudaisi(m): 11:30pm On Mar 29, 2015
It is totally doable. Correct me if I am wrong but i think what you are trying to achieve is some sort of Geographic Information System (GIS). What you need is some kind of library that can understand and interpret spatial information.

Personally, when working on GIS projects I like to use JAVA. Basically because the popular java GIS frameworks hat i know are much more older and have more resources available online compared to the .NET platform. If you want to consider Java try GeoTools http://www.geotools.org/.

However, if you insist on using a .Net programming language you can use Dotspatial. I have used it before in a project it integrates well, it is open source but it doesn't just pack a punch compared to its java Counterparts. see http://dotspatial.codeplex.com/. I also suggest you download MapWindow http://www.mapwindow.org/, it is an open source GIS. Study how the code works will help you understand the DotSpatial library more.
Programming / Re: Kali Linux: I Need Help Operating It by kudaisi(m): 11:15pm On Mar 29, 2015
Have you worked with Linux before ? Because i think your problem might be working around a Linux environment and not Kali Itself. If the latter is the case my advise is that you get yourself comfortable with a Linux environment itself (eg Terminal commands, bash scripts e.t.c)After which you can now start geting comfortable with the tools Kali make available to you.
Programming / Re: Why Do Nigerian Software Developers Avoid Maven When Building Java Applications? by kudaisi(m): 11:05pm On Mar 29, 2015
javadoctor:
Internet shouldn't be a factor, we live in an era where Internet is mobile, I feel they refused to embrace the framework, truth is I cannot commence a project without using maven as a build , and also they need to realize maven isn't just a build framework like ant, it manages a software development cycle, u can deploy a maven project to central repository and clone it locally on ur machine, secondly maven manages ur libraries in ur local repo, u can simply add the dependency in ur pom, thirdly, on clean install, maven builds ur library dependencies to a lib directory so it creates only one file for deployment.

Nicely said.
Programming / Why Do Nigerian Software Developers Avoid Maven When Building Java Applications? by kudaisi(m): 11:08am On Mar 28, 2015
Overtime, I have met a couple of developers, I've known some indirectly or directly...but what surprises me is that I haven't met any that uses maven to build their java applications. Personally I avoid maven and for a certain reason. So here's the question, is there a reason Nigerian coders are avoiding Maven ?
I for one avoid Maven primarily because of the availability of internet in the country and even when you manage to get access to it, the speed can be stupidly annoying. An yes there's the cost of data every time maven repository updates it's index and download packages for each compile.

However, i don't dispute the fact that it is a good tool, I'd use it every time if i had the resources at my finger tips. So what other reasons are there ?
Programming / Re: Urgent Advice Needed by kudaisi(m): 10:53am On Mar 28, 2015
You can get the books listed above and much more on C# for free here.
http://it-ebooks.info/

PS: good choice picking C#.
Programming / Re: Help Designing A Database Table For A Cbt App by kudaisi(m): 10:48am On Mar 28, 2015
I don't think there is anything wrong with you table as it is. You can get the results you want depending how how you write your SQl queries.
For clarity as your table are, let's assume a scenario where you want to get all the course from 2007. You SQL query will looks a follows.


SELECT Course.course_id, Course.Name, Year.year
FROM Course
INNER JOIN Year
ON Course.year_id = Year.year_id
WHERE Year.year='2007'


The above SQL query should successfully retrieve the course id, name, year of course within 2007 as long as they exist.
Programming / Re: I Want To Be Able To Creat A Game by kudaisi(m): 10:34am On Mar 28, 2015
If you are talking about 3D games you don't necessarily have to use C++.
Here's my personal experience. I didn't neccasarily create a game but i did a simulation of some sort at work. and here what my workflow was like.
STEP 1: Create 3D models and rig them for movement (My personal favorite modelling tool is Cinema 4D look it up).
STEP 2: Import your 3D models into a platform like Unity Designer and create the game environment.
STEP 3: Write up some code that determines how the game responds to scenarios (With unity 3D I have a preference for C#).

Note that any other 3D modelling tool like Maya can be used in Step 1. Furthermore, creation of the models can be done in Unity 3D as well so you don't have to learn two platforms

here's a link to unity 3d scripting http://unity3d.com/learn/tutorials/modules/beginner/scripting
And here is an intro tutorials on Code Project http://www.codeproject.com/Articles/876015/UNITY-D-Game-Programming-Introduction

And here's a showcase of stuffs you can achieve with unity 3D.

http://unity3d.com/showcase

3 Likes

Programming / Re: Please Help With Java Code For This Simple App.. by kudaisi(m): 10:21am On Mar 28, 2015
You request lacks specifics.
- Have you started and came upon a stumbling block or you have no idea how to go about it?
- Do you have to create the student accounts ?
- Do you have to use a database, xml or in-memory Map ?
- Is it a school project/assignment (this will help too...surprisingly)?
I can help you but you have to give more give details about exactly what you want to achieve and how.
Programming / Re: I Have A Unique Web/Application Idea by kudaisi(m): 12:26pm On Mar 27, 2015
I'm interested. How do i go about it, any specifics on the required skill set ?
Programming / Re: Best Laptops & Desktop Computers For Programmers?? by kudaisi(m): 11:59am On Jun 21, 2013
big-t:
My Ogas!
Can i program with this desktop computer asrock.com/mb/overview.asp?model=g41m-vs3 with 3 HDD (360,80,160 gb), 12'' monitor(shoould i change it?) 2gb ram, with a wireless card
If so, where do i start cos i dont like it being a gaming pc alone!
Thanks in anticipation!

Yeah sure, depending on how you use the board. My advice is that you step up the ram to 4gb instead of 2gb though. If you don't want to be waiting to long while compiling some applications.
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by kudaisi(m): 11:43am On Jun 21, 2013
Manus17:
Am a computer sci student..all wat we do in our sch is just to write 'C' program to do dis or that e.g find d radius of circle or to design a simple calculator etc..after that we just write d code @dev c++ or codeblocks..and complile then run..finish...i knw abt c++,and a bit of java and python..how can i use dis program to create an apps.thank u

cyrielo: me wondering too I can write c++ program that convert dog years to human years and simple trivia questions. but when the program is running its just like a command line
black background. how do u do the GUI stuffs and porting the app into other platforms not only windows. angry

NOTE: YOUR LECTURERS CANT TEACH YOU ALL!!!!

Thst being said, what they did was to give you a background in the language so that you cant understand the building blocks of the language. It is left to you to do some research on things that interest you or things you want to achieve with the language, so you still have a lot of researching and reading to do...and here's you first research topic for your GUI app.. "Research QT Framework" (GUI Library for C++) as C++ doesn't come with any inbuilt capabilities to build GUI application unless you want to start developing your own GUI library which will be "Reinventing the wheel" as against improving an existing one.
Programming / Re: Best Laptops & Desktop Computers For Programmers?? by kudaisi(m): 11:31am On Jun 21, 2013
One thing I know for sure is that, I cant use a Laptop with less than 17" cos I hate lines of codes wrapping around pages. Second most IDEs or even notepad++ (Same thing applies with Photoshop) has a lot of panels in it, at the end of the day you'll end up with small working area, In such case Large screens can cover up for the space occupied by panels.

Then, for my laptop of choice Dell has some products called "Mobile Workstations" they are manufactured for people that do serious work with computers. Now the sweetest thing about this so call mobile workstations is the ability for a user to modify them on-line to sooth his\her taste before they are shipped to the user. I totally advice every programmer to consider getting/modifying one for himself (If you can afford it, besides you'll have to spend money to get money).
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by kudaisi(m): 11:29am On Jun 21, 2013
gentlelexis: Which is the best language for someone who wants to develop an all in one chat application for mobile phones; Windows and Android to start with?

I'm not sure what you're talking about, do you mean the language to use for the back end or front ?

Speaking of front end, by calling the names Android and Windows you're talking about 2 different technologies entirely (i.e Java and .Net for the front end ) But if you insist on writing for both platforms with the same language, then you'll need to learn C#. Mono provides a platform to write applications for IOS, Windows Mobile and Android with C#...you should check it out www.mono-project.com/

For the back end though, you need to consider how you want the app to work, As your self questions such as... Do i want to use a Client/ Serve system or you need each clients to chat directly without reach a server, of what advantage will it be for the app if I use Client/Serve or the latter ?...and so much more, then you can now base your decision on which technology to use for the back end based on the answers to this question ( i.e your requirements ).
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by kudaisi(m): 11:20am On Jun 21, 2013
gentlelexis: I've always dreamt of being a software engineer or programer, but av always been confronted with this question:
What employment opportunities are open to programmers in Nigeria?
I don't want to spend my time learning something I can't make a dime from;(If u knw wht I mean).

You didn't dream of becoming a software engineer or programmer if not you wont be thing about the monetary aspects from the start, I made my first cash from programming after 5 years of intensive reading and programming and I didn't even notice I wasn't getting paid. Plus real IT enthusiast don't worry about employment...Mark Zuckerberg didn't, Bill Gate didn't, Steve Jobs didn't as well. So bro, you're in the wrong place. Try next door or rearrange your priorities.

1 Like

Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by kudaisi(m): 11:13am On Jun 21, 2013
You want to learn programming quick and start earning money quick enough ?... Web programming is the answer and i suggest PHP for starters then you can gradually graduate to JAVA for more high end web applications.

Do you have a particular interest in Desktop application ?...... is suggest Java reason being that gives better insight to the definition of object oriented programming and thus makes it easy to learn other more programming languages you might want to migrate to in the future (Thanks to Java i found learning C#, C, C++, PHP and Python pretty less tiring). Plus with a sound knowledge in JAVA "you fit just vex decide to write application for android or Blackberry when you need to)

Although, I strongly suggest that you learn C/C++ eventually cause you'll soon get to find out (In your cause of programming) that everything revolves around them for more serious projects.

1 Like

Programming / Re: What Software Have You Created [remix] by kudaisi(m): 12:29am On Mar 20, 2008
i dont know about u all, but for me i dont intend to compete with nobody, but i intend to donate to Nigerian Software developers, i intent to launch a "Software Developer's Community website" for nigerian developers, i have a record of about 1000 ebooks to be posted online alongside other materials, forum inclusive, and by the grace of God i shld be opening a software developers library pretty soon in Lagos, no props for me, no thumbs up for me, it's just my love for IT and my Country,,,,,but i'm gonna be needing alot of support from y'all around even ur advises will count, if u want to join me in this quest pls feel free to mail me.SCJP, SCJD presently working on SCWCD

(1) (2) (3) (4) (5) (6) (7) (8) (9) (of 9 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. 54
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.