Search Results


11 matches found for 'bytes'

Quick Numbers in Software Engineering Cheatsheet

... in memory may vary. Data Type Byte(s) Explanation CHAR 1-4 bytes 1 byte is enough to cover all the characters in ASCII and then some (1 byte = 255 character choices).


Misconceptions of ASCII and Unicode

... ASCII characters can be fully represented with 7 bits. However, since most computers used 8-bit bytes, a lot of OEM vendors decided to use the last remaining 8th bit (codes 128-255) for their own creative purposes, well before standards such as Unicode came along.


Design Concepts

... to depend on your service/application. Important to know size tables: 1 byte = 8 bits 1,000 bytes = 1 KB 1,000,000 bytes = 1000 KB = 1 MB 1,000,000,000 bytes = 1,000,000 KB = 1000 MB = 1 GB 1,000,000,000,000 bytes = 1,000,000,000 KB = 1,000,000 MB = 1000 GB = 1 TB 1,000,000 = Million 1,000,000,000 = Billion 1 sec = 1000 milliseconds 60 sec = 1 minute 3600 sec = 60 minutes = 1 hour 24 * 3600 = 1440 minutes = 24 hours = 1 day Here is a ballpark list for various content: URLs: \(0.


How to convert a PPM image to grayscale in C++

... int memoryBlockSize = img.width * img.height * 3; //This means the size is 3 bytes img.threeChan = new char[memoryBlockSize]; inputStream.read(&dump, 1); // ignore newline inputStream.


Scanning for memory addresses with Cheat Engine and ZSNES

... Engine is an absolutely great way to really dive deep into computer science fundamentals (bits, bytes, hexadecimals...), data structures, pointers, the internal workings of memory, and a little bit of assembly language if you want to create new injectable scripts for these games.


Python Essentials

Scopes Python has closures, similar to Javascript, since functions are first class objects. But unlike Javascript, there are some subtle gotchas in regards to working with function scopes. nonlocal vs.


Data Sharding: Twitter Posts

... value that is incremented (MySQL auto-increment fashion) so that we can keep the number of bytes down to 8. This means we wouldn't want something like a UUID, since UUIDs are 128 bits, which in hexdigest will take up \(\frac{128 bits}{4 bits} = 32\) characters, since each hexadecimal character only takes up 4 bits.


Virtual Memory

... it is slower to access this vs. segmentation, where we can expect the next \(N\) contiguous bytes in memory to belong to that specific application. Real World Usage Nowadays most operating systems use a hybrid of both segmentation and paging.


B-Trees vs. LSM Trees

B-Trees Modern databases are typically represented as B-Trees or LSM Trees (Log structured merge trees). B-trees are "tried and true" data structures that are popular in database usage, most notably SQL databases.


TCP/IP and HTTP - Part 1

... Does the IP addressing. (ex: 192.168.0.1) Link layer Dealing with the physical stream of bytes, or transmission of data. Does hardware addressing. (ex: MAC address) HTTP and the 3-way handshake HTTP (Hypertext Transfer Protocol) is a network protocol based on TCP.


Stack Memory vs. Heap Memory

Stack Memory The stack memory is used within a context of a thread. It is called stack memory since memory blocks are allocated in LIFO order, based on the function call stack. Each stack memory block houses data for local variables, references, and other bookkeeping data.