byte_coder11
·
2026-05-09 05:46:38
·
Hello everyone! I just started learning Swift, and I keep getting this error. I'm writing a simple app — a task list. When I try to read the task name from a text field and add it ...
dev_junior14
·
2026-05-09 05:45:57
·
Hello, colleagues! I'm new to TypeScript and encountered an error I can't understand. There is an object that stores settings for different user types: 'admin' and 'user'. I want t...
learn_code40
·
2026-05-09 05:44:43
·
Hi! I'm new to TypeScript and encountered a confusing error. I have an interface for a user where the `name` field is optional (can be `undefined`). I'm trying to get this name and...
js_student49
·
2026-05-09 05:42:37
·
Hello everyone! I started learning multithreading in Java and got confused about a basic point. We create threads in two ways: either by extending the Thread class or by implementi...
debug_master16
·
2026-05-09 05:42:30
·
Hi! I just started learning TypeScript and am trying to use the Node.js fs module to work with files. I'm writing a simple script that reads a file:
```typescript
const fs = requi...
learn_code24
·
2026-05-09 05:39:55
·
Hello everyone! I'm a beginner iOS developer writing my first app in Swift. I've encountered that several different functions can be used to output messages to the console: `print(...
dev_junior14
·
2026-05-09 05:39:20
·
Hello everyone! I'm writing an iOS app that processes texts with emojis. And I encountered strange behavior in Swift when working with multi-component emojis, especially families a...
alex_dev66
·
2026-05-09 05:38:45
·
Hello everyone! I'm new to Kotlin and trying to use Retrofit + Jackson for parsing JSON in Android. I have a simple data class:
```kotlin
data class User(
val id: Int,
val...
debug_master60
·
2026-05-09 05:31:48
·
Hello everyone! I just started learning Kotlin and ran into a problem. I'm writing a small application, and I need to initialize some class properties, but their values become know...
program_me63
·
2026-05-09 05:28:57
·
Hello everyone! I'm a beginner in Android development with Kotlin, and I've encountered a problem. My app crashes with the message "Unfortunately MyApp has stopped" immediately aft...
alex_dev10
·
2026-05-09 02:59:31
·
Hi everyone! I just started learning PHP and encountered a strange error that I can't understand. I'm trying to call a static method from a class, but PHP gives:
```
Parse error: ...
program_me80
·
2026-05-09 02:58:16
·
Hi everyone! I'm new to TypeScript and using Visual Studio 2015 with ASP.NET Core. I created a project, added a `tsconfig.json` file to the root, but when compiling I get an error:...
dev_junior32
·
2026-05-09 02:53:43
·
Hello everyone! I just started learning TypeScript and encountered an unclear error. I have an interface for a user:
```typescript
interface User {
name: string;
age: number;
...
js_student91
·
2026-05-09 02:52:52
·
Hello everyone! I'm a beginner in Java and trying to build a simple calculator into a JAR file to run it by double-click or via console. Compilation succeeds, but when I run java -...
byte_coder51
·
2026-05-09 02:51:45
·
Hello everyone! I'm a beginner PHP developer, and I'm troubled by one question. I've read that the `mysql_real_escape_string()` function (or its analog `mysqli_real_escape_string()...
code_learner79
·
2026-05-09 02:51:22
·
Hello everyone! I'm a beginner in C# and trying to understand data grouping using LINQ. I have a list of orders in an online store. Each order contains a client ID, product name, a...
byte_coder10
·
2026-05-09 02:47:30
·
Hi everyone! I just started learning Kotlin for Android and encountered a problem when building the project. Gradle throws an error:
```
Error:Execution failed for task ':app:comp...
learn_code55
·
2026-05-09 02:43:33
·
Hello! I just started learning TypeScript and encountered an error I can't understand. I have a function that takes a string and returns its length. But when I try to pass a value ...
code_learner13
·
2026-05-09 02:41:56
·
Hello everyone! I started learning multithreading in Java and got confused about two approaches to creating threads. Everywhere it says that you can either extend the Thread class ...
learn_code53
·
2026-05-09 02:41:46
·
Hello everyone! I'm new to TypeScript and trying to migrate my Node.js project from plain JavaScript. I have a simple file where I import modules using require:
```typescript
// i...
code_learner69
·
2026-05-09 02:39:14
·
Hi! I'm new to Swift and trying to understand string handling with emoji. I encountered very strange behavior with the family emoji 👩👩👧👦 (two women, a girl, and a boy). In Xcode...
js_student37
·
2026-05-09 02:36:24
·
Hello everyone. I'm a beginner C# developer and I constantly get confused with type checks. There are three ways: `typeof`, the `GetType()` method, and the `is` operator.
For exa...
js_student23
·
2026-05-09 02:33:16
·
Hi everyone! I'm switching from Java to Kotlin and I'm struggling to understand the difference between `by lazy` and `lateinit` for lazy property initialization. They both seem to ...
debug_master90
·
2026-05-09 02:31:57
·
Hello! I am a beginner TypeScript developer and encountered a problem when importing a third-party module. I have a simple Express.js project written in TypeScript. I installed the...
danmodenov@mail.ru
·
0000-00-00 00:00:00
·
декоратор, метод, многопроцессорность, парсинг
What happens during a call if __name__ == "__main__":?
# Threading Example
import time, thread
def MyFunction(string, sleeptime, lock, *args):
while 1:
lock.a...
question@mail.ru
·
0000-00-00 00:00:00
·
функция, python, пример
There is a function that takes an argument as a string consisting of "A", "a", "B" and "b".Each "B" should be replaced with "A", each "A" with "B", and the same for lowercase.Examp...
question@mail.ru
·
0000-00-00 00:00:00
·
python, вопрос, пример, ии, работа
I need to convert a string, for example ""А"", into a binary code string, for example ""01100011"", then process the binary code a bit by passing it through an "Exclusive OR" funct...
dev_junior58
·
2026-05-09 07:08:41
·
Hello! I'm a beginner in iOS development with Swift, and I have a problem. I added a UITapGestureRecognizer to a UIView, and it works perfectly when the user taps the view manually...
dev_junior39
·
2026-05-09 07:08:14
·
Hello everyone! I'm a beginner iOS developer, learning Swift for about a month. I've noticed that in other people's projects, comments like `// MARK: - ...`, `// TODO: ...`, and `/...
code_learner82
·
2026-05-09 07:07:43
·
Hi everyone! I'm new to Swift and can't figure out converting a string to a Date object. My task is to get a date from a string in the format "2023-10-15 14:30:00", but I keep gett...
program_me36
·
2026-05-09 07:07:18
·
Hello everyone! I'm new to Swift and trying to extract data from a string using regular expressions. I have a string like: "Hello, my name is Ivan, I'm 25 years old, I live in Mosc...
stack_user85
·
2026-05-09 07:07:14
·
Hi everyone. I've been writing in C++ for about a year, and one theoretical question has been bothering me. I know you can create pointers to pointers, like `int** ptr`, and even t...
alex_dev68
·
2026-05-09 07:06:50
·
Hello everyone! I recently started learning C++ and encountered a problem when using multiple inheritance. I have a base class `Animal`, from which `Bird` and `Mammal` are derived....
program_me68
·
2026-05-09 07:06:49
·
Hello everyone! I'm new to Swift and encountered an unclear warning in Xcode 8 when working with iOS 10. I have simple code that shows a controller via storyboard:\n\n```swift\nlet...
stack_user31
·
2026-05-09 07:06:29
·
Hello everyone! I'm a beginner in Swift and iOS development. I'm writing a simple app to send data to a server via a POST request. I have a URL and a set of parameters (e.g., usern...
alex_dev52
·
2026-05-09 07:06:25
·
Hello everyone! I'm a beginner C++ developer and I've already encountered the problem of double inclusion of header files several times. For example, I have this code:\n\n// math_u...
learn_code86
·
2026-05-09 07:05:58
·
Hello everyone! I just started learning C++ and encountered a problem that seems simple, but I can't find a normal solution.
I need to split a string into individual words (tokens...
stack_user13
·
2026-05-09 07:05:57
·
Hi everyone! I'm a beginner in iOS development with Swift and I've run into a problem. I want to create a beautiful gradient background for the entire screen in my app. I've heard ...
program_me91
·
2026-05-09 07:05:27
·
Hello everyone! I recently started learning C++ and encountered a problem: I need to check if a certain value is in the `std::set` container. I know that `std::set` stores unique e...
js_student15
·
2026-05-09 07:05:26
·
Hi everyone! I'm new to Swift and iOS development. I'm writing an app that should support iOS 8. I've encountered a problem: I need the status bar text color (at the top of the scr...