February 27, 2015
Please visit https://en.support.wordpress.com/code/posting-source-code/ for detailed information about how to post source code blocks with your free wordpress.com blog.
A tip from me: Have a look at the source code of wordpress support page opened ;) you “MAY” get more ideas. Okay I didn’t say that!
Let us look at some samples:
Will produce the below, syntax highlighted code block for you
your code here
Refer the above image, the usage of additional tags within the code tag will syntax highlight a short VB script, avoiding the gutter (line numbers)
Public Class Form1
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim xmlFile As XmlReader
xmlFile = XmlReader.Create("MyVMS.xml", New XmlReaderSettings())
Dim ds As New DataSet
DataGridView1.DataSource = ds.Tables(0)
DataGridView1.Columns(0).HeaderText = "Id"
DataGridView1.Columns(1).HeaderText = "VM Name"
DataGridView1.Columns(2).HeaderText = "Shutoff Mode"
Avoid leaving spaces between tags inside “code” tag, as doing so could totally mess-up the code blocks. Just put everything tightly spaced like following
language=”VB” gutter=”false”, there are no spaces between language & = or = & the opening ”
lang) parameter controls how the code is syntax highlighted. The following languages are supported:
- matlab (keywords only)
If the language parameter is not set, it will default to “text” (no syntax highlighting).
Code in between the source code tags will automatically be encoded for display, you don’t need to worry about HTML entities or anything.
The shortcodes also accept a variety of configuration parameters that you may use to customize the output. All are completely optional.
autolinks (true/false) — Makes all URLs in your posted code clickable. Defaults to true.
collapse (true/false) — If true, the code box will be collapsed when the page loads, requiring the visitor to click to expand it. Good for large code posts. Defaults to false.
firstline (number) — Use this to change what number the line numbering starts at. It defaults to 1.
gutter (true/false) — If false, the line numbering on the left side will be hidden. Defaults to true.
highlight (comma-seperated list of numbers) — You can list the line numbers you want to be highlighted. For example “4,7,19”.
htmlscript (true/false) — If true, any HTML/XML in your code will be highlighted. This is useful when you are mixing code into HTML, such as PHP inside of HTML. Defaults to false and will only work with certain code languages.
light (true/false) — If true, the gutter (line numbering) and toolbar (see below) will be hidden. This is helpful when posting only one or two lines of code. Defaults to false.
padlinenumbers (true/false/integer) — Allows you to control the line number padding.
true will result in automatic padding,
false will result in no padding, and entering a number will force a specific amount of padding.
title (string) — Set a label for your code block. Can be useful when combined with the
November 9, 2014
Once in a while we receive complaints about scripts copied from our blog causing issues. We regret those issues and apologizing to everyone who suffered due to. Our blog is totally free until date and unfortunately, different browsers behave differently while parsing the code tags.
We were using
[ code ] [ /code ]
tag for long time, found that few scripts getting totally messed up with double quotes being showsn and "e etc. This has forced us to start using
[ sourcecode ] [ /sourcecode ]
and realized if we have more than one block of scripts, the 2nd and consecutive scripts blocks being totally garbled.
With reference to above said, we request you to kindly make sure that the scripts those you copy from our posts are thoroughly checked for special characters prior applied. Especially registry related scripts as such attempts could completely wreck your Windows registry databases.
We hope you read us clearly and continue supporting us.
May 18, 2015
For unknown reasons, the Wan miniport(s) available with Windows 7/8 could start showing errors & giving the user no apparent solutions to fix them, including uninstalling them.
I had the same situation when all of a sudden one of my PPTP connections started giving errors like “Device disconnected”, properties for the PPTP connection not shown and not allowing me to delete the connection in the corrupt state.
After few attempts, I came across a workable solution, posted with Microsoft support site. Unfortunately, this time I forgot to bookmark the page, however, still remember the entire steps. Please find them listed below
View – > Show hidden devices
Right click the Wan Miniport device with yellow exclamation mark
(Enlarge the images for more details)
Now force install the driver. Once the installation is over, you can safely uninstall this device. Follow the same for all the Miniport devices those are showing the exclamation mark. Once you are done with the uninstall processes, don’t do anything else. Just restart the computer and start creating the VPN connections once again.
The above exercises must have fixed the Wan miniport issues for you.
May 3, 2015
As Microsoft is continuously updating their technical preview for Windows 10, we are sure many of you out there are trying out the latest release 10074, that adds(?) many features. As a precaution, we always use Oracle VirtualBox for testing such releases and never had more issues than with the pre-releases of Windows 10!
One of the regular errors we came across were about “Unable to allocate and lock memory” while the VM started, and gradually pops up another window titled “Guru Meditation”, asking us to view the log files (/me chuckles, when Google can do that for us). We came across a wonderful post, that explains how to resolve this particular dreadful situation with VMs!
and here we are linking the same POST for you! Enjoy and Enjoy your Windows 10 VM
April 26, 2015
Trust me, I never try a new OS without testing it thoroughly using Oracle VirtualBox! So is the case with bugs filled Technical Previews of Windows 10 as well. One of the annoyance I had with the builds was, the VirtualBox display driver failing to load/install when the extension packs are installed. That forced me to browse through multiple VirtuaBox forum entries and there were multiple suggestions (few of them using setextradata switch), and came across one of them suggesting, enabling the Virtual Machine with 3D enabled under display properties.
Does it work? Yes!
Currently I am using VirtualBox 4.3.26, the latest release with Hyper-V disabled over my Windows 8.1 as host and Windows 10 Technical Preview build 10061 as guest OS
Please find below the VM’s display settings
April 23, 2015
A technical preview is NOT meant for everyone, a many things have bleeding edges, many of favorite programs may not work, so such releases are meant for brave hearts, who want to jump in savor the raw taste of painfully ripening fruit.
Well, less said, if you are one of them and came to a situation like all of a sudden your Windows 10 preview build stops downloading updates, however, showing “downloading 0%” you may try the following
Open Windows services (run -> services.msc)
Stop the Windows Update Service (You have to try couple of times to stop it successfully)
Using explorer or run command %windir% to access “Windows” folder
Locate “SoftwareDistribution” folder
Open the folder and delete all the content (Please note, this will possibility remove all the log entries for previously installed updates). Administrator privileges will be required for completing this act
Once the files are deleted, restart the windows update service.
Return to Windows update page, retry the update
That should fix the annoyance until next occurrence!
March 8, 2015
You are here, seeking some information and we are more than happy to re-direct you to http://webproject.scottgu.com, a right place to start learning how to develop a website using Visual Studio IDE. Though the posts with scottgu.com mostly deal with VS 2005, almost everything they mentioned with their lessons are still applicable to the latest VS releases.
So give it a try, and you will be more than glad to visit one of the best beginners place.
March 2, 2015
A brand new installation of Visual Studio 2013
You are trying to create a new project/solution and immediately after choosing the type of the application (eg: Single page web application) an error raised saying referenced file cannot be found, followed by the error code HRESULT 0x80070002
Go to http://docs.nuget.org/consume/installing-nugget
Select the build of your Visual Studio NuGet client and move to the download page
Download the package (After closing down the Visual Studio, if yet open) and install the package
Restart Visual Studio and the error must have been gone by now.
Happy Programming guys ;)