background preloader

General Programming

Facebook Twitter

FREELY AVAILABLE SOFTWARE FOR. Geometry (Points, Vectors and Normals) Algorithms and Stuff. Sorting Algorithm Animations. Algorithms in Java, Parts 1-4, 3rd edition by Robert Sedgewick.

Sorting Algorithm Animations

Addison Wesley, 2003. LKH (Keld Helsgaun) LKH Version 2.0.7 (November 2012)

LKH (Keld Helsgaun)

CSV to C structure utility. Reinstalling And Updating Packages. In NuGet 3.x with projects using project.json to list dependencies, installing or updating a package will always install the latest version available from the package source.

Reinstalling And Updating Packages

In projects using packages.config, the same behavior applies unless you specifically constrain the version range. For example, if you know that your application will work only with version 1.x of a package but not 2.0 and above, perhaps due to a major change in the package API, then you'd want to constrain upgrades to 1.x versions. This prevents accidental updates that would break the application. A quick tutorial on the Update-Package command. Among the supported commands in NuGet’s Package Manager Console, Update-Package is arguably the most powerful in terms of its supported parameters and switches.

A quick tutorial on the Update-Package command

The primary purpose of the command is to update package(s) in your projects to a higher (possibly latest) version. However, the provided parameters allow you to twist this behavior in many different ways. In this post, I’m going to give a quick tutorial on what possible ways you can invoke the command. In total, the Update-Package command offers eight parameters (in addition to the built-in PowerShell parameters): *Although the type of the -Version parameter is SemanticVersion, which is a type declared by NuGet, you can just use string when you set it.

With that, here are the common use cases for the Update-Package command: Оглавление — Problem Solving with Algorithms and Data Structures. Automaton Simulator. Automate the Boring Stuff with Python. In the previous chapter, you learned how to create and write to new files in Python.

Automate the Boring Stuff with Python

Your programs can also organize preexisting files on the hard drive. Maybe you’ve had the experience of going through a folder full of dozens, hundreds, or even thousands of files and copying, renaming, moving, or compressing them all by hand. Or consider tasks such as these: Making copies of all PDF files (and only the PDF files) in every sub-folder of a folderRemoving the leading zeros in the filenames for every file in a folder of hundreds of files named spam001.txt, spam002.txt, spam003.txt, and so onCompressing the contents of several folders into one ZIP file (which could be a simple backup system)

Visual Leak Detector for Visual C++ 2008-2015 - Documentation. This section briefly describes the basics of using Visual Leak Detector (VLD).

Visual Leak Detector for Visual C++ 2008-2015 - Documentation

Important! : Before using VLD with any Visual C++ project, you must first add the Visual Leak Detector include and library directories to the Visual C++ include and library directory search paths:For all compiler versions take care to ensure that no junk characters get added when you add the include and library paths. If you browse to the "Program Files(x86) folder using the dialog box provided by Visual Studio and select it you could end up seeing the "%" replacing the "(".

And remember to close and open the Visual Studio IDE once you have modified the default include and library paths which the compiler and linker would always look at. Visual C++ 2010/2012/2013: Go to View ->Property Manager, select Microsoft.Cpp.Win32.user. In-Memory Compression and Decompression Using ZLIB. Zlib is a free compression library (a DLL) on which the popular gzip utility is built.

In-Memory Compression and Decompression Using ZLIB

In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file. We'll be coding in C++ in Visual Studio. This seems like it would be a trivial problem, and indeed, it turns out to be relatively easy. The difficulty is in wading through the zlib documentation and figuring out what not to do! As with most GNU projects, the documentation is written in some sort of unix-geek-speak, and for some reason, they included lots of special options and rarely-needed functionality, but failed to provide a simple function call to handle this most basic of needs. To get started, you will need to download the pre-built zlib DLL. To make this example be as simple and universal as possible, we'll just throw together a console application program. Linking a binary blob with GCC. Wiki:embedding_resources_in_executables [Robin Gareus]

I was recently looking for a way to ship an image with an executable without referring to the image as external file.

wiki:embedding_resources_in_executables [Robin Gareus]

Now you can argue if it is a good idea in general, but that's another story. Since I found very little information on the subject and needed to piece together information from various sources, I conclude the task with this comprehensive write up on the subject. The mechanisms described here apply to including any resource - not just images - into an executable c-program. Object Files There are various ways to embed generic fixed data within an application. A list of open source C++ libraries. The objective of this page is to build a comprehensive list of open source C++ libraries, so that when one needs an implementation of particular functionality, one needn't to waste time searching on web(DuckDuckGo, Google, Bing e.t.c).

A list of open source C++ libraries

If you know a library that might be useful to others, please add a link to it here. There are no restrictions on what can be included except that the source of the library must be readily available to download. Online regex tester and debugger: JavaScript, Python, PHP, and PCRE. Download Files From Google Drive To Iphone - codegists.com.