Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,831 members, 7,817,431 topics. Date: Saturday, 04 May 2024 at 12:08 PM

Mkwayisi's Posts

Nairaland Forum / Mkwayisi's Profile / Mkwayisi's Posts

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

Investment / Re: Nigerian Stock Exchange Market Pick Alerts by mkwayisi: 7:04pm On Sep 01, 2014
mkwayisi:
IMO, the hottest stock for short-term investment is PREMBREW. Since August 8, it has consistently risen from #0.77 to 1.65 (105.19% increase), within just 17 days!! Of course, you should know when the chips are set to come down smiley
Is there anyone who took action in connection with the above quoted post, which was posted exactly a week ago? If someone had, the person would be laughing 32.12% louder today. Still, any takers this week? (Don't forget, however, that the day of calamity is fast approaching.)
Investment / Re: Nigerian Stock Exchange Market Pick Alerts by mkwayisi: 2:08pm On Aug 25, 2014
SKYQUEST: Deal all, I want to make short to medium term entries into any 10 of the following picks at the entry price indicated, make una please advise me biko!:

ASHAKACEM 33.00
CAVERTON 5.60
CCNN 14.50
DANGSUGAR 8.70
ETI 16.25
FBNH 14.60
FCMB 4.25
FIDELITYBK 1.95
FIDSON 3.20
JAPAULOIL 0.51
MAYBAKER 1.58
SKYEBANK 2.9
TOTAL 179
TRANSCORP 5.65
UBA 7.2
UBN 8.16
VITAFOAM 4.1
WAPIC 0.76
IMO, the hottest stock for short-term investment is PREMBREW. Since August 8, it has consistently risen from #0.77 to 1.65 (105.19% increase), within just 17 days!! Of course, you should know when the chips are set to come down smiley
Investment / Re: Nigerian Stock Exchange Market Pick Alerts by mkwayisi: 3:44am On Aug 22, 2014
soloniger: what is this NSEMPA meaning? my BnSITL
Interestingly, "nsempa" literally means "good news" in the Akan language smiley

4 Likes

Programming / Re: 5,000 Naira For Someone Who Can Reverse This Code by mkwayisi: 4:16pm On Jan 10, 2014
mutago: I just develop an encryption software on my own to secure my company source code on the server. 5,000 naira to anyone who can reverse this code below. Google and take it anywhere in the world for soultion.

Remember. 5,000 naira awaits you. All you have to do is to show us some portion of the encrypted codes.
Thank You

U2FsdGVkX1+tobr1PpzkuRlkv4uwmj8s3dPEw+/LLZ51vj/w+LDFBwWwbtTvfaW4c1WLBMFGxBAqKWz3YHT1i9o3vCMwW74sVJWGbvooaH/gXuThaRyFMYCM0h05ez8QFT0OvTxKaN/SrDSqmYUWWGRwZcDuyXOZybVj4eK2xROWVKOv7BolrQGd85q8Q59tuVL8s2bdeLY1eOXGlCEvfOYbyj07yMvK67Nu51jN/qnJmR3Q5/H/K2XO8vFP+nBsrtEa2Iw5t67obxQo2oxVZZuKIFCjCh9FkHJQWUffraZtWM5XqdN65yD7lmBDiCtK+/mZ7MfotbIQFHdBv7STxQ==

The first 8 bytes of the cypher, that is "U2FsdGVkX1+", is "Salted__" encoded in base64. Now where is my 5,000 naira?

2 Likes

Programming / Re: Where Does Programming Belong? by mkwayisi: 5:10pm On Dec 16, 2013
Programming is a combination of science and art.

Generally, science is defined as the study of the physical and natural world using theoretical models and data from experiments or observation. How does that relate to programming? See, as you're learning programming, you will, by all means, write lots of buggy code before you can fully understand what a "bug" really is. In addition, you will try out several data structures, algorithms, design patterns, etc.; many of which won't work. All these things shape you intellectually to become a better programmer. There . . . experiments.

According to Bill Gates (admittedly, not the best of programmers), "the best way to prepare [to be a programmer] is to write programs, and to study great programs that other people have written." He admits that he was hugely influenced by the writers of the the PDP operating system because he thoroughly studied their code that he sometimes fished from garbage cans. One interesting thing he believes is that "one of the finest tests of programming ability is to hand the programmer about 30 pages of code and see how quickly he can read through and understand it." There . . . observation.

However, programming hasn't been able to be broken down into components so that programs written by programmers can by themselves write other programs yet. Because of this, conventional wisdom has it that programming needs creativity and design; a kind of craft that has a master. Programs need to be designed and worked on without a conclusive end, like painting. If there is no way for a procedure to be perfected or made flawless, it therefore cannot be called science. It's probably an art. Yes, there . . . art.

So programming is a combination of skill (science) and talent (art). That is my opinion; I'm entitled to it, the same way you are also to yours.

3 Likes

Programming / Re: C/C++ Doctor: Get Help In Writing C/C++ Programs by mkwayisi: 10:13pm On Nov 17, 2013
veektorh:
. . .
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
. . .
Find the sum of all the multiples of 3 or 5 below 1000.
This attitude is neither fair nor fine. Please don't post puzzles just so you could test others. A simple Google search of your question yields solutions in almost every programming language. Stop judging that you may not be judged.
Programming / Re: Hlp With Link To Download A Good C/C++ Compiler With A Size Of 30-40mb by mkwayisi: 9:51pm On Nov 17, 2013
olu_kenzo: GNU Compiler Collection (GCC), Cygwin, Mingw, g++ are compilers.
They're not. GCC is a compiler system - Africa is not a country, is it? Cygwin is a runtime environment for POSIX apps. MinGW is a development environment of programming tools.

olu_kenzo: Its easy to mix it up.
Yes, just like you did smiley

olu_kenzo: Reminds me of the arguments on what roles gcc and g++ play.
Reminds me of those of the differences between cc, cpp and gcc too.

olu_kenzo: A lot things going on under the hood.
Actually, a few. Unless you're coming from a .NET playground.

olu_kenzo: GCC invokes g++ for c++ compiles and gcc for C compiles.
gcc (the binary), not GCC (the system), does invocations for compilations.

olu_kenzo: Face palms.
Sure.

olu_kenzo: Let's keep it simple guys!
Certainly saves us all time.

2 Likes

Programming / Re: Robocode by mkwayisi: 3:33pm On Jul 18, 2013
Interesting! I was actually looking for something like this awhile ago. But from reading the docs, it seems the game engine is not fair to "smart" robots since the winner of a battle is determined by one's score. I believe the last survivor *should* be the winner instead. Anyway, I'll try putting something together with the sole purpose of competing with yours. Just hang on wink
Programming / Re: Code Challenge [1]: Pseudo-code, C#, JAVA (apply Object Oriented Principles) by mkwayisi: 6:09pm On Jun 23, 2013
Hey kids. What's with you and "OOP"? OK, being an old fart, I'd like to present a solution in C just in case anyone wishes to learn something from it. Here is a complete program to do the stuff:

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(void)
{
char ***matrix;
int i, j, k, l, ix, jx, len, dir, size;
char buf[16];

printf("Enter the size of your matrix: " );
fgets(buf, sizeof(buf), stdin);
len = strlen(buf);
if (buf[len-1] == '\n')
buf[len-1] = 0;

if ((size = atoi(buf)) < 1) {
printf("Error: Invalid input '%s'.\n", buf);
return 1;
}

matrix = malloc(sizeof(char **) * size);
if (matrix == NULL) {
printf("Error: malloc failed." );
return 1;
}

for (i = 0; i < size; i++) {
matrix[i] = malloc(sizeof(char *) * size);
if (matrix[i] == NULL) {
printf("Error: malloc failed." );
for (j = 0; j < i; j++)
free(matrix[j]);
free(matrix);
return 1;
}
}

for (i = 0; i < size; i++) {
for (j = 0; j < size; j++) {
printf("Enter value for matrix[%d][%d]: ", i, j);
fgets(buf, sizeof(buf), stdin);
len = strlen(buf);
if (buf[len-1] == '\n') {
buf[len-1] = 0;
len--;
}

matrix[i][j] = malloc(sizeof(char) * (len + 1));
if (matrix[i][j] == NULL) {
printf("Error: malloc failed." );
for (; i >= 0; i--) {
for (j--; j >= 0; j--)
free(matrix[i][j]);
free(matrix[i]);
}
free(matrix);
return 1;
}

strcpy(matrix[i][j], buf);
}
}

printf("\nThis is how your matrix looks like:\n" );
for (i = 0; i < size; i++) {
for (j = 0; j < size; j++) {
printf("%s ", matrix[i][j]);
}
printf("\n" );
}

printf("\nNow, here is the matrix in spiral order:\n" );
dir = 0; // 0 = R; 1 = D; 2 = L; 3 = U;

i = 0, j = -1;
for (len = size; len > 0; len--) {
for (k = j < 0 ? 1 : 0; k < 2; k++, dir++) {
switch (dir % 4) {
case 0: ix = 0; jx = 1; break;
case 1: ix = 1; jx = 0; break;
case 2: ix = 0; jx = -1; break;
case 3: ix = -1; jx = 0; break;
}

for (l = 0; l < len; l++) {
i += ix; j += jx;
printf("%s%s", !(i || j) ? "" : ", ", matrix[i][j]);
}
}
}
printf(".\n\n" );

for (i = 0; i < size; i++) {
for (j = 0; j < size; j++)
free(matrix[i][j]);
free(matrix[i]);
}
free(matrix);

return 0;
}

1 Like

Programming / Re: C Code Help: How Do I Go About This? (pointer To Pointer) by mkwayisi: 2:12pm On May 21, 2013
I surely know this is going to be an overkill but I just want to suggest to you a cleaner and better way to implement such thing. Note that, within the "main" function, I ignored all error checks so as not to *obnubilate* the intent of the program.

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

typedef struct _page {
char *header;
char **items;
size_t count;
} page;

typedef struct _page_box {
page **pages;
size_t count;
} page_box;

//==[ CODE ]===================================================================
// create_page_box
page_box * create_page_box(void)
{
page_box *pb;
if ((pb = malloc(sizeof(*pb))))
memset(pb, 0, sizeof(*pb));
return pb;
}

//==[ CODE ]===================================================================
// create_page
page * create_page(page_box *pb, const char *hdr)
{
if (pb != NULL) {
pb->pages = realloc(pb->pages, sizeof(*pb->pages) * (pb->count + 1));
if (pb->pages != NULL) {
pb->pages[pb->count] = malloc(sizeof(page));
if (pb->pages[pb->count] != NULL) {
memset(pb->pages[pb->count], 0, sizeof(page));
if (hdr && (pb->pages[pb->count]->header = malloc(strlen(hdr) + 1)))
strcpy(pb->pages[pb->count]->header, hdr);
pb->count++;
return pb->pages[pb->count-1];
}
}
}
return NULL;
}

//==[ CODE ]===================================================================
// add_page_item
int add_page_item(page *pg, const char *str)
{
if (pg && str) {
pg->items = realloc(pg->items, sizeof(*pg->items) * (pg->count + 1));
if (pg->items != NULL) {
pg->items[pg->count] = malloc(strlen(str) + 1);
if (pg->items[pg->count] != NULL) {
strcpy(pg->items[pg->count], str);
pg->count++;
return 1;
}
}
}
return 0;
}

//==[ CODE ]===================================================================
// free_page_box
void free_page_box(page_box *pb)
{
int i, j;
for (i = 0; i < pb->count; i++) {
for (j = 0; j < pb->pages[i]->count; j++)
free(pb->pages[i]->header);
free(pb->pages[i]);
}
free(pb);
}

//==[ CODE ]===================================================================
// main
int main()
{
page_box *pb;
page *pg;
int i, j;

// Create a container for all pages
pb = create_page_box();

// Create page 1
pg = create_page(pb, "Header 1" );
add_page_item(pg, "pg1menu1" );
add_page_item(pg, "pg1menu2" );
add_page_item(pg, "pg1menu3" );

// Create page 2
pg = create_page(pb, "Header 2" );
add_page_item(pg, "pg2menu1" );
add_page_item(pg, "pg2menu2" );

// Create page 3
pg = create_page(pb, "Header 3" );
add_page_item(pg, "pg3menu1" );
add_page_item(pg, "pg3menu2" );
add_page_item(pg, "pg3menu3" );

// Print out all the pages
for (i = 0; i < pb->count; i++) {
printf("%s\n===========\n", pb->pages[i]->header);
for (j = 0; j < pb->pages[i]->count; j++) {
printf("%d. %s\n", j + 1, pb->pages[i]->items[j]);
}
printf("\n" );
}

// Free all allocated memory
free_page_box(pb);
pb = NULL;

return 0;
}

1 Like

Programming / Re: What Can I Do With Command Prompt? by mkwayisi: 12:27pm On May 19, 2013
Powershell: I allow users to pipe objects.
Bash: Huh?
Powershell: I mean instead of piping literal strings to other commands, the user can pipe objects too.
Bash: Are you saying the program on the receiving end can receive an actual instance of a class containing members and all... Like OOP stuff?
Powershell: Yes.
Bash: That's so cool!! How do I make something like that too?

2 Likes

Programming / Re: What Can I Do With Command Prompt? by mkwayisi: 10:04pm On May 18, 2013
babihouse: thanks but it is not working
There is no reason why it won't work. It SHOULD work.
Programming / Re: What Can I Do With Command Prompt? by mkwayisi: 6:18am On May 15, 2013
lordZOUGA: I don't like windows Command prompt. Bash on Linux is way cooler.
Hey, sup? Can you expatiate on what makes bash cooler than cmd? If you give too many reasons, I'll step in Powershell wink
Programming / Re: What Can I Do With Command Prompt? by mkwayisi: 11:51pm On May 14, 2013
babihouse: what can i do with command prompt? how powerful is it? pls drop any material that will aid my learning.
Windows command prompt is pretty powerful, and I hope this aids your "learning". Open your command prompt and execute the following command:
echo start dance > dance.bat & dance
Thank me later.

1 Like

Programming / Re: Which Programming Language Is Best For Building An Hospital Management Software by mkwayisi: 9:51pm On Mar 29, 2013
nairawall: WinDev: from my research, I discovered the WinDev development suite uses the w-lang which is a fifth generation programming language.

Erhm, please let me point out that WinDev's WLanguage is actually a fourth-generation language as the programmer needs to come up with algorithms rather than constraints to accomplish a task. The WinDev team may be tickling themselves with their tool being a 5GL but my academic notes tell me otherwise.

2 Likes

Programming / Re: Which Programming Language Is Best For Building An Hospital Management Software by mkwayisi: 6:23pm On Mar 28, 2013
ciphoenix: @OP if you're the coder, then work with the language you're comfortable with

Guys, please stop saying that. It's like someone asking "Which mode of transportation is best when traveling from Abuja to London" and you replying "Whichever mode you are comfortable with." The guy might think: "Yay! Then I'm going to go by road on my bicycle since I feel so comfortable riding it." See? Your reply could have saved a humble life!

2 Likes

Programming / Re: Code Breakers Challenge by mkwayisi: 10:27pm On Mar 18, 2013
fx0ne: The competition is now closed.

Sure, but we look forward to reading the encoding algorithms used.

1 Like

Programming / Re: Code Breakers Challenge by mkwayisi: 3:41pm On Mar 14, 2013
fx0ne: You didn't attempt the second challenge?

Yea, I skipped it. I may attempt it later on.
Programming / Re: Code Breakers Challenge by mkwayisi: 9:48pm On Mar 13, 2013
Nigeria is the greatest country in the world. Yeah.
Programming / Re: Code Breakers Challenge by mkwayisi: 4:02pm On Mar 11, 2013
This is actually quite simple. You have successfully decoded the first message. Beware though, the next one would not be so simple. All the same, well done.
Programming / Re: Python Is So Slow by mkwayisi: 2:28am On Mar 06, 2013
Man, you should seriously consider writing your web apps in assembler. With that, you'll never worry about speed again.

1 Like

Programming / Re: Ethical Hackers by mkwayisi: 12:24pm On Feb 24, 2013
You know one thing about hacking (in the positive sense)? You make it public, so someone else can improve it. It may amaze you to discover that something that you see as a lifetime achievement is actually something that a 9-year-old has done for fun.
Programming / Re: Php Gurus, Showcase Your Best Applications Here by mkwayisi: 10:54pm On Feb 23, 2013
I'm not a PHP guru (far from it; may take me a lifetime to reach that status) but here's a simple simultaneous equations solver I just wrote. The complete source code is available as well.

2 Likes

Programming / Re: Can I Call Myself A Good Programmer If I Only Know Visual Basic by mkwayisi: 3:39pm On Nov 04, 2012
Joe50: of course...
5 days gone and still no link to source. I give up... it ain't coming tongue
Programming / Re: Can I Call Myself A Good Programmer If I Only Know Visual Basic by mkwayisi: 12:49pm On Oct 29, 2012
@Joe50: Can you make the code publicly available? I'm particularly interested in the browser and calculator applications.
Programming / Re: Java SE, EE & Scala Developers - Lets Connect And Share Knowledge by mkwayisi: 4:53pm On Oct 25, 2012
What are those tools you combine to streamline your coding process?
Programmer's Notepad and Windows command scripts.

How do you handle requirements/deadline?
Honestly, I mostly miss them. If not, the code written getting to the deadline are all crap!

Agile or Scrum?
None. Probably, Waterfall.

Do you write tests before coding?
No.

TDD? Subversion?
Subversion. I think it's the most useful software ever developed. [Yes, I know there's something called git.]

How do you continue to improve on your skills?
Hanging around with people who are *always* better than me in everything except sucking.

What book will you recommend and why?
The Pragmatic Programmer - From Journeyman to Master. Because whenever I try to read it, I realize how bad my software really are.

2 Likes

Programming / Re: [Help Request] Teach Me How To Design Databases. by mkwayisi: 4:24pm On Oct 25, 2012
@olyjosh:
structure of tables of data grouped together called relational database
No way, man. A relational database is a database organized based on the relational model.

STANDARD QUERY LANGUAGE?
Did you mean to say Structured Query Language?

learn MYSQL or ORACLE, since Access among other are going out of use.
Are you serious? Access is by far the number one *desktop* database system.

For low level database go for Microsoft Access or Excel
I always thought Excel is a spreadsheet application. Never knew it was a DBMS too.

Call me if you need more tips-08061662025
Expect mine too wink

5 Likes

Programming / Re: [Help Request] Teach Me How To Design Databases. by mkwayisi: 12:47pm On Oct 23, 2012
GideonG: There is nothing like database designing.
You don't design database, you work with database.
No, there's something like database design. Database design is a process of building a data model that accurately represents your database. It is in your design that you specify the various entities, attributes and relationships that comprise the whole database system, i.e. if you're working with the relational data model. Read more on this at http://en.wikipedia.org/wiki/Database_design

3 Likes

Programming / Re: Abeg O,help Me With Dis VB.NET Code by mkwayisi: 8:16am On Oct 14, 2012
I'm a bit rusty with VB but from what I can see, everything works just that you're not showing the answer in textBox3. So perhaps you might want to do something like this:
textBox3.Text = ans
Programming / Re: Funny Source Code Comments by mkwayisi: 6:15pm On Oct 13, 2012
import com.nairaland.*;
try {
new Comment("Hello, fellas!" );
} catch (DerailedThreadException e) {
System.out.println("What now, " + e.getWhinyUser() + "?" );
}

1 Like

Programming / Re: Funny Source Code Comments by mkwayisi: 4:10pm On Oct 13, 2012
webdezzi:
₱®ÌИСΞ:
Import world.smart.charming.females
Supercoolchick hottie = new Supercoolchick()
it will compile as long as the capital case of "Import" is corrected
No, I'm afraid it won't. Take a look again.
Programming / Re: Funny Source Code Comments by mkwayisi: 7:22am On Oct 13, 2012
₱®ÌИСΞ:
Import world.smart.charming.females
Supercoolchick hottie = new Supercoolchick()
I don't think that would compile wink

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