rvm rubygems current
rvm ruby-1.9.2 --default
gem help command
| <!-- all manip with JQuery - her without jquery --> | |
| <ul class="popupMenu"> | |
| <li> | |
| <label> | |
| <strong>Priority :</strong> | |
| </label> | |
| </li> | |
| <li> | |
| <select class="popupSelectP"> | |
| <option value="0">Select Priority</option> |
| using System.Web.Mvc; | |
| namespace Starwolf.ch.Helpers | |
| { | |
| public static class MyHelpers | |
| { | |
| public static MvcHtmlString Script(this HtmlHelper helper, string src) | |
| { | |
| // <script src="@Url.Content("~/Scripts/jquery-1.6.1.min.js")" type="text/javascript"></script> | |
| var builder = new TagBuilder("script"); |
| long tblUnitID = 808; | |
| var _rec = (from u in _db.tblUnits | |
| join ut in _db.tblUnitTypes on u.tblUnitTypeID equals ut.tblUnitTypeID into gj | |
| from subset in gj.DefaultIfEmpty() | |
| where u.tblUnitID == tblUnitID | |
| select new { u.tblUnitID, u.tblUnitName, u.tblUnitTypeID, tblUnitTypeName = (subset == null ? String.Empty : subset.tblUnitTypeName) }).FirstOrDefault(); | |
| Console.WriteLine("{0} {1} {2} {3}",_rec.tblUnitID, _rec.tblUnitName, _rec.tblUnitTypeID, _rec.tblUnitTypeName); |
| startxfce4 -- :1 |
| if [[ $- != *i* ]] ; then | |
| ON_A_TTY=No | |
| else | |
| ON_A_TTY=Yes | |
| fi | |
| # check that an ssh-agent is running | |
| if [ -x /usr/bin/ssh-agent ] | |
| then | |
| SSH_AGENT_PID=-1 |
| DECLARE @myDouble float(30) | |
| SET @myDouble = 40666.4704123611 | |
| DECLARE @myLong bigint | |
| SET @myLong = 634400182498630741 | |
| -- o.k double to DateTime | |
| select @myDouble as NR , convert(datetime, @myDouble) as DT | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace DateTimeLongCompare | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
| sudo mount mycd.iso /media/CD -o loop -t iso9660 |
| wget --no-cache --mirror --convert-links --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3" -x -w 1 -B -r -k -p http://www.demo.dev/ |