• Android Kotlin Nested fragments in viewpager

    Android Kotlin Nested fragments in viewpager

    Greetings, If you have a scenario where you have MainActivity that calls view pager and the view pager have recycler view or list view fragment and you want to show detail view fragment on click of item of the list view, or if you have the following error showing: you can achieve your scenario and…

  • Get real id of item in Django and GraphQL

    Get real id of item in Django and GraphQL

    Hello, When you use graphql in django using graphen and when you utilize the relay and nodes, the query result of any item while have base64 representation of the id, You can fix that easily by subclassing from “relay.Node” and then just use the new class in the interface like in the code below: https://gist.github.com/ahmedalttai/6951af94d056a6b2966eccf7f9b0e6c2…

  • Using Django DateField with Apollo GraphQl in Android

    Using Django DateField with Apollo GraphQl in Android

    https://hashnode.com/post/using-django-datefield-with-apollo-graphql-in-android-ckrizgvo80p0ints19z0af9y8

  • Allow remote connection to PostgreSQL

    Hello, you can connect remotely to PostgreSQL either from remote cmd of from pgAdmin by making two simple steps: 1- As a super user, open /etc/postgresql/10/main/pg_hba.conf 2- Scroll down to the line that describes local socket connections. It may look like this: and add the following: 3- In the same directory, open postgresql.conf. Under the section on Connection Settings, add…

  • Auto complete foreignKey in Django

    Auto complete foreignKey in Django

    Hello, If you want to add autocomplete field or autocomplete search field in Django forms its pretty easy, there are a lot of existing packages that can help you with that, the one that we gonna use is: django-ajax-selects. Installation Activate your development environment and type the following command: pip install django-ajax-selects Usage After installing…

  • الوصول الى العناصر الاخرى في نفس صف العنصر المختار – Get other objects in the same row in listview

    الوصول الى العناصر الاخرى في نفس صف العنصر المختار – Get other objects in the same row in listview

    السلام عليكم, اذا كنت تحتاج الى الوصول الى محتويات العناصر الاخرى ضمن row معين في listview يمكنك استخدام هذه الطريقة البسيطة.

  • ايجاد عنصر حسب محتوياته في المصفوفة في swift

    ايجاد عنصر حسب محتوياته في المصفوفة في swift

    السلام عليكم, هذا الكود البسيط يمكنك ان تستخدمه لأيجاد اول عنصر معين داخل مصفوفة Array بأستخدام مكون داخلي في العنصر Property. علما انه مجرب على Swift 3. if let item = array.first(where: { $0.id == itemID }) {             print(“The first item is \(item).”)            …

  • طباعة صفحات الويب بالألوان

    طباعة صفحات الويب بالألوان

    السلام عليكم, من الامور المهمة والتي قد تواجه صعوبة فيه, عملية طباعة صفحات الويب بصيغة HTML خصوصا قضية لون الكتابة بالطباعة تظهر الكتابة كلها باللون الاسود, للمحافظة على الوان الصفحة عند طباعتها هنالك طريقة جدا بسيطة بأستخدام لغة CSS, اضف هذا الى ملف الستايل خاصتك: @media print{ div { color: #2E3AA0 !important; } } اهم…

  • ارسال بيانات checkbox عبر طلب Post في الPHP

    ارسال بيانات checkbox عبر طلب Post في الPHP

    السلام عليكم, كنت اعمل قبل فترة قصيرة على مشروع, وفي اثناء تحديث البرنامج واجهتني مشكلة صغيرة نسبيا, حيث يتم ارسال checkbox ويكون بID متغير حيث يوجد عدد من الجيك بوكس بأسم واحد ويتم الارسال عن طريق POST الى الدالة الخاصة به, ولكن عند الدالة لا تصل بيانات الجيك بوكس وتظهر فارغة وعندما اقوم بأضافة اسم…

  • الكتابة بالعربي في ليبر اوفيس

    السلام عليكم، عند استخدامك لليبر اوفيس في اوبنتو او اي نظام اخر، ستلاحظ عند الكتابة بالعربي يبقى اتجاه الكتابة من اليسار لليمين، لتحويله من اليمين لليسار نذهب الى قائمة Tools ومن ثم الى Options ومن ثم Language Settings ونؤشر مربع Complex text layout ونختار العربية ثم نضغط موافق.

لديك عرض عمل؟