₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,115 members, 8,429,423 topics. Date: Thursday, 18 June 2026 at 08:49 PM

Toggle theme

Silento's Posts

Nairaland ForumSilento's ProfileSilento's Posts

1 2 3 4 5 6 7 8 ... 34 35 36 37 38 39 (of 39 pages)

ProgrammingRe: What The Different Between ENUM And ARRAY In Java by silento(m): 8:59pm On Oct 03, 2016
I don't know for java but in c language

enum is defined constant name for integer value for easy remembrance for the programmer

array is a collection of data or value address

in a real word

we know that we have 12 month in a year and enum of months can go like this

enum month{jan,Feb,...}

and
an array may contain how many days are in each month
ex.
days[12]={30,31,34,....}

to access how many days that is in February you can just like

days[Feb]

instead of remembering that February is the second month of the year


so with this example

enumeration type is a defined name for an integer value for easy remembrance
ProgrammingRe: . by silento(m): 1:52pm On Sep 23, 2016
logicalhumour:
She and some others tells me I'll face health challenges in the future.
try to code in mid week like Wednesdays and week ends Sunday two intensive days in a week is ok hope is nothing without life

wish u best of luck
ProgrammingRe: The most popular programmer on Nairaland 2016 Edition by silento(m): 12:33am On Sep 22, 2016
I call myself to the duty


https://www.nairaland.com/silento


c and python my magic tools
ProgrammingRe: Seun Agrees To Reward Anybody That Can Fix A Problem On Nairaland.. by silento(m): 2:31am On Sep 19, 2016
Davonjagah:
this problems are network related. sort your device out not the page
I don't thing so

the redirect problem I think it is caused on the side he uploaded the website I think it time to upload Nairaland on a site with more bandwidth
Science/TechnologyRe: Nairalander With Iphone 7 by silento(op): 11:19pm On Sep 17, 2016
Harvest601:
grin
gimp in making
Science/TechnologyNairalander With Iphone 7 by silento(op): 10:06pm On Sep 17, 2016
embarassed tongue grin

my kidneys are intact and am flexing it now

ProgrammingRe: Learn File Struction With C Language by silento(op): 9:57pm On Sep 13, 2016
codeSavant:
tanx...
you are welcome

am writing update for my video converter this is some part of the code

more c examples loading

next how to setup a complete and easy GUI library in c langaue
ProgrammingLearn File Struction With C Language by silento(op): 5:22pm On Sep 13, 2016
lets start with basic mp3 id3 tags


visit http://id3.org/ID3v1:
to learn more


mp3 id3 tags looks some thing like this:


typedef struct mp3_id3
{
char Tag[3];
char Song_Title[30];
char Artist[30] ;
char Album[30];
char Year[4];
char Comment[30];
char Genre[1];

}MP3Id3;


or

typedef struct mp3_id3
{
BYTE Tag[3];
BTYE Song_Title[30];
BTYE Artist[30] ;
BTYE Album[30];
BTYE Year[4];
BTYE Comment[30];
BTYE Genre[1];

}MP3Id3;



last 128bytes of an mp3 file contains the tags of an mp3 files

with an above info lets create a program to read the info from an mp3

so i wrote this little program with c language
:




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



int in(char *item,char *mp);
int Len(char *items);
char *readit(char* src,int size);



typedef struct mp3_id3
{
char Tag[3];
char Song_Title[30];
char Artist[30] ;
char Album[30];
char Year[4];
char Comment[30];
char Genre[1];

}MP3Id3;


int main(int*argc,char **argv[])
{
//decl MP3Id3

MP3Id3 tag;

//Open mp3 file for test


FILE *file = fopen("3.mp3","r"wink;



//check and seek to the last 128byte to read tags for our mp3 file

if((fseek(file,-128,SEEK_END)||fread(&tag,1,sizeof(tag),file)) !=1)
{
printf("ERROR WHILE PROCESSING MP3"wink;
return 0;
}

fclose(file);



//check to find TAG to see if we had a vaild tag data
char *temp = (char*)malloc(3);
int i;
for(i=0;i<3;i++)
{
*(temp+i)=tag.Tag[i];
}
*(temp+3) = '\0';




if(in("TAG",temp)!=1)
{
printf("DUMPED DATA NOT VALID MP3 TAG or NO Tag on MP3 File \n"wink;

}

free(temp);


printf("Artist Name : %s \n\n",readit(tag.Artist,sizeof(tag.Artist)));
printf("Album name : %s \n\n",readit(tag.Album,sizeof(tag.Album)));
printf("Album Year : %s \n\n",readit(tag.Year,sizeof(tag.Year)));
printf("Song Title : %s \n\n",readit(tag.Song_Title,sizeof(tag.Song_Title)));
printf("Track Comment : %s \n\n",readit(tag.Comment,sizeof(tag.Comment)));











return 0;

}


int in(char *item,char *mp)
{
int r,l,j=0,chk=0;
l = Len(mp);


for(r=0;r<Len(item);r++)
{

if(mp[j]==item[r])
{

chk+=1;
j+=1;



}
else
{
chk=0;
j=0;
}

if(chk==Len(mp))
{

break;
}



}


if(chk==Len(mp))
{
return 1;

}
else
{
return 0;

}

}//end of func in




int Len(char *items)
{
int i=0;
int ii=0;
while(i !=1)
{
char a = items[ii];
ii++;
if(a=='\0')
{
i=1;
};
}
return(ii-1);
}//len of a string


char *readit(char* src,int size)
{
char *dst;
//printf("%d ",size);
dst = (char*)malloc(size+1);
int i=0,s=0;

for(i=0;i<size;i++)
{
//printf("%d \n",*(src+i));
if(*(src+i)==32)
{
//break;

}
else
{
*(dst+s)=*(src+i);
s++;


}




}
*(dst+s)='\0';
return dst;
}



if u need help holla i will be here to guide u ;
ProgrammingRe: What Percentage Of Nigerian Citizens Are Developers? by silento(m): 2:11pm On Sep 04, 2016
4%
ProgrammingRe: Official thread for C programming by silento(m): 2:09pm On Sep 04, 2016
pcguru1:
This is the problem I have with thread like this in nairaland, we always deviate and just add noise, I ask what type of apps can we do with C and prospect for learning it, I know c but haven't used it because most times other languages make it easier for me to use them than C so am asking again for what special purpose can we say C is the way, I can throw in an example I know whne it comes to emulation C is the choice to go. So post projects one can touch to get active with C if not than this thread is another just talking about C and which is not useful.


Sorry for the rant this is becoming too common on nairaland
bro if u are waiting for a code to give u a head start in Nairaland sorry u won't get such here

I make open source binary both in c and python

but my code are not sir

and for what to make with c :

any thing u can think of to develop

just find a program on other language

and implement it in c thats the best way to know how powerful c is
ProgrammingRe: Official thread for C programming by silento(m): 11:57pm On Sep 03, 2016
nurain150:
Yes because after 200 level in comp sci,they drop it and go for java .To develop awesome apps...C is not built for purpose of developing. apps intially by denies richie..it was built for developing UNIX OS
c is not easy to deal with that why everybody choose java python etc
ProgrammingRe: Official thread for C programming by silento(m): 11:54pm On Sep 03, 2016
nurain150:
Though C is easy to learn to build software is nor easy.But i use C in kernel development cmd apps not gui
that's becoz u are still learning c

while coding on c u must know what u want not like python on java u just write and think

c is for people that knows what they are doing
ProgrammingRe: Share Center by silento(op): 7:31am On Sep 01, 2016
babatope88:
School management system for Basic classes.
do u code in c
ProgrammingRe: Official thread for C programming by silento(m): 12:20am On Sep 01, 2016
BlueWizAngel:
Declare datatype? Don't get u, how is that special
that's why u need c language

c is a way of life

plz don't quote me or I will cast u to void
ProgrammingShare Center by silento(op): 8:18pm On Aug 30, 2016
share u next great open source ideal and helpers to develop it with u
ProgrammingRe: 75 Media Player - Lets Make It Happen by silento(op): 1:53pm On Jun 04, 2016
ugo2016:
Is this project still on?
yes
ProgrammingI Want A Free Website by silento(op): 9:52pm On May 10, 2016
am looking for a freelancer who can code and design a website for me any domain name is allow or even blog and I want it for free
ProgrammingRe: 75 Media Player - Lets Make It Happen by silento(op): 9:54pm On Feb 27, 2016
DanielTheGeek:
Study the VLC architecture. There's a lot to learn from it. Check their online doc too for libraries..
thanks man vlc uses ffmpeg
ProgrammingRe: 75 Media Player - Lets Make It Happen by silento(op): 6:41pm On Feb 27, 2016
any library suggestion is welcomed
ProgrammingRe: 75 Media Player - Lets Make It Happen by silento(op): 6:39pm On Feb 27, 2016
elfico:
Nice concept. I developed a lightweight media player for contest here on Nairaland before the 'catastrophic data loss'. I used C# and WPF. I dnt knw the language you have in mind that we can use for the project, but I will like to play my part.
thanks bruhh

since it will be available for most is like Linux windows android etc

and it is an open source

I think ffmpeg with be OK

for GUI I think iup will be OK
or fltk

and since u have develop app like this before I think u skills is highly needed here
ProgrammingRe: 75 Media Player - Lets Make It Happen by silento(op): 6:33pm On Feb 27, 2016
DanielTheGeek:
This should not take more than a month or two, I will help in anyway i can.. whenever i'm less busy with my main project.
this will be a life time supporting project but at lest before 2 month we should have a beta version
ProgrammingRe: 75 Media Player - Lets Make It Happen by silento(op): 1:58pm On Feb 27, 2016
ur contributions are high welcome be it code or suggestion especially on the web side of the project I don't know much about web stuff daniel ,dhtml and host of others una help is highly needed and android devs also
Programming75 Media Player - Lets Make It Happen by silento(op): 3:17am On Feb 27, 2016
great nigerian programmers

i think it is high time we develop some thing meaningful to our society

we 9jas love entertainment be it visual or audio both adult and children enjoys it

so I have decided to create this thread for us to create a wonderful media player that will run on both pc and android for now later on other devices

which will be called 75 media player
meaning Nigeria = 7 letter words in unite = 5 letter words I hope u saw what I did there haha


so what are the features that this will possess

1. it will be both online and offline app

2. it will be capable to download music and video from the webserver with its own inbuilt downloader

3. ability to play avi mp4 and mp3 WMA acc our major media preferred type

4. ability to compress video and audio file bcoz of network issue

etc


who can join in this :
1 . pro programmer in any language
2. new programmer in any lamguage
3.anybody with no skill but want to see this project advance

if u are interested plz reply we have a lot to cover and do
ProgrammingRe: Operation Prove Your Programming Skills by silento(m): 2:46am On Feb 27, 2016
Knownpal:
Silento you shouldn't call it baby, even if it looks like. It looks baby because you're thinking of the surface. Just punch your keyboard and.post the source codes that's all. All the utility tools you use on Windows looks babish to you? The ability of making a babish app do mighty things is called skills. As for your video stuffs why reinventing the wheel? grin. Just because you mention video shouldn't make baby coders scarred now, all you do there is call other people's API and library codes. Moral Lesson : never judge a book. Like which site will you be parsing your hot songs from?
as I said before we peace not war
if u think it is as easy as u said plz create a thread let people who are interested start rubbing mind

and let's teach each other things


note : Api is good but not as good as knowing what you are doing

I know python and c and c ++ not a hello world level but to a core level I hope you know what that means c programmers don't just use library they will always make sure they explore it and build a better one waiting for the thread
ProgrammingRe: Operation Prove Your Programming Skills by silento(m): 1:11am On Feb 27, 2016
Baby exercise for baby coders but anyway larsoft good work need more hard software that need more coders to work on we need peace among ourselves not levels

Maybe let us build our own video player and audio player for both pc and android

That will communicate with a website to tell u want is latest and hot for the month


Note: we will build the video and audio decoder ourselves

One group android and others pc

And maybe dhtml18 will be development manager
ProgrammingRe: Nigeria Sucks On Programming. by silento(m): 11:43pm On Feb 25, 2016
CodeHouse:
?
sir c
ProgrammingRe: CHECK TO SEE IF YOU BOO OR BAE LOVES THIS VAL by silento(op): 10:23am On Feb 25, 2016
-
ProgrammingRe: The Greatest Programmer On Nairaland by silento(m): 11:50pm On Feb 24, 2016
If die
Die
Else
Die
ProgrammingRe: The Greatest Programmer On Nairaland by silento(m): 11:34pm On Feb 24, 2016
U.s.a. c coders
India python

Asia web Devs

Nigerians talk talk coders
ProgrammingRe: The Greatest Programmer On Nairaland by silento(m): 11:20pm On Feb 24, 2016
airsaylongcon:
Challenge you? How does that benefit me? Funny you mention ADA like it's some exotic language. These days I'm more into functional programming using Prolog. So no I'm not challenging you. Everyone knows you are better than me. Even I know. My question was "of what mutual benefit is engaging in a challenge with some faceless person on NL". Bragging rights?
If I hear u again I go take c arrays slap u functional coder and u dey run from e-beef as my bro dey call am
ProgrammingRe: Nigeria Sucks On Programming. by silento(m): 11:04pm On Feb 24, 2016
DanielTheGeek:
We are talking about the bad programming aura here but someone is still talking about a hackathon, to prove or do what?
Hackathons are for happy and respectful programmers and not a challenge comp
Please don't start the chest beating.

Let us all respect ourselves as programmers, we can collaborate and build things together.
My plans for this board is an open source project we all can contribute to and fork on github.
Good but na old story for nl and are u not the guy who emailed me and I reply u since last month uptil now I never hear from you that shows How bad u will suck with deadline

Maybe if u want us to develop some thing together start first by tell us what the software will do followed by prototype

And @dhtml u are one of the worst coder that nl has

With all the years u have been into coding u have nothing worth to show only script u got
And discouraging young devs

Be warned not all coders sucks like u
ProgrammingRe: Nigeria Sucks On Programming. by silento(m): 11:48pm On Feb 23, 2016
Good coders are here and good commenters here all so but anyway anambra people has the highest number of serious coders in Nigeria and here

1 2 3 4 5 6 7 8 ... 34 35 36 37 38 39 (of 39 pages)