| Magic sandpaper |
[Aug. 30th, 2010|02:23 pm] |
After a fail at the first sex with Malvina Buratino depressed and frustrated came to Papa Carlo to ask for advice. -- Papa Carlo, I had just picked up a sensational girl and went flop at the very first night. All these small damned splinters turned a night into a big nightmare! What the hell? -- Don't get angry, my boy, relax. I have something for you. Take this sandpaper and carefully polish your shaft before next rendezvous. A week later Papa Carlo accidentally met Buratino on the street. -- How's it going, son? Is your girlfriend satisfied with the results? Buratino with a blissful smile on his face. -- That's allright, dad. Leave her, I have a sandpaper!
|
|
|
| Крабовые палочки. |
[Jun. 7th, 2010|10:19 pm] |
| [ | Current Mood |
| | cheerful | ] | Употребляя в пищу крабовые палочки, задумывались когда нибудь, сколько крабов осталось без своих палочек? |
|
|
| Филип Моррис Ижора посвящается. |
[Apr. 15th, 2010|05:33 pm] |
"Филип Моррис Ижора" — российская табачная фабрика, дочернее предприятие Philip Morris International, одной из ведущих табачных компаний в мире. "Филип Моррис Ижора"является предприятием полного производственного цикла – от первичной обработки табака до производства и упаковки сигарет. Производственная мощность фабрики – до 75 миллиардов сигарет в год.
| Капитаны | бизнеса | дают прикурить |  |  |  |
|
|
|
| Advanced Power Management (APM) of mobile HDDs. Hitachi Travelstar 5K500.B. Gentoo. |
[Apr. 7th, 2010|04:23 pm] |
I bought 500Gb Hitachi Travelstar 5K500.B (HTS545050B9A300) on 26.03.2010. It works fine, quiet and fast under Gentoo. Yesterday I checked SMART attributes and found that during 107 hours HDD parked the heads 3500 times. Head parking clicks are very quiet and impossible to distinguish them in noisy surround.
#hdparm –I /dev/sda | grep –i advanced returns APM level of 128. It is very aggressive power saving policy. As provided by Hitachi technical papers the range of APM [0-127] is used for power saving with possibility to stop rotation and range of APM [128-254] is used for power saving without stopping rotation. Lower value give us more effective power saving with shorter timeout for parking heads. Value 255 switches power management off. The APM value is read only. My solution is to add hdparm -B 254 /dev/sda to /etc/conf.d/local.start in order to set APM level at 254 every boot.
Additional information about hard drive clicking issues you can find at http://www.thinkwiki.org/wiki/Problem_with_hard_drive_clicking |
|
|
| Приводим кодированный javascript в читаемый вид. |
[Jan. 21st, 2010|02:44 am] |
| [ | Current Mood |
| | amused | ] |
Бывает нужно отредактировать упакованный программой Packer яваскрипт, который выглядит примерно так: | | eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('u m={18:{9z:\.........и так далее много букв..... ) | | | Для этого в js файле, где помещен данный скрипт заменяем "eval" на, к примеру, "var sukablya =" (не забываем поставить знак ";" после большого выражения, если его там не оказалось), чтобы полученная на выходе функции строка декодированного скрипта не пошла на исполнение, а попала в переменную sukablya, содержимое которой мы с удовольствием вывалим во всплывающее окно, добавив после нашего упакованного скрипта буквально следующее: | myWin = open("", "displayWindow","width=500,height=400,status=yes,toolbar=yes,menubar=yes"); myWin.document.open(); myWin.document.write(sukablya); myWin.document.close(); | | | Открываем содержимое всплывшего окна через просмотр исходного кода (Source) и видим расшифрованный, но не отформатированный скрипт. Копируем его, например, в форму на http://jsbeautifier.org/ и получаем рабочий скрипт, годный к переработке. | |
|
|
| Gestamp Severstal Kaluga |
[Dec. 3rd, 2009|12:54 pm] |
Gestamp Severstal Kaluga starts to do capital works on the press lines. Today there are no automation, no robots, no cables. My mission in Kaluga is done, I found the apartments for ABB people and go back home on Friday.
«Gestamp Severstal Kaluga» на Яндекс.Фотках
P.S. During my trip from Moscow to Kaluga I saw a small stupid car incident where one car unpredictably start to turn left and got a slight impact in to the left side. I think that there is a collusion between car factories to produce cars without bumpers. Even a small driving mistake leads to a jammed car body. |
|
|