דילוג לתוכן

תכנות

4.6k נושאים 38.2k פוסטים

קטגוריות משנה


  • 22 נושאים
    137 פוסטים
    katzK

    שלום לכולם
    התבקשתי רבות מחברים פיתרון לבעיה הידועה לבצע מיזוג דואר, אך לשמור קובץ PDF נפרד לכל רשומה, עם שם מותאם אישית.

    אפרט כאן במדריך שלב אחר שלב איך לבצע זאת, תהיו איתי עד הסוף מקווה שתהנו...

    נתחיל...

    שלב א:

    ראשית בקובץ ה- Excel של רשימת הנמענים, הוסיפו לטבלת הנתונים ארבעה עמודות בשמות כדלהלן (חשוב שהשמות יהיו מדויקים ללא רווחים מיותרים - לתשומת ליבכם):

    DocFolderPath

    DocFileName

    PdfFolderPath

    PdfFileName

    שלב ב:
    צרו שתי תיקיות נפרדות, אחד לקבצי הפלט בפורמט docx, ואחד לקבצי הקלט בפורמט pdf, העתיקו את נתיב התיקייה של קבצי ה- docx והדביקו אותם עבור כל רשומה בשדה שיצרתם בשם DocFolderPath, לאחמ"כ חזרו על הפעולה והפעם העתיקו את נתיב התיקייה של קובצי ה- PDF והדביקו בשדה PdfFolderPath.
    בשדה DocFileName כתבו את השם של הקובץ עבור הרשומה - ניתן להשתמש בנוסחאות, כמו"כ בשדה PdfFileName כתבו את שם הקובץ כנ"ל.

    שלב ג:
    פתחו את קובץ ה- word והשלימו את פעולת המיזוג כרגיל, עצבו את המסמך כרצונכם.

    שלב ד:
    פתחו את לשונית מפתחים בקובץ ה- word פתחו את עורך הקוד הוסיפו מודל חדש מצו"ב צילום מסך:
    3eb2538f-9ab1-41eb-a1df-452212916da6-image.png

    הדביקו את הקוד הבא:

    Sub MailMergeToPdfBasic() ' Mark the start of the Subroutine (i.e. Macro) and name it "MailMergeToPdf" ' Macro created by Imnoss Ltd ' Please share freely while retaining attribution ' Last Updated 2021-05-03 Dim masterDoc As Document, singleDoc As Document, lastRecordNum As Long ' Create variables ("Post-it Notes") for later use Set masterDoc = ActiveDocument ' Identify the ActiveDocument (foremost doc when Macro run) as "masterDoc" masterDoc.MailMerge.DataSource.ActiveRecord = wdLastRecord ' jump to the last active record (active = ticked in edit recipients) lastRecordNum = masterDoc.MailMerge.DataSource.ActiveRecord ' retrieve the record number of the last active record so we know when to stop masterDoc.MailMerge.DataSource.ActiveRecord = wdFirstRecord ' jump to the first active record (active = ticked in edit recipients) Do While lastRecordNum > 0 ' create a loop, lastRecordNum is used to end the loop by setting to zero (see below) masterDoc.MailMerge.Destination = wdSendToNewDocument ' Identify that we are creating a word docx (and no e.g. an email) masterDoc.MailMerge.DataSource.FirstRecord = masterDoc.MailMerge.DataSource.ActiveRecord ' Limit the selection to just one document by setting the start ... masterDoc.MailMerge.DataSource.LastRecord = masterDoc.MailMerge.DataSource.ActiveRecord ' ... and end points to the active record masterDoc.MailMerge.Execute False ' run the MailMerge based on the above settings (i.e. for one record) Set singleDoc = ActiveDocument ' Identify the ActiveDocument (foremost doc after running the MailMerge) as "singleDoc" singleDoc.SaveAs2 _ FileName:=masterDoc.MailMerge.DataSource.DataFields("DocFolderPath").Value & Application.PathSeparator & _ masterDoc.MailMerge.DataSource.DataFields("DocFileName").Value & ".docx", _ FileFormat:=wdFormatXMLDocument ' Save "singleDoc" as a word docx with the details provided in the DocFolderPath and DocFileName fields in the MailMerge data singleDoc.ExportAsFixedFormat _ OutputFileName:=masterDoc.MailMerge.DataSource.DataFields("PdfFolderPath").Value & Application.PathSeparator & _ masterDoc.MailMerge.DataSource.DataFields("PdfFileName").Value & ".pdf", _ ExportFormat:=wdExportFormatPDF ' Export "singleDoc" as a PDF with the details provided in the PdfFolderPath and PdfFileName fields in the MailMerge data singleDoc.Close False ' Close "singleDoc", the variable "singleDoc" can now be used for the next record when created If masterDoc.MailMerge.DataSource.ActiveRecord >= lastRecordNum Then ' test if we have just created a document for the last record lastRecordNum = 0 ' if so we set lastRecordNum to zero to indicate that the loop should end Else masterDoc.MailMerge.DataSource.ActiveRecord = wdNextRecord ' otherwise go to the next active record End If Loop ' loop back to the Do start End Sub ' Mark the end of the Subroutine

    שלב ה וסיום:
    סגרו את עורך הקוד.
    לחצו על כפתור פקודות מאקרו שבכרטיסיית מפתחים, בחרו את המאקרו בשם MailMergeToPdfBasic ולחצו הפעל מצו"ב צילום מסך
    3890ce69-c0e9-4f30-89ce-3e97b7de750b-image.png

    כעת שבו בנחת והמתינו עד ליצירת כל הקבצים, להנאתכם תפתחו את תיקיות הפלט שיצרתם וגלו שהיא מלאה קבצים קובץ לכל רשומה בשם המתאים שהגדרתם לה.

    מקור

  • ארכיון האתר הקודם והחביב קוד-613

    1k נושאים
    10k פוסטים
    chagoldC

    @אבי אמר בשוב, צילומי הצ'קים בבנקים:

    התעסקתי לאחרונה עם סורקים של חברת MAGTEK, הם ידידותיים ונוחים להתממשקות, אבל כמדומני שהבנקים בישראל מוכנים לקבל סריקות רק מסורקים של חברת PANINI

    @אבי איך יוצרים אתך קשר?

  • 31 נושאים
    133 פוסטים
    Y.Excel.AccessY

    יש כמה נוסחאות חדשות שממש משנות את כללי המשחק בגוגל שיטס:

    CHOOSECOLS לבחירת עמודות ממערך CHOOSEROWS לבחירת שורות ממערך WRAPROWS להמרת מערך חד ממדי לרב ממדי - פריסה לשורות WRAPCOLS כנ"ל - פריסה לעמודות HSTACK ו VSTACK - הפעולה של {} אך בלי סוגריים - לא משמעותי לכאורה

    והעולה על כולנה, סוף סוף:

    LET - ליצירת משתנים.

    כל אלו מצטרפות לפונקציות שנוספו מוקדם יותר -
    https://blog.sheetgo.com/google-sheets-formulas/10-new-google-sheets-functions/

    וכלול בתוכם - LAMBDA, MAP (חלקי - לא עובד לקנן ב MAP ודומיו מערכים אחרים), פונקציות בעלות שם, וכו' ע"ש בקישור.

  • שליפת נתונים מאתר

    16
    0 הצבעות
    16 פוסטים
    386 צפיות
    א

    תודה לכל המעוררים.

    יש לי קצת סתירה באתר שם, מצד אחד כמו שנאמר לעיל החיוב אמור להיות מקצה התחום של היישוב, ולכן היה אפשר להסביר את ההפרשים שהיו לי.
    מצד שני, אם אני עושה הסעה מביתר לירושלים לדוג' הוא כותב שהם באותו תחום ולכן זה בחינם, אבל בכל זאת יש הבדל במחיר בין הסעה מירושלים לתל אביב או מביתר. ואם הם באותו תחום לכאו' לא אמור להיות הבדל, לא?
    כך שאיך שלא יהיה החישוב שלהם לא ברור לפי מה הוא נעשה.
    דבר נוסף, כמו שכתבתי בהסעה מקריית שמונה לאילת יש הבדל של כ70 ק"מ בין החישובים, ואם מחשבים מקצה התחום ההבדל אמור להיות שלפי החישוב שלה יהיה פחות מרחק מה שלא קרה.
    וזה בלי לדון לפי מה הם מחשבים מרחקים, ודאי לא לפי מרחק אווירי אז לפי איזה כביש הם מחשבנים.

    היוצא מכל הנ"ל, שלכאו' גם אם באמת המגבלה שלהם מחייבת גם לפי ההלכה, מ"מ זה לא על המחיר אלא על אופן החישוב (לפי מרחק ולא לפי מה שבא לי), ואם כך נראה שהחישוב שלהם הוא די מקרי, ולענ"ד החישוב על פי הנתונים של מדינת ישראל הרשמית אמור להיות בסדר גם מבחינת החוק וגם ההלכה להבדיל.

    ודאי שכל זה הוא לפלפול בעלמא, וכשנגיע למעשה אעשה שאלת רב.

    שוב תודה לכל המגיבים.

  • נושא זה נמחק!

    1
    0 הצבעות
    1 פוסטים
    3 צפיות
    אין תגובות
  • הורדת תיקיה מדרייב לשרת

    3
    0 הצבעות
    3 פוסטים
    163 צפיות
    מוטי 0מ

    @EMG
    לא מכיר את מה ש @yossiz כתב,
    אם זה API שמיועד לזה, זה הברירה הראשונה.
    אבל אפשר גם עם Puppeteer.
    זה עבד לי יופי בהורדות מאתרים.
    רק שאם יש שינוי קל ב HTML אתה צריך לעדכן מחדש...

    זה אמנם עובד בעיקר עם NODE,
    אבל עשיתי את זה פעם עם PHP,
    הרצתי קונסול ואז ב NODE את הסקריפט המוכן,
    זה עבד לי על הורדת קבצים,
    אבל זה די מורכב.

  • שכפול מסד נתונים (פעיל)

    4
    0 הצבעות
    4 פוסטים
    117 צפיות
    ח

    @chagold כתב בשכפול מסד נתונים (פעיל):

    (המקורי 3.5 GB והחדש 5.1 GB)

    @dovid כתב בשכפול מסד נתונים (פעיל):

    בכל מקרה הבדל הגודל הוא טבעי ולא אינדיקציה לשום בעיה

    אני לא יודע איפה אתה בודק את הגודל של המקורי מול הישן
    אבל אם זה בphpmyadmin אז יש בחשבון שאם תעשה Optimize table לכל הטבלאות אתה תגלה שגם במקורי הגודל באמת יותר גדול מהמוצג.
    אין לי מושג מה בדיוק עושה Optimize table ואיך זה עובד, אבל מציאות שהמטא נתונים על הטבלה לא מתעדכן כל הזמן בפועל, והגודל האמיתי ניתן לדעת אחרי Optimize table

  • הפעלת קובץ בJS

    6
    0 הצבעות
    6 פוסטים
    209 צפיות
    WWWW

    @dovid כתב בהפעלת קובץ בJS:

    @WWW גם אם זה פתרון טוב עבורו, במאמץ הזה יש עשרה פתרונות פשוטים בהרבה לבעיה המקורית.

    כתבתי את זה לצורך מי שיחפש את הפתרון לבעיה שבכותרת.

  • 0 הצבעות
    17 פוסטים
    434 צפיות
    yossizY

    @dovid תודה 🙂
    באמת אריכות דבריי לא מובנת למי שלא נכנס לתוך ראשי ומבין במה התקישיתי

    התקשיתי גם איך נכנסים המחרוזות הריקות לפלט, וגם כי התבלבלתי איך באמת אמור להיות ההתנהגות כאשר יש התאמה למחרוזת ריקה, למשל אם זה בתחילת הקלט, האם מכניסים את המרוזת הריקה שלפני ההתאמה? האם מתקדמים עוד תו אחרי ההתאמה? ולמה? וכו'
    מכיון שההשראה להסתבכות היו דברי חגי אז כתבתי כל הנ"ל בתשובה לדברי חגי, אבל באמת לא הכל קשור

  • 16 הצבעות
    4 פוסטים
    761 צפיות
    clickoneC

    @גאון היקר,
    הפוסט שלי נכתב בקטגוריית "תכנות", זו קטגוריה שמיועדת למתכנתים,
    הפוסט שלי כיוון למתכנתים שירצו בעתיד לנתח כזה קובץ ישירות מסיבותהם שלהם, ולא להזדקק לתוכנה באמצע שתמיר את זה לאקסל.

    אכן אם הייתי סתם מעלה קוד / קובץ שראה איך לנתח את הקובץ הזה בגומלין לדוגמא, זה היה מיותר וההערה הצודקת שלך היתה במקומה.

  • סקריפט פייתון מקומפל מזוהה כוירוס

    6
    0 הצבעות
    6 פוסטים
    234 צפיות
    ה

    @NH-LOCAL זה גרם לבעיה גם במחשבים שלא מחוברים לאינטרנט.
    הנה הקוד למי שמתעניין:

    # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\adb\untitled.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. import os from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import Qt, QRect, QMetaObject, QCoreApplication from PyQt5.QtWidgets import QApplication, QPushButton, \ QLabel, QDialog, QHBoxLayout, QWidget, QMessageBox class Window2(QWidget): def __init__(self): super().__init__() self.resize(831, 605) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("סמל_לתוכנה__2_-removebg-preview.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.setWindowIcon(icon) layout = QHBoxLayout() self.centralwidget = QtWidgets.QWidget() self.centralwidget.setObjectName("centralwidget") self.textBrowser = QtWidgets.QTextBrowser() self.textBrowser.setGeometry(QtCore.QRect(0, 0, 831, 605)) _translate = QtCore.QCoreApplication.translate self.setWindowTitle(_translate("MainWindow", "הוראות לחיפוש")) self.textBrowser.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:15.4px;\">בס&quot;ד</p>\n" "<p style=\" font-family:\'Times New Roman\'; font-size:20pt; \" align=\"center\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:15.4px;\">הוראות לחיפוש<br></p>\n" "<li style=\" font-family:\'Times New Roman\'; font-size:8pt; color:#002060;\" align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\"><span style=\" font-family:\'Symbol\'; font-size:12pt; color:#000000;\">·</span> החיפוש נעשה באמצעות תוכנת Adobe Reader [<img src=\"file:///D:/%D7%A1%D7%A4%D7%A8%D7%99%D7%94%20%D7%AA%D7%95%D7%A8%D7%A0%D7%99%D7%AA/%D7%92%D7%9E\'\'%D7%97/%D7%94%D7%95%D7%A8%D7%90%D7%95%D7%AA%20%D7%94%D7%97%D7%99%D7%A4%D7%95%D7%A9.files/image018.jpg\" /> - סמל זה], גרסה 10 ומעלה, (לא תואם לגרסה 8 ומטה, על גרסה 9 אין לנו מידע), באם לא מותקנת התוכנה במחשב, יש להתקין קודם לכן תוכנה זו הנמצאת בתיקיה תוכנות חשובות, אם מותקנת גרסה לא תואמת יש להסירה ולהתקין גירסה 10 הנמצאת בתיקיה תוכנות חשובות.</span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt;\"> [כמו כן התוכנה עובדת עם תוכנת Acrobat Reader DC </span><img src=\"file:///D:/%D7%A1%D7%A4%D7%A8%D7%99%D7%94%20%D7%AA%D7%95%D7%A8%D7%A0%D7%99%D7%AA/%D7%92%D7%9E\'\'%D7%97/%D7%94%D7%95%D7%A8%D7%90%D7%95%D7%AA%20%D7%94%D7%97%D7%99%D7%A4%D7%95%D7%A9.files/image019.jpg\" /><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt;\">– סמל כזה]</span></li>\n" "<li style=\" font-family:\'Times New Roman\'; font-size:8pt; color:#002060;\" align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\"><span style=\" font-family:\'Symbol\'; font-size:12pt; color:#000000;\"> ·</span> כדי לייעל את החיפוש רצוי לחפש בקטגוריה המתאימה, לחץ על אחת מהקטגוריות, או בחר בקטגוריה &quot;חיפוש בכל הספרים&quot;</span></li>\n" "<li style=\" font-family:\'Times New Roman\'; font-size:8pt; color:#002060;\" align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\"><span style=\" font-family:\'Symbol\'; font-size:12pt; color:#000000;\">·</span> כשהתוכנה עולה יש שני חלונות. חלון ראשי וחלון חיפוש. לעיתים החלון הראשי מכסה ומסתיר את חלון החיפוש, לשם כך יש להקטין את החלון הראשי ע&quot;י הצללית הנמצאת בחלון זה בצד שמאל למעלה. (או לחילופין להקיש על &quot;עריכה&quot;, ולמטה לבחור &quot;חיפוש מתקדם&quot;, וגם עי&quot;ז עולה חלונית החיפוש).</span></li>\n" "<p align=\"center\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\"> חלון ראשי חלון חיפוש</span></p>\n" "<p align=\"center\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\"></span><img src=\"file:///D:/%D7%A1%D7%A4%D7%A8%D7%99%D7%94%20%D7%AA%D7%95%D7%A8%D7%A0%D7%99%D7%AA/%D7%92%D7%9E\'\'%D7%97/%D7%94%D7%95%D7%A8%D7%90%D7%95%D7%AA%20%D7%94%D7%97%D7%99%D7%A4%D7%95%D7%A9.files/image023.jpg\" /></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><span style=\" font-family:\'Symbol\'; font-size:12pt; color:#000000;\">·</span><span style=\" font-family:\'Times New Roman\'; font-size:7pt; color:#000000;\">         </span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\">כעת יש להקליד ב&quot;חלון החיפוש&quot; את המילים שברצונך לחפש, ולהמתין מעט, מומלץ לסמן את האפשרות: מילים שלימות בלבד המופיעה בחלונית החיפוש, וכמו בדוגמה המצורפת, עי&quot;ז החיפוש מהיר יותר. [אולם יש לשים לב לכתוב מילה שלימה ולא חציה, למשל לכתוב \'כוס ראשון\' ולא \'כוס ראשו\']</span></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><img src=\"file:///D:/%D7%A1%D7%A4%D7%A8%D7%99%D7%94%20%D7%AA%D7%95%D7%A8%D7%A0%D7%99%D7%AA/%D7%92%D7%9E\'\'%D7%97/%D7%94%D7%95%D7%A8%D7%90%D7%95%D7%AA%20%D7%94%D7%97%D7%99%D7%A4%D7%95%D7%A9.files/image014.png\" /></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><span style=\" font-family:\'Symbol\'; font-size:12pt; color:#000000;\">·</span><span style=\" font-family:\'Times New Roman\'; font-size:7pt; color:#000000;\">         </span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\">בתחתית חלונית החיפוש אפשר ללחוץ על &quot;הצג עוד אפשרויות&quot;, אפשר לבחור באחת מהאפשרויות שנמצאות שם, במיוחד מועיל אם מעונינים לבחור בכמה קטגוריות ביחד לשם כך יש ללחוץ על האפשרות &quot;בחר אינדקס&quot;, ולסמן את האינדקסים שבהם מעונינים לחפש.</span></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><img src=\"file:///D:/%D7%A1%D7%A4%D7%A8%D7%99%D7%94%20%D7%AA%D7%95%D7%A8%D7%A0%D7%99%D7%AA/%D7%92%D7%9E\'\'%D7%97/%D7%94%D7%95%D7%A8%D7%90%D7%95%D7%AA%20%D7%94%D7%97%D7%99%D7%A4%D7%95%D7%A9.files/image024.jpg\" /></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\"> </span></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:22px;\"><span style=\" font-family:\'Symbol\'; font-size:12pt; color:#000000;\">·</span><span style=\" font-family:\'Times New Roman\'; font-size:7pt; color:#000000;\">         </span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\">הערה בקשר לחיפוש במאגר אוצר התורה – מיר, כיון שהמאגר כולל קבצי וורד שבהם התוכנה לא מבצעת חיפוש, הומרו כל הקבצים גם לקבצי </span><span style=\" font-family:\'Calibri,sans-serif\'; font-size:12pt; color:#000000;\">PDF</span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\">, חלקם נמצאים במיקום המקורי תחת אותו השם, וחלקם בתיקיה (מוסתרת) בפני עצמה הנקראת </span><span style=\" font-family:\'Calibri,sans-serif\'; font-size:12pt; color:#000000;\">PDF</span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\"> ללא מיון, כך שאם אותר ע&quot;י החיפוש בקובץ </span><span style=\" font-family:\'Calibri,sans-serif\'; font-size:12pt; color:#000000;\">PDF</span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\"> ומעוניינים בקובץ זה בפורמט וורד כדי להעתיק ממנו, אפשר לחפש את אותו שם קובץ, ולמוצאו גם בקובץ וורד.</span></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:22px;\"><span style=\" font-family:\'Symbol\'; font-size:12pt; color:#000000;\">·</span><span style=\" font-family:\'Times New Roman\'; font-size:7pt; color:#000000;\">         </span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; color:#000000;\">בדוגמה שלהלן נעשה חיפוש למילים &quot;דבר שלא בא לעולם&quot; בקטגוריה &quot;משניות\', ונמצאו 22 תוצאות ב7 מסמכים, וע&quot;י עמידה עם העכבר על התוצאה הרצויה הספר נפתח ומסומנת התוצאה הרצויה, שים לב ליד הכותרת משניות זכר חנוך נשים, מופיע ריבוע קטן, ע&quot;י לחיצה על + שבתוכו, נפתחים כל התוצאות וכשעומדים עם העכבר על התוצאה הרצויה, נפתח הספר במקום הרצוי.</span></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"><br /></span><img src=\"file:///D:/%D7%A1%D7%A4%D7%A8%D7%99%D7%94%20%D7%AA%D7%95%D7%A8%D7%A0%D7%99%D7%AA/%D7%92%D7%9E\'\'%D7%97/%D7%94%D7%95%D7%A8%D7%90%D7%95%D7%AA%20%D7%94%D7%97%D7%99%D7%A4%D7%95%D7%A9.files/image028.jpg\" /></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;\"><br /></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Symbol\'; font-size:12pt; font-weight:600; color:#000000;\">·</span><span style=\" font-family:\'Times New Roman\'; font-size:7pt; color:#000000;\">         </span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; font-weight:600; color:#000000;\">בכדי שהחיפוש יעבוד כראוי, אין לשנות את מיקום התיקיות שבספריה התורנית, וכן אין למחוק תיקיות וקבצים נסתרים, כל אלו שייכים לאינדקסים לצורך אפשרות החיפוש, והשינוי משבש את הפעילות שלהם.</span></p>\n" "<p align=\"justify\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:16.8667px;\"><span style=\" font-family:\'Symbol\'; font-size:12pt; font-weight:600; color:#000000;\">·</span><span style=\" font-family:\'Times New Roman\'; font-size:7pt; color:#000000;\">         </span><span style=\" font-family:\'Times New Roman,serif\'; font-size:12pt; font-weight:600; color:#000000;\">ישנם ספרים שאין לנו אישור לאפשר לחפש בהם, ולכך העברנו אותם לתיקיה בפני עצמה בשם \'ספרים שונים ללא חיפוש\', השתדלנו לעשות קיצורי דרך לספרים אלו, באם קיצורי הדרך לא עובדים יש לחפש בתיקיה זו. [מכיון שהוצאת הספרים הנ&quot;ל מהחיפוש הייתה אחר יצירת האינדקסים, יתכנו תוצאות בחיפוש שלא יהיה ניתן לראותם, ותתקבל ההודעה \'ארעה שגיאה במהלך אחזור מלל\', ספרים אלו נמצאים כאמור בתיקיה בפני עצמה, ובמקרה הצורך יש לפתוח את הספר ולחפש בו בפני עצמו בתיבת חיפוש של אקרובט\\פקוסיט].</span></p>\n" "<p align=\"center\" dir=\'rtl\' style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; line-height:24px;\"><span style=\" font-family:\'Times New Roman,serif\'; font-size:18pt; font-weight:600; color:#000000;\">בהצלחה!</span></p></body></html>")) layout.addWidget(self.textBrowser) self.setLayout(layout) class Ui_Dialog(object): def openFile(self, link) -> None: try: os.startfile(link) except: msg = QMessageBox() icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("סמל_לתוכנה__2_-removebg-preview.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) msg.setWindowIcon(icon) msg.setWindowTitle("!שגיאה") msg.setText("הקובץ לא נמצא!" + "<br>" + "הקובץ אמור להיות ממוקם ב: " + link) msg.setIcon(QMessageBox.Warning) msg.exec_() def window2(self): # <=== self.w = Window2() self.w.show() def setupUi(self, Dialog): Dialog.setObjectName("Dialog") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("סמל_לתוכנה__2_-removebg-preview.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.resize(832, 540) Dialog.setLayoutDirection(Qt.RightToLeft) Dialog.setAutoFillBackground(False) Dialog.setStyleSheet("background-color: #FFF2CC;") self.label = QLabel(Dialog) self.label.setGeometry(QRect(780, -10, 41, 31)) self.label.setObjectName("label") self.label_2 = QLabel(Dialog) self.label_2.setGeometry(QRect(10, 20, 811, 51)) self.label_2.setStyleSheet("font-size: 38.0pt; font-family: \"Times New Roman\",serif; color: white; text-align: center; background-color: #002060; ") self.label_2.setObjectName("label_2") self.label_3 = QLabel(Dialog) self.label_3.setGeometry(QRect(10, 70, 811, 31)) self.label_3.setStyleSheet("font-size: 20.0pt; font-family: \"David\",sans-serif;; color: white; background-color: #002060; ") self.label_3.setObjectName("label_3") self.pushButton_label_4 = QPushButton(Dialog) self.pushButton_label_4.setGeometry(QRect(10, 100, 811, 20)) self.pushButton_label_4.setStyleSheet("font-size: 14.0pt; font-family: \"Times New Roman\",serif; color: yellow; text-align: center; background-color: #002060;") self.pushButton_label_4.setObjectName("pushButton_label_4") self.pushButton = QPushButton(Dialog) self.pushButton.setGeometry(QRect(10, 120, 811, 23)) self.pushButton.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton.setObjectName("pushButton") self.pushButton_2 = QPushButton(Dialog) self.pushButton_2.setGeometry(QRect(580, 150, 241, 23)) self.pushButton_2.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_2.setObjectName("pushButton_2") self.pushButton_3 = QPushButton(Dialog) self.pushButton_3.setGeometry(QRect(700, 170, 121, 141)) self.pushButton_3.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_3.setObjectName("pushButton_3") self.pushButton_4 = QPushButton(Dialog) self.pushButton_4.setGeometry(QRect(580, 170, 121, 141)) self.pushButton_4.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_4.setObjectName("pushButton_4") self.pushButton_13 = QPushButton(Dialog) self.pushButton_13.setGeometry(QRect(290, 230, 71, 81)) self.pushButton_13.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_13.setObjectName("pushButton_13") self.pushButton_14 = QPushButton(Dialog) self.pushButton_14.setGeometry(QRect(730, 470, 91, 61)) self.pushButton_14.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_14.setObjectName("pushButton_14") self.pushButton_22 = QPushButton(Dialog) self.pushButton_22.setGeometry(QRect(10, 170, 81, 61)) self.pushButton_22.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_22.setObjectName("pushButton_22") self.pushButton_23 = QPushButton(Dialog) self.pushButton_23.setGeometry(QRect(90, 170, 331, 61)) self.pushButton_23.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_23.setObjectName("pushButton_23") self.pushButton_24 = QPushButton(Dialog) self.pushButton_24.setGeometry(QRect(420, 170, 151, 61)) self.pushButton_24.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_24.setObjectName("pushButton_24") self.pushButton_25 = QPushButton(Dialog) self.pushButton_25.setGeometry(QRect(10, 150, 561, 21)) self.pushButton_25.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_25.setObjectName("pushButton_25") self.pushButton_15 = QPushButton(Dialog) self.pushButton_15.setGeometry(QRect(360, 230, 61, 81)) self.pushButton_15.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_15.setObjectName("pushButton_15") self.pushButton_16 = QPushButton(Dialog) self.pushButton_16.setGeometry(QRect(420, 230, 71, 81)) self.pushButton_16.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_16.setObjectName("pushButton_16") self.pushButton_17 = QPushButton(Dialog) self.pushButton_17.setGeometry(QRect(490, 230, 81, 81)) self.pushButton_17.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_17.setObjectName("pushButton_17") self.pushButton_18 = QPushButton(Dialog) self.pushButton_18.setGeometry(QRect(220, 230, 71, 81)) self.pushButton_18.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_18.setObjectName("pushButton_18") self.pushButton_19 = QPushButton(Dialog) self.pushButton_19.setGeometry(QRect(150, 230, 71, 81)) self.pushButton_19.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_19.setObjectName("pushButton_19") self.pushButton_20 = QPushButton(Dialog) self.pushButton_20.setGeometry(QRect(90, 230, 61, 81)) self.pushButton_20.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_20.setObjectName("pushButton_20") self.pushButton_21 = QPushButton(Dialog) self.pushButton_21.setGeometry(QRect(10, 230, 81, 81)) self.pushButton_21.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_21.setObjectName("pushButton_21") self.pushButton_26 = QPushButton(Dialog) self.pushButton_26.setGeometry(QRect(10, 320, 811, 21)) self.pushButton_26.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_26.setObjectName("pushButton_26") self.pushButton_27 = QPushButton(Dialog) self.pushButton_27.setGeometry(QRect(680, 340, 141, 41)) self.pushButton_27.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_27.setObjectName("pushButton_27") self.pushButton_28 = QPushButton(Dialog) self.pushButton_28.setGeometry(QRect(540, 340, 141, 41)) self.pushButton_28.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_28.setObjectName("pushButton_28") self.pushButton_29 = QPushButton(Dialog) self.pushButton_29.setGeometry(QRect(480, 340, 61, 41)) self.pushButton_29.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_29.setObjectName("pushButton_29") self.pushButton_30 = QPushButton(Dialog) self.pushButton_30.setGeometry(QRect(480, 380, 61, 81)) self.pushButton_30.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_30.setObjectName("pushButton_30") self.pushButton_31 = QPushButton(Dialog) self.pushButton_31.setGeometry(QRect(540, 380, 71, 81)) self.pushButton_31.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_31.setObjectName("pushButton_31") self.pushButton_32 = QPushButton(Dialog) self.pushButton_32.setGeometry(QRect(610, 380, 71, 81)) self.pushButton_32.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_32.setObjectName("pushButton_32") self.pushButton_33 = QPushButton(Dialog) self.pushButton_33.setGeometry(QRect(680, 380, 71, 81)) self.pushButton_33.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_33.setObjectName("pushButton_33") self.pushButton_34 = QPushButton(Dialog) self.pushButton_34.setGeometry(QRect(750, 380, 71, 81)) self.pushButton_34.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_34.setObjectName("pushButton_34") self.pushButton_35 = QPushButton(Dialog) self.pushButton_35.setGeometry(QRect(400, 340, 81, 121)) self.pushButton_35.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_35.setObjectName("pushButton_35") self.pushButton_36 = QPushButton(Dialog) self.pushButton_36.setGeometry(QRect(320, 340, 81, 121)) self.pushButton_36.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_36.setObjectName("pushButton_36") self.pushButton_37 = QPushButton(Dialog) self.pushButton_37.setGeometry(QRect(220, 370, 101, 91)) self.pushButton_37.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_37.setObjectName("pushButton_37") self.pushButton_38 = QPushButton(Dialog) self.pushButton_38.setGeometry(QRect(80, 370, 141, 91)) self.pushButton_38.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_38.setObjectName("pushButton_38") self.pushButton_39 = QPushButton(Dialog) self.pushButton_39.setGeometry(QRect(10, 340, 71, 121)) self.pushButton_39.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_39.setObjectName("pushButton_39") self.pushButton_40 = QPushButton(Dialog) self.pushButton_40.setGeometry(QRect(220, 340, 101, 31)) self.pushButton_40.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_40.setObjectName("pushButton_40") self.pushButton_41 = QPushButton(Dialog) self.pushButton_41.setGeometry(QRect(80, 340, 141, 31)) self.pushButton_41.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_41.setObjectName("pushButton_41") self.pushButton_42 = QPushButton(Dialog) self.pushButton_42.setGeometry(QRect(610, 470, 121, 61)) self.pushButton_42.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_42.setObjectName("pushButton_42") self.pushButton_43 = QPushButton(Dialog) self.pushButton_43.setGeometry(QRect(550, 470, 61, 61)) self.pushButton_43.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_43.setObjectName("pushButton_43") self.pushButton_44 = QPushButton(Dialog) self.pushButton_44.setGeometry(QRect(390, 470, 91, 61)) self.pushButton_44.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_44.setObjectName("pushButton_44") self.pushButton_45 = QPushButton(Dialog) self.pushButton_45.setGeometry(QRect(270, 470, 121, 61)) self.pushButton_45.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_45.setObjectName("pushButton_45") self.pushButton_46 = QPushButton(Dialog) self.pushButton_46.setGeometry(QRect(190, 470, 81, 61)) self.pushButton_46.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_46.setObjectName("pushButton_46") self.pushButton_47 = QPushButton(Dialog) self.pushButton_47.setGeometry(QRect(100, 470, 91, 61)) self.pushButton_47.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_47.setObjectName("pushButton_47") self.pushButton_48 = QPushButton(Dialog) self.pushButton_48.setGeometry(QRect(10, 470, 91, 61)) self.pushButton_48.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_48.setObjectName("pushButton_48") self.pushButton_49 = QPushButton(Dialog) self.pushButton_49.setGeometry(QRect(480, 470, 71, 61)) self.pushButton_49.setStyleSheet("background-color: #D0CECE; color: #0563C1; font-family: \"Times New Roman\",serif; font-weight: bold;font-size: 16.0pt;") self.pushButton_49.setObjectName("pushButton_49") self.retranslateUi(Dialog) QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): _translate = QCoreApplication.translate Dialog.setWindowTitle(_translate("Dialog", "חיפוש בתוכן הספרים")) self.label.setText(_translate("Dialog", "בס\"ד")) self.label_2.setText(_translate("Dialog", "<html><head/><body><p align=\"center\">חיפוש בתוכן הספרים בספריה התורנית</p></body></html>")) self.label_3.setText(_translate("Dialog", "<html><head/><body><p align=\"center\">הקש על אחד הנושאים או נושאי המשנה לחיפוש בספרים השייכים לנושא המבוקש</p></body></html>")) self.pushButton_label_4.setText(_translate("Dialog", "לחץ כאן להוראות")) self.pushButton_label_4.clicked.connect(self.window2) self.pushButton.setText(_translate("Dialog", "חיפוש בכל הספרים")) self.pushButton.clicked.connect(lambda: self.openFile("ספריה תורנית\אינדקסים\כל הספרים חדש.pdx")) self.pushButton_2.setText(_translate("Dialog", "תנ\"ך ומפרשיו")) self.pushButton_2.clicked.connect(lambda: self.openFile("ספריה תורנית\אינדקסים\תנ''ך ומפרשיו.pdx")) self.pushButton_3.setText(_translate("Dialog", "מקראות\n" " גדולות")) self.pushButton_3.clicked.connect(lambda: self.openFile("ספריה תורנית\מקראות גדולות\מקראות גדולות.pdx")) self.pushButton_4.setText(_translate("Dialog", "מפרשי\n" " התנ\"ך")) self.pushButton_4.clicked.connect(lambda: self.openFile("ספריה תורנית\מפרשי תנ''ך\מפרשי תנ''ך.pdx")) self.pushButton_13.setText(_translate("Dialog", "ראשונים\n" " על\n" " הש\"ס")) self.pushButton_13.clicked.connect(lambda: self.openFile("ספריה תורנית\מפרשי הש''ס\ראשונים על הש''ס\ראשונים.pdx")) self.pushButton_14.setText(_translate("Dialog", "גאונים")) self.pushButton_14.clicked.connect(lambda: self.openFile("ספריה תורנית\גאונים\גאונים.pdx")) self.pushButton_22.setText(_translate("Dialog", "תלמוד\n" " ירושלמי")) self.pushButton_22.clicked.connect(lambda: self.openFile("ספריה תורנית\תלמוד ירושלמי\תלמוד ירושלמי.pdx")) self.pushButton_23.setText(_translate("Dialog", "ש\"ס ומפרשיו")) self.pushButton_23.clicked.connect(lambda: self.openFile("ספריה תורנית\אינדקסים\ש_ס ומפרשיו חדש.pdx")) self.pushButton_24.setText(_translate("Dialog", "משנה ומפרשיה")) self.pushButton_24.clicked.connect(lambda: self.openFile("ספריה תורנית\אינדקסים\משנה ומפרשיה.pdx")) self.pushButton_25.setText(_translate("Dialog", "חז\"ל")) self.pushButton_25.clicked.connect(lambda: self.openFile("ספריה תורנית\אינדקסים\חז''ל.pdx")) self.pushButton_15.setText(_translate("Dialog", "תלמוד\n" " בבלי")) self.pushButton_15.clicked.connect(lambda: self.openFile("ספריה תורנית\תלמוד בבלי\תלמוד בבלי.pdx")) self.pushButton_16.setText(_translate("Dialog", "מפרשי\n" " המשנה")) self.pushButton_16.clicked.connect(lambda: self.openFile("ספריה תורנית\מפרשי המשנה\מפרשי המשנה.pdx")) self.pushButton_17.setText(_translate("Dialog", "משניות")) self.pushButton_17.clicked.connect(lambda: self.openFile("ספריה תורנית\משניות\משניות.pdx")) self.pushButton_18.setText(_translate("Dialog", "אחרונים\n" " על\n" " הש\"ס")) self.pushButton_18.clicked.connect(lambda: self.openFile("ספריה תורנית\מפרשי הש''ס\אחרונים על הש''ס\אחרונים על הש''ס.pdx")) self.pushButton_19.setText(_translate("Dialog", "מראי\n" " מקומות\n" " ש\'\'ס")) self.pushButton_19.clicked.connect(lambda: self.openFile("ספריה תורנית\ספרי מראי מקומות ש''ס\ספרי מראי מקומות ש''ס.pdx")) self.pushButton_20.setText(_translate("Dialog", "אוצר\n" " התורה\n" " מיר")) self.pushButton_20.clicked.connect(lambda: self.openFile("ספריה תורנית\אוצר התורה מיר - מאגר מ''מ\אוצר התורה מיר.pdx")) self.pushButton_21.setText(_translate("Dialog", "מדרשים\n" "וספרי\n" " חז\"ל")) self.pushButton_21.clicked.connect(lambda: self.openFile("ספריה תורנית\מדרשים וספרי חז''ל\מדרשים וספרי חז''ל.pdx")) self.pushButton_26.setText(_translate("Dialog", "הלכה")) self.pushButton_26.clicked.connect(lambda: self.openFile("ספריה תורנית\אינדקסים\הלכה.pdx")) self.pushButton_27.setText(_translate("Dialog", "שו\"ע ומפרשיו")) self.pushButton_27.clicked.connect(lambda: self.openFile("ספריה תורנית\אינדקסים\שולחן ערוך ומפרשיו.pdx")) self.pushButton_28.setText(_translate("Dialog", "רמב\"ם ומפרשיו")) self.pushButton_28.clicked.connect(lambda: self.openFile("ספריה תורנית\אינדקסים\רמב''ם ומפרשיו.pdx")) self.pushButton_29.setText(_translate("Dialog", "טור")) self.pushButton_29.clicked.connect(lambda: self.openFile("ספריה תורנית\טור\טור.pdx")) self.pushButton_30.setText(_translate("Dialog", "ספרי\n" " מצוות")) self.pushButton_30.clicked.connect(lambda: self.openFile("ספריה תורנית\ספרי מצוות\ספרי מצוות.pdx")) self.pushButton_31.setText(_translate("Dialog", "מפרשי\n" " הרמב\"ם")) self.pushButton_31.clicked.connect(lambda: self.openFile("ספריה תורנית\מפרשי הרמב''ם\מפרשי הרמב''ם.pdx")) self.pushButton_32.setText(_translate("Dialog", "רמב\"ם")) self.pushButton_32.clicked.connect(lambda: self.openFile("ספריה תורנית\רמב''ם\רמב''ם.pdx")) self.pushButton_33.setText(_translate("Dialog", "מפרשי\n" "השולחן\n" " ערוך")) self.pushButton_33.clicked.connect(lambda: self.openFile("ספריה תורנית\מפרשי שולחן ערוך\מפרשי שולחן ערוך.pdx")) self.pushButton_34.setText(_translate("Dialog", "שולחן\n" " ערוך")) self.pushButton_34.clicked.connect(lambda: self.openFile("ספריה תורנית\שולחן ערוך\שולחן ערוך.pdx")) self.pushButton_35.setText(_translate("Dialog", "ספרי\n" " ראשונים")) self.pushButton_35.clicked.connect(lambda: self.openFile("ספריה תורנית\ספרי ראשונים\ספרי ראשונים.pdx")) self.pushButton_36.setText(_translate("Dialog", "ספרי\n" " אחרונים")) self.pushButton_36.clicked.connect(lambda: self.openFile("ספריה תורנית\ספרי אחרונים\ספרי אחרונים.pdx")) self.pushButton_37.setText(_translate("Dialog", "ספרי שו\"ת")) self.pushButton_37.clicked.connect(lambda: self.openFile("ספריה תורנית\ספרי שו''ת\ספרי שו''ת.pdx")) self.pushButton_38.setText(_translate("Dialog", "ספרי הגרח\'\'ק\n" " זצוק\"ל")) self.pushButton_38.clicked.connect(lambda: self.openFile("ספריה תורנית\ספרי הגרח''ק זצ''ל\ספרי הגרח''ק זצ''ל.pdx")) self.pushButton_39.setText(_translate("Dialog", "הגדה\n" " של\n" " פסח")) self.pushButton_39.clicked.connect(lambda: self.openFile("ספריה תורנית\הגדה של פסח\הגדה של פסח.pdx")) self.pushButton_40.setText(_translate("Dialog", "מנהגים")) self.pushButton_40.clicked.connect(lambda: self.openFile("ספריה תורנית\מנהגים\מנהגים.pdx")) self.pushButton_41.setText(_translate("Dialog", "ענייני שביעית")) self.pushButton_41.clicked.connect(lambda: self.openFile("ספריה תורנית\עניני שביעית\ענייני שביעית.pdx")) self.pushButton_42.setText(_translate("Dialog", "מחשבה ומוסר")) self.pushButton_42.clicked.connect(lambda: self.openFile("ספריה תורנית\ספרי מחשבה ומוסר\ספרי מחשבה ומוסר.pdx")) self.pushButton_43.setText(_translate("Dialog", "קבלה")) self.pushButton_43.clicked.connect(lambda: self.openFile("ספריה תורנית\קבלה\קבלה.pdx")) self.pushButton_44.setText(_translate("Dialog", "ספרי כללים")) self.pushButton_44.clicked.connect(lambda: self.openFile("ספריה תורנית\ספרי כללים\ספר כללים.pdx")) self.pushButton_45.setText(_translate("Dialog", "הג\'\'ר אברהם\n" " גנחובסקי")) self.pushButton_45.clicked.connect(lambda: self.openFile("ספריה תורנית\הג''ר אברהם גנחובסקי זצ''ל\הג''ר אברהם גנחובסקי זצ''ל.pdx")) self.pushButton_46.setText(_translate("Dialog", "אגרות")) self.pushButton_46.clicked.connect(lambda: self.openFile("ספריה תורנית\אגרות\אגרות.pdx")) self.pushButton_47.setText(_translate("Dialog", "דקדוק")) self.pushButton_47.clicked.connect(lambda: self.openFile("ספריה תורנית\דקדוק\דקדוק.pdx")) self.pushButton_48.setText(_translate("Dialog", "שונות")) self.pushButton_48.clicked.connect(lambda: self.openFile("ספריה תורנית\שונות\שונות.pdx")) self.pushButton_49.setText(_translate("Dialog", "חסידות")) self.pushButton_49.clicked.connect(lambda: self.openFile("ספריה תורנית\ספרי חסידות\חסידות.pdx")) if __name__ == "__main__": import sys app = QApplication(sys.argv) Dialog = QDialog() ui = Ui_Dialog() ui.setupUi(Dialog) Dialog.show() sys.exit(app.exec_())

    מה שאמור לצאת מזה בסופו של דבר זה מסך עם כפתורים שכל אחד מהם יפתח קובץ אחר בלחיצה עליו. כזה:

    bd117f2e-b720-43da-9cd1-c2da73c4a054-image.png

  • נושא זה נמחק!

    2
    0 הצבעות
    2 פוסטים
    140 צפיות
  • תוספים שימושיים לVSC

    20
    8 הצבעות
    20 פוסטים
    616 צפיות
    קומפיונטק

    יש ל-vscode המון הרחבות של ערכת נושא, אבל אני רוצה להביא שילוב של שני הרחבות שאני אישית מאוד אוהב, וזה אחרי בדיקה של עשרות themeים...

    ההרחבות הם:

    Andromeda Material Icon Theme

    מצרף צילומי מסך:
    זה הערכת נושא הכהה הרגילה של vscode:
    default_theme.png

    וזה אחרי שני התוספים הנ"ל:
    nice-theme.png

  • שגיאה בקוד מיזוג דואר

    3
    0 הצבעות
    3 פוסטים
    81 צפיות
    א

    @ivrtikshoret מאקרו בקובץ וורד או באקסס?

  • מהירות הזנת נתונים בdb בהרבה רשומות

    4
    0 הצבעות
    4 פוסטים
    82 צפיות
    dovidD

    @chagold אתה יכול להסיר את האינדקסים ולהחזיר אותם בסוף.
    ראה פה טיפים למהירות של הרבה INSERT:
    https://dev.mysql.com/doc/refman/5.7/en/insert-optimization.html

  • sequelize - include model where id: parent column json array [0]

    6
    0 הצבעות
    6 פוסטים
    198 צפיות
    yossizY

    @meir-lamdan עכשיו הרבה יותר ברור.
    אז קודם כל אפשר לעשות where על include
    עכשיו נשאר רק השאלה איך עושים ב-where תנאי שמתנה שזה שווה לערך הראשון של מערך JSON.

    אני לא חושב שיש ב-sequelize תחביר מובנה לזה, אז תשתמש ב-SQL,
    נראה לי משהו כזה:

    Model.findAll({ include: { model: ModelB, where: sequelize.literal('model_a->list->>0 = model_b.id') } })
  • משתנה מחוץ לפונקציה

    7
    0 הצבעות
    7 פוסטים
    159 צפיות
    dovidD

    @אנא כתב במשתנה מחוץ לפונקציה:

    על פי מה שאתה אומר לא כדאי להכניס משתנים מחוץ לפונקציה כדי לא להכביד. אני צודק?

    בא נבחן במידה ולא היה שום משמעות מבחינת הכבדה.
    במקרה כזה היית תמיד שם בחוץ? לא. כי מה שלא צריך להיות בחוץ זה רע שזה בחוץ.
    בתכנות תמיד מנסים שחלקים יהיו כמה שיותר סגורים בקופסאות. ככה כשיש בעיה מוצאים את הקופסה הבעייתי בקלות ומתקנים/מחליפים אותה. כמה שיותר תלות בין הפונקציה לבין העולם שסביבה, ככה הקוד גרוע וקשה לתחזוקה. לכן בברירת מחדל, משתנים שבשימוש בפונקציה יוכרזו רק איפה שהם נדרשים. נהוג גם למצמצם אפילו בתוך הפוקנציה לתוך הבלוק (if, for וכדומה) הנדרש עם מילת let שמאפשרת את הצמצום.
    משתנה ששמים מחוץ לפונקציה הוא שיתוף/שמירת מידע מעבר לחיי הפונקציה. למשל מונה ביקורים, סביר שתעשה ככה:

    let counter = 0; function inc(){ counter++; }

    אי אפשר לשים את counter בפונקציה במקרה כזה, כי אתה רוצה שכל קיראה תוסיף על הקריאה הקודמת ולא תתחיל מבראשית.

    בקשר להכבדה, תיאורטית והיפותטית זה נכון.
    במקרה של משתנה פרימטיבי (מספר או טקסט למשל) המשמעות של זה דומה לניעור אבק מהבגד לפני כניסה לאוטו כדי לחסוך בדלק, אבל זה עדיין נכון.
    במקרה של אובייקט שיכול להיות ענף (עשרות אלפי משתנים), זה נכון אבל לא צריך להילקח בחשבון עם טובת האפליקציה היא שזה יהיה בחוץ בכפוף לאמור לעיל.

  • מערכת ניהול משתמשים והזנת תכנים

    הועבר
    6
    0 הצבעות
    6 פוסטים
    351 צפיות
    איש נחמדא

    @aaron אמר במערכת ניהול משתמשים והזנת תכנים:

    @איש-נחמד
    CMS.
    הבעיה שיש יותר מידי.
    אני חושב שstrapi עונה על הדרישות הנ"ל, אם כי אין לי ניסיון ממשי איתו

    אם כבר הקפיצו את האשכול - האם יש לו 'גב' מספיק חזק לעומת וורדפרס?

  • הטמעת ספירה לאחור באתר

    8
    0 הצבעות
    8 פוסטים
    190 צפיות
    קינג קומפיוטרק

    @shraga תודה רבה רבה
    יצא לי יפה, אני ממש גאה בעצמי😂

  • תרגיל: עיגול מספר לפי מערך מפתחות

    23
    0 הצבעות
    23 פוסטים
    395 צפיות
    קומפיונטק

    @dovid כתב בתרגיל: עיגול מספר לפי מערך מפתחות:

    סליחה, בכל מקום שMath.Clamp יעבוד (CORE 2 ומעלה) זה בהכרח C# 7.3 לפחות.

    הערת אגב: הפיצ'ר שכתבתי (arr[^1]) לא קיים ב C# 7.3, זה רק מ 9.0 או 8.0.

  • 2 הצבעות
    7 פוסטים
    221 צפיות
    dovidD

    @mekev ככה

    if ((bool)dataGridView1.CurrentCell.EditedFormattedValue) { current_payment = Math.Min(tb1Val, debt_balance) dataGridView1.CurrentRow.Cells["current_payment"].Value = current_payment; textBox1.Text = Math.Max(tb1Val - current_payment, 0).ToString(); }
  • מיזוג דואר מטבלת אקסס

    24
    0 הצבעות
    24 פוסטים
    352 צפיות
    א

    @OdedDvir עובד!
    תודה רבה!!!

  • חילוץ מפתח XOR מתוך מספרים ממויינים

    6
    10 הצבעות
    6 פוסטים
    384 צפיות
    yossizY

    @yossiz אמר בחילוץ מפתח XOR מתוך מספרים ממויינים:

    const previous = numList[bestIndex - 1] const extractLen = bestDiff.toString(2).length const keyBits = bestDiff ^ (previous ^ (1 << (extractLen - 1))) & makeBitmask(extractLen)

    תפסתי אתמול שזה מסובך מדי, אפשר יותר פשוט:

    const best = numList[bestIndex] const extractLen = bestDiff.toString(2).length const keyBits = (best ^ (1 << (extractLen - 1))) & bestDiff

    זה מייתר גם את פוקנצית העזר makeMask

בא תתחבר לדף היומי!