Wednesday, November 25, 2015

SkyDSL review

If you want to get SkyDSL (http://www.skydsl.eu/), think again. The service is very dependent on the weather. There is a connection lag: so forget about watching youtube videos or other streaming. Also forget about online gaming. It works, but it lags. Regularly. You'd be lucky to have less than a second lag. Checking e-mail takes at least thirty seconds on the phone. Seriously. Checking weather -- same thing. If the layer of clouds is thick -- double the lag. The service seems to like to reset the connection during the day on the weekend sometimes. And advertised speeds -- hoax. I am paying for a supposedly 20MB/sec service. Speedtest is showing that I get 0.94Mbps down and 0.5Mbps up. So 1/160th of what I pay for. I got this service because I had no other option. Still want it? Go to http://www.skydsl.eu/

Labels: ,

Sunday, June 01, 2014

"Мы не знаем кто стар и кто молод"

Навеяно вот этой статьей, но немного не о том. С годами начинаешь понимать логику прошлых поступков родителей и других людей взрослее тебя, необязательно разделяя точку зрения.

Так вот, смотря на людей, легче всего подвергнуться социальному стереотипу и воспринимать, например, пожилого человека, как мудрого и опытного советчика, а красивую молодую девушку как наслаждающуюся своей молодостью.

Если пойти немного дальше, и посмотреть на человека за обложкой, то может быть интересно. Как в фильме "Люди в Черном", когда ювелиром (обложка) управлял небольшой человечек-инопланетянин, определяющий сущность поступков человека.

Поменьше обложек, побольше сущностей, мир может показать себя в другом свете.

Labels:

"Промолчишь -- за умного сойдешь", "слово -- серебро, молчание -- золото", почему?

Почему слово -- серебро, а молчание -- золото? Почему, если промолчишь, сойдешь за умного? Иногда недосказав, можно донести свою мысль еще лучше, но и это тоже размытые слова.

Давайте посмотрим на собеседника, кому мы "молчим". У каждого человека есть свое сознание, ценности, переживания. Все мы, как бы ни старались, примеряем других на себя. Для каждого из нас свое "я" лучше и дороже остальных "ты" и "вы".

Таким образом, мой собеседник промолчал, а я додумал. Додумал, примерив на себя. Приложил, в зависимости от контекста разговора, свои желания/амбиции/.../страхи . Так как мое суждение идет в соответствии с моими взглядами, оно мне нравится (либо не вызывает раздражения, то есть интервал от нуля до плюс бесконечности).

Все, я додумал сам себе что мне надо и мой собеседник не приложил к этому ровно никаких усилий. Совсем.

Теоретически возможна и обратная теория. Если я негативно настроен по отношению к собеседнику, то его/ее молчание как максимум оставит меня безразличным (интервал от минус бесконечности до нуля).

Если надо развивать положительную динамику в отношениях, и к этому есть предпосылки, то лучше иногда промолчать.

Labels:

Friday, January 17, 2014

My invention

So there is a series of books that is named something like "Learn X in a month of lunches". That name construct is probably trademarked. I hereby announce that I came up with the following naming construct: "Learn something in a month of number-twos". So good-bye Sudoku, good-bye other crossword puzzles, spend those 5-15 minutes with double benefit: feel better and learn something good.

I'd be willing to negotiate a sale of this naming construct. Leave some comments if interested.

Labels:

Saturday, November 26, 2011

Фотографировать в ручном режиме -- ничего сложного!

Оказывается, фотографировать в ручном режиме это совсем не сложно! В процессе моего объяснения, я надеюсь, станет понятно зачем надо фотографировать в ручном режиме и чем иногда может не устраивать автоматический режим.

Фотоаппарат работает следующим образом (очень примитивное объяснение): когда фотограф нажимает на кнопку, открывается шторка, свет падает на матрицу и матрица запечатлевает мегашедевр. Фотограф манипулирует следующими настройками:

1. Выдержка: промежуток времени в который матрица открыта для попадающего на нее света. Быстрая выдержка (очень короткий промежуток времени) позволяет "остановить" движение падающей воды, показать быстро едущую машину в деталях, и так далее. Медленная выдержка (длинный промежуток времени) нужна для того чтобы "размазать" воду в водопаде, или едущую машину, при съемке в темноте (мало света, поэтому надо ждать дольше чтоб матрица "почувствовала" картинку), при съемке фейерверков. Измеряется в долях секунды или секундах.

2. Диафрагма. Диафрагма это отверствие в объективе, через которое свет попадает на матрицу. Чем больше она открыта, тем больше света попадает на матрицу, и значит, меньше надо времени чтоб получить картинку. Сочетание диафрагмы и выдержки называется экспозицией. Так вот, казалось бы, держи все время диафрагму открытой, и можно не ждать так долго чтоб получить фотографию ночью. Оказывается, не так просто. Чем больше открыта диафрагма, тем меньше глубина резкости, и наоборот. Вот тут видео, оно объясняет что к чему. Еще один момент: при ночных съемках с относительно закрытой диафрагмой, фотографии источников света дают эффект лучей.

3. Светочувствительность. Измеряется в единицах ISO, начинается от 100, потом идет 200, потом 400, потом 800 и так далее. Определяет насколько матрица чувствительна к свету. Днем на светочувствительности в 100 единиц выйдут прекрасные фотографии, ночью (или в помещении) надо поднимать светочувствительность. Проблема в том, что если поднять светочувствительность слишком высоко, станут видны помехи на однотонных поверхностях. Ну а ночью, при съемке фотографий на 100 единицах светочувствительности придется ждать очень долго чтоб получить изображение на матрице.

Вот в принципе три самых важных фактора для получения изображения на матрице. Бывают две крайности неправильного выбора параметров. Если открыть диафрагму по максимуму, поставить длинную выдержку и поднять светочувствительность, то фотография будет большим белым прямоугольником. Если закрыть диафрагму насколько это возможно, поставить самую короткую выдержку и убрать светочувствительность, то получится черный прямоугольник вместо фотографии.

Как правильно поставить параметры, чтобы фотоаппарат запечатлел красивую картинку? В этом поможет специальный прибор, экспонометр. Он замеряет экспозицию по выбранным параметрам, и подсказывает будет ли фотография слишком темной или слишком светлой. Если цель фотографии не включает в себя получение каких-либо фотографических эффектов (размытия фона, "заморозки" движения), то в первую очередь я бы посоветовал определиться с величиной открытия диафрагмы, затем я бы отрегулировал промежуток выдержки, и уж в последнюю очередь я бы стал увеличивать светочувствительность.

Современные камеры оборудованы встроенным экспонометром, если переключить камеру на ручной режим, то при полунажатии на кнопку спуска в видоискателе появится шкала с делениями, и она покажет экспозицию. Если деление экспонометра на нуле, то фотография будет проэкспонирована верно (по мнению экспонометра фотоаппарата). А если экспонометр не на нуле, то уже фотографу решать если надо что-то изменить или он/она добивается какого-то эффекта и все так и должно быть.

Если видите фотографию в интернете, посмотрите на ее данные, проверьте экзиф (EXIF). Для этого есть много программ. Посмотрите, при каких параметрах выдержки, диафрагмы и светочувствительности была сделана фотография. Примечание по диафрагме: значение практически везде записывается в виде дроби (1/2.8, 1/16) и т.д., но для краткости записи указывается только знаменатель дроби. Поэтому диафрагма 5 пропускает гораздо больше света чем диафрагма 16. Чем больше диафрагменное число, тем меньше величина отверствия, здесь используется обратная пропорциональность.

При практике в несколько сотен снимков, зависимость между этими тремя важными параметрами станет более или менее понятной. Но это все всего лишь вершина айсберга. Самое сложное это правильно выбрать кадр, чтоб не сфотографировать лижь бы что, а получить снимок, которым можно любоваться.

Labels:

Friday, July 30, 2010

Прочитанные книги июль 2010

Кобо Абэ -- Чужое лицо (07/2010). 4/5

Labels:

Friday, April 09, 2010

Прочитанные книги март-апрель 2010

Курт Воннегут -- Бойня номер пять, или Крестовый поход детей (04/2010). 3/5
Рэй Брэдбери -- 451 градус по Фаренгейту (04/2010). 5/5

Labels:

Thursday, March 25, 2010

пирожки по-мамински

1 стакан теплого молока и 1/2 стакана теплой воды ЛИБО 1 стакан теплой воды.
десертная ложка дрожжей (грамм 20)
1 чайная ложка соли
2 чайные ложки сахара
3 столовые ложки растительного масла
можно добавить одну ложку сметаны
можно добавить одну ложку масла (комнатной температуры)

все это дело замесить, дрожжи растворить отдельно в молоке или воде, потом добавить к остальным компонентам.

Потом добавить просеянную муку, по стакану каждый раз. Надо чтоб тесто получилось не крутое, но чтоб отлипало от стенок тоже. Если получится сильно крутое, разбавить теплой водой или молоком.

Дать тесту настояться, час-полтора. Сбить тесто, оставить еще раз настояться, в этот раз оно взойдет быстрее (минут 20). Сбить еще раз, дать снова настояться, оно опять взойдет быстро.

Пока тесто настаивается, надо приготовить начинку для пирожков.

Взять доску, насыпать на нее муки, отрезать кусочки от теста размером с грецкий орех, сделать из него лепешку на доске, положить начинку, залепить пирожок.

Приготовить противень, застелить его пекарской бумагой (калькой), промаслить чуть-чуть, выложить пирожки. Можно дать чуть-чуть настояться (15 минут), потом смазать яйцом и на 200 градусов в печку. Печь их минут 15, до появления румяной корочки.

Вытащить из печки, смазать маслом, дать немного остыть. Потом можно есть.

Labels:

Прочитанные книги март 2010

А. и Б. Стругацкие -- Жук в муравейнике (03/2010). 5/5
К. Саймак -- Заповедник гоблинов (03/2010). 4/5

Labels:

Thursday, February 04, 2010

Прочитанные книги 02/02/2010

А. и Б. Стругацкие -- Пикник на обочине (02/2010). 5/5

Labels:

Wednesday, January 20, 2010

Прочитанные книги 18/1/2010

Влад. В. Головач, Дизайн пользовательского интерфейса (1/2010) v1.2 3/5

Labels:

Sunday, December 27, 2009

Прочитанные книги 27/12/2009

Масару Ибука, После 3-х уже поздно (12/2009). 5/5
Amazon Sample -- Don Syme, Adam Granicz, Antonio Cisterino, Expert F#. (12/2009) Quite readable.

Labels:

Saturday, December 26, 2009

Прочитанные книги 26/12/2009

Bob Reselman, Coding Slave (12/2009), 3/5
А. Аверченко, Рассказы (12/2009), 5/5

Labels:

Monday, December 21, 2009

Прочитанные книги

Борис Акунин, Пелагия и белый бульдог (10/2009, аудио). 3/5
Борис Акунин, Пелагия и черный монах (10/2009, аудио). 5/5
Борис Акунин, Пелагия и красный петух (10/2009, аудио). 4/5
Robyn O'Brien, The Unhealthy Truth (11/2009). 3/5
Mark Forster, Do It Tomorrow and Other Secrets of Time Management (12/2009). 2/5
Дейл Карнеги, Как перестать беспокоиться и начать жить (11/2009, аудио). 4/5
Эфраим Севела, Мужской разговор в русской бане (12/2009). 2/5

Labels:

Sunday, June 14, 2009

Хорошие фразы

"Перед тем, как приступать к работе, узнайте, что хуже всего сейчас и начните с решения именно этой проблемы. "

"Если вы не превращаете свои знания в конкретные проектные шаги — это бесполезные знания."

Влад В. Головач, "Дизайн пользовательского интерфейса II. Искусство мыть слона". (http://uibook2.usethics.ru/)

Labels:

Saturday, May 03, 2008

It definitely is a game of giving and receiving!

My previous post on the topic was about my negotiations on getting a new car. The salesman promised me that he'll keep me posted on when the car gets to Portland and then to Anchorage (I needed that information so that I could have the time to look for a good loan). He also said that the car would arrive in 60 to 120 days.

I was coming back to work from lunch one afternoon when I got a call: "Your car is here." Apparently, they did not notify him ... blah-blah. I thought that he wanted that time to sign me up for the loan from the dealership, but now I think that he just does not care much, he probably did get notified and just forgot to tell me. It took me less than 24 hours to get three offers for a loan, I chose one of them (the lowest interest rate, of course), and went in to get the car.

Of course the car "looks very nice," and it was "so hard to get it," and other good things to my ears. Yeah. The car arrived in about 8 weeks, and that is very quick considering the 60-day-minimum estimate. Also, they had to have time to ship it to Portland and install additional little things, that takes time too, so the dealer made it all up. Moreover, this time of year is considered the "dead" season for car sales (I heard that on NPR, so I did not make this up :)).

First, I came in to the dealership and sat down with the guy that I dealt with before. He showed me the financial breakdown for different terms and down payments, that were offered through the financial company of the car manufacturer. The offered rates easily beat the offer that I came with (and I thought I had a good one!), so I went with that. Then I called the insurance to put the new car on (without seeing it yet -- it was being washed), and then I went into the office of the finance officer.

The officer printed out my payment plan (I selected what I wanted with the dealer and he brought the documents over), and then we went on to the additional options. Now I understand that this is where the financial officers make their money (most likely besides the salary). We chatted nicely, he asked me about my job, I asked him about his family, we exchanged little anecdotes, but it was a game, -- only the second part of it. He printed out a sheet which had the price on the warranty, car alarm, some spraying of the bottom of the vehicle, anti-rust things and other fun stuff. I honestly don't know how much one needs any of that stuff, but I have no experience with that, and the finance officer was definitely not the right person to ask. He told me the prices for the "goodies" separately and then offered a deal on all of them if I get all of them. I knew I needed the warranty just for the peace of my mind. I also went for the alarm and the pre-paid oil changes. I looked at the price of the warranty and smiled to myself. This IS where the finance officers make their money.

See, when I was reading reviews on the car, I noted that one person looked at the manufacturer's web site for warranty prices and when he went into the dealership, he surprised them because the price on the web site was substantially lower than the price that he was offered. So I went to the manufacturer's web site to check on the prices on the warranty and just printed that page, just in case I need it. Yup, I needed it. The price on the sheet that the finance officer printed for me was almost twice as high as the one on the web site. Before flashing the page, I asked the officer whether he offers me the same warranty as the manufacturer, and he confirmed it. Then I pulled the page and asked him about "why is the price on this sheet is so much lower?" He said he needed to talk to his "manager." See part 1 here -- he may have been drinking coffee saying good-bye to the extra money. He came back and said that he'll respect the price listed on the site, he just needed to "keep the page in case someone asks why the price is so low." I had two copies :) Oh, and because of that, the price on pre-paid maintenance went down by a third. We kept smiling at each other and parted as "buddies," but at least I felt that I won something. I hope he thought so too, because I have no idea how much those things really cost. I am pretty sure though that he made his cut. But I still feel good about the overall experience. It was very interesting and educative.

Then I went on to the car, the dealer showed me the features, explained how things worked, and before I drove off the lot, the dealer told me how "jealous" he was. Yeah, uh-huh :)

Things to remember for the future:

1. Do homework. Know the MSRP, invoice price, what others are paying, costs of warranty and pre-paid mantenance. The first three can be found on edmunds.com, while the warranty and maintenance prices -- on manufacturer's web site.
2. Come with a plenty of free time, eat before, it can take hours (it took me almost two hours each time!)
3. Know your highs and lows
4. Make a very low initial offer (no mercy for them, they will come back with a counteroffer).
5. Feel free to ask questions
6. Enjoy! It was sort of fun! I'd have to do it a thousand times more to get a feel though :)

Monday, February 25, 2008

It's a game of giving and receiving...

Before buying a new car, I did my research and figured out what I wanted. That alone was an adventure in itself. Long story short -- there is no "ideal" car; some have features that the other ones don't and miss features that other cars have. It's about giving up something and gaining something else. Then I called Costco, and I was kinda sure that they'd have a representative up here for the car I wanted. None. That alone almost brought everything to a screeching halt, because I am not the one who likes negotiations. But I had to do it. So I went. I went prepared though -- I had some cards up my sleeve that were supposed to help, I just needed to deal them at the right time.

I walked in and talked to a manager whose name I got as a contact from the web site (I submitted a request for a quote to the dealer through the manufacturer's website). He quickly reassigned me to an idle person staying around. That's the guy I was going to make the deal happen with. He was very nice, and not one of those who'd be pushing you to the limits. So we sat down, he looked at my card number 1 -- I printed out a page from the website that had the MSRP (Manufacturer Suggested Retail Price). He immediately noted something -- it turns out that the remote start is not quite feasible for the place I live in -- it has a short range and does not work from within the building. He suggested replacing it with another one of his for a price slightly higher than the one on the web site. Ok, so I asked him what the price was. He showed me the MSRP + remote start.
Then I mentioned that I also had quotes from another dealerships, and the price immediately went 2% down. "Because it's a standard discount of this dealership." Unfortunately, they are pretty much the only one big dealership of this brand around here, otherwise I'd have more leverage. Anyway, he did not want to go down anymore than that. Then I dealt my card #2 -- I built and priced the same car on Costco's web site, and he looked at it and it looked like there was a "light of hope" for more discounts. So he asked "what is the price that are you ready to pay for this vehicle?" At this point, I made a mistake. I should have set a price that was lower than I said. I kept in mind my card #3, and it was a quote from edmunds.com (very nice web site), where they show the MSRP, invoice price and what others are paying for the same type of car. I made them a reasonable offer, but instead I should have made it less, then I'd win more. Actually, comes to think of it, we're only talking about a couple of hundred dollars, so it's not a big deal. However, the negotiations theory says that I should have made a lower offer.

The seller took my offer and went "to talk to a manager." I honestly don't know whether he did talk to him/her or just grabbed a cup of coffee and talked to his buddies while I was chilling in the main area (it was cold, by the way). Then he came back with an offer below MSRP but much above my offer (see -- if I'd made a ridiculously low offer, he'd made his offer lower! He wants my money, I want his car!). Seemed like it was his final decision until I said that the purchase is not urgent for me and I could possibly wait some more. That, together with a quote from the Costco web site seemed to disappoint him and he did not know what to do. That Costco quote was only a couple of hundred dollars above the invoice price, and he would have no profit out of that one. However, it would also mean a lot of headache for me, I would not be able to get that price here. So I told him that I would be interested in purchasing the vehicle locally, and he picked up on that, reassured that the deal will happen today.

We went back and forth until I made an offer and said that it was final. The guy asked if he could add a 50 to it to show that I was ready to give up some more just to get the deal. It's a very fine game, and one has to enjoy playing it, otherwise it's a nerve-wrecking thing. And one has to know his acceptable highs and lows.

Part 2

Friday, September 21, 2007

Lisp tutorial book

Thursday, August 09, 2007

My Zune experience

Zune sucks. After an incident which left me without my favorite iRiver H340, I needed to get something. Quickly. Because the podcasts don't wait until I get something to listen them on, they just get published! I was determined to get something from Costco just because I did not know what I wanted (and I had no time to do the research), so I wanted to be able to return it. iPod was not an option because of iTunes, and plus -- it's useful, but... I don't know, it just does not feel right. Here are the things I loved about H340:

-- manage my files on my own (no need to have software).
-- large storage capacity.
-- being able to plug it in to any computer and access the information.

iPod does not do anything like that from out of the box (well, besides the large storage capacity -- but I still can't use it without tweaking things around!), so I needed something else. Out of all choices on Costco's site, I chose to go with a Zune. It's not a bad player, I did not even think of needing to be able to play videos before, but it sure is nice to even listen to dnrTV while driving. The interface is ok, I don't care about wireless, the battery seems ok too, but those features that I outlined above are very critical. So the Zune goes back to the store. Oh, by the way, had I read all comments on Engadget, I would not have even bothered getting a Zune, I would go with something like Sansa (cheaper and does what I want). On September 1st, Archos 605 is coming out. Another alternative that I consider is Cowon Q5.

One more thing I loved about H340: it had a regular USB cable, so finding a replacement was very easy. Zune has a proprietary connector, so I can't get a cheap replacement, I have to go through Microsoft to get this very important spare part (or AC adapter. Or a spare cable. Or a case.)

So anyway -- Zune is not for me. I don't want to be a part of that social hype that they target the device for. I want a robust piece of hardware that would easily play tunes and easily store files. Zune wouldn't do it. Oh well... New gadget!!!

Labels:

Wednesday, June 27, 2007

Useful .Net stuff often overlooked

Ok, I need to write it down somewhere, the article has a lot of explanations, and I just want to record classes because I know what they are, but I will forget later.

The article is here: http://haacked.com/archive/2007/06/13/the-most-useful-.net-utility-classes-developers-tend-to-reinvent.aspx

Stuff to remember:

Combine path:
public string GetFullPath(string filename)
{
string folder = ConfigurationManager.AppSettings["somefolder"];
return System.IO.Path.Combine(folder, filename);
}
Get folder location:
someFolderPath + Path.DirectorySeparatorChar;
Get just the file name:
string fileName = Path.GetFileName(fullPath);
Get absolute path from virtual:
string path = VirtualPathUtility.ToAbsolutePath("~/Controls/Test.ascx");
Get new line separator (really neat one!) Environment.NewLine;

From comments:

Check if var is a number: Double.TryParse or Int.TryParse

Timing execution (not sure, but that's what it sounds like from the comment):
System.Diagnostics.Stopwatch

Query string: HttpUtility.ParseQueryString
Raw URL: HttpContext.Current.Request.RawUrl; (MSDN)

Labels: