Sunday, September 11, 2011

اصلاح بلاگ‌چرخان

متاسفانه بلاگ چرخان گوگلی یکی دو هفته‌ای است درست کار نمی‌کند. دلیلش احتمالا تغییراتی است که یاهو پایپس کرده است. هنوز نتوانسته‌ام مشکل از طرف یاهوپایپس حل کنم ولی راه حل ساده‌ای وجود دارد که می‌تواند مسئله را بر طرف کند.

لطفا در کد جاوااسکریپ بلاگ‌چرخان‌هایتان در محلی که در شکل نشان داده شده قطعه کدی که با رنگ ارغوانی مشخص شده را بنویسید:



var items=broll.value.items;
items.sort(function(a,b){if (a.crawlTime==b.crawlTime) return 0;return (a.crawlTime>b.crawlTime)?-1:1;})

var container=document.getElementById("blogroll_21328");


به عبارت دیگر، در ابتدای کد جاوااسکریپ بلاگ‌چرخان پس از خط:



var items=broll.value.items;



کد زیر را اضافه کنید:


items.sort(function(a,b){if (a.crawlTime==b.crawlTime) return 0;return (a.crawlTime>b.crawlTime)?-1:1;});


مشکل باید قاعدتا حل بشود. اگر نشد لطفا به من خبر بدهید.


از تمام دوستانی که با ایمیل به من خبر دادند تشکر بسیار می‌کنم و از این که پاسخ دادنم دیر شد متاسفم.

Wednesday, December 22, 2010

...

زیاد جدیم نگیر
من چیزی ام
مثل سایه‌های مشکوک گرگ و میش صبح
یا دم غروب
که توی چشم شکل عوض می‌کنند
گم می‌شوند و پیدا.
هر وقت شک کردی، خیال کن لبخند می‌زنم.

Friday, December 17, 2010

One Hand Clapping


وقتی باران نمی‌بارد ناودان چه صدایی می‌دهد؟

Thursday, August 26, 2010

تابستان

شلوارهای گشاد و زیرپوش‌های تنگ تنمان هست، عمود بر دیوار دراز کشیده‌ایم، من اینجا و شان‌ماتیو قدری آن‌طرف‌تر، پاهایمان را گذاشته‌ایم روی دیوار، کتاب می‌خوانیم. کف پاهایمان بدجور سیاه است، مادر رد می‌شود و چیزی نمی‌گوید، دیوارها مدتهاست که کثیف شده‌اند، و این کثیفی‌ها تازه غیر از جدول‌های ارزش مکانی است که با مداد و کلید و سکه نمی‌دانم برای چه روی دیوار کشیده‌ام.

Tuesday, August 24, 2010

The Windows Era

Just after midnight on August 24, 1995, a student named Jonathan Prentice walked into a bookshop in Auckland, New Zealand, pulled out 200 New Zealand dollars, and became the first owner of Windows 95. Turning to a reporter, Prentice declared: “I will be able to play solitaire and send faxes at the same time.” And with that rallying cry, the Windows 95 craze exploded. Lines formed around the world as consumers jostled to buy copies; journalists in Poland prepared to take a Microsoft-sponsored submarine ride under the Baltic Sea; The Times of London handed out free papers wrapped in a Windows ad; and the Empire State Building lit up in Windows’ signature colors. Within a month, Microsoft’s new operating system had sales of more than $250 million and Bill Gates went from being a nerd to … well, he was still a nerd, but an invincible rock-star nerd. The future was very clear: PCs — running Microsoft software — would be the single most important device in our lives.

From:Time Your Attack: Oracle’s Lost Revolution

Wednesday, June 30, 2010

The Challenge and Myths of Reuse

The UP is developed with object technology (OT)projects in mind, and the adoption of OT has often been promoted in order to achieve software reuse. Significant reuse is a laudable goal, but difficult. It is a function of much more than adopting OT and writing classes; OT is but one enabling technology in a suite of technical, organizational, and social changes that have to occur to see meaningful reuse. Certainly, libraries of classes for technical services, such as the Java technology libraries, provide a great example of reuse, but I am referring to the difficulty of reuse of code created within an organization, not core libraries.

In a survey of organizations that had adopted OT, they were asked the actual value of its adoption. Interesting, reuse was at the bottom of the list [Cutter97] . Among experienced OT practitioners and organizations, this is not a surprise: They know that the popular press's description of OT for reuse is to some degree a myth; most organization see little of it. This is not to imply it isn't a valuable goal, or  that  there  is no  reuse—it is worthy, and there has been some. But not the high levels of reuse some articles  and books suggest. And many an experienced OT developer can tell you a war  story about the misguided large-scale attempt by an organization to create the grand "reusable libraries" or services for the company, spending a year and million dollars, and ending with a failed project, or one that misses the mark. Reuse is hard, and arguably more a function of social and organizational issues than technical ones.

Does this mean OT is without value? Not at all, but its value has been incorrectly associated primarily with reuse, rather than how it most prominently helps in practice: flexibility, ease of change, and complexity management. The same survey [Cutter97] lists the top  values actually experienced by adopting OT: easier application maintenance and cost savings. Object systems—if designed well—are relatively easier or faster to modify and extend, than if using non-OT technologies. This is important; many organizations find that the majority of the overall long-term cost of an application is in revision and maintenance, not original development, and thus, strategies to reduce revision costs are important. Although it is rational to want to reduce new system development costs, there is a certain irony that few stakeholders ask the follow-up question, "How can we reduce the cost to revise and maintain it?" when that is often the largest expense. It is here that OT can make a contribution, in addition to its power and elegance in tackling complex systems.

 From: Craig Larman, Applying UML and Patterns, an introduction to object-oriented analysis and design, 2nd ed. Addison Wesley, 2002, p. 601

Sunday, June 20, 2010

مهدی حکیمی

آمده بود سر کلاس ما، پر از آدم‌هایی که نمی‌خواستند سر کلاس باشند، صورتش جوری بود که انگار از اولین بارهایی بود که آمده بود سر کلاس، نشان می‌داد نمی‌تواند کلاس را درست دست بگیرد، قدری از این موضوع شرمنده نشان می‌داد ولی دستپاچه نبود، هول نبود که هر طوری شده به کلاس مسلط شود. آرام بود. بعد وسط همهمه شروع کرد، پرسید خب جلسه اول معمولا چه می‌گویند، هر کس چیزی گفت و او هم آن‌ها را کنار هم گذاشت، یک جور فهرست برای خودش درست کرد، بعد شروع کرد به گفتن. کلاس شروع شد.

آن خنده باخته و آرام و راضی‌اش را فراموش نمی‌کنم.
یادش که می‌افتم روشن می‌شوم.