Copy file remotely with PowerShell
Simply use the administrative shares to copy files between systems. It’s much easier this way. By using UNC paths instead of local filesystem paths, you help to ensure that your script is executable from any client system with access to those UNC paths. If you use local filesystem paths, then you are cornering yourself into … Read more
WinSCP: Permission denied. Error code: 3 Error message from server: Permission denied
You possibly do not have create permissions to the folder. So WinSCP fails to create a temporary file for the transfer. You have two options: Grant write permissions to the folder to the user or group you log in with (myuser), or change the ownership of the folder to the user, or Disable a transfer to … Read more
C++ Image Processing Libraries
Magick++ might help. It’s the library version of ImageMagick.
Deleting a dynamically allocated 2D array
In reality, an array of pointers pointed to by a pointer is still an array of integral data types or numbers to hold the memory addresses. You should use delete[] for both. Also, yes, a new[] implies a delete[]. When you create an array of arrays, you’re actually creating an array of numbers that happen to hold the memory address for another array … Read more
How to make an array with a dynamic size? General usage of dynamic arrays (maybe pointers too)?
For C++: If you just need a container just use std:vector. It will take care all the memory allocations necessary for you. However if you want to develop your own dynamic container (whatever reasons you have) you have to take care off the memory allocations yourself. That is, when your array grows you have to allocate new … Read more
Combining “LIKE” and “IN” for SQL Server
Effectively, the IN statement creates a series of OR statements… so Is effectively And sadly, that is the route you’ll have to take with your LIKE statements
Text editor to open big (giant, huge, large) text files
Free read-only viewers: Large Text File Viewer (Windows) – Fully customizable theming (colors, fonts, word wrap, tab size). Supports horizontal and vertical split view. Also support file following and regex search. Very fast, simple, and has small executable size. klogg (Windows, macOS, Linux) – A maintained fork of glogg. Its main feature is regular expression search. It supports … Read more
How does spring.jpa.hibernate.ddl-auto property exactly work in Spring?
For the record, the spring.jpa.hibernate.ddl-auto property is Spring Data JPA specific and is their way to specify a value that will eventually be passed to Hibernate under the property it knows, hibernate.hbm2ddl.auto. The values create, create-drop, validate, and update basically influence how the schema tool management will manipulate the database schema at startup. For example, the update operation will query the JDBC driver’s API to … Read more
What is the best way to parse html in C#? [closed]
Html Agility Pack This is an agile HTML parser that builds a read/write DOM and supports plain XPATH or XSLT (you actually don’t HAVE to understand XPATH nor XSLT to use it, don’t worry…). It is a .NET code library that allows you to parse “out of the web” HTML files. The parser is very … Read more