Sunday, November 4, 2012

Difference between low level language and High level Language


High level programming languages are more structured, are closer to spoken language and are more intuitive than low level languages. Higher level languages are also easier to read and can typically sometimes work on many different computer operating systems. Some examples of higher level languages are Java, Visual Basic, COBOL, BASIC, C++, and Pascal to name only a few. Lower level languages are typically assembly languages that are machine specific.

Computers run instructions at the binary level, interpreting zeros and ones as instructions. Rather than writing programming code at this level, we've developed languages that compile into the zeros and ones that computers understand. As these languages become more robust, they get further and further way from zeros and ones, becoming higher level languages.

Today's object oriented computer languages allow developers to mimic the real world with objects in code.

To use an analogy, high level programming languages are to spoken languages as low level languages are to Morse code. Morse code is not limited in what it can communicate, but it's not as intuitive or easy to use as spoken language.

Yes and Also... High Level Programming falls in the Area of OOP/Object Oriented Programming. They were design to get much out of Programming, more complexity, flexibility, in a presentation, in Simplicity.

There was a time where all Programming was done in Machine Lanuages, which I can imagine... Gave Programmers a big Headache. Then b, was created then C, Then after awhile C++ Was created which was an adon to C, Making it High Level OOP.

All though not all High level Programming is OOP. OOP Has to have .

Polymorphism.

Encapsulation

etc etc....

Well Not all High Level Programming is OOP. PHP, PERL, RUBY, Which fall in the lines of ''Interpert'' languages, and differ from OOP. Anyway Low Levels actuially refer to The actual Memory, how the CPU Reads, and executes Data. High Levels Are powerful languages, but are presented in ''Human readable Codes'' Defining Variable Names, etc etc.

Friday, October 26, 2012

1 bit equals to how many bytes?

1 byte = 8 bits = 23 bits
1 Kilobyte = 1024 bytes = 210 bits
1 Megabyte = 1024 kilobytes = 220 bits
1 Gegabyte = 1024 megabytes = 230 bits

Friday, October 5, 2012

“Got a packet bigger than ‘max_allowed_packet’ bytes” MySQL error



Also, change the my.cnf or my.ini file under the mysqld section and set max_allowed_packet=100M or you could run these commands in a MySQL console connected to that same server:

# mysql -u admin -p

mysql> set global net_buffer_length=1000000;

Query OK, 0 rows affected (0.00 sec)



mysql> set global max_allowed_packet=1000000000;

Query OK, 0 rows affected (0.00 sec)

MSQL Restoring a Table table script


MSQL Restoring a Table table script


To restore your table, you’d run:

$ mysql -u user -ppassword mydb < /tmp/extracted_table.sql

Voila! – you’re back in business.

MYSQL GRANT ALL PRIVILEGES


MYSQL GRANT ALL PRIVILEGES

GRANT ALL PRIVILEGES ON dbname.* TO 'user'@'localhost' IDENTIFIED BY 'password';

Wednesday, October 3, 2012

Tuesday, October 2, 2012

CodeIgniter echo sql statment

CodeIgniter echo sql statment

echo $this->model_name->connectionname->last_query();