Download and install wamp and composer from here if you have not installed php and composer yet
https://sourceforge.net/projects/wampserver/
https://getcomposer.org/Composer-Setup.exe
Open powershell in admin and run the following command:
> [cd to your own directory where you like to do development]
> composer global require "fxp/composer-asset-plugin:~1.1.1"
> composer create-project --prefer-dist yiisoft/yii2-app-basic myappname
The "myappname" is the directory to which yii2 will be installed
Wednesday, May 11, 2016
Thursday, March 31, 2016
Simple command to start with GIT
This post keeps some quick references to simple command lines for starting using git with bitbucket.
```bash
`mkdir ~/git/myproject
`cd ~/git/myproject
`git init
`git remote add origin https://[myname]@bitbucket/[myname]/myproject.git
`touch helloworld.txt
`git add --all .
`git commit -m "first time commit"
`git push origin master
Other useful commands like:
`
```bash
`mkdir ~/git/myproject
`cd ~/git/myproject
`git init
`git remote add origin https://[myname]@bitbucket/[myname]/myproject.git
`touch helloworld.txt
`git add --all .
`git commit -m "first time commit"
`git push origin master
Other useful commands like:
- View remote urls : git remote -v
- Change remote url: git remote set-url add origin ...
`
Thursday, January 28, 2016
Cassandra Repair
http://oliviercontant.com/cassandra-monitor-repair-task/
http://www.datastax.com/dev/blog/advanced-repair-techniques
http://docs.datastax.com/en/cassandra/2.0/cassandra/operations/ops_repair_nodes_c.html
http://jonathanhui.com/cassandra-data-maintenance-backup-and-system-recovery
http://monkeys.chaordic.com.br/operation/zero-downtime-cassandra-upgrade/
https://github.com/BrianGallew/cassandra_range_repair
http://www.datastax.com/dev/blog/advanced-repair-techniques
http://docs.datastax.com/en/cassandra/2.0/cassandra/operations/ops_repair_nodes_c.html
http://jonathanhui.com/cassandra-data-maintenance-backup-and-system-recovery
http://monkeys.chaordic.com.br/operation/zero-downtime-cassandra-upgrade/
https://github.com/BrianGallew/cassandra_range_repair
Tuesday, January 12, 2016
Chocolatey
Chocolatey is a machine packaging manager for Windows, which makes it very easy to install tools such as cygwin and many others on Windows platform.
To install Chocolatey, open powershell in administrator mode and run the following command:
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
To use Chocolatey for installing tools such as vagrant and virtualbox, run the following command in powershell:
cinst vagrant virtual
To install Cygwin, run the following command in powershell:
cinst cyg-get
Link: https://chocolatey.org/
To install Chocolatey, open powershell in administrator mode and run the following command:
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
To use Chocolatey for installing tools such as vagrant and virtualbox, run the following command in powershell:
cinst vagrant virtual
To install Cygwin, run the following command in powershell:
cinst cyg-get
Link: https://chocolatey.org/
Saturday, December 19, 2015
Convert *.jpg to *.ps on Mac OS
Firstly, install homebrew, then run the following command:
# brew install imagemagick
After the imagemagick is installed, run the following command to convert jpg to ps:
# convert picture.jpg picture.ps
# brew install imagemagick
After the imagemagick is installed, run the following command to convert jpg to ps:
# convert picture.jpg picture.ps
Saturday, December 12, 2015
DevOps: Application and Device Monitoring Platforms
Bosun: http://bosun.org/
Kamon: http://kamon.io/
New Relic: http://newrelic.com/
AWS Cloud Watch: https://aws.amazon.com/cloudwatch/
Nagios: https://www.nagios.org/
Splunk: http://www.splunk.com/
Server Density: https://www.serverdensity.com/
Loggly: https://www.loggly.com/
Logrhythm: https://logrhythm.com/
Takipi: https://www.takipi.com/
Sematext SPM: https://www.sematext.com
Sematext Logscene: https://www.sematext.com/logsene/
AppDynamics: https://www.appdynamics.com/
Kamon: http://kamon.io/
New Relic: http://newrelic.com/
AWS Cloud Watch: https://aws.amazon.com/cloudwatch/
Nagios: https://www.nagios.org/
Splunk: http://www.splunk.com/
Server Density: https://www.serverdensity.com/
Loggly: https://www.loggly.com/
Logrhythm: https://logrhythm.com/
Takipi: https://www.takipi.com/
Sematext SPM: https://www.sematext.com
Sematext Logscene: https://www.sematext.com/logsene/
AppDynamics: https://www.appdynamics.com/
Saturday, October 31, 2015
MacOS: Change [HOME] and [END] key to move to the begining or end of a line in a text editor
While writing code on Windows, the [HOME] and [END] key allow me to move to the begining or end of a line, but this is not the default behavior on MacOS while i am doing development at the moment. Since i love this feature and would like to have something similar, after digging i found the following way that works for me.
Download, install and run the Karakiner (https://pqrs.org/osx/karabiner/), In its "Change Key" tab, search for "Use PC style home/end", Now check to enable this feature, and there you have the PC style home/end shorts which allows to move to the begining or end of a line when pressing the [HOME] or [END] key
Download, install and run the Karakiner (https://pqrs.org/osx/karabiner/), In its "Change Key" tab, search for "Use PC style home/end", Now check to enable this feature, and there you have the PC style home/end shorts which allows to move to the begining or end of a line when pressing the [HOME] or [END] key
Friday, May 1, 2015
TortoiseSVN: recursively exclude bin, obj folders and other meta files from committing to SVN server
Suppose you use TortoiseSVN as SVN client and have a large project which contains many sub projects, and you want to exclude committing the "bin", "obj" folders to the SVN server, you can add a global ignore pattern to the root folder of the project by right-clicking the folder and selecting "Tortoise SVN --> properties" and add in a global ignore pattern such as in the following figure (remember to check the "Apply property recursively" if it is the first time to do so).
Wednesday, April 29, 2015
PluralSight Video Buffering problem
Recently i was having some problem with watching videos from pluralsight, the chrome i am using to watch their online videos stop buffering when continuing from one video to the next (only shows a progress circle in the middle of the black background), after contacting their support, the following workaround was offered, which seems to solve my problem:
"If you are running Chrome 42 or higher you will need to go to the URL [chrome://flags/#enable-npapi] and click “Enable” under Enable NPAPI. Click Relaunch Now at the bottom of the page"
Monday, February 2, 2015
Add or modify Text to the PDF in Adobe Acrobat
To add or edit text to a PDF file using the Adobe Acrobat, select "Tools->Advanced Editing->Touchup Text Control", Now select some text to modify, a rectangle will appear, and one can begin typing text, or modify the font by right -click the selected text and select "Properties".
To add a signature or draw something on PDF, select "Tools->Drawing Markups->Pencil Toos"
To add a signature or draw something on PDF, select "Tools->Drawing Markups->Pencil Toos"
Thursday, January 29, 2015
Tuesday, January 6, 2015
How to collapse all projects in the solution explorer of visual studio
The following link contains the visual studio extension which allows one to collapse the projects in the solution explorer of the visual studio. Very useful if a solution contains a lot of projects:
Tuesday, November 25, 2014
Setup and run FTP Server on Unbuntu 14.04 LTS
https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-on-ubuntu-12-04
Simply run the following commands to install vsftpd:
> sudo apt-get install vsftpd
Run the following commands to open the vsftpd.conf for editing:
> sudo gedit /etc/vsftpd.conf
In the vsftpd.conf, uncomment the following line:
anonymous=NO
local_user=YES
write_enable=YES
chroot_local_user=YES
Save and close vsftpd.conf and change the root folder:
> sudo chown root:root $HOME
Now restart the vsftpd:
> sudo service vsftpd restart
Simply run the following commands to install vsftpd:
> sudo apt-get install vsftpd
Run the following commands to open the vsftpd.conf for editing:
> sudo gedit /etc/vsftpd.conf
In the vsftpd.conf, uncomment the following line:
anonymous=NO
local_user=YES
write_enable=YES
chroot_local_user=YES
Save and close vsftpd.conf and change the root folder:
> sudo chown root:root $HOME
Now restart the vsftpd:
> sudo service vsftpd restart
Sunday, November 23, 2014
Disable internal keyboard of a laptop running on Ubuntu 14.04 LTS
Recently I need to use a very old laptop, which happens to have some of its internal keyboard damaged, i attached an external keyboard via usb but the internal keyboard keeps interfere with the terminal input and the GUI (possibly due to malfunction that causes some keys to be pressed permanently). Therefore, I decided to disable the internal keyboard of the laptop, and now everything works wonderfully. The way to do this is as following:
1. Open a terminal, and run the following command:
> xinput list
2. Take note of the id in the line that reads "AT Translated Set 2 Keyboard", in my laptop it is 14. Now run the following command to disable it:
> xinput float 14
By the way, to re-enable run "xinput reattach 14".
1. Open a terminal, and run the following command:
> xinput list
2. Take note of the id in the line that reads "AT Translated Set 2 Keyboard", in my laptop it is 14. Now run the following command to disable it:
> xinput float 14
By the way, to re-enable run "xinput reattach 14".
Saturday, January 11, 2014
Free tool for file conversion between PDF, Tex, Word and so on
pandoc (Download from http://johnmacfarlane.net/pandoc/index.html)
A set of tools useful for network analysis on Windows OS
Traceroute: trace network to network hopping to the destination host
(Enter tracert command on Windows console)
wget: fetch contents from network
(Download from http://gnuwin32.sourceforge.net/packages/wget.htm)
cUrl: fetch contents from network
(Download from http://curl.haxx.se/dlwiz/?type=bin&os=Win32&flav=-&ver=2000%2FXP)
Wireshark: trace the protocol layering, packet, data frames when contents are transmitted from the local machine to hosts on the network
(Download from http://www.wireshark.org/download.html)
(Enter tracert command on Windows console)
wget: fetch contents from network
(Download from http://gnuwin32.sourceforge.net/packages/wget.htm)
cUrl: fetch contents from network
(Download from http://curl.haxx.se/dlwiz/?type=bin&os=Win32&flav=-&ver=2000%2FXP)
Wireshark: trace the protocol layering, packet, data frames when contents are transmitted from the local machine to hosts on the network
(Download from http://www.wireshark.org/download.html)
Sunday, December 8, 2013
Useful Graph and Network Analysis Tool
Gephi: https://gephi.org/
iGraph: http://igraph.sourceforge.net/
NetLogo: http://ccl.northwestern.edu/netlogo/
Other tools
pajek: http://vlado.fmf.uni-lj.si/pub/networks/pajek/
NetworkX: http://networkx.github.io/
NodeXL: http://nodexl.codeplex.com/
iGraph: http://igraph.sourceforge.net/
NetLogo: http://ccl.northwestern.edu/netlogo/
Other tools
pajek: http://vlado.fmf.uni-lj.si/pub/networks/pajek/
NetworkX: http://networkx.github.io/
NodeXL: http://nodexl.codeplex.com/
Wednesday, October 9, 2013
Collection of Game Making Tools
https://docs.google.com/spreadsheet/ccc?key=0Ah0yrnCdmNpKdDREVG1rOFFva3gxVGZuRkU5ZGYzSGc#gid=0
Sunday, August 11, 2013
Convert WMV, AVI, MPEG to MP4
To convert WMV and MPEG to MP4:
http://download.cnet.com/Free-Convert-MPEG-WMV-to-MP4-FLV-AVI-Converter/3000-2194_4-10909240.html
To Convert AVI to MP4:
http://download.cnet.com/AVI-to-MP4-Converter/3000-2194_4-10912245.html
http://download.cnet.com/Free-Convert-MPEG-WMV-to-MP4-FLV-AVI-Converter/3000-2194_4-10909240.html
To Convert AVI to MP4:
http://download.cnet.com/AVI-to-MP4-Converter/3000-2194_4-10912245.html
Subscribe to:
Posts (Atom)