⌘BABAKOV.NET Let's code!
100% [light] [ru]
~/posts $

Posts

Let's code!

202 total · page 10 / 21

My First Encounter with a Computer

Saw a photo of the Delta S computer online, and memories flooded back… Processor: 3.5 MHz (as written in the book, 1 million operations per second!!! :) ) RAM: 48 KB, ROM: 16 KB Graphics: 256x192, 8 colors, 2 brightness levels, 2 colors per 8x8 pixel block, blinking attribute + Built-in speaker

15 views 0 comments 0 likes ./Read →

Рисуем изображение с прозрачным фоном и заставляем его перемещаться в NET CF. C#

Довольно долго я всевозможными способами пробовал вывести изображения с прозрачным фоном (например картинку формата png) в .NET CF на Windows Mobile устройствах. Но всё получалось либо медленно и некрасиво, либо очень сложно. А нужен был ме…

44 views 0 comments 0 likes ./Read →

Working with FTP Server from C#

Many have probably encountered the need to create a simple FTP client for their needs in C#. I was no exception. Recently, I had to create a specific application for updating software via FTP. And the most useful thing I found for this purpose was the BytesRoad.NetSuit library (with source code). This is a very simple component that provides the main functionality for working with FTP.

455 views 0 comments 0 likes ./Read →

Changing Screen Orientation in .NET CF and Running PUTTY. C#

Encountered a big need to run Putty (ssh client) on my HD2. And everything is fine, downloaded, launched, everything works well but the screen width is not enough in vertical position and some information is not visible. For example, when executing the command <b>ps -ax</b>, the lines were simply cut off (did not fit on the screen, the lower scrollbar was missing, and it was impossible to view the information). I've been searching the internet - nothing really worked to rotate the screen for this application. As a result, I decided to quickly write my own program.<br><br>So, the program's main purpose is to rotate the screen, launch Putty, wait for Putty to complete, and return the screen to its normal position.<br><br>The code can be easily adapted to change the orientation in other programs.<br><br>So, the program itself:

35 views 0 comments 0 likes ./Read →

Creating Zip Archives in C#

The easiest way to create archives in C# is to use the special library 'DotNetZip'. The library has a very large functionality and allows you to do real wonders, but at the same time it is very simple to use when you need to quickly pack or unpack something small. Moreover, the package even includes a library for the Compact Framework.

40 views 0 comments 0 likes ./Read →

Database Class (Example: MySQL) in C#

Everything below is written as an example, learn to use Dapper better. Below, in a separate class, methods are implemented not only to execute queries of the type (Scalar and NonQuery) but also a method that returns a set of data in DataTable. The handling of exceptional situations is also considered.

228 views 0 comments 0 likes ./Read →

Rotating an Image by 90 Degrees in C#

Here I will provide a function to rotate an image by 90 degrees, but not to display a pictureBox at a certain angle, but rather to transform the image so that the input is one image and the output is an absolutely different, but identical to the first, image - rotated by 90 degrees.

129 views 0 comments 0 likes ./Read →

Block Slap Game for HTC HD2 on Windows Mobile

A game for HTC communicators with a screen resolution of 480x800. Created specifically for HTC HD2, tested on it as well. Created due to the impossibility of finding an analogue with acceptable finger control (without a stylus). In essence, this game is similar to the game of colored balls, which was included with Windows on previous PDAs and smartphones. The main difference is that instead of the disappeared group of blocks (in the original, balls) above the game space is filled with new colored blocks. Also, the scoring system is different, the final score depends not only on how many points you earned, but also on how much time it took.<br> Screenshots:<br>

73 views 0 comments 0 likes ./Read →