₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,764 members, 8,423,634 topics. Date: Wednesday, 10 June 2026 at 04:23 AM

Toggle theme

Castrolng's Posts

Nairaland ForumCastrolng's ProfileCastrolng's Posts

1 2 (of 2 pages)

WebmastersRe: Only For Yawatide,webdezzi,*dhtml, And The Other "guru": by castrolng: 9:09am On Dec 12, 2009
You'll find the reason for "the message or body does not come out in full"
Nice Work *DHTML

The fread() reads from an open file.

The function will stop at the end of the file or when it reaches the specified length, whichever comes first.

This function returns the read string, or FALSE on failure.
Syntax
fread(file,length)

Parameter Description
file Required. Specifies the open file to read from
length Required. Specifies the maximum number of bytes to read

Tips and Notes

Tip: This function is binary-safe (meaning that both binary data, like images, and character data can be written with this function).
Example 1

Read 10 bytes from file:
<?php
$file = fopen("test.txt","r"wink;
fread($file,"10"wink;
fclose($file);
?>

Example 2

Read entire file:
<?php
$file = fopen("test.txt","r"wink;
fread($file,filesize("test.txt"wink);
fclose($file);
?>


As you can see your are reading only 1024 bytes, reminds me of the days of floppy

I think this is my first post on Nairaland all year, Thanks to DHTML solid stuff
WebmastersRe: Do You Need A Professional Website? by castrolng: 11:29am On Aug 27, 2009
testing NL post, testing 123
WebmastersRe: Social Networking Is A Waste Of Time For Majority Of Users by castrolng: 1:28pm On Apr 23, 2009
WebmastersRe: Debate: Web Developer Company Site Vs Client Sites by castrolng: 8:53pm On Mar 20, 2009
nice one.

I've come to appreciate however that the concept that a site ought to represent many times limits the "good-lookiness" of the site.

A site for say a music group and another for a company that sells electric cables, on face value which one do you think will look better.


you bet. design is an integral part of the concept is formed from the client's brief and an understanding of his/her services and intended audience.

For my part as a freelance web-developer, I always felt that my site was not as good as those of my clients as time progressed. So I took the christmas break to change that feeling.

People expect your site as a developer cum designer to be representative of the value that you propose you have.

I have had higher hits and more clients (psss! than I can handle) since that redesign, digitalcraftstudios.com

so I'm using this opportunity created by Yawatide to request for any (very, very, very, exceptionally, )good user interface designer out there who would like to join forces with digitalcraftstudios.com to form a virtual agency that will rock this town, smiley

phew! said it finally, ok back to the issue. the ball is in your court
WebmastersRe: The Woork Handbook: Css, Html, Ajax, Web Programming, Mootools, Scriptaculous by castrolng(op): 9:47am On Jan 28, 2009
the woork handbook is a compilation of Antonio's blog entries for 2008.

I'll drop him a line about the optimization implications,

thanks yawa!
WebmastersRe: The Woork Handbook: Css, Html, Ajax, Web Programming, Mootools, Scriptaculous by castrolng(op): 4:32pm On Jan 27, 2009
I share you views: images are an extra for file size optimization concerns, I was asking cos I noticed that the woork book consistently made use of images for rounded corners,
WebmastersRe: The Woork Handbook: Css, Html, Ajax, Web Programming, Mootools, Scriptaculous by castrolng(op): 9:36am On Jan 27, 2009
it's good you made the "guy" pay upfront, about 45%, these days I'm looking for 60-70% upfront on any project, some clients think I'm off the edge but I think its more secure,

Back to the Woork handbook, I'm enjoying it but I dropped it for a while.


My question is: for rounded corners what do you prefer: images or nifty corners with css or javascript?
WebmastersRe: Web Programming Partnership Needed by castrolng: 9:14am On Jan 27, 2009
hear hear,

A new silicon Vallley, right?

Drop me a line, I remain freelance.
WebmastersRe: The Woork Handbook: Css, Html, Ajax, Web Programming, Mootools, Scriptaculous by castrolng(op): 8:19pm On Jan 19, 2009
I've corrected the URL, thanks yawa.

I guess for you guys the woork handbook is just a little more than a refresher course,  but you never know what vast panoramas a different perspective on a topic holds, especially when it comes from a seasoned professional like Antonio Lupetti.

Thanks guys!
WebmastersThe Woork Handbook: Css, Html, Ajax, Web Programming, Mootools, Scriptaculous by castrolng(op): 5:07pm On Jan 19, 2009
I'd like to give something back to the Webmasters of NL: the PROs, rookies (,and the copy-pasters) but what could I give, what do I have,  it wont surprise you if I said nothing, will it? Anyway a special gift, not from me, is the woork handbook.

woork? yes I'm sure the webmasters who have done time (forgive the expression) must have come across the woork blog owned by Antonio Lupetti. The blog an endless source of resources for webmasters

The Woork Handbook is a free eBook about CSS, HTML, Ajax, web programming, Mootools, Scriptaculous and other topics about web design,  directly from Woork!

Ok friends,  finally a first preview of "The Woork Handbook" is ready to be released. This book is a miscellanea of articles I wrote on my blog in the past year. During the period form January to December 2008 “Woork” has been visited from over 4 millions visitors and I received a lot of requests to distribute a printable version of its contents. In the past days I worked hard to prepare a first version of this handbook and distribute it for free.
Here's the link
WebmastersYour Side Of The Story: Php Frameworks Versus Cms? How It All Began by castrolng(op): 1:30pm On Jan 19, 2009
Hi guys, I just came across this nice piece from [url=http://netzrezepte.de/blog/category/php-frameworks-versus-content-management-systems' target='_blank']Andi's blog[/url]. Thought I did share it with the PRO's in house, it's quite short and straight to the point.

like to hear your views on this one


PHP Frameworks versus CMS?
How it all began

Around the year 2000 a large number of websites were still built with static HTML-Files. Every little spelling mistake or a missing comma that got discovered at a later point had to be replaced by the developer in the source code and uploaded again by FTP. End users were not able to edit the content of the website directly. A relaunch of the whole website in a new layout was a huge task.

Of course already at that time it was possible to add a little functionality to the website with the help of small PHP-Scripts like Guestbooks or Forums. Even tiny content management scipts (news scripts) were around, which allowed the user to be able to update and edit at least parts of the website dynamically.

The development of more advanced web based applications were usually done as custom programming from scratch. In most cases, these applications had the actual website as a frontend and a custom developed backend. The backend usually was located in an /admin folder directly under the root of the website. All the custom developed administrative functionalities were included in this area and were mainly aimed at giving the website administrator some control over the website and it’s data.

Active developers at that time were forced to rewrite the same functionalities again and again for implementing stuff like handling user authentication, shopping carts and some simple tools to handle content. As many different projects or different parts of the same project required the same identical functionalities, developers usually copied and pasted code from one place to the other. To be able to reuse code more efficiently, many developers had already felt the need and started building their own little frameworks.

It was obvious that at that time, there was a huge need for 2 types of systems:

    * There was the need for more professional systems to manage the contents of a website more efficiently, so that the editors can manage the Contents of the Website without requiring a technical guy, each time they want to add a comma.

    * There was the need for more professional development frameworks, so that developers don’t have to rewrite the same code again and again.

The early days of Professional Content Management

As we have already seen, the basic Idea behind a Content Management System (CMS) is to provide a plattform to create, edit and manage content. This Content can then be used or displayed in a specified structure. For example, as a website. Systems that handle exclusively content for the Internet are sometimes also referred to as Web Content Management System (WCMS). In reality it is today sometimes difficult to really clearly differentiate between WCMS and CMS systems, as in most cases both systems can be used for both scenarios.

In my personal opinion, until today; the strongest existing CMS is TYPO3. Development of TYPO3 began already in 1998. But until 2002, it was a one man show by Kasper Skårhøj. It was only around that time, when this system attracted major public interest. Even other Content Management Systems like Drupal or Mambo had been released as Open Source Software around the same time in 2001.

Not to be misunderstood: TYPO3 and the other applications were not the first Content Management Systems. Even before that, there were already some commercial and proprietary CMS around. As mentioned above, we already had some freely available small News Management Scripts. However, it really changed the world for developers, when at the end of 2001, there was suddenly TYPO3 and a further selection of professional Content Management Systems easily available.

This meant a huge step forward. Very soon, there would hardly be any websites around anymore, which would not allow a normal editor to create and edit content. The separation of Content, Structure and Layout was achieved. Non-Techies, were suddenly able to manage whole websites through Graphical User Interfaces.

Another advantage came up in these early days of publicly available CMS. Functionalities did not have to be embedded anymore as external scripts. Content Management Systems like TYPO3 allowed including Forums, Guestbooks, Shops, etc just with a few mouse clicks.

Already in those early days, it was possible to add your own personal new functionality to TYPO3 by manually creating files and extending classes within the existing TYPO3 filesystem. The next boost happened, when Kasper Skårhøj released TYPO3 Version 3.5b1 in 2002. This Version contained the Extension Manager and turned TYPO3 into a real framework that made it really easy to develop new code and add new functionality to the system. But before we look into this in more detail, let us first see, what the PHP frameworks were doing around that time.

The early days of PHP Frameworks

If developers speak of PHP Frameworks today, they usually refer to frameworks like the ZEND Framework, Symfony, cakePHP or CodeIgniter. In the years 2001 and 2002, when the first Content Management Systems became popular non of these frameworks were available. However, looking at frameworks in a more general way. We can speak of a PHP framework whenever we have a base structure, that provides reusable components for developers to create applications more efficiently.
Besides all the numerous personal frameworks, that developers already used in 2001/2002 to reuse their own code, there was one particular framework that was standing out at that time. The PHP Extension and Application Repository (PEAR) is a framework and distribution system for reusable PHP components that started already in 1999. The idea of PEAR, was to shorten the development process, by providing code for standard functionalities.

PEAR was not the only framework that was popular at that time. Another very popular framework was SMARTY, a templating framework, that provided options to separate content from layout. Even SMARTY was already started in 1999.

It was possible and popular to combine these frameworks. There were some other frameworks available as well. It was nice. It was efficient. Maybe, it was not spectacular yet. However, that was more or less how the use of frameworks in the PHP world started.
http://netzrezepte.de/blog/php-frameworks-versus-content-management-systems/how-it-all-began.html
WebmastersRe: Possible Web Opportunities For 2009 by castrolng: 3:23pm On Dec 29, 2008
Nice insight, thanks for sharing.

A while ago I had a project along that track but it was based on a profit share agreement with a client.

For me the investment was the time, concept, design and development, however my clients business plan wasn't well laid out and we had to stop development.

I still have the skeleton from that project maybe it's time to look into it. Thanks for the wake up call
WebmastersRe: Post You Work / Projects For Year 2008 by castrolng: 8:36pm On Dec 23, 2008
I always learn something from you. I'm not surprised.

Thanks for the compliment and I'll take your advice on the links.

anyway I'll like to see your portfolio, guess its for something called inspiration,
WebmastersRe: Post You Work / Projects For Year 2008 by castrolng: 8:05pm On Dec 23, 2008
Merry Christmas and nice list you've got there!

wink only remember to give quality a higher stake than quantity.

on my part I leave you with the re-aligned Digital Craft Studios http://www.digitalcraftstudios.com.

Txs
WebmastersTouché: A Christmas Greeting With A Punch by castrolng(op): 10:27pm On Dec 19, 2008
We’ve been working on the new digital craft studios website for most part of the year, everything was mostly in the concept level as we had our wonderful clients to satisfy. But here we are now, a window opened up at the end of a project last month and now so we set to work breathing life into the new website.
We wanted basically to realign the old site and make it more representational of the cutting edge stuff that we have been turning out for clients since version 1 of our site.

And yesterday, December 18, we unveiled it with all its pump and pageantry, and extreme focus on rich user experience and responsiveness.

A wonderful feature we put together is an e-postcard system through which you can send postcard greetings to your loved ones via email, you might be feeling like: “yeah right what’s so wonderful about e-postcards” about now, but this one sure beats any competition out there. 
As an added feature, that makes all the difference, you get to see a live preview of cards and your message as you type it. You can even erase a message if you make a mistake and the preview will also erase. Your typed text is presented in a handwriting format so that the experience is as real as sending a postcard can get.

Already our friends and then their friends are using the system, it’s a sure new user experience. As good as it can get, Head over to http://digitalcraftstudios.com/gift.php and let me know,

WebmastersRe: Please Urgent Help Here Php by castrolng: 11:28am On Dec 08, 2008
@webpro

Hope you've got your thing up and running?
WebmastersRe: Please Urgent Help Here Php by castrolng: 10:12pm On Dec 06, 2008
one more thing that puzzles me:

header("location: member.html"wink;

why is the redirection set to a html document?

if you need a user authentication system that works effectively,

I suggest you use a php file, for example, so that you can check first against a session or something else that becomes active when login is successful

otherwise users will bypass the login and go straight to member.html

Anyway u could also setup your .htaccess to process all your files as php, but I wont recommend that,

ciao
WebmastersRe: Please Urgent Help Here Php by castrolng: 10:01pm On Dec 06, 2008
<?php

include_once "dbconn.php";


if(isset($_POST['submit'])){
$username =mysql_real_escape_string($_POST['username']);
$password =mysql_real_escape_string($_POST['password']);

$check = mysql_query("SELECT * FROM users WHERE username ='$username' AND password = '$password' "wink;
if(mysql_num_rows($check)==1){

header("location: member.html"wink;
}
else
{
echo "Sorry username and password is wrong";
}
}


/*That should work. And please be more secure with your codes, always escape user input.

I could have very easily by-passed the login system you posted earlier.

ciao*/

?>
WebmastersRe: Bully My Site by castrolng: 1:23pm On Nov 16, 2008
yawa-ti-de:
castrol, nice write up.

1) CSS is NOT for layout, at least as I see it, but for presentation.  XHTML is for layout.  Sure, your article says that but people are entitled to their opinion.  I could equally pull out an article that says otherwise.  A website consists of 3 parts: Layout (XHTML), Presentation (CSS) and Behaviour (JavaScript).  You lay out your page using H, P, UL/LI, etc tags and use CSS to present that layout (float left, right, display block, etc).  Then you use Javascript (where necessary) to dictate what should happen (if I click this button, say hello world, etc) - behaviour.

I would like to see how you use CSS for layout.  In other words, I would like to see how you have developed a website without any XHTML tag.  Please show us at least one of such sites.  Remember, a DIV tag is an XHTML tag which you present via CSS (float left, etc).  Please also note, if you use FF and have the web developer toolkit, you can disable CSS and see how your site looks (layout) without styling (presentation).
We have to agree that the matter is not "as you see it". CSS could be used for both presentation and layout of content.

(X)HTML e.g. DIV, SPANS, et al only serve as "Hangers" for CSS styles.

After that clarification, I still believe that we're not on the same page.

in your review of gamefestng.com, the site scored low because it used (X)HTML tables for layout, quite right. So the core of the matter here is Tables for Layout VS CSS for layout.

The layout on gamefest could have been achieved using block elements like divs with it's class or id attribute making reference to a CSS style for layout.

There's room for improvement. CSS can be used for layout and should be used for layout as opposed to (X)HTML tables.

And lastly if you'll like to see a site without any (X)HTML I'll ask you browse directly or download and run, so we settle this yawa once and for all,  the swf file of any flash site.

I believe that will suffice. wink
WebmastersRe: Bully My Site by castrolng: 10:48am On Nov 16, 2008
yawa-ti-de:
Overall, I would have given it a 90% (even though you are using tables  tongue) but because of your forms, sorry, but I have to deduct 20%.   Having said that, I take nothing away from the site.

Was that "too critical" enough for you? ;
)
A good review, though your comments about the use of tables for layout need clarifications.

When I started of developing websites about year 2000, Layout was exclusively table based and though it required a hell of a hack to achieve the desired positioning, it still did the job.

Two years later, 2002, and the tug of war between CSS and Tables as regards layout was fierce and I felt that I had to, if I wanted to remain relevant, use CSS for layout, not just presentation.

It was a tough ride mainly because new concepts, e.g. absolute, relative, et al, everything had to be calculated and coordinates had to be specified. After a while I decided to use CSS for layout only when I had to. I went back to my beloved tables and Today I (We) have been vindicated. Tables live now but in CSS.

Read: Everything You Know About CSS Is Wrong, From Digital web Magazine and get updated on the latest trend.  http://www.digital-web.com/articles/everything_you_know_about_CSS_Is_wrong/

Regards. No (good) knowledge is a waste (of time) 

PS: Nice Site. The implementation of png transparency is it. You win the digital craft studios best website award of the week for look and feel grin
Science/TechnologyShow Me The Way: The Race To A Digital Africa by castrolng(op): 4:57pm On Nov 14, 2008
http://scitech360.com/Infotech.php?action=view&id=31/
A new era in communication is unfolding. The phenomenon is driving globalization at a break neck speed causing boundaries between industries and economies to shatter. At the heart of this change is technological innovation which focuses on better ways to share information and connect a wide range of people from all over the globe.

Amidst all the innovation that technology brings into the realm of media and communications, one fact remains unchanged: content is king, and technology incessantly looks for better ways to present it.

Along these lines, a new development in presentation of content in the broadcasting industry is taking shape, all over the globe, in the form of Digital Broadcasting and Nigeria is in the race to become one of the first countries to fully switch over to this new standard with Television as the country’s focus.
http://scitech360.com/Infotech.php?action=view&id=31/

HealthRe: Stopping Hiv At The Gate by castrolng(op): 4:56pm On Oct 09, 2008
yes really impressive, it gets me thinking: if others can do so much for us what are we doing for ourselves (Africa) not to talk of others
HealthStopping Hiv At The Gate by castrolng(op): 11:13am On Oct 06, 2008
http://scitech360.com/Biotech.php?action=view&id=30/

As the speculated HIV vaccine remains elusive, researchers have become more focused on newer methods of preventing the transmission of the disease especially in situations where prevention has proved most difficult. Take the case of mother to child transmission via breastfeeding as example.

With about 25 Million people living with HIV in Sub-Saharan Africa and 10 million potential mothers amongst them, we have 700,000 children born each year to HIV-positive mothers in the region. An estimated 40% of these children will be infected with the virus through breastfeeding if there’s no intervention,

The quest for a better solution has recently turned up interesting results. ,

http://scitech360.com/Biotech.php?action=view&id=30/

WebmastersRe: Please I Need Help In Uploading Photo In Form. by castrolng: 5:16pm On Sep 15, 2008
The idea of creating a separate folder for each user is begging for a security problem like Remote File Inclusion(RFI) et al, nduaj is right. one folder for them all and make use of the db query to limit the results to for one user.

storing the directory path in a db field with a corresponding field that identifies the owner or user_id.

One thing @nduaj missed though is an issue that arises when using one folder to achieve this task,

if two users upload a file with the same file name and extension then it overwrites an older file with the same filename and extension,

to solve that part is easy, before storing the name of the file and the path in the database, encrypt/digest/randomize the file name to generate a unique file name that will never be repeated in the instant of the epoch.

cheers,
ComputersRe: Google Browser Challenges Microsoft: Google Chrome by castrolng: 11:49am On Sep 04, 2008
Chrome: The browser for Africa,finally The speed is awesome, I'm enjoyin every minute of this.

I can only guess that they must make use of the enormous cache of google search,

I'll have to do an extensive feature review of this piece of machine for scitech360.com that's if someone doesn't volunteer soon, yawa-tide?

ComputersRe: Google Browser Challenges Microsoft: Google Chrome by castrolng: 4:12pm On Sep 02, 2008
thanks.

I've been looking for the Chrome download for most of the morning and haven't been able to find a working link google.com/chrome returns a 404 HTTP Response, any lead?
ComputersRe: Google Browser Challenges Microsoft: Google Chrome by castrolng: 11:43am On Sep 02, 2008
Nice one! I just saw it this morning and I'm waiting to be the first one to try it out. I'm more concerned about the new features that google will throw into this one and of course I expect it to have passed the ACID test(s) completely so I've got no fear of Browser compatibility arising with google's chrome, but who knows.

yawa-ti-de, perhaps you do us the honor of writing a review for us after you test the features of Chrome. I for one would be interested to see it especially for scitech360.com.

Thanks and I'm off to download Chrome, see you  soon!
AutosTurning The Food-fuel Crisis On Its Head by castrolng(op): 11:22am On Sep 02, 2008
http://scitech360.com/Biotech.php?action=view&id=26/
The global frenzy to find alternatives to traditional fossil fuels has gained a new twist, as researchers from a U.S. based Biotech Company, LS9 inc., have developed a mechanism through which genetically re-engineered E.Coli (Escherichia Coli) bacteria and Yeast fungi can produce diesel fuel from waste materials.

The microbes used in this process, are a harmless form of E. Coli and an engineered strain of yeast. The feedstock can be any type of agricultural product, from sugar cane to waste, such as wood chips and wheat straw. The microbes are able to ferment the carbohydrate forms available in the stock to produce gasoline.

This renewable petroleum initiative comes as a respite, as international concern on rising food prices attributed to production of biofuels is beginning to grow. Recent biofuel research has thus sought to focus on developing methods by which non-food crops can be used as stock for biofuel production.

Biofuel experts believe that the LS9 renewable petroleum technology are economically viable and offer the fastest adoption potential for vehicles since the products are customized to closely resemble petroleum fuels, engineered to be clean, renewable, domestically produced, and cost competitive with crude oil.
http://scitech360.com/Biotech.php?action=view&id=26/

EducationRe: A Compendium of Clinical Medicine by castrolng(op): 8:55pm On Aug 24, 2008
hi CLET, I'm not a Medical student. I'm editor for scitech360.com.

Goodluck finding your pals
EducationA Compendium of Clinical Medicine by castrolng(op): 12:59pm On Aug 24, 2008
A New Era In Medical Knowledge

http://scitech360.com/Faculty.php?action=view&id=25/
Title:  A Compendium of Clinical Medicine (Third Edition)
Author:  Professors A. O. Falase and O. O. Akinkugbe
Year of Publication: 2007
Publisher: Spectrum Books Limited
ISBN: 978-978-029-805-0
Price: NGN 4000


The compendium provides an ideal ready reference for undergraduates, junior hospital doctors, general practitioners and physicians in the developing world. It will also come in handy for other health care professionals like, medical laboratory scientists,etc http://scitech360.com/Faculty.php?action=view&id=25/

HealthCervical Cancer: The Rising Tide by castrolng(op): 1:04pm On Aug 13, 2008
A recent World Health Organisation (WHO) report shows that there are about 500,000 cases of cervical cancer reported each year, with nearly 80 per cent occurring in developing countries.

In Africa, reported cases are on the increase and by 2020 it will be the most common cancer among women and will account for 50 per cent of the deaths, says the global health agency. Could this disturbing trend be in tandem with the rising use of oral contraceptives (OCs) amongst women in those parts of the world?http://scitech360.com/Biotech.php?action=view&id=24/

SportsMan Or Machine, Scitech360.com Xrays Oscar Pistorius. by castrolng(op): 4:55pm On Jul 28, 2008
http://scitech360.com/Materials.php?action=view&id=23/
Oscar Pistorius, South African and double amputee, is currently the 400 meter Para-Olympics World champion and on Friday (July 18), he lost his bid to compete alongside able-bodied athletes in the 4 x 400 meter relay event at the Beijing Olympics by a mere 0.70 seconds. Many pundits, however argue that he would have beat the 45 seconds qualifying time, if he had spent more time on the training tracks than he did in the court room. Pistorius spent a large part of this year challenging an IAAF (International Association of Athletics Federation) ruling that sought to prevent him from competing in events with able-bodied athletes.

Apparently the IAAF seemed to be going back on its word. In 2007, Pistorius was allowed to compete in a Golden League meet in Rome, his first international, able-bodied event. His performance at that race left eye-brows raised, as he finished second in his heat, beating seven other able-bodied pros.


There remains no doubt that Pistorius is a talented athlete but the question that remains is how much of the machine is in the man?
http://scitech360.com/Materials.php?action=view&id=23/

1 2 (of 2 pages)