-
سه نکته ابتدایی جاوااسکریپت
پنجشنبه 27 آذر 1393 20:47
با دستور alert می توانیم یک پیغام را چاپ کنیم. با دستور document.write می توانیم یک متن یا هرچیزی را در صفحه چاپ کنیم. در برخی موارد در زبان جاوا اسکریپت علامت + به معنی پیوند زدن می باشد. حالا با این وضع پس تکلیف جمع زدن دو عدد چه می شود؟ برای جمع زدن دو مقدار در جاوااسکریپت(به فرض که در دو متغیرx , y قرار دارند) قبل...
-
آغاز جاوااسکریپت
پنجشنبه 27 آذر 1393 19:31
کدهای زبان برنامه نویسی جاوااسکریپت درون تگ به صورت زیر معرفی می شوند. <script type="text/javascript"> ....... </script> این را در نظر داشته باشید که اگر مرورگر کاربر از جاوااسکریپت پشتیبانی نمی کند باید به کاربر این مشکل را اطلاع دهیم که این کار با تگ های زیر میسر می شود <noscript> .........
-
متغیرها در جاوا اسکریپت
پنجشنبه 27 آذر 1393 19:20
متغیر ها در جاوا اسکریپت با var معرفی می شوند.این متغیرها همانطور که می دانید نامشان با اعداد نمی تواند آغاز شود اما در ادامه می تواند شامل اعداد نیز باشد. مثال: var x = 'hello'; var x123 = 'hello';
-
نصب فونت در لینوکس
پنجشنبه 27 آذر 1393 00:54
برای نصب فونت های ویندوزی در لینوکس{توزیع اوبونتو} راه های مختلفی وجود دارد که در این یک راه ساده را به شما معرفی می کنم. ۱-ابتدا باید بسته فونت های ویندوزی را با دستور زیر در ترمینال نصب کنید. sudo apt-get install ttf-mscodrefonts-installer ۲- با دستور شماره ۱ تعداد زیادی فونت بر روی سیستم نصب شدند اما اگر بخواهید...
-
آموزش لبنوکس
پنجشنبه 27 آذر 1393 00:44
کلیه آموزش ها و نکته هایی که در رابطه با لینوکس به اشتراک می گذارم بر پایه اوبونتو هستند و کارکرد صحیح آنها بر روی توزیع های دیگرلینوکس تضمین شدنی نیست!
-
انتقال شرطی صفحات وب
یکشنبه 16 آذر 1393 11:56
در سایت های دیگر حالت ها و کد های مختلفی برای رفتن به آدرس جدید با ورود به یک آدرس ذکر شده است.اما همه این دستورات برای دو آدرس است که هاست متفاوتی دارند.گاها پیش می آید شما به وبلاگ خود دامنه متصل نموده اید و می خواهید که اگر آدرس وبلاگی شما باز شد صفحه به دامنه ی شما منتقل شود و در غیر این صورت واکنشی نشان ندهد. در...
-
انواع داده های عددی
یکشنبه 2 آذر 1393 15:42
انواع عددی بر دو نوع اعداد صحیح و اعشاری هستند.در mysql برای اعداد اعشاری می توانیم تعداد ارقام بعد از اعشار را مشخص کنیم.در این سیستم مدیریتی می توانیم مشخص کنیم که اعداد صحیح علامت دار یا بدون علامت باشند.برای هرکدام از انواع عددی می توانیم مقدار ZEROFILL را به عنوان یک صفت در نظر بگیریم,و زمانی که فیلدی با این صفت...
-
انواع داده های mysql
یکشنبه 2 آذر 1393 15:06
در فیلدها و یا ستون های جدول ها داده ها را ذخیره می کنند.داده ها دارای نوعغ هستند و درهنگام نام گذاری ستون ها باید نوع آنها را مشخص کنیم.زمانی که جدول را در بانک اطلاعاتی ایجاد می کنیم نوع و اندازه ی هریک از فیلدهای جدول را نیز باید مشخص کنیم. در mysql سه نوع داده وجود دارد: -داده های عددی یا numberic data type -داده...
-
شناسه بانک اطلاعاتی
شنبه 1 آذر 1393 15:06
شناسه ها عناصصری هستند که در مدیریت بانک های اطلاعاتی قابل استفاده هستند.. در mysql سه عنصر زیر معروف هستند: بانک های اطلاعاتی - جدول ها - ستون های جدول ها (فیلدها) هریک از این شناسه ها (عناصر) باید نام گذاری شوند. جدول زییر راهنامی نام گذاری آنها است: نوع حداکثر طول حساس به حروف؟ کاراکترهای مجاز بانک اطلاعاتی 64...
-
دودمان جاوا
چهارشنبه 28 آبان 1393 01:12
جاوا وابسته به سی پلاس پلاس است که خود آن هم به زبان سی وابسته است.بسیاری از کاراکترهای جاوا از این دوزبان گرفته شده است. جاوا ترکیبی است که از سی بیرون زده است.بسیاری از شی گرایی های جاوا نیز تحت تاثیر c++ است.علاوه بر اینها خالق جاوا عمیقا غرق در روند پالایش و انطباق آن با رخدادهای احتمالیی زبان های برنامه نویسی...
-
تاریخ و تکامل جاوا
سهشنبه 27 آبان 1393 00:23
قصد داریم در این سایت پست های زنجیره ای برای آموزش جاوا ارایه دهیم که یک مرجع کامل برای این زبان برنامه نویسی به زبان پارسی به یادگار بماند. برای درک کامل جاوا باید از گذشته و نحوه کامل آن اطلاع داشته باشیم.نیرویی که باعث تکامل آن شده است,میراث چه چیزی است؟ هم مانند زبان های برنامه نویسی موفق دیگر که پیش از آن آمده...
-
public static void main(String args[]) in java
یکشنبه 25 آبان 1393 22:43
;public static void main(String args[]) این خط برنامه در جاوا به چه معنی و برای چه کاربردی است؟ این خط برنامه شروع تابع main است.main نشان می دهد که برنامه در حال شروع شدن است.همه ی برنامه های جاوا با فراخوانی تابع main آغاز می شوند.معنای کامل این قسمت را نمی توانیم در اینجا بازگو کنیم.فقط این تابع را به خاطر داشته...
-
یک برنامه ساده و معرفی چند تابع
جمعه 23 آبان 1393 20:48
این یک برنامه جاوا است که از کاربر یک نام را می خواهد(فیلد ورودی) و به او \یغام سلام را نمایش می دهد. این برنامه را ابتدا خودتان اجرا کنید. import javax . swing . JOptionPane ; که در خط اول برنامه ذکر شده است یک کتابخانه را فراخوانی می کند,این کتابخانه برای توابع آورده شده در برنامه مورد نیاز است. خط دوم که یک کلاس...
-
زبان برنامه نویسی جاوا
جمعه 23 آبان 1393 20:26
جاوا به زبان C++ نتیجه مستقیم زبان C وابسته است. بسیاری از خصلتهای جاوا بطور مستقیم از این دو زبان گرفته شده است. دستور زبان جاوا منتج از دستور زبان C است. بسیاری ازجنبه های OOP زبان جاوا از C++ بعاریت گرفته شده است. درحقیقت بسیاری ازخصلتهای زبان جاوا از این دوزبان مشتق شده یا باآنها مرتبط است. علاوه براین تولید جاوا...
-
توصیه دوستانه
جمعه 23 آبان 1393 15:16
یک توصیه دوستانه به همه عزیزانی که می خوان برنامه نویسی رو شروع و یا به زبان جدید ادامه بدن دارم. اینکه همیشه در دنیای نرم افزارها و ... به سراغ متن بازها (open source) برید. نرمافزار آزاد و متنباز (به انگلیسی: Free and open source software یا FLOSS، F/OSS، FOSS)، نرمافزاری است که بهمنظور تامین حق کاربران برای...
-
قابلیت اعتماد به MySQL
دوشنبه 19 آبان 1393 22:55
اغلب کارایی بالای بانک های اطلاعاتی ، موجب کاهش امنیت و اعتماد می شود.اما در مورد MySQL اینگونه نیست.این سیستم طوری طراحی شده ، که حداکثر قابلیت اعتماد را فراهم سازد،برای کاربردهای حیاتی و پیچیده مناسب است.یافتن خطاها و اصلاح آن ها به آسانی صورت می گیرد. *من به شخصه به عنوان نویسنده این مطلب،تعصب و علاقه خاصی به...
-
تعریف کلی Mysql
یکشنبه 18 آبان 1393 21:10
اگر انواع بانک های اطلاعاتی را بشناسید(در پست های قبلی),جالب است بدانید که mysql یک سیستم مدیریت بانک اطلاعاتی رابطه ای با کارایی بالا , چند کاربره و چند موضوعی(مالتی ترد) است.از سرعت و امنیت بسیار بالایی برخوردار است و بیش از 5 میلیون وبسایت از برنامه های کاربردی مبتنی بر mysql استفاده می کنند. mysql از دو بخش تشکیل...
-
طراحی جدول های بانک اطلاعاتی
شنبه 17 آبان 1393 11:07
یکی از ناکت مهم در طراحی بانک اطلاعاتی رابطه ای,طراحی جدول های آن است,به طوری که کارایی بانک اطلاعاتی تا حد زیادی به این موضوع بستگی دارد.برای طراحی جدول باید نکات زیر را رعایت کرد: -داده های مرتبط به هم در یک جدول قرار می گیرند. -داده های جدول ها را نرمال سازی کنید. تشخیص داده های مرتبط بر عهده طراح است اما کاربران...
-
فرآیند طراحی بانک اطلاعاتی
شنبه 17 آبان 1393 11:02
فرآیند طراحی بانک اطلاعاتی را می توانیم در هشت مرحله انجام دهیم: تعیین کنید که کاربران چه انتظاری از بانک اطلاعاتی دارند و چه داده هایی باید در خروجی ظاهر شود. توزیع داده ها را برنامه ریزی کنید. فیلدهای هر رکورد را در هر جدول مشخص کنبد. برای هر جدول یک فیلد منحصر به فرد را مشخص کنید تا تضمین شود هیچ دو رکوردی یکسان...
-
طراحی بانک اطلاعاتی
شنبه 17 آبان 1393 10:58
اطلاعات ما در سیستم بانک اطلاعاتی رابطه ای بین چند جدول توزیع می شود تا ذخیره سازی و بازیابی اطلاعات بهینه باشد.جدول ها با فیلدهای مشترکی ارتباط داده می شوند,به طوری که اطلاعات می توانند به شیوه های موثر استخراج و نمایش داده شوند.اگر بانک اطلاعاتی خوب طراحی شده باشد می تواند ابزار خوبی برای مدیریت بر اطلاعات شخصی یا...
-
بانک های اطلاعاتی بر چند نوع اند؟
چهارشنبه 14 آبان 1393 13:23
برای سازمان دهی داده ها و رابطه بین آن ها راه های گوناگونی وجود دارد اما سه الگوی اصلی برای آنها وجود دارد: بانک اطلاعاتی هرمی:در این الگو اطلاعات به صورت درختی در اختیار کاربر قرار می گیرد.داده ها در بخش هایی به نام قطعه ذخیره می شود.قطعه ای که در بالاترین نقطه نمودار است ریشه نامیده می شود.در این الگو هر پدر می...
-
مزایای استفاده از بانک اطلاعاتی
چهارشنبه 14 آبان 1393 12:16
برای دانستن مزایای بانک اطلاعاتی باید بدانید که موسسات اطلاعات خود را به شکل ذخیره می کنند: سیستم های فایل:در این سیستم هریک از فایل های مربوط به داده های موجود مستقل از دیگری مورد استفاده قرار می گیرد. موسسه نیز برای دسترسی به داده های هرکدام از فایل ها یک یا چند برنامه ی کاربردی می نویسد.که هر کدام از این برنامه های...
-
سیستم بانک اطلاعاتی چیست؟
سهشنبه 13 آبان 1393 19:57
سیستم بانک اطلاعاتی به سیستم کامپیوتری می گویند که از داده های نگهداری می کند.خود بانک اطلاعاتی به عنوان بستری برای نگهداری از داده ها است. کاربران این سیستم می توانند عملیات های زیر را بر روی داده ها انجام دهند: افزودن فایل خالی و جدید به بانک اطلاعاتی افزودن داده ها به فایل های ایجاد شده بازیابی و مشاهده داده ها از...
-
بانک اطلاعاتی به چه معنی است؟
سهشنبه 13 آبان 1393 15:28
بانک اطلاعاتی مجموعه ای از داده های پایدار است که توسط برنامه های کاربردی موجود در یک موسسه مورد استفاده قرار می گیرد.پایداری در اینجا بدین مفهوم است که این داده ها با داده های ناپایدار مانند داده های ورودی,خروجی,صف ها ,بلوک های کنترل نرم افزار,نتایج موقت و به طور کلی تمام داده هایی که ماهیت آنها حالت گذرا دارد,تفاوت...
-
rss فید چیست؟
دوشنبه 12 آبان 1393 20:38
حتما تا حالا اصطلاح فید RSS یا خوراک RSS را شنیده اید.دست کم این سوال برای شما ایجاد شده است که فید چیست؟به چه کاری می آید؟ برای مثال شما به تعدادی وبلاگ یا سایت علاقه مند هستید و هر روز مطالب آن ها را دنبال می کنید.این دنبال کردن شما تا پیش از آشنایی با فید حتما اینگونه است که به هرکدام از آنها جداگانه سرکشی می...
-
هاست (host) چیست؟
یکشنبه 11 آبان 1393 20:36
هاست (Host) در معنای لغوی به معنی میزبان است و در مفاهیم شبکه به معنای کامپیوتری است که اطلاعات صفحات وب(web) و فایل های ftp را در خود جای میدهد و میزبانی می کند.
-
Proxy(پروکسی) چیست؟
یکشنبه 11 آبان 1393 20:27
در مفهوم عامیانه به سانسور کردن سایتها تعبیر می شود. اما از نظر فنی راه حلی است برای اینکه ما بتوانیم از IP Invalidها برای اتصال به اینترنت استفاده کنیم. در این روش باید یک Server Proxy در شبکه نصب شود. در کل این روش مطلوب نبوده و دارای نقاط ضعف عمده زیر است: 1- نیاز است که کاربران تنظیمات خاصی را در کامپیوتر خود...
-
تفاوت و معنی مفاهیم اینترنت و اینترانت
یکشنبه 11 آبان 1393 20:24
تفاوت بین اینترنت(intenet) و اینترانت (interanet ) مفهومی است.همگی با معنای اینترنت آشنایی داریم و مفهوم آن را می دانیم.منظور از اینترانت (interanet) ایجاد و پیاده سازی شبکه اینترنت(شبکه جهانی وب) در یک محیط LAN و بدون اتصال به شبکه جهانی وب است. محیط LAN را در پست های قبلی تعریف کرده ایم و اینجا فقط معنی لغوی آن را...
-
تابع include در php
شنبه 10 آبان 1393 18:45
این تابع صفحه ای یا فایلی را فراخوانی می کند اما در خود همان صفحه! اگر می خواهیم فایل مورد نظر یک بار فراخوانی شود در کنار این تابع کلمه once به معنای یک بار را می آوریم. تعریف این تابع را نیز همانند تابع require ذکر کردم چون این دو تابع عینا یک عملکرد دارند اما با تفاوتی مهم و تاثیر گذار! تفاوت این دو تابع در چیست؟...
-
تابع require در php
شنبه 10 آبان 1393 18:44
این تابع صفحه ای یا فایلی را فراخوانی می کند اما در خود همان صفحه! اگر می خواهیم فایل مورد نظر یک بار فراخوانی شود در کنار این تابع کلمه once به معنای یک بار را می آوریم. require_once('example.php'); require('example.php');