MarkiMarta.com
Blog of Mark and Marta parent – IT-solution, best practices with code and applications and other useful things

Click this or that element in jQuery

jQuery logo

If you want to set the same action for several elements, you can write IDs of elements separated by comma. This way:

(more...)

Set multiple CSS attributes for HTML element with jQuery

jQuery logo

You can set multiple attributes for HTML element with jQuery.

(more...)

Element and CSS class to highlight the required field in SharePoint form

SharePoint 2016 Logo

The red star in SharePoint form for required fields can be written as <span> control with class "ms-formvalidation":

<span class="ms-formvalidation"> *</span>

(more...)

Prepare to install Microsoft SharePoint 2016

SharePoint 2016 Logo

I'm preparing to install Microsoft SharePoint Server 2016 to machines in the VLAN without access to Internet. All the distibutives of SharePoint ask for prerequisites which must be downloaded and installed. Unfortunately, you should get them by yourself. If you have internet access, than it's not a problem. But if you don't have it?

(more...)

How to get index of selected option in Select control

It took me some time to get the index of selected value of <select> html control. I tried to use 'attr', but 'prop' should be used for this.

(more...)

How to reset MySQL root password in Linux console (SSH)

To reset MySQL root password you should log in as root to your Linux server, stop MySQL service, start it without password and permission checks, log in as root without authorization, update password and restart MySQL server. Now more info.

(more...)

Get records with empty binary items

mssql

There's a column Photo with type "Image" in MS SQL table (database – MS SQL Server 2008 R2). The task is to get all the records where Photo is empty. Values of empty images is "0x00000000".

(more...)

Get only non-repeated items in generic collection List

c-sharp-img

There is a rather pretty solution how to get all the items from one generic collection (List<T>) which are not presented in the second one.

(more...)

How to generate and save Connection string in Visual Studio

Figure 3. connectionStrings in web.config

Writing connection string manually is one of the worst things in software development. That's why I always want them to be generated by any tool but not by me. Some times before I have found a way how to generate a connection string creating an .udl file in Windows (http://markimarta.com/c/how-easily-write-the-text-of-connection-string/). Now I've found a better way.

(more...)

Queries for a Sybase Administrator

While integration with Sybase server, I had to study some queries. When me and Sybase administrator couldn't understand the reason of error, we have started to look for missed procedures or tables. So, when I had to use some queries to look for tables, view, stored procedures etc.

(more...)


MarkiMarta.com. Notes of web-specialist
Since 2009