.NET Programming

134K

Solutions

39K

Contributors

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

Share tech news, updates, or what's on your mind.

Sign up to Post

Via various tools, systems and automated alerts I generate thousands of emails per day. Using a common method to send these emails makes it easier to standardize these messages. One key feature of these email methods is stylized emails. This article shows how to use this library with Powershell.
0
Angular Fundamentals
LVL 19
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

I have personally never liked the standard Windows Service template that comes with Visual Studio. This article describes how I created a Visual Studio template build on the Topshelf library that I use to develop stable Windows Services.
1
Over time I have seen a number of questions asking how to logoff users at a specific time. I personally haven't required this but decided to develop a little Windows service that manages this via schedule and not a legacy scheduled task running shutdown /l or via AD logon hours
1
LVL 67

Expert Comment

by:McKnife
Will I understand the limitation once I use yours? I have no idea, what you mean. I want to logoff all users at a given time - I can and I don't need extra tools or schedulers.
0
LVL 56

Author Comment

by:Shaun Vermaak
Many ways to skin a cat. I prefer to use methods where I can replace a config file an alter all configuration.
0
Group membership expiration is a superb new feature included with Active Directory 2016 functional level. But what if you want this functionality but you haven't upgraded yet? Since I have many clients that cannot yet leverage this new feature, I have developed a custom tool.
2
LVL 67

Expert Comment

by:McKnife
That's too bad. I had hoped that it would, so that we could switch to your tool instead of using what is built-in @2016 server, because the built-in method has a funny limitation (at least in our domain) : it won't work with times of 5 minutes or less (6 minutes is ok!). When using 5 minutes or less, the group will get populated, but the kerberos ticket will not be granted for whatever reason.

We would like to use less than 6 minutes, sometimes, for example when we activate a software license, we give the machine internet access for the shortest time possible (working close to the military, here, no direct internet access allowed). And to do so, we use AD groups, that the SQUID proxy works with. We would like to use, say, 1 minute, but we can't do less than 6... :-)
0
LVL 56

Author Comment

by:Shaun Vermaak
Will look into it. Our requirement usually for a ~day but yours make sense
0
Google Elevation API
The article's main focus is , to create a C# console application using Google's Elevation API. For more detailed information about this topic, use the attached links.
0
GEOCODING / REVERSE GEOCODING
The article's main focus is , to create the application using Google's GeoCoding/Reverse Geocoding. This article will teach you what GeoCoding and Reverse Geocoding is and how to write a simple C# console application. I also added some links, for more detailed information for this topic.
1
How many times have you tried using Office InterOp to manage various custom properties? If you have ever tried it then you will see the article image very appropriate. After spending hours trying to solve a question I finally gave up on Office InterOp and took an easier way out - OpenXML SDK.
0
This is my take on Shadow Groups, the principle of maintaining group membership based on objects within an organizational unit within the Active Directory.
1
Correctly defined Active Directory sites and subnet allows for the optimized replication, nearest service location, and authentication to the correct server
2
LVL 13

Expert Comment

by:Senior IT System Engineer
Hi Shaun,

Suppose I have 20+ domain controllers spread across the globe, do I need to manually RDP into each of the DCs and then run the NoClientSites.exe one by one?
0
LVL 56

Author Comment

by:Shaun Vermaak
Hi Senior IT System Engineer

What I do is Copy the NETLOGON files into a single location and then combine them

@Echo Off
Copy \\%1\C$\Windows\Debug\NETLOGN.log \\FileServer\SomeShare\%1_NETLOGON.log

Open in new window


then combine and run
Copy *.log Combined.log

Open in new window


Wrote this from memory so might have some syntax errors ;)
1
Tiling windows is a great way to see multiple applications at once. Windows Tiler is a tool that automatically tiles open application windows as the open and close.
2
LVL 29

Expert Comment

by:Andrew Leniart
Great and highly useful tool Shaun!

Endorsed!
0
LVL 56

Author Comment

by:Shaun Vermaak
Thank you Andrew!!!
0
HTML5 and CSS3 Fundamentals
LVL 19
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

This article describes and provides a custom-made tool I wrote to give businesses a means of identifying commercial music content, without having to expend too much effort. Business recordings are easily identified from possibly illegal music files which can be crucial to staying legal and compliant
2
LVL 56

Author Comment

by:Shaun Vermaak
Currently, the file name but that is a wonderful Idea! Can I use it?
1
LVL 13

Expert Comment

by:Senior IT System Engineer
Hi Shaun,

Yes, it is possible like shown by Prateek:

Function Get-MP3MetaData 
{ 
    [CmdletBinding()] 
    [Alias()] 
    [OutputType([Psobject])] 
    Param 
    ( 
        [String] [Parameter(Mandatory=$true, ValueFromPipeline=$true)] $Directory 
    ) 
 
    Begin 
    { 
        $shell = New-Object -ComObject "Shell.Application" 
    } 
    Process 
    { 
 
        Foreach($Dir in $Directory) 
        { 
            $ObjDir = $shell.NameSpace($Dir) 
            $Files = gci $Dir| ?{$_.Extension -in '.mp3','.mp4'} 
 
            Foreach($File in $Files) 
            { 
                $ObjFile = $ObjDir.parsename($File.Name) 
                $MetaData = @{} 
                $MP3 = ($ObjDir.Items()|?{$_.path -like "*.mp3" -or $_.path -like "*.mp4"}) 
                $PropertArray = 0,1,2,12,13,14,15,16,17,18,19,20,21,22,27,28,36,220,223 
             
                Foreach($item in $PropertArray) 
                {  
                    If($ObjDir.GetDetailsOf($ObjFile, $item)) #To avoid empty values 
                    { 
                        $MetaData[$($ObjDir.GetDetailsOf($MP3,$item))] = $ObjDir.GetDetailsOf($ObjFile, $item) 
                    } 
                  
                } 
             
                New-Object psobject -Property $MetaData |select *, @{n="Directory";e={$Dir}}, @{n="Fullname";e={Join-Path $Dir $File.Name -Resolve}}, @{n="Extension";e={$File.Extension}} 
            } 
        } 
    } 
    End 
    { 
    } 
} 
 
#ForEach($item in ("D:\Powershell\Tutorials\4_DSC" |Get-MP3MetaData)){ 
#    $NewName = [regex]::Replace($(($item.Title).Split(":")[1].Trim() + $item.extension),"[*(/)\\]",{''}) 
#    $Oldname = $item.Fullname 
#    Rename-Item -LiteralPath $item.Fullname -NewName $NewName -Force 
#}

Open in new window

1
Web Development
An ASP.NET Web Form User Control is not newly introduced in ASP.NET. In fact, it was an old technology yet still playing a role to generate web content, especially when we want to use it to have a better and easy way to control part of the web content that is being generated.
0
Double Click
SingleRun is a tool that ensures that only one instance of an application is started, running it again brings the application to focus.
1
Windows PowerShell Core 6.1
The PowerShell Core 6.0 of .NET release is just the beginning. The upcoming PowerShell Core 6.1 would have artificial intelligence and internet of things capabilities. So many things to look forward to in the upcoming release.
0
Native ability to set a user account password via AD GPO was removed because the passwords can be easily decrypted by any authenticated user in the domain. Microsoft recommends LAPS as a replacement and I have written an article that does something similar. But what if you want something simple?
2
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would attempt to address those here.
0
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
2

Expert Comment

by:Tommy Parsons
Excellent article.
0
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
0
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
5
Become a Certified Penetration Testing Engineer
LVL 19
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
8
LVL 3

Expert Comment

by:alohadin
This has been bookmarked!
Great stuff Shaun.
Thanks a lot.
1
LVL 13

Expert Comment

by:Senior IT System Engineer
thanks for sharing such a great article Shaun :-) !
0
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a few months or a few weeks to get market trend inform.
0
DelegatesInC#
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that understanding with Experts-Exchange users.
2
LVL 11

Author Comment

by:ROMA CHAUHAN
Hi St. Jimbo,

Thanks for your valuable inputs.

As this is my very first article so I was not aware of all these points. I have submitted my article with the specified modifications.  Please review it again.


Thanks,
Roma
0
LVL 76
Any method which matches the above delegate type can be assigned to this MyTestDelegate delegate.
What do you mean by "matches"?

To call those methods through delegate, we have to use Invloke() method of that delegate.
You can also just invoke the delegate like a function using parentheses, which if memory serves is just syntactic sugar for Invoke:

objMyTestDel(9);
 
objMyTestDel(15);

Asynchronous execution of method through delegate
Don't forget about the async/await functionality of .NET!
0
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
3
LVL 68

Expert Comment

by:Jim Horn
Very well written, and I can see how this can be very useful.  Voted Yes.
0
LVL 111

Expert Comment

by:Ray Paseur
0
Donut Hole Caching is the inverse of Donut cache. As the previous statement, the Donut Caching is used to cachea maximum portion of the view/page, but Donut Hole Caching is used to cache only small portion of the view/page.
0
Donut caching used to cache an entire web page except for one or more small portions of the page. In other words, suppose we want to cache a maximum portion of the view except the minimum portion then we can finalize to use DonutCache.
0
LVL 4

Author Comment

by:S.Thiyagu Thiyagu
Hi ericpete,

Thanks For the correction.. I will correct all the thing which you mention here.
0

.NET Programming

134K

Solutions

39K

Contributors

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.