Programming Languages-Other

20K

Solutions

19K

Contributors

A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Thousands of different programming languages have been created, mainly in the computer field, and many more still are being created every year. The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning). Some languages are defined by a specification document (for example, the C programming language is specified by an ISO Standard), while other languages (such as Perl) have a dominant implementation that is treated as a reference. Some languages have both, with the basic language defined by a standard and extensions taken from the dominant implementation being common.

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

Sign up to Post

AutoHotkey Switch-Case
Many programming languages have a Switch–Case capability. Since its first beta in 2003, AutoHotkey has not had one. Finally, in the recent 28-Sep-2019 release of Version 1.1.31.00, it now has Switch–Case. This article discusses it and shows a sample usage as applied to a previous post here at EE.
1
LVL 1

Expert Comment

by:Luis Diaz
Very useful article! Glad to know that an alternative to if-then through switch-case statement is available in AutoHotkey!
0
LVL 67

Author Comment

by:Joe Winograd
Hi Luis,
Thanks for the compliment and the article endorsement...both very much appreciated! Regards, Joe
0
Become a Certified Penetration Testing Engineer
LVL 13
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.

MoveAllWindows
An EE member wants to move all open windows at once (not one window at a time) from a primary monitor to a secondary one by pressing a hotkey. Bonus: another hotkey that goes in the other direction — move all windows from the secondary to the primary monitor. This article presents such a solution.
3
ArticlesVideosEE
This is my 100th publication at EE — 56 articles and 44 videos. To mark the occasion, I wrote a program to download the Title, Views, Endorsements, and Points for the specified URLs of articles and videos. Based on feedback, I enhanced the program to include number of Comments and Date Published.
3
LVL 29

Expert Comment

by:Andrew Leniart
Ran this a few times and works exceptionally well. Great stuff Joe - very helpful indeed.

One feature suggestion for a possible future revision - include a column for "Date Published" - Possible? :)

Thanks for your work Joe - fantastic stuff.

Endorsed!

Edit: Oh and while I have your ear, how about a column for "Number of comments" too?  Sorry, you may have opened up a huge can of worms here. You know how I can get when I like one of your creations lol ;)
0
LVL 67

Author Comment

by:Joe Winograd
Hi Andrew,

> works exceptionally well

Glad to hear it!

> Great stuff Joe - very helpful indeed.

Thanks for the positive feedback...I appreciate it.

> include a column for "Date Published"
> a column for "Number of comments"

Great ideas! Both already implemented. Will upload the enhanced version (and some updates to the article) as soon as my high-speed Internet service returns (connected via my mobile phone now...anything beyond these text comments would be painful).

> Endorsed!

Thanks for that! Regards, Joe
0
Code in Python
In this article, we will see what are Tuple and how we use them in Python programming.
0
To hire android app developers, you need to know if the person you are looking for is suited for the job. When you surf the web for “Android app developers for hire” or anything close to that you will find results listing sites where programmers and their data and background is already included.
1

Expert Comment

by:Jake Lees
good information
0
Bloom Filter
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data definitely won't be found. Read on to find out more...
6
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
7
GetTickCount64
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve that problem by using the GetTickCount64 function.
3
For loop in Python
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
0
Programming Ninja
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
1

Expert Comment

by:JCincy
Ask around and seek out professors with REAL WORLD experience. Too many profs can only teach what is in the book.

Also, many community colleges and tech schools have top notch programming classes taught by real programmers. And they can be significantly more affordable than a 4 year university. Sometimes these profs work in the community schools to link up with up and coming programming talent.

Avoid classes that rely on "programs" to grade your coding. These can be incredibly frustrating when you are losing points not for poor logic, but because the program wants certain words capitalized or variables spelled a peculiar way.
1
Learn Ruby Fundamentals
LVL 13
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

The purpose of this article is to demonstrate how we can use conditional statements using Python.
0
This article will show, step by step, how to integrate R code into a R Sweave document
3
RStudio-Ball
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
3
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation, easy programming and fast execution.
6

Expert Comment

by:Chad B
Good article but needs proof reading and cleaning up.  For example, there is more than one place that says the opposite of what is intended (e.g. "Like Java and C++, go is not object-oriented...").
0
RStudio-Ball
If you haven’t already, I encourage you to read the first article in my series to gain a basic foundation of R and R Studio.  You will also find the links for downloading the programs there as well.
 
To begin, I want to mention a bit about the “packages” found in R.  The incredible thing about R is that is a dynamically evolving language that gains functionality on a daily basis.  Packages allow for anyone to compile functions and data sets together in one convenient bundle to extend to the base system functionality of R.  There are two main repositories that host packages, CRAN and bioconductor.  At the time of writing this article there are more than 9,000 individual packages available for use with R.
 
A majority of the packages will be installed from CRAN, so I will highlight the steps to install and load packages hosted there.  The first thing you will need to do is to install the package, as an example we will install the ggplot2 (one of R’s most popular graphing packages).   Once you have the package installed, you must then load it.  The code is as follows:
 
install.packages("ggplot2")
library("ggplot2")

Open in new window


Alternatively, utilizing R Studio, you can click the Packages tab in the bottom right window, click install, and enter ggplot2 in the Packages field (seen below):

Screen-Shot-2015-07-21-at-12.05.38-PM.pnScreen-Shot-2015-07-21-at-12.11.37-PM.pnWe will be using multiple different packages in this series but I will notify you which ones you need before I expect you to use them, just always remember to load the packages after you install it!
 

Concept 1: Objects
4
LVL 68

Expert Comment

by:Jim Horn
Looks thorough, will have to explore this.  Voted Yes.
0
LVL 55

Expert Comment

by:Vitor Montalvão
Nice article, Matthew.
I'm also a R enthusiastic and a self learner.
Just want to call your attention for the link to the next article. You didn't want to add it here in this article or it was on purpose?
0
RStudio-Ball
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.
 
So what is R? R is a programming language and environment with an ever-growing bucket of tools for statistical processing and graphic creation. According to the R-project website, R includes
  • an effective data handling and storage facility,
  • a suite of operators for calculations on arrays, in particular matrices,
  • a large, coherent, integrated collection of intermediate tools for data analysis,
  • graphical facilities for data analysis and display either on-screen or on hardcopy, and
  • a well-developed, simple and effective programming language which includes conditionals, loops, user-defined recursive functions and input and output facilities.
 
Sure, graduating with a minor in Statistics and my love for data manipulation may make me partially biased with using R but I feel like its uses are incredibly wide-reaching. The great thing about R is it allows the user to perform simple arithmetic calculations with matrices or dive in deeper and create complex graphs or even create dynamic reports to incorporate LaTeX.
 
Another incredible feature is you have an overwhelming amount of “packages” at your disposal to increase …
13
LVL 68

Expert Comment

by:Jim Horn
Hi Matthew

Very well written introduction article, voting Yes.

I'm currently in Seattle attending PASS Summit 2015, and in the keynote they're doing a big demo of SQL Server 2016 features, which include built-in R language and real-time data analytics on data flowing from OLTP systems.  So if anything there may be opportunity for you to write a sequel (no pun intended) article on R programming in SQL Server 2016.

Thanks.
Jim
0
LVL 56

Expert Comment

by:Mark Wills
Will second that request...

Microsoft bought Revolution Analytics : http://blogs.technet.com/b/machinelearning/archive/2015/04/06/microsoft-closes-acquisition-of-revolution-analytics.aspx specifically for incorporating analytics on big data. But also means that having incorporated R and the RODBC drivers as well.

Here is an interesting look at how SQL and R can co-exist quite happily via  RODBC (an article written about the same time as acquisition was finalised) : https://www.simple-talk.com/sql/reporting-services/making-data-analytics-simpler-sql-server-and-r/

So, maybe something along those lines ? I am sure Jim or Me (plus others) can assist.
0
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space.

w60 means Windows Vista or Windows Server 2008.
w61 means Windows 7 or Windows Server 2008 R2.

There are various guides found on the internet on how-to integrate updates into Windows installation media using dism.
This article is a post-integrate how-to to this numerous articles.
This article is addressed to users, who are comfortable using dism to mount, update, manage and unmount Windows Image files for deployment of Windows Systems.
So mounting and dismounting images is intentionally left out.

Problem:
Administrators often include windows update packages into their deployment images to save time when deploying.
In Windows 8 dism.exe has built-in command-line extensions to remove superseded updates from Windows 8 image files.
Earlier versions of Windows do not have this feature.
So when you integrate packages into a windows installation media (w60 or w61), superseded or outdated packages reside in the deployment image and use unneccessary space. This guide shows how to list and remove superseded packages from the command-line or by batch.

Short description for what you have to do before:
- Download Windows Updates for Windows (w60 or w61).
  Best practice is using wsus offline update.
- Mount Windows installation media.
- Apply packages to the mounted image.

The listings below offers two options.
The first option …
1
AutoHotkey logo
AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to additional resources for EE members who want to learn more.
27

Expert Comment

by:camtz
Excellent. Thanks Joe.
Carlos
0
LVL 67

Author Comment

by:Joe Winograd
You're welcome, Carlos, and thanks to you for the compliment. If you take a moment to click the thumbs-up icon at the bottom of the article, I''ll appreciate it — as you can see, you'll be endorsement #20. :) Regards, Joe
0
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines.

The key components of Windows Script Host are CSCript, WScript, WSH ActiveX Control and Scripting engines.

WSH ActiveX Control:
An ActiveX control that provides the core object model for the scripting host. Scripting Engines

Scripting engines
Scripting engines provide the core functions, objects, and methods for a particular scripting language. VBScript and JScript scripting  engines are installed by default on Windows.

CSCript and WScript are executables for the scripting host that are used to run the scripts. CSCript and WScript are both interpreters to run VBScript (and other scripting languages like JScript) on the Windows platform.

CSScript is for console applications and WScript is for Windows applications. The Kernel checks a flag in the executable to determine which 

When starting using CreateProcess, if it is a console application, the kernel will create a console window for it if the parent process doesn't have one, and attach the STDIN and STDOUT and STDERR to the console. If it is a Windows application, no console will be created and STDIN, STDOUT and STDERR…
0
Expert Spotlight: Joe Anderson (DatabaseMX)
LVL 13
Expert Spotlight: Joe Anderson (DatabaseMX)

We’ve posted a new Expert Spotlight!  Joe Anderson (DatabaseMX) has been on Experts Exchange since 2006. Learn more about this database architect, guitar aficionado, and Microsoft MVP.

There is an easy way, in .NET, to centralize the treatment of all unexpected errors.

First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to that Sub in the Application tab of the project's Properties Window (last entry in the Project menu). You must make sure that Enable application framework is unchecked for this to work, because what that does is simply write a Sub Main for you, and you cannot have two of these in the same application.

Professional programmers use that approach for most applications, because it enables them to check the environment and set things up before loading the main Form. It also enables you to launch the application in different ways on in different Forms, depending on the situation, command line arguments or the user.

But over all, it enables you to trap Exception events at the application level. Here is the basic code for that module.
Module Module1

 Public Sub Main()

    AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf UnhandledExceptionHandler
    AddHandler Application.ThreadException, AddressOf ThreadExceptionHandler

    Application.Run(New Form1)

 End Sub

 Private Sub UnhandledExceptionHandler(ByVal sender As Object, ByVal e As UnhandledExceptionEventArgs)
    YourReportingMethod(CType(e.ExceptionObject, Exception))
 End Sub

 Private Sub ThreadExceptionHandler(ByVal sender As Object, ByVal e As 

Open in new window

4
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific group of links in a specific spot on a page and make sure the right group of links shows up in the right place. Menuing in broadest possible sense can be handled in two methods namely implicit and explicit.

Implicit menu
Implicit menu refers to the menu that are driven off by the content structure of the site

Explicit menu
Explicit menu refers to the menu that does not have specific menu structure and it links to specific content in the site regardless of where the content is.

In order to reduce the pain and challenges faced by the developers on menuing, many third party tools and open sources are available today to fulfill the developer needs. The developers can either use them directly or customize them according to their needs.

Flex Menus
In Flex, the flex controls can be used as menus. Some of the controls are Menubar, Tree panel, Button Bar and  Link Bar

Java Menu
Similar to Flex, in Java the treeview and  Expand / Collapse Accordion can be used to create menus. Apart from these controls the users can create Horizontal menus and vertical menus using jQuery.  Generally the developers prefer to use  jQuery Accordion menu instead of using the controls in Java for designing and…
0
Problem: You created a new custom form in Outlook for your contacts (added fields, deleted fields, changed the layout of fields, whatever) and made it the default form for contacts. The good news is that all new contacts will utilize the new form. The bad news is that all existing contacts will not.

A field in the contact record called Message Class determines which form is used, but the Message Class field cannot be changed manually. The typical approach to solving this problem is to write VBScript code that changes Message Class to the new form for all items in the folder. Examples of this approach may be found in the Microsoft Knowledge Base (How to update existing items in an Outlook folder to use a new custom form) and here at Experts Exchange (Changing Message Class and Journal Values Programmatically). However, many users don't have the skills to deal with VBScript code and add it to Outlook Macros (or are reluctant to do so).

Solution: I had this problem myself, as I wanted to change more than 2,000 contacts to use a new form. I found an excellent, free, out-of-the-box application to do this and wrote this article to share the solution with the Experts Exchange community. There is no VBScript code and no changes to Outlook's Macro handling (in fact, no changes to Outlook at all). You simply run a program (no installation/setup necessary – just run the EXE).

The program is called DocMessageClass (the executable is DocMessageClass.exe
4

Expert Comment

by:Lori Stertz
I have Windows 10 and Office 365 and spent too much time today trying to figure out VBScript and macros ... thankfully, then I found this page. When I clicked the second link (http://www.publicshareware.com/download/DocMessageClass.zip) it downloaded the program quickly and showed me my old and new form, and updated 195 records just like that.  Crazy good, thank you!
1
LVL 67

Author Comment

by:Joe Winograd
You're welcome, Lori, and thanks to you for joining Experts Exchange today, reading my article, and letting us know that the solution worked for you with the download from the second link. Thanks, too, for contributing to our community by reporting that it works with the latest software from Microsoft, i.e., Windows 10 and Office 365...that's great news!

I'll appreciate it if you take a moment to click the thumbs-up icon under the article, which endorses it (not the icon at this comment, but the one under the article...currently has a 4 in it...hopefully, you'll be #5). Welcome aboard to EE! Regards, Joe
0

Programming Languages-Other

20K

Solutions

19K

Contributors

A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Thousands of different programming languages have been created, mainly in the computer field, and many more still are being created every year. The description of a programming language is usually split into the two components of syntax (form) and semantics (meaning). Some languages are defined by a specification document (for example, the C programming language is specified by an ISO Standard), while other languages (such as Perl) have a dominant implementation that is treated as a reference. Some languages have both, with the basic language defined by a standard and extensions taken from the dominant implementation being common.