Web Design and Search Engine Optimisation FreeLancer



Laravel Shopping Cart Example

Category : Laravel · No Comments · by Dec 8th, 2015

http://www.tutorials.kode-blog.com/laravel-5-shopping-cart

Laravel Homestead Setup on Windows 10 Step by Step

Category : Laravel · No Comments · by Dec 5th, 2015

Step 1: install VirtualBox, Vagrant, git

Step 2: in windows cmd.exe, type in vagrant box add laravel/homestead. If failed, you may have an old version of Vagrant that requires the full URL: vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead

Step 3: in windows cmd.exe, navigate to the folder that you wish to save homestead. Then type in git clone https://github.com/laravel/homestead.git Homestead.
My environment will be D:/Private/Homestead/, so I CD to D:/Private, then run git clone https://github.com/laravel/homestead.git Homestead, it will then creates a folder “Homestead”.

Step 4: in windows cmd.exe, CD to folder d:/Private/Homestead/, then type bash init.sh. After you do this, Homestead.yaml file will be placed in your ~/.homestead directory.
In this case, I found the file under C:\Users\MY_LOGIN_USERNAME_TO_PC\.homestead. MY_LOGIN_USERNAME_TO_PC is actually the logged in user name.

Step 5: ssh-keygen -t rsa -C “yourname@homestead_key”, this generates the key so after vagrant starts to run you can use command “vagrant ssh” to ssh to the server

Step 6: configure homestead.yaml file, I found that Laravel’s installation notes is a bit hard to understand. So I put something together below.

Assume my folder structure on D:/ like this
D:/Private/
D:/Private/Homestead/
D:/Private/temp.app/

My target is to set up http://temnp.app as a local website


ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.homestead/homestead_key.pub

keys:
- ~/.homestead/homestead_key

folders:
- map: d:/Private/demo.app/
to: /home/vagrant/Code

sites:
- map: demo.app
to: /home/vagrant/Code/Laravel/public

databases:
- homestead

variables:
- key: APP_ENV
value: local

Step 7: After saving the file above. CD to D:/Private/Homestead/ in CMD.exe, then
vagrant ssh If everything went well, you will get a server now.

If you want to use Putty to connect to the server, you will need a key file, use below command
User “vagrant ssh-config” under D:/Private/Homestead/ folder will give you the path to the private key. Then get puttykeygen to create putty auth file .ppk

While you use that auth file, when login, use username “vagrant”, and leave password empty will let you in.

Tips: if you see “no input file specified.” You may be only one step away. First make sure vagrant up is already done and vm is running, then type vagrant provision
It should bring the page up.

To install phpmyadmin, simply create a new app and drop the files in to your folder shall do. Or

Option 1:
This will install the latest version of PhpMyAdmin from a shell script I’ve written. You are welcome to check it out on Github.

Run the following command from your code/projects directory:

curl -sS https://raw.githubusercontent.com/grrnikos/pma/master/pma.sh | sh
Option 2:
This will install PhpMyAdmin (not the latest version) from Ubuntu’s repositories. Assuming that your projects live in /home/vagrant/Code :

sudo apt-get install phpmyadmin Do not select apache2 nor lighttpd when prompted. Just hit tab and enter.

sudo ln -s /usr/share/phpmyadmin/ /home/vagrant/Code/phpmyadmin

cd ~/Code && serve phpmyadmin.app /home/vagrant/Code/phpmyadmin

Note: If you encounter issues creating the symbolic link on step 2, try the first option or see Lyndon Watkins’ answer below.
————————————————————————————————————————————

While install phpmyadmin, if you have problem save config.inc.php’s permission to read only, Simply doing it on the host machine instead of the virtual machine fixed it.

Free Image Gallery

Category : Free Image Library · No Comments · by Aug 4th, 2015

Quick Note About Licenses
Many of these photographs are free from copyright restrictions or licensed under creative commons public domain dedication. This means you can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

However, some photos may require attribution. We’ve done our best to identify which license they fall under but we still advise you to do your own research and determine how these images can be used.

With that out of the way, let’s dive into our top picks for free stock photos.

Free Commercial User
Watch out these archives for different, authentic photography. FREE stockphotos for your commercial and personal works. Stunning lifestyle imagery for modern creatives.

StockSnap.io
StockSnap.io has a large selection of beautiful free stock photos and high resolution images. The site also has a very handy search feature making it easy to browse through the thousands of images available. In addition, the site tracks views and downloads so you can find the most popular photos available.

StockSnap adds hundreds of images on a weekly basis and all photos are released under creative commons public domain – no attribution required.’
Unsplash
Unsplash is a collection of free high-resolution photos and has arguably become the best source for stock images. In fact, we’ve noticed some of our theme authors using these images in theirBootstrap themes & templates.

Unsplash releases 10 new photos every 10 days and they’re released under the creative commons public domain license.
Gratisography
Gratisography offers free high-resolution pictures you can use on your personal and commercial projects. New awesome pictures are added weekly and are free of copyright restrictions. All pictures are captured by Ryan McGuire of Bells Design.

Splitshire
Splitshire is a collection of delicious free stock photos by web deisgner Daniel Nanescu. The photos are free for personal and commercial use.
Little Visuals
Sign up with Little Visuals and you’ll get 7 hi-res images zipped up in your inbox every 7 days. Photos are released under the creative commons license public domain dedication.
Life of Pix
Life of Pix is a resource created by the LEEROY creative agency offering free high-resolution photos with no copyright restrictions. New pictures are added weekly.
Death to Stock Photos
Every month a photo pack of 10 photos within a certain category will be delivered to your inbox. The goal of Death to Stock Photos is to bring you a variety of options in which to use for your mockups, blog posts or social media.

Death to stock photo uses their own license which you can read on their webpage.
Superfamous Studios
Superfamous is the Los Angeles-based studio of Dutch interaction designer Folkert Gorter. You can use the work for your own purposes — including commercial use — as long as credit is provided. Folkert features various collections including aerial, biological, geological, and more.
Picjumbo
Picjumbo is a collection of totally free photos for your commercial & personal works. New photos are added daily from a wide variety of categories including abstract, fashion, nature, technology and much more.
IM Free
A curated collection of free resources, all for commercial use. Since the photos are curated from various sources, some photos may require attribution.
New Old Stock
Vintage photos from the public archives free of known copyright restrictions.
Getrefe
Free mobile photos for your personal or commercial projects.
Lock & Stock Photos
Lock & Stock Photos are the works of AJ Montpetit. He’s giving back to the open source community by sharing his photographs under Creative Commons Attribution-ShareALike.
Snapwire Snaps
Get 7 free photos every 7 days. Photos are public domain and free from copyright restrictions.
Jay Mantri
7 new photos released every Thursday under the Creative Commons CC0 license. Jay Mantri posts some really nice photos with a variety of different themes.
Conclusion
As you can see, there’s a growing number of fantastic resources for stock photography. These websites have become a blessing for web designers, bloggers and creative people. We strongly encourage you to browse through each of these websites and incorporate them into your own designs.

PS: If you’re looking to create highly engaging images for your blog posts, social media, or ad campaigns, check out Snappa – the perfect graphic design tool for digital marketers.

Original Article from – https://bootstrapbay.com/blog/free-stock-photos/
This is just a copy so I can find it easily.

MySQL : InnoDb vs MyISAM

Category : MySQL Settings · No Comments · by Nov 13th, 2014

now its time for Database. the major thing that beginners are curioues to know what are the difference between InnoDB and MyISAM. when where to use when.

The Simple is that to show By The Table.

My ISAM InnoDB
Required full text Search Yes
Require Transactions Yes
frequent select queries Yes
frequent insert,update,delete Yes
Row Locking (multi processing on single table) Yes
Relational base design Yes

 

if there is any doubt which to use when. then MyISAM is your default choice.
you can also mix different table types in same database. Hence it  is recommended.
i think table has told the everthing. 🙂 and nothing more to explain.
Source From http://developer99.blogspot.com.au/2011/07/mysql-innodb-vs-myisam.html

Fix Windows USB/DVD Download Tool when unable to copy files

Category : Install Windows · No Comments · by Sep 16th, 2014

Installing Windows from scratch can be more or less of a pain, especially when the Windows 7 USB/DVD tool (so you can create a bootable USB drive with the installer) fails to work.

If you are getting an error “Unable to copy files…” to the USB drive, here’s a quick fix:

First run “diskpart” from a command prompt with admin rights. Then…
list disk
select disk # (the number of your USB – make sure this is it!)
clean (this will clear the Master Boot Record)
create partition primary
select partition 1
active
format quick fs=fat32
assign
exit
Be EXTRA careful about the disk you are selecting. Choose the wrong thing and you could potentially delete a working partition with all your data in it.

This should get you going with the Windows 7 USB/DVD tool (WUDT). If for some reason it still won’t work, you could try an alternative program which is recommended by many (I’ve personally only used it once) called Rufus.

MySQL Performance Settings

Category : MySQL Settings · No Comments · by Aug 26th, 2014

etc/my.cnf
[mysqld]
skip-name-resolve
myisam_use_mmap=1

max_connections=100
max_user_connections = 50

log-slow-queries=mysql-slow.log
long_query_time = 0.1
safe-show-database

query_cache_type = 1
query_cache_size = 75M
query_cache_limit = 2M

join_buffer_size=1M
read_rnd_buffer_size=1M
max_allowed_packet = 10M

tmp_table_size=25M
max_heap_table_size=25M

table_open_cache = 7500
thread_cache_size = 25

open_files_limit=30000

key_buffer_size = 500M
myisam_sort_buffer_size = 256M

innodb_file_per_table=1
innodb_buffer_pool_size = 1G
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M

remoe old log files
rm -rf /var/lib/mysql/ib_logfile*
restart mysql
service mysql restart

SOURCED FROM http://forums.cpanel.net/f189/mysql-high-cpu-usage-374152.html

如何彻底删除Hao123.com

Category : Fix Browser · No Comments · by Jul 29th, 2014

为了看免费的电影下载了Qvod,没想到竟然带来了无穷无尽的烦恼。每次开Firefox浏览器或者IE浏览器,Hao123.com网站就如跗骨之蛆自己打开了。常规改法怎么都没用,本着为LD效力的原则就与这个问题耗上了。

首先,查了Task Manager里面的Services,Processes,其中的软件都是自己认可的。再来修改IE设置,没作用,自动会被改回去。

然后,查一下msconfig里面的开机项目,regedit里面搜索所有关于hao123.com的内容修改无果

接着只能放狗搜了,竟然无意中用baidu搜了,当然搜不出任何内容,联想到最近我看见好多朋友电脑打开就是这个Hao123.com页面,是不是有种被强奸只能享受这种感觉?背后凉丝丝的

用Goolge中英文同时搜也搜不出个所以然来,有文章指出Hao123.com会修改快捷方式以达到每次打开都是它的效果,通过删除和安装IE我的结论是,这估计也是之前的版本了,最新的这个变种还没有人贴结果

就在无数重启和测试的时候,偶尔发现了一个事情,点一下firefox竟然首页变回google,内心一阵狂喜,以为也就这么回事,但是第二次打开Firefox时却又变回了Hao123.com,从逻辑上而言,很可能丫不是通过写在那儿的变量,很可能是个进程。

又有无数帖子指出Qvod是罪魁祸首,要在里面的设置做修改,出于对baidu,qvod,qq,hao123的憎恨,早就已经把这写软件都卸载了。那既然卸载了又怎么会还被劫持呢,百思不得其解后。

偶然的去Program Files目录下面遛了一圈,发现baidu,Qvod等的文件夹竟然都还在,恨得我牙痒痒,当机立断直接Shift Del,这时转折点出现了,Qvod文件夹怎么删除也删不掉,提醒有DLL还在工作,我日他大爷,基本肯定就是这货了!

马上重启进入Safe Mode,竟然Safe Mode也会load这个dll。魔高一尺我道高一丈,进入Safe Mode with Command Line , 切换到Program Files文件夹下Qvod文件夹再把剩下有2个不同子文件夹中的文件删除,搞定重启。
用到的DOS命令
CD
DIR
DEL

TADA !!! 天空又如Google Logo般湛蓝,脖子上的红领巾在Google的照耀下更加鲜艳了