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
My target is to set up http://temnp.app as a local website
- map: d:/Private/demo.app/
- map: demo.app
- key: APP_ENV
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
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
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
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.
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 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 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 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 is a collection of delicious free stock photos by web deisgner Daniel Nanescu. The photos are free for personal and commercial use.
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 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 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.
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.
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.
Get 7 free photos every 7 days. Photos are public domain and free from copyright restrictions.
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.
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.
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.
|Required full text Search||Yes|
|frequent select queries||Yes|
|Row Locking (multi processing on single table)||Yes|
|Relational base design||Yes|
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…
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
format quick fs=fat32
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.
max_user_connections = 50
long_query_time = 0.1
query_cache_type = 1
query_cache_size = 75M
query_cache_limit = 2M
max_allowed_packet = 10M
table_open_cache = 7500
thread_cache_size = 25
key_buffer_size = 500M
myisam_sort_buffer_size = 256M
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*
service mysql restart
SOURCED FROM http://forums.cpanel.net/f189/mysql-high-cpu-usage-374152.html
偶然的去Program Files目录下面遛了一圈，发现baidu,Qvod等的文件夹竟然都还在，恨得我牙痒痒，当机立断直接Shift Del,这时转折点出现了，Qvod文件夹怎么删除也删不掉，提醒有DLL还在工作，我日他大爷，基本肯定就是这货了！
马上重启进入Safe Mode,竟然Safe Mode也会load这个dll。魔高一尺我道高一丈,进入Safe Mode with Command Line ， 切换到Program Files文件夹下Qvod文件夹再把剩下有2个不同子文件夹中的文件删除，搞定重启。
TADA !!! 天空又如Google Logo般湛蓝，脖子上的红领巾在Google的照耀下更加鲜艳了