Get Adobe Flash player

Programming

My Online Voting System – Using PHP

Finally it is done! My first ever program made using PHP! I have been using PHP for quite long, around 2 years already, but I have never coded any project by my self since almost everything is readily available on the net (I mastered copy-paste-edit method! :D ).. I have planned this already for years but never had a chance to materialize it. But of course not until last month. Since my internet connection (1 mbps Wired Globe Broadband) was a bit useless (May 2011) due to its very annoying disconnect/connect status, I started my Apache server/MySQL, opened my NetBeans IDE, and started a PHP project. The very first php file I have coded was the voting form, I started with a single candidate added manually on my db. Next php file I have coded was for the candidate registration…. and so on…. After finishing almost everything, I realized that I don’t have a login form. Since I am already exhausted :D and wanted to learn from others implementation, specially on security – protection against malicious users, I opened a file which I have downloaded which is a login script. Well in short I didn’t actually code the login-voters registration files. :D  … Yep I performed some editing on it, ‘coz its a general login-registration form and I need it to fit my needs for voter’s registration form for student organization. Another part of the system which I didn’t personally code was the countdown timer. It was also a copied script from the web – I don’t know the original author :D

All in all it is composed of 42 files 2 were html, 1 css and 39 php.

Heres the link: http://www.jeffric.com/vote/

Its not 100% perfect, nor it is 100% secured. Since it is online, it is prone to malicious attacks. I have tried my best to protect it against attackers but of course I cannot guarantee it.

How to prevent computer viruses [malware] from infecting your computer

How to prevent computer viruses [malware] from infecting your computer

Your computer can be infected with a computer virus in many ways. The most common is from the internet, by downloading programs, music, opening email attachments, or downloading any “free” software (including crack) on the net. Others get it [a worm] from their local network if one of its peers got infected. And another very common is from our removable storage device which includes our USB Flash Drive, Memory Card, Cellphones, Digital Camera, External HDD (and more – everything that can store data) – as soon as we plug it in a computer that is infected, these devices will become a carrier of a computer virus – because a virus can copy itself to any storage devices for it to propagate. But no worries, computer viruses can only infect computers with a specific OS (Operating System) so, your devices will not be affected. It’s a program so it has also system requirements like it can only be executed on windows operating system or linux os.. :D

So a computer virus behaves like a biological virus. First, it needs a host, second, it needs a medium so that it can infect others, third it is destructive in many ways, and fourth it needs to be triggered before it releases its payload.

Here is a very common scenario of how a virus spreads.  Continue reading

The C++ Built-In Data Type and Arrays

The C++ Built-In Data Type

C++ provides built-in support for primitive arithmetic data types such as integer:

//declares an integer object, ival
//initialized to a first value of 1024
int ival = 1024;

It also supports double precision and single precision floating point data types: Continue reading

Basic Guide in Programming

Part I. Introduction 

How to Solve a Problem? 

Programs often are written in response to some problems or task to be solved. For example, a bookstore enters into a file the title and publisher of each book it sells. The information entered in the order the books are sold. Every tweo weeks the owner computes by hand the number of copies of each title sold and the number sold from each publisher. The list is alphabetized by publisher and used for purposes of reordering. We have been asked to supply a program to do this work. Continue reading

Featured Posts


 

My Mobile Site

QR Code - scan to visit our mobile site

This is a 2D-barcode containing the address of our mobile site.If your mobile has a barcode reader, simply snap this bar code with the camera and launch the site.

Say something:

  • oyeng
    email
    wata fuck smart!!!!
    5 February 2012
  • yea
    email
    ewan ko bah, alam nyo mga company,mayayaman na kayo dahil sa mga subscribers,kaya sana naman eh maging fair kayo.. oo tama unlicall 25 pesos lang,pero kunsumisyon bago maga register., dahil iyon sa pag iipit nyo.,para gamitin nalang ang regular load namin, tama? buti pa reg. load ang BILIS!., pero ang bilis din ng load namin maubos!! make any sense?
    31 January 2012
  • russel
    email
    ano b yan? unli call and text 25... one day na unable to connect?!!!!!! kalokohan.. more incom sa smart.. hirap kumontak pag sa unli ggmitin mong call pero pag sa regular load deredretso lng.. ampf tlga
    30 January 2012
  • jhel
    email
    wla n bng unli25 ung unlicall & txt??
    27 January 2012
  • christine.barnal@yahoo.com
    email
    grabe nakakaloka wag na kayo mag benta ng lod di naman magmit laging busy at nakakabagot pa dhil sa di makareg hay nku nais kong sabihin sa company ng samart na bulok ang mga promos ninyo
    23 January 2012
  • mj lo
    email
    may unli call promo po kau sa other network?
    21 January 2012
  • alycha
    email
    pano po unli call to all networks?
    19 January 2012
  • trey
    email
    GREAT DEALS IN TOWN
    12 January 2012
  • Sheila Vinoya
    email
    hirap makatawag ng unlicall at text d naman magamit ang tawag!!!!
    10 January 2012
  • asdf
    email
    hello
    7 January 2012
Your Shout
weekly trend micro give aways