The document provides an introduction to attributes in .NET Framework. It discusses what attributes are, how they are used to provide additional metadata for types and assemblies. Specifically, it covers the AssemblyInfo.cs file, how to search for attributes using reflection, and examples of built-in attributes like ObsoleteAttribute and SerializableAttribute.
This session, delivered at Devoxx Poland, covers all the major changes to the Java platform between JDK 12 and JDK 17. All language features are covered, as well as many of the important API changes.
Large-scale C++ development is tough business, and so is grokking and improving OOo's approximately 6 million lines of code. The author will share the accumulated knowledge of Sun's OOo development team, touching areas such as:
* dependency management: how to architect for encapsulation
* tools for working on the code: IDE/editor review, (semi)-automatic code transformations and refactorings, debuggers
* patterns: the most frequent design patterns and their incarnations
* helpers: the what and the where of helper functionality
* recommended readings: literature, links to OOo resources (API documentation, coding guidelines), mailing lists and news groups
This session should be suitable for all levels of C++ programmers, that want to become familiar with OOo's way of doing things in C++.
This session, delivered at Devoxx Poland, covers all the major changes to the Java platform between JDK 12 and JDK 17. All language features are covered, as well as many of the important API changes.
Large-scale C++ development is tough business, and so is grokking and improving OOo's approximately 6 million lines of code. The author will share the accumulated knowledge of Sun's OOo development team, touching areas such as:
* dependency management: how to architect for encapsulation
* tools for working on the code: IDE/editor review, (semi)-automatic code transformations and refactorings, debuggers
* patterns: the most frequent design patterns and their incarnations
* helpers: the what and the where of helper functionality
* recommended readings: literature, links to OOo resources (API documentation, coding guidelines), mailing lists and news groups
This session should be suitable for all levels of C++ programmers, that want to become familiar with OOo's way of doing things in C++.
In this workshop we would like to take a closer look at the new features of Java 7 and Java 8.
Java 7 has brought a couple of language enhancements to assist developers in their daily programming tasks and starting from Java 8 we finally have the opportunity to include a functional programming touch to Java thanks to Lambdas! Lambdas allow us to specify closures to create clean and brief solutions for which we would otherwise be obligated to write down a lot of boilerplate code.
For example in order to sort a List of Strings based on their length we can now write the following code:
Collections.sort(list, (s1, s2) -> s1.length() - s2.length());
Besides lambdas, Java 8 also comes with extension methods, allowing us to write interfaces containing implemented methods, streams and bulk data operations, granting us the opportunity to chain operations on collections to obtain a filtered or transformed set of the elements in our collection, and the possibility to pass functions as parameters. These features alone will have a major impact on the way how Java APIs can be written. There's also a brand new Date and Time API inspired on the popular JodaTime API and a couple of other language enhancements to aid Java developers in writing solutions in a more elegant way.
Be sure to follow this workshop to stay up to date with the latest evolutions of the Java programming language. Java 8 is definitely an update of the programming language which you don't want to miss out on!
The presentation highlights techniques to exploit a MySQL, PostgreSQL or Microsoft SQL Server database server in real world: how to abuse databases features to takeover the server as a whole, how to break out of the mere database process, get control of the operating system and escalate process' privileges to SYSTEM and how to make the life of the forensics analyst harder in a post-exploitation investigation.
These slides have been presented at AthCon 2010 conference in Athens on June 3, 2010.
Python for Delphi (P4D) is a set of free components that wrap up the Python DLL into Delphi and Lazarus (FPC). They let you easily execute Python scripts, create new Python modules and new Python types. You can create Python extensions as DLLs and much more like scripting. P4D provides different levels of functionality:
Low-level access to the python API
High-level bi-directional interaction with Python
Access to Python objects using Delphi custom variants (VarPyth.pas)
Wrapping of Delphi objects for use in python scripts using RTTI (WrapDelphi.pas)
Creating python extension modules with Delphi classes and functions
Generate Scripts in maXbox from Python Installation
In this workshop we would like to take a closer look at the new features of Java 7 and Java 8.
Java 7 has brought a couple of language enhancements to assist developers in their daily programming tasks and starting from Java 8 we finally have the opportunity to include a functional programming touch to Java thanks to Lambdas! Lambdas allow us to specify closures to create clean and brief solutions for which we would otherwise be obligated to write down a lot of boilerplate code.
For example in order to sort a List of Strings based on their length we can now write the following code:
Collections.sort(list, (s1, s2) -> s1.length() - s2.length());
Besides lambdas, Java 8 also comes with extension methods, allowing us to write interfaces containing implemented methods, streams and bulk data operations, granting us the opportunity to chain operations on collections to obtain a filtered or transformed set of the elements in our collection, and the possibility to pass functions as parameters. These features alone will have a major impact on the way how Java APIs can be written. There's also a brand new Date and Time API inspired on the popular JodaTime API and a couple of other language enhancements to aid Java developers in writing solutions in a more elegant way.
Be sure to follow this workshop to stay up to date with the latest evolutions of the Java programming language. Java 8 is definitely an update of the programming language which you don't want to miss out on!
The presentation highlights techniques to exploit a MySQL, PostgreSQL or Microsoft SQL Server database server in real world: how to abuse databases features to takeover the server as a whole, how to break out of the mere database process, get control of the operating system and escalate process' privileges to SYSTEM and how to make the life of the forensics analyst harder in a post-exploitation investigation.
These slides have been presented at AthCon 2010 conference in Athens on June 3, 2010.
Python for Delphi (P4D) is a set of free components that wrap up the Python DLL into Delphi and Lazarus (FPC). They let you easily execute Python scripts, create new Python modules and new Python types. You can create Python extensions as DLLs and much more like scripting. P4D provides different levels of functionality:
Low-level access to the python API
High-level bi-directional interaction with Python
Access to Python objects using Delphi custom variants (VarPyth.pas)
Wrapping of Delphi objects for use in python scripts using RTTI (WrapDelphi.pas)
Creating python extension modules with Delphi classes and functions
Generate Scripts in maXbox from Python Installation
Login System with Windows/Microsoft Live using OAuth php and mysqlthesoftwareguy7
Login System with Windows/Microsoft Live using OAuth php and mysql. Create application to get Client ID and client Secret for using in web application.
You're looking for a fax solution? stable fax solution? Sangoma VoIP gateways let you send and receive faxes without any problem.
This webinar was held by SENA.
www.senatelecom.com
Tree-like data relationships are common, but working with trees in SQL usually requires awkward recursive queries. This talk describes alternative solutions in SQL, including:
- Adjacency List
- Path Enumeration
- Nested Sets
- Closure Table
Code examples will show using these designs in PHP, and offer guidelines for choosing one design over another.
I am explaining how to connect to Borland StarTeam Version Control System programmatically using C# console application and checkout files to local machine.
Using SPMetal for faster SharePoint developmentPranav Sharma
This session will cover the ins and outs of SPMetal, a tool which ships with SharePoint 2010. SPMetal allows developers compile-time access to SharePoint lists, content types and columns. This allows for type-safe access to columns/fields on a SharePoint site. Additionally, developers can write LINQ queries against these lists using SPMetal which speeds up query writing tremendously. We will cover adding support for complex column types (Managed Metadata, Publishing HTML, etc) which aren’t supported by SPMetal out of the box. Lastly we will also touch upon performance considerations and other best practices when coding with SPMetal.
Exceptions, I/O and Threads Input and Output in Java: The File Class, Standard Streams, Keyboard
Input, File I/O Using Byte Streams, Character Streams, File I/O Using Character Streams -
Buffered Streams, File I/O Using a Buffered Stream, Keyboard Input Using a Buffered Stream,Writing Text Files. Threads: Threads vs. Processes, Creating Threads by Extending Thread,
Creating Threads by Implementing Runnable, Advantages of Using Threads, Daemon Threads,
Thread States, Thread Problems, Synchronization. Exceptions: Exception Handling, The Exception
Hierarchy, throws statement, throw statement, Developing user defined Exception Classes- The
finally Block.
CCF #1: Taking the reins of your data with Hiera 5davidmogar
First session of Casual Config Fridays including an introduction to Hiera and a brief overview to the features of its latest version from the point of view of a service manager at CERN.
عرض تقديمي يشمل الفصل الأول من كتاب الإدارة بالإبداع للدكتور سليم الحسنية.
يمكن تحميل الكتب من هنا
http://www.mediafire.com/view/wb1969pbkruqxw2/PKI_report.pdf
2. Outlines
مقدمة إلى الصفات .
. Assemblyinfo.cs الملف
البحث عن الصفات .
.NET الصفات المبيتة في
. System.ObsoleteAttribute الصفة
. System.SerializableAttribute الصفة
05 2 تشرين الثاني، 14
3. مقدمة إلى الصفات
؟)Attribute( ما هي الصفة
مبدئي ا سنعرف الصفة على أنها "معلومات إضافية يمكن تطبيقها على كتلة من
. ")EXE أو DLL( الشيفرة البرمجية ضمن المجمعة
أو Data Member أو Method أو Class يمكن أن تمثل هذه الكتل
Property
أخر يستخدم هذه )Class( يمكن الوصول إلى هذه المعلومات من أي صنف
المُجمعة.
Assemblyinfo.cs الملف
. Pickling عملية تخزين الصفات ضمن المجمعة تسمى
و والبارمترات التي نمررها هي بارامترات ال Class تصريح الصفة تمثل
Constructor
05 3 تشرين الثاني، 14
5. مقدمة إلى الصفات
يمكننا مشاهدة قيم الصفات من خلال خصائص المجمعة أو من خلال الإنعكاس .
يمكننا الآن أن نعرّف الصفة على أنها :
يمكن أن يحوي بيانات إضافية عن المجمعة , تتعلق Class "الصفة : عبارة عن
هذه المعلومات بالمجمعة نفسها أو بأي نوع ضمنها“ .
[assembly: AssemblyTitle("Training")]
هو مدى الصفة ويعني أن الصفة مطبقة على المجمعة نفسها. : Assembly
05 5 تشرين الثاني، 14
6. البحث عن الصفات :
using System;
using System.Reflection;
static void Main(string[] args)
{
Assembly a = Assembly.LoadFrom(@"D:atom.dll");
object[] attributes = a.GetCustomAttributes(true);
foreach(object o in attributes)
{
Console.WriteLine(o.ToString());
}
}
05 6 تشرين الثاني، 14
8. .NET الصفات المبيتة في
هي صفات Assemblyinfo.cs إن الصفات الموجودة في الملف
خاصة بالمجمعة بحد ذاتها.
الصفات التي سنعرضها فهي تخص الأنواع المعرفة ضمنها وأحيانا
المجمعة بحد ذاتها.
. System.ObsoleteAttribute الصفة
. System.SerializableAttribute الصفة
05 8 تشرين الثاني، 14
9. System.ObsoleteAttribute الصفة
هذه الصفة تستخدم لوسم تابع بأنه لم يعد مستخدما بعد الآن .
خلال عملية التطوير سيكون بعض المناهج التي لن يكون لها وجود
في الإصدارة النهائية من المكتبة – وبذلك يمكن تحضير مستخدمي
مكتبتك لغياب ميزة محددة )تابع مثلا (.
05 9 تشرين الثاني، 14
11. System.ObsoleteAttribute الصفة
عند ترجمة المشروع سنحصل على رسالة تحذير بأن هذا المنهج "مهجور
بدلاُ NewMethod أو سُيهجر قريبا وعليك استخدام "deprecated
منه .
05 11 تشرين الثاني، 14
12. System.ObsoleteAttribute الصفة
مع الوقت فأن جميع مستخدمين هذا المنهج سيعلمون أن عليهم تجنب
.deprecated استخدام هذا المنهج وحتى عند استدعائه يعطيك أن هذا المنهج
05 12 تشرين الثاني، 14
13. System.ObsoleteAttribute الصفة
من شيفرتك OldMethod ومع الوقت يمكنك أن تزيل المنهج
Obsolete تماما دون خوف لذلك يمكنك إضافة بارمتر جديد للصفة
كما يلي:
[Obsolete("Use NewMethod instead",true)]
public void OldMethod()
{
}
05 13 تشرين الثاني، 14
14. System.ObsoleteAttribute الصفة
وعندما يحاول المستخدمون استخدام هذا المنهج فأن
وتتوقف عملية الترجمة . Error المترجم سيصدر خطأ
05 14 تشرين الثاني، 14
15. System.SerializableAttribute الصفة
هو الاسم الذي يطلق على ترتيب )Serialization( السّلسَلة
واستعادة الكائنات من الذاكرة أو من الأقراص بصورتها الثنائية .
عندما نقوم بسّلسَلة كائن فإن جميع بيانات الكائن تحُفظ ضمن وسط
سيتم إعادة الكائن من )Deserialize( التخزين وعند إزالة السّلسَلة
وسط التخزين إلى حالته الأصلية.
05 15 تشرين الثاني، 14
16. System.SerializableAttribute الصفة
[Serializable]
class Employee
{
public Employee(int id ,string name)
{
_id = id;
_name = name;
}
private int _id;
private string _name;
[NonSerialized]
//this Data Member is not Serialized,Such asTransiet in JAVA
private string _password;
public int Id
{
get { return _id; }
set { _id = value; }
}
public string Name
{
get { return _name; }
set { _name = value; }
}
}
05 16 تشرين الثاني، 14
17. System.SerializableAttribute الصفة
م ملف نا Employee سن وم ا ن س لسلة ا
static void Main(string[] args)
{
Employee e = new Employee(1, "mohammad");
FileStream fs = null;
try
{
string path= @"D:file";
fs = new FileStream(path, FileMode.Create);
BinaryFormatter bf = new BinaryFormatter();
// Serialize Object(e) in the file stream(fs)
bf.Serialize(fs, e);
}
catch (Exception Ex)
{
Console.WriteLine(Ex.Message);
}
finally
{
try
{
fs.Close();
}
catch (Exception es)
{
Console.WriteLine(es.Message);
}
}
}
05 17 تشرين الثاني، 14
18. System.SerializableAttribute الصفة
فتتم كما يلي : DeSerailization أما إزالة السلسة
نكتب ما يلي : Main ضمن التابع
static void Main(string[] args)
{
Employee e1 = null;
try
{
string path = @"D:file";
fs = new FileStream(path, FileMode.Open);
BinaryFormatter bf = new BinaryFormatter();
e1 = (Employee)bf.Deserialize(fs); // DownCasting is mandatory
Console.WriteLine("Id={0} name={1}",e1.Id,e1.Name);
}
catch (Exception Ex)
{
Console.WriteLine(Ex.Message);
}
finally
{
try
{
fs.Close();
}
catch (Exception ex) { Console.WriteLine(ex.Message); }
}
}
05 18 تشرين الثاني، 14