Learn to do things in diffent ways because you learn from doing things differently,
I strongly believe that it is become known knowledge that the best way to teach is by video rather than text.
Anyway here is what I did today, basically it store 1 or more text files into a zip the code its below
<?php
require_once 'classes/zipper.php';
$zipper= new Zipper;
$zipper->add('files/one.txt');
$zipper->add(array('files/two.txt','files/three.txt'));
$zipper->store('files/font.zip');
class Zipper {
private $_files= array(),
$_zip;
public function __construct (){
$this->_zip = new ZipArchive;
}
public function add($input) {
if(is_array($input)){
$this->_files=array_merge($this->_files, $input);
}
else {
$this ->_files[]=$input;
}
}
public function store($location = null){
if(count($this->_files)&&$location){
foreach ($this->_files as $index => $file){
if(!file_exists($file)){
unset($this->_files[$index]);
}
}
if($this->_zip->open($location,file_exists($location) ? ZIPARCHIVE::OVERWRITE :ZIPARCHIVE ::CREATE)){
foreach($this->_files as $file){
$this->_zip->addFile($file,$file);
}
$this->_zip->close();
}
}
}
}
Thursday, 28 May 2015
Sunday, 24 May 2015
Views I Get Analysis
I am really starting to see people come view my blogs maybe its because I leave codes (jquery, html) in the blogs maybe that is what is attracting people to come to my blogs they might be looking for that specific code and they find it in my blog.
I am such a curicous person I love to know things like this I believe I am also an analyticial person but I am going to keep posting codes of (html, jquery) in my blogs because i like to benefit people.
Here is the next thing I did in html, jquery
I created a toggle function for when you want to hide text or a image then reveal it when it is click on check out the code it is below
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
#hidden {
display :none ;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
<a id="toggle" href="javascript:void(0);">Click me </a>
<div id="hidden">
You have been hidden
</div>
<script type="text/javascript">
$("#toggle").click(function(){
$("#hidden").slideToggle("slow");
})
</script>
</body>
</html>
I am such a curicous person I love to know things like this I believe I am also an analyticial person but I am going to keep posting codes of (html, jquery) in my blogs because i like to benefit people.
Here is the next thing I did in html, jquery
I created a toggle function for when you want to hide text or a image then reveal it when it is click on check out the code it is below
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
#hidden {
display :none ;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>
<a id="toggle" href="javascript:void(0);">Click me </a>
<div id="hidden">
You have been hidden
</div>
<script type="text/javascript">
$("#toggle").click(function(){
$("#hidden").slideToggle("slow");
})
</script>
</body>
</html>
Friday, 22 May 2015
Becoming A Good Blogger What It Takes ?
I need to try to learn what it takes to be a good blogger but I guess one of the things would be to share relevant information that benefit people. I need to definately research what it takes to be a good blogger because when I do something I always want to be the best at it regardless how hard it may be.
Regarding work I have refocus my skills to be a web developer rather than being stuck in seo as there is more opportunity in web development than seo to make more money grow and it is less competitve when looking for web develop position .
Below is a neat hover code that i did using jquery:
Tell me what you think ?
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<a href="#" id="menuV">Videos</a>/
<a href="#" id="menuC">Codes</a>/
<a href="#" id="menuF">Forum</a>
<div id="menu"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
$('#menuV').hover(function(){
$('#menu').html("Free video tutorials")
})
$('#menuC').hover(function(){
$('#menu').html("Coding is not as easy")
})
$('#menuF').hover(function(){
$('#menu').html("What a great forum")
})
</script>
</body>
</html>
Regarding work I have refocus my skills to be a web developer rather than being stuck in seo as there is more opportunity in web development than seo to make more money grow and it is less competitve when looking for web develop position .
Below is a neat hover code that i did using jquery:
Tell me what you think ?
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<a href="#" id="menuV">Videos</a>/
<a href="#" id="menuC">Codes</a>/
<a href="#" id="menuF">Forum</a>
<div id="menu"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
$('#menuV').hover(function(){
$('#menu').html("Free video tutorials")
})
$('#menuC').hover(function(){
$('#menu').html("Coding is not as easy")
})
$('#menuF').hover(function(){
$('#menu').html("What a great forum")
})
</script>
</body>
</html>
Wednesday, 20 May 2015
Youtube Thinking ? MayBe ? Maybe Not ?
I am thinking of starting my own youtube channel I strongly believe in being with the times I always say to my older brother if we were in the 60's would we have gone into computers or if we were in the 90's would we have started a internet company. The point I am trying to make you have to be a early adopt of new tech and you will always benefit long term. Lets face it having a job is for the uncreative.
Saturday, 16 May 2015
Benefits of Hard Work
Hard work is one of the best things to learn when young becuase you get to the places you want to be quicker than when you are lazy. Me not working or learning to work hard when i was young is one of my biggest regrets, and I still look back to it, how did I let myself not want to work hard.
Also, learn to copy when you do not understand picasso said something like good artist copy great artist steal. That statement is incredible because when you look at it, it is so true.
I know I am going on about things but these are things that would benefit you over time because I am highlighting my own life experience and mistakes so that you do not have to make the same mistakes as me. So the next issue I want to tell you about is learn to love to read because your going to have to if you want to get better at english, it is one of the core things your need to improve.
Regards
To myself
LOOOL
Also, learn to copy when you do not understand picasso said something like good artist copy great artist steal. That statement is incredible because when you look at it, it is so true.
I know I am going on about things but these are things that would benefit you over time because I am highlighting my own life experience and mistakes so that you do not have to make the same mistakes as me. So the next issue I want to tell you about is learn to love to read because your going to have to if you want to get better at english, it is one of the core things your need to improve.
Regards
To myself
LOOOL
Tuesday, 12 May 2015
What I Created Today ? (A Heart )
OK today i created a heart image using CSS3 and HTML5
Below is the code
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.heart{
position:relative;
margin:20px;
height:170px;
width:200px;
}
.heart:before,
.heart:after {
content:"";
position:absolute;
height:160px;
top:5px;
width:100px;
background:red;
border-radius :50px 50px 0 0;
}
.heart:before{
left:100px;
-webkit-transform:rotate(-45deg);
transform:rotate(-45deg);
-webkit-transform-origin:0% 100%;
transform-origin:0%100%;
}
.heart:after {
left:0;
-webkit-transform:rotate(45deg);
transform:rotate(45deg);
-webkit--transform-origin:100% 100%;
transform-origin:100% 100%;
}
</style>
</head>
<body>
<div class="heart"></div>
</body>
</html>
Here is the code just put it in a html extension page. Tell me what you think by leaving a comment as i have not
not still had a comment from my readers.
Also small note, i am going to be working to improve my jquery, SQL and phtoshop skills so expect more posts to be about those things.
Regards
Below is the code
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.heart{
position:relative;
margin:20px;
height:170px;
width:200px;
}
.heart:before,
.heart:after {
content:"";
position:absolute;
height:160px;
top:5px;
width:100px;
background:red;
border-radius :50px 50px 0 0;
}
.heart:before{
left:100px;
-webkit-transform:rotate(-45deg);
transform:rotate(-45deg);
-webkit-transform-origin:0% 100%;
transform-origin:0%100%;
}
.heart:after {
left:0;
-webkit-transform:rotate(45deg);
transform:rotate(45deg);
-webkit--transform-origin:100% 100%;
transform-origin:100% 100%;
}
</style>
</head>
<body>
<div class="heart"></div>
</body>
</html>
Here is the code just put it in a html extension page. Tell me what you think by leaving a comment as i have not
not still had a comment from my readers.
Also small note, i am going to be working to improve my jquery, SQL and phtoshop skills so expect more posts to be about those things.
Regards
Monday, 11 May 2015
Continue blogging
I must try my best to continue posting blogs as it would help with my english so desperate to become better at english.
I neeed to find a way to make this blog more relevant to people and benefit people.
I want to start posting all the coding projects i have done.
Let me just start today
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
body{
font:70% Arial;
color:#063774;
}
table {
border:1px #B4D0F3 solid;
border-collapse:collapse;
font-size:3em;
}
tr.stripped{
background-color:#E5EFFE;
}
th{
padding:10px18px;
background-color:#B4D0F3;
text-align:left;
}
td{
padding:10px 18px;
}
</style>
</head>
<body>
<table>
<thead>
<th>Name</th>
<th>Date Of Birth</th>
</thead>
<tbody>
<tr>
<td>Emma</td>
<td>Girl</td>
</tr>
<tr>
<td>John</td>
<td>Boy</td>
</tr>
<tr>
<td>Eva</td>
<td>Girl</td>
</tr>
<tr>
<td>Smith</td>
<td>Boy</td>
</tr>
</tbody>
</table>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('table tbody tr:nth-child(even)').addClass('stripped');
})
</script>
</body>
</html>
This code helps build a zebra like table whereby the second and fourth rows are different colors to the first and third,
Hope that benefited you.
I neeed to find a way to make this blog more relevant to people and benefit people.
I want to start posting all the coding projects i have done.
Let me just start today
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
body{
font:70% Arial;
color:#063774;
}
table {
border:1px #B4D0F3 solid;
border-collapse:collapse;
font-size:3em;
}
tr.stripped{
background-color:#E5EFFE;
}
th{
padding:10px18px;
background-color:#B4D0F3;
text-align:left;
}
td{
padding:10px 18px;
}
</style>
</head>
<body>
<table>
<thead>
<th>Name</th>
<th>Date Of Birth</th>
</thead>
<tbody>
<tr>
<td>Emma</td>
<td>Girl</td>
</tr>
<tr>
<td>John</td>
<td>Boy</td>
</tr>
<tr>
<td>Eva</td>
<td>Girl</td>
</tr>
<tr>
<td>Smith</td>
<td>Boy</td>
</tr>
</tbody>
</table>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('table tbody tr:nth-child(even)').addClass('stripped');
})
</script>
</body>
</html>
This code helps build a zebra like table whereby the second and fourth rows are different colors to the first and third,
Hope that benefited you.
Monday, 4 May 2015
Never give up
It is so easy to give up doing blogs because you look at how many people are reading your blogs and you find that it is not alot. It is a incredibly low amount a few people looking at what you write but I guess I must believe things grow by time.
OK
So what have I been up to ....
I will post all the things I have created on this soon
In sha ALLAAH
OK
So what have I been up to ....
I will post all the things I have created on this soon
In sha ALLAAH
Subscribe to:
Posts (Atom)