May. 1st, 2012
не густовато ли fp, как полагаете?
May. 1st, 2012 10:55 am1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | lazy val permissionBits = { val primary: Int = Permission.Base.Read .mask(file.canRead ) | Permission.Base.Write .mask(file.canWrite) | Permission.Base.Delete.mask(file.canDelete) val permBits = for (acl <- Option(file.cmis.getAcl); aces <- Option(acl.getAces); ace <- aces; name <- ace.getPermissions) yield CmisPermissions.forName(name).mask assert(permBits.sum == (0/: permBits) (_|_), "expected bits to be distinct") primary | permBits.sum } lazy val myPermission: Permission = new Permission(permissionBits) def granted(session: Session, masks: PermissionMask*): Boolean = myPermission allows (masks:_*) |
Сегодня пошел обедать в Сушитеи, захожу говорю "коннничива, о гэнки деска" (дескать, добрый день, все ли здоровы), мне в ответ "о гэнки деска, дозо!" (здоровы ль вы, проходите) - блин, чай тут же притаскивают, газетку на стол. Ухожу - стоят в рядок, кланяются, аригато, говорят, гозаймас (спасибочки вам). А я говорю "тотэмо ойшькатта дэс" (очень вкусно было).
Ну и то, супчик мисо, мясо отварное с капустой, килька жареная в муке, вах.
Ну как тут на хокку не оттянуться.
в пятницу торчал
всё нормально короче.
ну дай бог.
в воскресенье проснулся с мечтой
что чтобы выразить термины.
все тут собрались.
я знаю есть разные люди.
трейдинг аккаунта на чекинг.
все тут собрались.
и вот по ящику сказали
чтобы было пофиг что внутри.
бедная.
чем хаскел хорош
ради удовольствия.
ну дай бог.
Ну и то, супчик мисо, мясо отварное с капустой, килька жареная в муке, вах.
Ну как тут на хокку не оттянуться.
в пятницу торчал
всё нормально короче.
ну дай бог.
в воскресенье проснулся с мечтой
что чтобы выразить термины.
все тут собрались.
я знаю есть разные люди.
трейдинг аккаунта на чекинг.
все тут собрались.
и вот по ящику сказали
чтобы было пофиг что внутри.
бедная.
чем хаскел хорош
ради удовольствия.
ну дай бог.
век живи век учись
Смотрю на свой код ну типа трёхмесячной давности и вижу почему он рушится загадочным образом под напором изменившихся обстоятельств.
Я ж ни хера не проверяю, а чё, конфиг-то в самом деле записался? У проперти правильный идентификатор? Connection string правильную показывает базу, или торговую вместо военной (как в моём случае). И т.д. и т.п. Ужас.
Смотрю на свой код ну типа трёхмесячной давности и вижу почему он рушится загадочным образом под напором изменившихся обстоятельств.
Я ж ни хера не проверяю, а чё, конфиг-то в самом деле записался? У проперти правильный идентификатор? Connection string правильную показывает базу, или торговую вместо военной (как в моём случае). И т.д. и т.п. Ужас.
watch, watch this movie
May. 1st, 2012 11:20 pmutube
(embedment disallowed)
A warning to candidates about “traps” with pictures of children on an interviewers desk, and an edict from upper management to not hire moms
The “let me walk you to your car” trick after the interview
Once you land a job, prepare yourself for a game of survivor where only your boss knows the rules.
Your vacation plans can get you on the layoff list, because companies move too fast
Bosses may put you on the layoff list – for the way you look
Only Executives get to have gray hair – it’s not fair but that’s how it goes
Being pregnant isn’t always celebrated
She was paid big bucks to find gray areas around the laws that would allow companies do what they want to do
The dirtiest secret of all is company being rarely tell the reason they landed on the layoff list
HR people may kill her for telling this on TV, but they will “create” documentation
Her best tip for staying off the companies layoff list, be a brown-noser
Oh, and this one, absolutely gorgeous.
(embedment disallowed)
A warning to candidates about “traps” with pictures of children on an interviewers desk, and an edict from upper management to not hire moms
The “let me walk you to your car” trick after the interview
Once you land a job, prepare yourself for a game of survivor where only your boss knows the rules.
Your vacation plans can get you on the layoff list, because companies move too fast
Bosses may put you on the layoff list – for the way you look
Only Executives get to have gray hair – it’s not fair but that’s how it goes
Being pregnant isn’t always celebrated
She was paid big bucks to find gray areas around the laws that would allow companies do what they want to do
The dirtiest secret of all is company being rarely tell the reason they landed on the layoff list
HR people may kill her for telling this on TV, but they will “create” documentation
Her best tip for staying off the companies layoff list, be a brown-noser
Oh, and this one, absolutely gorgeous.