Author Archives: Yash

CSS Tip 2 : Quotes are optional in URL

The format of a URI value is ’url(’ followed by optional white space followed by an optional single quote (’) or double quote (“ character followed by the URI itself, followed by an optional single quote (’) or double quote … Continue reading

Posted in CSS, Tips

CSS Rules 1 : ex ,em,px Know the difference

There are two types of length units: relative and absolute. Relative length units specify a length relative to another length property. Style sheets that use relative units will more easily scale from one medium to another (e.g., from a computer … Continue reading

Posted in CSS, Rules Tagged , , , ,

CSS Tips 1 : Support for 2 values of same css property

If a User Agent(UA) does not support a particular value, it will ignore that value when parsing style sheets, as if that value was an illegal value . For example: Example(s): h3 { display: inline; display: run-in; } A UA … Continue reading

Posted in CSS, Tips Tagged ,

gOS error : Virtual PC 2007

Microsoft Virtual PC 2007: An unrecoverable processor error has been encountered. install Suse Linux/Fedora and also gOS to Virtual PC 2007 Type(append to other options ) noreplace-paravirt to boot option This solves my problem.

Posted in gOS, Linux Tagged ,

vb.net htmlattributes example

ASP.NET MVC Code   Example 1. < % Html.BeginForm("Create", "Model", "", "", New With {.id = "CreateForm"})%> Example 2 < % Html.BeginForm("Create", "Model", FormMethod.Post, New With {.id = "CreateForm"})%>

Posted in ASP.NET, VB.NET Tagged , , ,

Qt Code Example: New File | Open File | Save File | Save as File | File Print | Print Preview | File Print Preview | Print Preview

These are few code snippet taken from Qt examples. I’m making easier to look for particular functions. That’s it . New File Open File Save File Save as File File Print Print Preview File Print Preview Print Preview Save as … Continue reading

Posted in Featured, Qt Tagged , , , , , ,

Qt Code Example: MessageBox

  QMessageBox::about(this, tr("About Syntax Highlighter"), tr("<p>The <b>Syntax Highlighter</b> example shows how " \ "to perform simple syntax highlighting by subclassing " \ "the QSyntaxHighlighter class and describing " \ "highlighting rules using regular expressions.</p>"));

Posted in Featured, Qt Tagged ,

Qt Code Example : Open File

void MainWindow::openFile(const QString &path) { QString fileName = path;   if (fileName.isNull()) fileName = QFileDialog::getOpenFileName(this, tr("Open File"), "", "C++ Files (*.cpp *.h)");   if (!fileName.isEmpty()) { QFile file(fileName); if (file.open(QFile::ReadOnly | QFile::Text)) editor->setPlainText(file.readAll());   } }

Posted in Featured, Qt Tagged