This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------------------------------------------------- | |
-- Queries related to distribution of metadata. | |
-- Find the number of users per profile. | |
SELECT count(id), Profile.name | |
FROM User | |
WHERE User.IsActive = true | |
GROUP BY Profile.name | |
-- Find the distribution of Apex classes per namespace. | |
select count(id), NameSpacePrefix |
Очень частый кейс - вам надо всего-лишь один раз установить какую-то фигню, чтобы запустить, сделать и забыть. Например, надо запустить что-то на JS, и что требует Node; или надо обучить простую нейросетку.
В таком случае надо выполнять страшные команды sudo apt install ...
, которые хотят 400мб и больше вашего пространства.
А вычищать всё это после сделанного раза - лень. Да ещё и могут прилететь нетривиальные зависимости, которые пропадут только после переустановки системы.
Вопрос: Что делать?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::str; | |
fn main() { | |
// -- FROM: vec of chars -- | |
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}']; | |
// to String | |
let string1: String = src1.iter().collect::<String>(); | |
// to str | |
let str1: &str = &src1.iter().collect::<String>(); | |
// to vec of byte |