Programming Freaks  | دورات ومقالات برمجيه

Please login or register.

Login with username, password and session length
Advanced search  

News:

Please Read our FAQ

Pages: [1] 2 3 ... 10
 1 
 on: May 20, 2011, 02:48:13 AM 
Started by NEO-JH - Last post by NEO-JH
السلام عليكم ,, سألني شخص عن الطريقة فحبيت اضعها هون

الطريقة الاولى :

استخدام دالة
Code: ($2) [Select]
quit()

Code: ($2) [Select]
pass = raw_input("Password")

if pass == 'neo' :
     print ' '
else :
      print 'Wrong !!'
      quit()

print 'Welcome !!'


الطريقة الثانية :
أستخدام sys.exit()

وهي نفس عمل الاولى تماماً لكن يجب اضافة مكتبة
Code: ($2) [Select]
sys


Good Luck !!

 2 
 on: May 18, 2011, 03:37:27 PM 
Started by lio_013 - Last post by lio_013
أسيب شوية قسم البايثون ونسأل سؤال هنا
كنت عايز أعرف أنسب مكتبة xml-rpc  للتعامل مع برنامج aria2

في بايثون كده

Code: ($2) [Select]
>>> import xmlrpclib
>>> s = xmlrpclib.ServerProxy('http://localhost:6800/rpc')
>>> s.aria2.addUri(['http://example.org/file'])
'1'

جربت في c++مكتبة xmlrpc-c  من مستودعات فيدورا   

Code: ($2) [Select]
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/client_simple.hpp>
#include <iostream>

ثم
Code: ($2) [Select]
xmlrpc_c::clientSimple myClient;
xmlrpc_c::value result;
myClient.call("http://localhost:6800/rpc", "aria2.addUri","http://example.org/file",&result);
int const gid = xmlrpc_c::value_int(result);
std::cout << gid;

كما شرحت هنا
http://xmlrpc-c.sourceforge.net/doc/libxmlrpc_client++.html#simple_client

لكن تظهر خطأ
فهل من يساعد بمثال كامل يا شباب السي  :D

 3 
 on: May 16, 2011, 04:18:22 AM 
Started by lio_013 - Last post by lio_013
أخيرا بدأت أكتب حاجة كويسة في المشروع ده

Code: ($2) [Select]
hg clone https://a_atalla@bitbucket.org/a_atalla/barq


 4 
 on: May 13, 2011, 06:39:06 PM 
Started by snipermann - Last post by lio_013
http://qt-ar.org/lessons/show48.html

 5 
 on: March 04, 2011, 01:04:47 PM 
Started by abom - Last post by abom
السلام عليكم

عبارة عن أداة لحساب md5, sha1, sha256, sha384, sha512 للملفات (زي بتاعة استاذنا احمد كدة gsum :D )
مكتوب بروبي و له واجهتان واحدة Qt4 و الأخري Gtk2

إصدار جديد به بعض الإصلاحات و الإضافات

الجديد:

* طريقة جديدة للمقارنة بين الناتج  و المدخل (بدلاً من الضغط علي زر compare)
* إظهار بعض التفاصيل (مثل سرعة القراءة، الوقت المتبقي و المنصرم..إلخ)
* بعض الإصلاحات

التشغيل: بعد فك الضغط للملف المضغوط:

Code: ($2) [Select]
ruby RGSum.rb

أو

Code: ($2) [Select]
ruby RQSum.rb

للإصدار Qt

المتطلبات:

- ruby
- libopenssl-ruby
لنسخة كيوت
- libqt4-ruby
لنسخة gtk
ruby-gtk2

صور:
RGSum


RQSum



تحميل
مستودع


سؤال قبل مشاهدة  الكود :):

ما هي الطرق التي تخطر في بالك لحساب السرعة و الوقت المتبقي و الوقت المنصرم و هكذا لعملية IO (نقل ملف من مكان لمكان مثلاً، قراءة أو كتابة من ملف)؟

عن نفسي لم أعرفها كلها إلا بعد النظر إلي كود ruby-progressbar

 6 
 on: February 12, 2011, 02:01:30 AM 
Started by dkring - Last post by dkring
في هذا الكتاب
http://h1.ripway.com/dkring/Python-Course+.pdf

 7 
 on: February 12, 2011, 02:00:52 AM 
Started by dkring - Last post by dkring
للعلم هذه الدروس وجدتها في هذا الكتاب
http://h1.ripway.com/dkring/Python-Course+.pdf

 8 
 on: February 12, 2011, 01:58:45 AM 
Started by dkring - Last post by dkring
اين الخطا في برنامجي 
للعلم البرنامج يقوم باضافة رمز * بين الحروف لكلمة dkring
Code: ($2) [Select]
name='dkring'
c=len(name)
i=0
while i<6 :
print name[i]+'*',
i=i+1

 9 
 on: January 24, 2011, 02:44:21 AM 
Started by RochesterRooster - Last post by RochesterRooster
 The cost of creating a website by hiring a professional website design firm is too expensive nowadays.
But you can create a website yourself for much less. Even if your resources are a bit low, you can create a good website, provided you throw in a great deal of time. Either, you can spend a huge amount and get a good website up and running in 2-3 weeks, or you can spend your own time and get the same output in 2-6 months. You may also hire cheap designers, but the quality of their work is questionable. But if you do it yourself, you need to learn the way from the basics, which will require a lot of time, skills and effort. Another option is to get website templates/blocks which are quite cheap. You just have to learn how to put them together. It doesn’t require much skills and it provides the best balance between time and money.
 
To create a site yourself, you have to use website builder software which is of two main categories:
1) Software which helps with the technical side: like web hosting, domain names etc. It can either be online/offline, free/paid software.
2) Site builders which help with the non-technical side; how to make the site more visually attractive, user-friendly and get more income etc. In short: HOW TO MAKE IT REALLY WORK?
 
But the problem with site builder software is that most of them are complicated to use and sometimes the final output becomes totally useless. Sometimes it turns out to be frustrating and not worth the money. You may even get better luck with free website builders who may get the job done with the same quality or even better!
 
However, if the purpose of your website is to sell and market your products and services online (and not for personal purposes) by attracting people i.e., to make yourself popular, then it is important to get a professional website design company which can help you achieve these goals.

 10 
 on: January 16, 2011, 08:53:26 AM 
Started by St0rM - Last post by hit-man
new link : http://www.exploit-db.com/exploits/6851/

tks brother

Pages: [1] 2 3 ... 10