Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,187 members, 7,818,612 topics. Date: Sunday, 05 May 2024 at 07:43 PM

A4extra's Posts

Nairaland Forum / A4extra's Profile / A4extra's Posts

(1) (2) (of 2 pages)

Programming / Re: Programmers: Share Your Twitter Handle by a4extra: 7:08am On May 12, 2012
@stackEmpty - Python, Django and anyother thing that makes sense..!!!
Programming / Re: Build A JAMB Result Checking Website To Win 150,000 Naira by a4extra: 10:59pm On Mar 31, 2012
doncigalo: @fewj nice one!! thanks for spotting that, cloud servers are a good way to go, especially when combined with a master-slave configuration setup(kudos to a4extra for mentioning that) and not forgetting to mention that standard cloud hosting companies such as rackspace and ukfast provide load balancers as part of your cloud hosting package.

@a4extra Ur on point !! just one thing doh, u cant cache web pages that need a network resource irrespective of whether it has a get or post parameter, If the page requires a connection to a network resource like a DB then it cant be cached especially a login page which requires a connection to a DB.


Yo @doncigalo.. Yes true.. depends on how the login page is built though.. the login page can be cached just as well as other static pages... and the login processing can be forwarded to some gansta script that's ready to handle it (here on.. the script CANT be cached..)

The idea behind caching is so that the network resources dont have to be requested all the time.. since most of them dont change, we can just always re-render.. Some folks call this "per-site cache". I know django does a pretty good job at this
Programming / Re: Build A JAMB Result Checking Website To Win 150,000 Naira by a4extra: 10:16pm On Mar 31, 2012
Hey guys,

A scalable system does not need to change(much) when the size of the problem changes

Been a long time since i participated in a thread esp nairaland, but just for the sake of thisone.. imma offer my thots... Been always interested in this type of problem over here.. smiley

A well optimized script can only go so far.. thats why there is a job description called infrastructure management/engineering ops in larger IT companies. smiley

True, the app is a read only app.. and should work just as fast. But if infrastructure is not managed well its gonna be just as bad.
The problem statement here is to handle the jamb traffic.. thats what im gonna tackle.. Taking a look from the infrastructure angle grin

Quick Tips to Scale the App... without boring nitty gritty

vertical scalability: Just increase the size of the machine... if hav the money.. its easy and will do just fine... but it might get to a point where money cannot buy u a bigger machine

horizontal scalability: add more smaller machines (processing units) to tackle the problem.. its how everybody else does it.. ask google, facebook, yahoo... gbogbo won..

CACHING
Simply cache every page that does not have get or post parameters... will do just fine to solve the jamb site problem.. say like the login page... everyone wants to see it fast. You can also cache things like saayyy.. ummm.. db query results.. and you reduce database hits.
Gonna save your db some stress mehn
(Memcached is the king) wink

LOAD BALANCING
There is something called (Shared Nothing Architecture). Basic idea.. Every machine in your pool should understand and be able to process a request once added to the pool.. Everything required by a machine to understand a request should be within its reach.. This makes scaling the app very trival.. Just add another application server..Spread the work between multiple nodes(servers) in a cluster(farm) and u are good to go.. Just use software load balancers... Nginx is a gangster at this... i love HaProxy too

QUEUEING
Does not really apply here.. but say u had a hard job to do.. Just take the load off the app server and push it on to some other servers in your pool to the work later at their less intensive time.. when things are a little bit cool and the resources are available... u dig ??
lots of options mehn.. currently playing wiht RabbitMQ here... seeems cool though..

THE DATABASE...
ah haa... Replication is the in thing here...
Since the app is heavy read... Just add slaves.. The slaves take up the job of serving reads..
and a master simply takes in the write.. writes are a lot scarce here mehn.. like 2 powerful slaves (Dedicated Servers) will just hit the nail on the head.

When u hit the wall with that ... Sharding is the next thing.. Though i doubt if u are gonna ever get there....
Or just look into some solution that's built to scale...


Lastly .. Measure Everything..
Server Load, CPU Usage, I/O... this is where me stop my measuring for now sha..
but u can always look further.. database queries, indexing, memcache rate evictions, queue lengths. gbogbo e

Im tired mehn... hope u enjoyed my quick rant...
Python 3 is the future.. But mehn.. python 2.7 still does a lot for me

May the best coder win.. cheesy
Goodluck

Regards
Python Programmer. grin

7 Likes

Webmasters / Re: Hey Guys Check Out My Pet Project by a4extra: 3:04pm On Jan 02, 2011
@yawa,  yeah,  thanks,
Im working on that,  the site was not built in php though,


UPDATE: The Images problem has been fixed
Webmasters / Hey Guys Check Out My Pet Project by a4extra: 11:08am On Jan 02, 2011
Hey guys,

Check out my PET project and lemme know what you think,
www.nwalla.com

Regards
Programming / Check Out My Pet Project by a4extra: 10:59am On Jan 02, 2011
Hey guys,

Check out my PET project and lemme know what you think,
www.nwalla.com

Regards
Technology Market / List Stuff You Wanna Sell On Nwalla.com by a4extra: 10:52am On Jan 02, 2011
Hey guys,

List stuff u wanna sell on nwalla.com

Try it out,  u gon love how easy it is,

*This is not just another forum*

Custom built, Just for you guys

Easy to discover products and easy to list them tooo

www.nwalla.com
Technology Market / Nigerian Online Market Place {nwalla.com} Launches With Prototype by a4extra: 6:39pm On Dec 08, 2010
One of the Challenges for internet in Africa is that there is lack of local content online. To help users in Africa shape the content in Africa, We went ahead and we built this product. I remember a little while ago while I was still thinking about the directions in where this product was going to head, I started talking to a few of my friends about what they thought about it. And most of them were like, cool, and they could not wait to try it out.

Well, today we are launching its very first version in a very early form. It’s more like a prototype and we can’t wait for you to see our Idea, and we also can’t wait to get your feedback so we can shape this product better.

Nwalla.com is a place where you could find people who are interested in stuff you want to sell and also a place where you could find people who want to sell stuff you are interested in across Nigeria.

Sooooo, Lets go dispose of that stuff you want no more, or that new stuff you just want to sell.

One more thing::: Its free and easy to use, so pls spread the word

Dammy is an Engineer who wants to sell his Nokia E71

www.nwalla.com
Webmasters / Re: Nigerian Online Market Place {nwalla.com} Launches With Prototype by a4extra: 5:15pm On Dec 08, 2010
Thanks man, !! Registration and Posting is Free, No Cost, smiley
Webmasters / Nigerian Online Market Place {nwalla.com} Launches With Prototype by a4extra: 11:03am On Dec 07, 2010
One of the Challenges for internet in Africa is that there is lack of local content online. To help users in Africa shape the content in Africa, We went ahead and we built this product. I remember a little while ago while I was still thinking about the directions in where this product was going to head, I started talking to a few of my friends about what they thought about it. And most of them were like, cool, and they could not wait to try it out.

Well, today we are launching its very first version in a very early form. It’s more like a prototype and we can’t wait for you to see our Idea, and we also can’t wait to get your feedback so we can shape this product better.

Nwalla.com is a place where you could find people who are interested in stuff you want to sell and also a place where you could find people who want to sell stuff you are interested in across Nigeria.

Sooooo, Lets go dispose of that stuff you want no more, or that new stuff you just want to sell.

Dammy is an Engineer who wants to sell his Nokia E71

www.nwalla.com
Fashion / Nigerian Online Market Place {nwalla.com} Launches by a4extra: 11:01am On Dec 07, 2010
One of the Challenges for internet in Africa is that there is lack of local content online. To help users in Africa shape the content in Africa, We went ahead and we built this product. I remember a little while ago while I was still thinking about the directions in where this product was going to head, I started talking to a few of my friends about what they thought about it. And most of them were like, cool, and they could not wait to try it out.

Well, today we are launching its very first version in a very early form. It’s more like a prototype and we can’t wait for you to see our Idea, and we also can’t wait to get your feedback so we can shape this product better.

Nwalla.com is a place where you could find people who are interested in stuff you want to sell and also a place where you could find people who want to sell stuff you are interested in across Nigeria.

Sooooo, Lets go dispose of that stuff you want no more, or that new stuff you just want to sell.

Dammy is an Engineer who wants to sell his Nokia E71

www.nwalla.com
Business / Nigeria Market Place With Nwalla Prototype by a4extra: 8:38am On Dec 03, 2010
One of the Challenges for internet in Africa is that there is lack of local content online. To help users in Africa shape the content in Africa, We went ahead and we built this product. I remember a little while ago while I was still thinking about the directions in where this product was going to head, I started talking to a few of my friends about what they thought about it. And most of them were like, cool, and they could not wait to try it out.

Well, today we are launching its very first version in a very early form. It’s more like a prototype and we can’t wait for you to see our Idea, and we also can’t wait to get your feedback so we can shape this product better.

Nwalla.com is a place where you could find people who are interested in stuff you want to sell and also a place where you could find people who want to sell stuff you are interested in across Nigeria.

Sooooo, Lets go dispose of that stuff you want no more, or that new stuff you just want to sell.

Dammy is an Engineer who wants to sell his Nokia E71

www.nwalla.com
Romance / Can Ur Boyfriend Have A Girlfriend That Is Not You? His Gf? by a4extra: 8:38pm On Jan 17, 2010
I was just wondering if u gals would allow ur bf to keep his best friend who's a gal and is not you and for tha guys too, can ur gf have a best friend thats not you?

I think the partner is usually the best-friend,

Wot u think??
Software/Programmer Market / Re: Facebook Developer Wanted by a4extra: 1:16am On Jan 13, 2010

OK, facebook developer @ ur service, send me an email

dammy@dammy.net
Programming / How Much Do You Earn As A Programmer/developer by a4extra: 7:30pm On Jun 29, 2009
I was just wondering what do u earn as a developer or a programmer??
And how low can u go per month or per year,

This is for developers/programmers/software engineers only
Programming / Re: Post Your C#.net Questions Here by a4extra: 7:36pm On Feb 15, 2009
please i have been working with .net for bout 2 years now, and i guess its time for me to have ma MCTS and MCPD, does anyone have any idea where i could get dumps, so i could get familiar with the questions, asp.net to be precise
Programming / Re: How Well Do You Thik You Can Apply "programmers" ? by a4extra: 11:09pm On Nov 26, 2008
hey guys, im sowi if i offended some dudes but neva mind doin it na, its not by force, i just wanted to get u to think thats all, and if u must knw, i already did it a long time ago and got the required output, so dont hate, just tryin to be friendly here.,, u grab, its not difficult at all na, HABA,
Programming / Re: Java Rules,who Thinks Otherwise? by a4extra: 10:47pm On Nov 26, 2008
na waa ooo, why una no wan grow, have we not outgrown discussing which one rules, na waa, use any language tha works best for u, as for me and me, c# is the way forward, mobile, web and desktop, i have not had anyreason to look at java, but does not really mean that java is not the bomb na, the questions u should be asking is what have u done with the language, ?
Programming / Re: . by a4extra: 1:41pm On Oct 20, 2008
1.) Get a good PC.
You will need to have a good computer (desktop/laptop) laptop perferably for mobility reason.

2.) Decide which language (or technology) you want start with.
The major two competing leading technologies in the world of software and/or web development today are : Java and .NET (pronounced dot net). You can choose any of these technologies to start with. Although, other languages also exist like PHP, Perl, Rubby etc

3.) Gather study materials(books and videos) on your chosen technology or language.
Thank God for the internet, today its now possible to access good resources from the internet almost free of charge. Most expecially, for software development, there is a lot of resources (books, vodeos, journals, articles, weblogs, forums) that you can get absolotely fee of charge. Let me give you just a few online resources that i a have used in the recent past.
Books: www.ebookshare.net, www.4sahred.com
Videos: www.asp.net
articles: www.codeproject.com, www.javaworld.com, www.aspalliance.com
weblogs: www.joelonsoftware.com
forum: www.forums.microsoft.com/MSDN
and many more. The list unending. Just ask google the right questions.

4.) The Internet
This is not mandatory, But it is neccassary. As we all know, internet is a best source of information and resources.

5.) One or more developer friend(s).
This aspect is very important for a newbie in software development. The reason is simple. This is the person that will be putiing you through most of the time when you run into troubles. I believe there is a lot of crazy passionate developers on nairaland. You can decide making some of the your friend in case of when you will need their assistance. Also you may find friends in your school or your enviroment. Enquire about the programmer in your community. Make them good friends so they can put you thruogh.

6.) Last but not the least, YOUR TIME
This is the most important in all that i have mentioned. You really have to be ready to give a lot of your time to it. This is one of the best venture of out time. But the funny thing is it does not require any capital. All the capital required is your time. You must be ready to sacrifice a lot your time, both day and night.
Webmasters / Re: Pls Preview My New Updated Site by a4extra: 1:24pm On Oct 20, 2008
where's the link na, or whats the name,
Programming / How Well Do You Thik You Can Apply "programmers" ? by a4extra: 7:28am On Oct 16, 2008
well all ya programmers , how well do u think u can "think" or should i rather say program,
do not attempt if u dont have a mind for this, face the challange,

Programming Challenge
Use of Hospital Facilities

County General Hospital is trying to chart its course through the troubled waters of the economy and shifting population demographics. To support the planning requirements of the hospital, you have been asked to develop a simulation program that will allow the hospital to evaluate alternative configurations of operating rooms, recovery rooms and operations guidelines. Your program will monitor the usage of operating rooms and recovery room beds during the course of one day.

County General Hospital has several operating rooms and recovery room beds. Each surgery patient is assigned to an available operating room and following surgery the patient is assigned to one of the recovery room beds. The amount of time necessary to transport a patient from an operating room to a recovery room is fixed and independent of the patient. Similarly, both the amount of time to prepare an operating room for the next patient and the amount of time to prepare a recovery room bed for a new patient are fixed.

All patients are officially scheduled for surgery at the same time, but the order in which they actually go into the operating rooms depends on the order of the patient roster. A patient entering surgery goes into the lowest numbered operating room available. For example, if rooms 2 and 4 become available simultaneously, the next patient on the roster not yet in surgery goes into room 2 and the next after that goes into room 4 at the same time. After surgery, a patient is taken to the available recovery room bed with the lowest number. If two patients emerge from surgery at the same time, the patient with the lower number will be the first assigned to a recovery room bed. (If in addition the two patients entered surgery at the same time, the one first on the roster is first assigned a bed.)

Input and Output
The input file contains data for a single simulation run. All numeric data in the input file are integers, and successive integers on the same line are separated by blanks. The first line of the file is the set of hospital configuration parameters to be used for this run. The parameters are, in order:


Number of operating rooms (maximum of 10)
Number of recovery room beds (maximum of 30)
Starting hour for 1st surgery of day (based on a 24-hour clock)
Minutes to transport patient from operating room to recovery room
Minutes to prepare operating room for next patient
Minutes to prepare recovery room bed for next patient
Number of surgery patients for the day (maximum of 100)
This initial configuration data will be followed by pairs of lines of patient data as follows:
Line 1: Last name of patient (maximum of 8 characters)
Line 2: Minutes required for surgery Minutes required in the recovery room
Patient records in the input file are ordered according to the patient roster, which determines the order in which patients are scheduled for surgery. The number of recovery room beds specified in any configuration will be sufficient to handle patients arriving from surgery (No queuing of patients for recovery room beds will be required). Computed times will not extend past 24:00.


Correct output shows which operating room and which recovery room bed is used by each patient, and the time period that the patient uses the room and bed along with a summary of the utilization of hospital facilities for that day. The output file consists of a set of two tables describing the results of the simulation run. The first table is in columnar form with appropriate column labels to show the number of each patient (in the order the patient roster), the patient's last name, the operating room number, the time surgery beings and ends, the recovery bed number and the time the patient enters and leaves the recovery room bed.


The second table will also be in columnar form with appropriate column labels summarizing the utilization of operating rooms and recovery room beds. This summary indicates the facility type (room or bed), the facility number, the number of minutes used and percentage of available time utilized. Available time is defined as the time in minutes from the starting time for 1st surgery of day to the ending time of the last patient in a recovery room bed. A sample input file and corresponding correct output are shown below.


Sample Input
5 12 07 5 15 10 16
Jones
28 140
Smith
120 200
Thompson
23 75
Albright
19 82
Poucher
133 209
Comer
74 101
Perry
93 188
Page
111 223
Roggio
69 122
Brigham
42 79
Nute
22 71
Young
38 140
Bush
26 121
Cates
120 248
Johnson
86 181
White
92 140


Sample Output
Patient Operating Room Recovery Room
# Name Room# Begin End Bed# Begin End
1 Jones 1 7:00 7:28 3 7:33 9:53
2 Smith 2 7:00 9:00 1 9:05 12:25
3 Thompson 3 7:00 7:23 2 7:28 8:43
4 Albright 4 7:00 7:19 1 7:24 8:46
5 Poucher 5 7:00 9:13 5 9:18 12:47
6 Comer 4 7:34 8:48 4 8:53 10:34
7 Perry 3 7:38 9:11 2 9:16 12:24
8 Page 1 7:43 9:34 6 9:39 13:22
9 Roggio 4 9:03 10:12 9 10:17 12:19
10 Brigham 2 9:15 9:57 8 10:02 11:21
11 Nute 3 9:26 9:48 7 9:53 11:04
12 Young 5 9:28 10:06 3 10:11 12:31
13 Bush 1 9:49 10:15 10 10:20 12:21
14 Cates 3 10:03 12:03 8 12:08 16:16
15 Johnson 2 10:12 11:38 4 11:43 14:44
16 White 5 10:21 11:53 7 11:58 14:18


Facility Utilization
Type # Minutes % Used
-------------------------
Room 1 165 29.68
Room 2 248 44.60
Room 3 258 46.40
Room 4 162 29.14
Room 5 263 47.30
Bed 1 282 50.72
Bed 2 263 47.30
Bed 3 280 50.36
Bed 4 282 50.72
Bed 5 209 37.59
Bed 6 223 40.11
Bed 7 211 37.95
Bed 8 327 58.81
Bed 9 122 21.94
Bed 10 121 21.76
Bed 11 0 0.00
Bed 12 0 0.00
Webmasters / Re: Ie Sends Mozilla A New Cake For Firefox 3 by a4extra: 6:01pm On Jun 26, 2008
lol, i agree ooo, we no like ourslves for naija, even rivals celebrate with each other in the us
Webmasters / Re: How Much Would You Pay A Coder? by a4extra: 12:06pm On Jun 24, 2008
N1000, what a good price, lol
Programming / Re: .NET C#/VB.NET Project in the Pipeline for Programmers who may be interested by a4extra: 3:34pm On May 07, 2008
i already got hookeed up at viewpath.com so how do join the team
Programming / Re: .NET C#/VB.NET Project in the Pipeline for Programmers who may be interested by a4extra: 2:32pm On May 07, 2008
hmmm, nice initiative, im interested, ma area is .NET(vb {asp.net}and C#), i thot i read someone considering access for a relational database, i dont think access is a good idea, for a project like this, no,

reasons,
did u eva check out the specification of access
- only 2GB of space
- only 250 max connections
- and besides u are gonna be deploying in a large communtiy
- i dont think its a good idea

for me i dont think access is to be considered,
why dont u guys consider something like "SQL server 2005" and ORACLE, i think i like thier concepts, i dont knw if anyone understands what im talking about,

ma email is a4extra@gmail.com(preferably for email)
- a4extra@yahoo.com(chat purposes)

hope to join ur team, u got a project management website lemme knw??
Programming / Re: A Computer Programmer To Be Need Help Seriously! Please Anybody by a4extra: 1:21pm On May 07, 2008
lol, very very funny, newayz, maybe google.com.ng should be of help, or some other engine, have u thot of why u wanna program and what language u wanna do get back at ya, i do .NET(c# and VB) and JAVA for now, im not an EXpert, but im far from a beginner, hope u enjoy what we do, daisy dude

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