Archive - may be useful to someone Most modern phone models support the vibration alert function, so it can be used (for example, in games when explosions occur to add more realism, or when writing communication programs, to notify the user of incoming messages while the device is in a pocket).
Simple way to send email using standard means. To do this, we need to connect libraries: using System.Net; using System.Net.Mail; using System.Net.Mime; The code for sending a letter with an attachment: // Specify the SMTP server and authenticate...
There may be many methods for converting a color image to black and white, and possibly even more advanced ones, but for now, the method presented below is the fastest among the ones I know. The conversion uses only standard libraries. The method's essence is not to work with the image itself, but to work with a block of data. If simplified, it's just freezing the image data in memory, modifying it as needed, and returning it to its original state.
Here is an example of how you can make a script in MSSQL work correctly with dates regardless of regional settings and date format. I personally implemented it in the following way: In the script, write the date as follows: Where data is a string of the following type: - This is the format of the date indicated by the number 120. Therefore, the server will not confuse the month with the day, etc.
It's no secret that when using DISTINCT with SELECT, we get a set of unique records, but it turns out in Oracle, there is another operator for this purpose UNIQUE - and, as experiments have shown, it seems to provide better performance.
I once had a task to compile a program for different devices. A range of devices in my case have specific capabilities and use special libraries, while for some ordinary devices, these libraries need to be excluded. Of course, you can comment out each time, but there are many inclusions and this approach is quite problematic.
This is the simplest and most primitive example, may be useful, but better to use OpenXML. In this publication, an example of creating and displaying an Excel document from a program written in C# is presented. The most primitive example is presented for educational purposes.
The essence of generating the EAN-13 barcode is to find the control digit (the last 13th digit). The algorithm for finding this value is as follows: 1) Leave 12 digits (the last 13 - the control digit we are looking for).…
Publication from archives, might be useful... Once I encountered the need to take screenshots from a PDA, and I couldn't find any suitable program. Specifically, a simple, small one that doesn't install anything, but works. I decided to write it, spent two hours digging the internet about how to do it - it turned out not to be so simple, only through API on mobile devices.
Standard utilities in MySQL are located in the bin subdirectory of the MySQL root directory. The list of most frequently used utilities includes: myisampack - Compresses MyISAM tables, reduces their size, and makes them read-only; mysql - Console client for accessing the MySQL server, allows executing SQL queries and administering the server; mysqladmin - Utility for performing administrative functions, such as creating or deleting databases, retrieving various information from the server, etc.; mysqlbinlog - Used for reading the contents of the binary log for data recovery in emergency cases; mysqlcheck - Used for describing, checking, optimizing, and recovering tables; mysqldump - Outputs the contents of the MySQL database in the form of an SQL query file or a text file with tabs. Creates a dump of the specified databases; mysqlhotcopy - Utility for creating a backup copy of tables without stopping the MySQL server, in other words, creating a hot copy of the database; mysqlimport - Performs a transfer from a text file to database tables; mysqlshow - Displays information about existing databases, tables, fields, and indexes.