Posts

Showing posts from December, 2018

Bitcoins : Part 2

Image
In the  previous blog post  we were looking at the problems with physical forms of money. So now according to our agenda lets talk about the solutions to those problems... Solutions... Plastic money like credit cards to make money portable. But the above solution still go as the physical form of money. Solution # 2 is that we make something that is digital. Where there is no need to have any middle man while doing transaction of money. no need for any central authority for check and balance. The system should be distributed as well as decentralized. (What this system is? Is it about bitcoins? Or Something else? ) But again many problems are associated with this system... I am pausing this session here, now if you are really concerned about crypto-currency then what you need to do is: Go here   (bitcoin.org/bitcoin.pdf),  read this paper and write in the comment section what you found from this paper. Also think about some of the problems associated with Solution #

Bitcoins

Image
Points to cover: What is money ? Problems Solution ? bitcoin Bitcoin origin Advantages Disadvantages Books related to it.. Future Assignment  code : fun factor :) Conclusion 1. What is Money? source: https://i.gifer.com/FU8l.gif Definition: Currency, coins, asset, property that we spend/ sell to buy something materialistic. Or that other people give us for our services. Everyday we need to deal with one another and we get some services from other human beings, similarly other people get some reward in exchange of their provided services in order to make a living. That reward could be and mostly is in the form of money. 2. Problems with simple money There are many problems associated with currency in paper or other physical forms, some of them are: They could be stolen. Could get distorted, or torn out. Could fell down. Could become wet in rain. You could lost them in your school bag or any cupboard. and many other unconcerned or least cons

Palindrome : php

Image
Image source : https://www.grammarly.com/blog/16-surprisingly-funny-palindromes/ Words, numbers, digits, or ... anything,  that remain the same as original if we reverse them are Palindromes. So how could we find if a word or a sentence is palindrome or not? We will use php for this... code: <?php function semiPermeableMembrain ( $str ){ $str = strtolower( $str ); $split = str_split ( $str ); foreach ( $split as $obstacle ){ if ( $obstacle == " " || $obstacle == "'" || $obstacle == "." || $obstacle == "," || $obstacle == ";" || $obstacle == ":" || $obstacle == "-" ) { $obstacle = "/ $obstacle /" ; $str = preg_replace ( $obstacle , '' , $str ); } } palindrome( $str );

PHP chess board : how to make ?

Image
As we have learned much of the basics of  HTML and CSS . Let us now learn how can we make our web applications more user friendly, flexible and versatile, using php . Today we will see how to make a chess board using php in collaboration with HTML and CSS .  So, Let's start: BASIC php SYNTAX: Starting Closing Tags: <?php ?> Php code must be written in these tags. Variables:              Start with "$" sign e.g. $num=3;               ; is really important to put after every statement. Functions:              Functions start with the keyword "function". E.g. function power(){} Print:             echo "printing by using echo";             echo ("printing by using echo");             print "printing by using print";             print ("echo "printing by using print"); CODE: <!DOCTYPE html> <html> <