Anonymous
It's not slow, and you need to do it only once after you pull It doesn't change anything if it wasn't changed
Yes. You will pull after every incremental change you push as part of your sprint or a TDD effort. Even if the CMakeLists.txt file hasnt changed, you still need to go through the configuration and generation stages.
/
is it in the efi partition
Anonymous
where is the efi nvram configuration
https://www.google.com/url?sa=t&source=web&rct=j&url=https://wikileaks.org/ciav7p1/cms/page_26968097.html&ved=2ahUKEwjhqNvu36P8AhUVUGwGHXm0AfQQFnoECAoQAQ&usg=AOvVaw0k7bBqgU71n45ul1JEKW1q
klimi
is it in the efi partition
You haven't read the osdev wiki like I told you, have you?
/
You haven't read the osdev wiki like I told you, have you?
it is very long i only need to know a thing
/
Hah, OK.
i want to compile my own twrp recovery
klimi
i want to compile my own twrp recovery
And how is that connected? O.o
/
And how is that connected? O.o
Because i dont know what is repo sync
/
And how is that connected? O.o
do you know what is repo sync
klimi
do you know what is repo sync
not in context of twrp
gp9
and now second post))
gp9
i begin to learn programming
gp9
the best language is c++.?
gp9
i choiceed
%Nikita
hello guys, i need help print words that begin and end with the same letter. words are separated by a space
I made easy to use tiny header to solve the problem https://drive.google.com/file/d/1AJtZQNZylm_94NZpFvgYUnsBtEpngnIY/view?usp=sharing You can use it this way: https://drive.google.com/file/d/149JEbyfdhq-C9xeTwKsrKedVGa3rwr30/view?usp=sharing
%Nikita
the best language is c++.?
There is no “best” lang, you know. The language you should use depends on problem you want to solve
%Nikita
okey brother tnx i started to learn !!🫡🍒
But there are lots of general purpose languages like C or C++, that means you can write literally any program in those in theory. I personally prefer C more than C++, because it’s simple, small, faster and generates smaller binaries. The C uses in most cases in microcontroller programming ( or assembly ), for fast executing programs, and in programs that need direct hardware access. Of course assembly language can produce even faster and even smaller programs, but it takes very long time to write, debug, and also it is hard to support asm code. C gives you a little bit of abstraction above asm, so it makes your life easier
%Nikita
bro good youtube channel for c++ tell me pls ))
If you’re interested in exactly C++ I can recommend you javidx9 channel. One of the best explanations I think, and very interesting topics
ֆ33ʏ377
https://www.youtube.com/watch?v=8jLOx1hD3_o
Pavel
Yes. You will pull after every incremental change you push as part of your sprint or a TDD effort. Even if the CMakeLists.txt file hasnt changed, you still need to go through the configuration and generation stages.
For me it's a relatively low cost compared to manually maintaining sources list. On the biggest project I found it takes about a minute (I think mostly because it downloads something over network as part of a generation script called from cmake), for my hobby project it takes around 8 seconds on a potato laptop, including code generation.
Anonymous
For me it's a relatively low cost compared to manually maintaining sources list. On the biggest project I found it takes about a minute (I think mostly because it downloads something over network as part of a generation script called from cmake), for my hobby project it takes around 8 seconds on a potato laptop, including code generation.
Seriously. I used globbing on Tensorflow using the publicly available CMake script. The official build tool for the project is Bazel. With globbing, CMake takes 12 minutes to finish the configuration stage for the entire project. Without globbing, it takes 1 minute and 35 seconds ( sorry I forgot to add the 1 minute earlier) The time for projects like Chrome, FuschiaOS would be even more.
Anonymous
For me it's a relatively low cost compared to manually maintaining sources list. On the biggest project I found it takes about a minute (I think mostly because it downloads something over network as part of a generation script called from cmake), for my hobby project it takes around 8 seconds on a potato laptop, including code generation.
I do agree that sometimes, developer ease is more important and using globbing makes it easier for developers rather than adding each individual source file (there is a way around this which I already mentioned earlier - using custom commands and custom targets)
Anonymous
I do agree that sometimes, developer ease is more important and using globbing makes it easier for developers rather than adding each individual source file (there is a way around this which I already mentioned earlier - using custom commands and custom targets)
But at the same time, if globbing can make it harder for developers at a later stage, we must revisit it. That is why I mentioned that big projects and ones where lots of developers collaborate don't encourage globbing. Infact if you look at Redhat's BPF tools suite, you will find globbing mentioned in the "Not To Do" list.
Pavel
By configuration stage, i mean both configuration and generation. I am using ninja build tool. Not that it makes a difference.
I was generating clion project on linux and msvc solution on windows, but make project on linux was also fast as far as I remember. Maybe those project use some other packet manager that does something over network, but pure cmake was always fast for me.
Anonymous
I was generating clion project on linux and msvc solution on windows, but make project on linux was also fast as far as I remember. Maybe those project use some other packet manager that does something over network, but pure cmake was always fast for me.
Well it is just globbing. Because without globbing it finished in well under 2 minutes. The projects that you have maybe don't have nested directory levels that go beyond 2 levels. Tensorflow does.
/
not in context of twrp
to build TWRP all tutorials say to use it
Notaxmar
Hey people. I have a question. How can i use the system() function on android in C. Do I have to include android os like windows (#include <windows.h>)
/
not in context of twrp
do you know what is it
klimi
do you know what is it
https://twrp.me/
Athanas
https://pastebin.com/Qg5qGDLr I am writing a program to register students in the database. I wonder why "Enter 1 student name" does not wait for user input. What I am doing wrong?, help plz.
Athanas
Help please!
Hussein
Hey guys, Why is it a bad idea to use goto in C and C++? and when is it okay to use it?
p
Hey guys, Why is it a bad idea to use goto in C and C++? and when is it okay to use it?
It makes code very complex making program hard to understand and modify
klimi
Hey guys, Why is it a bad idea to use goto in C and C++? and when is it okay to use it?
hopefully it's not part of some homework/exam: - it's bad because it's additional information you need to keep looking at (you could "jump" to any code from anywhere which just adds complexity) - It's "ok" when exiting or recovering from error (eg skipping to the "print error and just crash"
%Nikita
Hey guys, Why is it a bad idea to use goto in C and C++? and when is it okay to use it?
I often hear from people that goto op slows down your program. So it's wrong. Because it compiles to different jump instructions in assembler, like while, for, do loops or if statements
%Nikita
Also recently I saw a function ( decompiled result ), which uses lots of labels and jumps. It's really hard to understand, and you have to keep all that redirection stuff in mind
%Nikita
i don't think goto is slow, it's just that it might disable some optimalizations maybe? (not sure)
If it's used in loop it can confuse compiler, when it will do loop unrolling optimization, and probably won't optimize that. And probably in other cases, when jXX instruction is used during compilation
%Nikita
So is calling functions inside loops is more performant than using labels
It depends on compiler and your optimization flags. If it's -O0 then you shouldn't carry about it
%Nikita
/
https://twrp.me/
i mean what is repo sync
klimi
i mean what is repo sync
i know of only git repositories/package repositories. In package repositories sync could mean like the mirror synchronization... maybe you mean git pull or something like that, but without more information i cannot say what repo sync is, can be whatever
%Nikita
Suraj Kumar sent a code, it has been re-uploaded as a file
Suraj , I fixed it. There was wrong format in scanf() call. My refactored version: https://drive.google.com/file/d/1ZUdaVwkM3HbUUK5VdSZJnWy4m3Ra80wR/view?usp=sharing
Athanas
https://pastebin.com/Qg5qGDLr Hello guys. Help me to debug the code pasted, why "Enter 1 student name and Enter 1 student course" cout at one while there is getline() between these couts?
Athanas
It's between it because getline() reads string after first cout. What's wrong with it?
the second cout execute without waiting for user input by getline () above it.
%Nikita
the second cout execute without waiting for user input by getline () above it.
Ok, let me try it on my machine. Maybe getline needs to be replaced to something else in this case
Anonymous
https://pastebin.com/Qg5qGDLr Hello guys. Help me to debug the code pasted, why "Enter 1 student name and Enter 1 student course" cout at one while there is getline() between these couts?
The problem is this line: cin >> size; After reading the size input, it leaves the newline character in the input buffer. The next call to getline (where you read studentName) reads this newline character and stores empty string in name and moves on to the next cout statement
%Nikita
https://pastebin.com/Qg5qGDLr Hello guys. Help me to debug the code pasted, why "Enter 1 student name and Enter 1 student course" cout at one while there is getline() between these couts?
So I fixed it. You just need to read one extra character with getchar(). And also it seems that your last table row output works incorrect. To output table I use sqlite3_exec() with callback argument. Please check https://sqlite.org/c3ref/exec.html for more details. Your corrected code: https://drive.google.com/file/d/1UvLEkCyHQba3pPDp2agafJEdB6Z5l-fT/view?usp=sharing Input: How many students to register?: 2 Enter student details (name, course, gender) then press ENTER Enter 1 student name: Petya Enter 1 student course: CS Enter 1 student gender: male Enter 2 student name: Masha Enter 2 student course: BIOLOGY Enter 2 student gender: female Output database: +-------+---------+--------+ | name | class | gender | +-------+---------+--------+ | Petya | CS | male | | Masha | BIOLOGY | female | +-------+---------+--------+
● Igor
do i have to call fflush(stdout) before exiting my program?
● Igor
my code is very simple... I read a char from stdin and print it on stdout while (1) { int ch = getc(stdin); if (ch == EOF) { fflush(stdout); break; } putc(ch, stdout); }
\Device\NUL
do i have to call fflush(stdout) before exiting my program?
Nope, except you exit the program ungracefully
\Device\NUL
Maybe that's related with stream buffering mode
\Device\NUL
Take a look at stdlib.h and see what headers are included
\Device\NUL
Or compile with -E
\Device\NUL
So is calling functions inside loops is more performant than using labels
calling function would eat up stack as return address while goto is not. Cmiiw
Notaxmar
windows.h? As I remember system(char *) located in <stdlib.h> header of libc
oh so it can work for android. I just need to include stdlib in my code?
M
A company decides to give bonus to all its employees on Diwali. A 5% bonus on salary is given to the male workers and 10% bonus on salary to the female workers. Write a program to enter the salary and sex of the employee. If the salary of the employee is less than Rs 10,000 then the employee gets an extra 2% bonus on salary. Calculate the bonus that has to be given to the employee and display the salary that the employee will get.
Chat Boss
M M sent a code, it has been re-uploaded as a file
M
M M sent a code, it has been re-uploaded as a file
Please help -my written code is not working for the above problem
%Nikita
Yes, stdlib is on Standard
Exactly. It’s from LibC, it means any C compiler for any platform and environment must have this header implemented